Skip to content

Improve autowidth on Unicode character #24

Open

Description

@ickc

Currently, autowidth only calculate width by no. of characters.

I recall @jgm does something smart in pandoc to account for the width of unicode character. e.g. Chinese character is considered twice as long as an ASCII.

Considerations:

  • what if its other unicode character?
  • do we need to match pandoc's behavior exactly? Note that this should not affect idempotency (because once the numerical value of width are set, it's done).
  • are there any better width prediction algorithm?
  • what does this mean to performance?

Activity

  1. ickc commented on Oct 7, 2018

    @ickc
    OwnerAuthor

    lack of interested and not quite simple to do

  2. reopened this on Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions