You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your work on this project. It's been invaluable!
According to this document emoji presentation sequences should be treated as "East Asian Wide".
[UTS51] emoji presentation sequences behave as though they were East Asian Wide, regardless of their assigned East_Asian_Width property value.
When wcwidth reads in the EastAsianWide.txt file, it discards all the emoji presentation sequences it finds, rather than treating them as being wide (since it discards everything without W or F properties).
wcwidth will report all of the emoji in the above list as having width 1 instead of width 2.
I would be happy to PR this, but I'm not sure the master branch is clean - I noticed some walrus operators etc. despite my understanding being that this project is 2.7 compatible
Reacted by GalaxySnail and Marcelo Vironda Rozanti
I noticed some walrus operators etc. despite my understanding being that this project is 2.7 compatible
Walrus operators and f-strings mean it can't run under python 2 (or even python 3.7). I have cleaned its python 2 compat codes in #58.
In my opinion, python 2 compat is useless for bin/update-tables.py, because we always need the latest python for unicodedata.name in the latest unicodedata module. On python 3.10, unicodedata.unidata_version is 13.0.0, and on python 3.11 it is 14.0.0.
Activity
GalaxySnail commentedon Mar 6, 2022
Walrus operators and f-strings mean it can't run under python 2 (or even python 3.7). I have cleaned its python 2 compat codes in #58.
In my opinion, python 2 compat is useless for
bin/update-tables.py, because we always need the latest python forunicodedata.namein the latest unicodedata module. On python 3.10,unicodedata.unidata_versionis13.0.0, and on python 3.11 it is14.0.0.jquast commentedon Mar 8, 2022
that's correct, bin/update-tables.py is not meant to be python2 compatible, it is not distributed as part of the package.
Refactor pretty-printing; implement wcswidth
Bugfixes for zero-width characters (#91)