[Issue 7054] format() aligns using code units instead of graphemes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 13 13:48:50 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=7054
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #16 from hsteoh at quickfur.ath.cx ---
There still remains the following cases that need to be handled:
- Zero-width characters such as U+200B should not add to the width of the
string;
- Wide / Full-width characters as defined by Unicode TR11 (EastAsianWidth.txt)
should occupy 2 spaces per character, as this is what is done in many monospace
terminal applications;
- Hangul Jamo syllables, while correctly segmented as single graphemes by
graphemeStride, are designated as wide characters, and thus should occupy 2
spaces per grapheme (note that there can be multiple dchars per Jamo grapheme).
--
More information about the Digitalmars-d-bugs
mailing list