Grapheme clusters, a.k.a.real characters

Chris Angelico rosuav at gmail.com
Sat Jul 15 21:32:16 EDT 2017


On Sun, Jul 16, 2017 at 11:20 AM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> On Saturday, July 15, 2017 at 7:29:14 PM UTC-5, Chris Angelico wrote:
>> [...] Also, that doesn't deal with
>> U+200B or U+180E, which have well-defined widths *smaller* than
>> typical Latin letters. (200B is a zero-width space. Is it a
>> character?)
>
> Of *COURSE* it's a character.
>
> Would you also consider 0 not to be a number?
>
> Sheesh!

Exactly. That's my point. Even in a monospaced font, U+200B is a
character, yet it is by rule a zero-width character. So even in a
monospaced font, some characters must vary in width.

ChrisA



More information about the Python-list mailing list