Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve autowidth on Unicode character #24

Open
ickc opened this issue Aug 6, 2017 · 1 comment
Open

Improve autowidth on Unicode character #24

ickc opened this issue Aug 6, 2017 · 1 comment

Comments

@ickc
Copy link
Owner

ickc commented Aug 6, 2017

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?
@ickc
Copy link
Owner Author

ickc commented Oct 7, 2018

lack of interested and not quite simple to do

@ickc ickc closed this as completed Oct 7, 2018
@ickc ickc reopened this Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant