-
Notifications
You must be signed in to change notification settings - Fork 84
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
Inappropriate widths for Hangul Jamo #20
Comments
pehjota
added a commit
to pehjota/less
that referenced
this issue
Apr 18, 2024
This reverts commit f229eab. This change causes the following test failures: TEST utf8-2.txt.lt DIFF utf8-2.txt on cmd gwsw#20 (. a) FAIL: utf8-2.txt (20 steps) ERR status 256 from /<<PKGBUILDDIR>>/lesstest/lesstest -s '/<<PKGBUILDDIR>>/lesstest/lt_screen' -t '/<<PKGBUILDDIR>>/lesstest/lt/utf8-2.txt.lt' '/<<PKGBUILDDIR>>/less' TEST chinese1.lt DIFF chinese1 on cmd gwsw#29 (. a) FAIL: chinese1 (29 steps) ERR status 256 from /<<PKGBUILDDIR>>/lesstest/lesstest -s '/<<PKGBUILDDIR>>/lesstest/lt_screen' -t '/<<PKGBUILDDIR>>/lesstest/lt/chinese1.lt' '/<<PKGBUILDDIR>>/less'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the seminal definition of wcwidth,
Kuhn's implementation is old but this rule is still widely used today, e.g., in
wcwidth
fromglibc
for UTF-8 locales as demonstrated byAfter Kuhn's implementation, Unicode added more medial vowels (U+D7B0-U+D7C6) and final consonants (U+D7CB-U+D7FB) which should also have zero width. To avoid differences between
cat
andless
displays inxterm
, I added{0x1160, 0x11ff}
,{0xd7b0, 0xd7c6}
, and{0xd7cb, 0xd7fb}
tocompose.uni
afterrm compose.uni; make -f Makefile.aut compose.uni
but beforemake
. This worked well so please consider making this change or something cleaner.The text was updated successfully, but these errors were encountered: