Re:Tell HN: C Experts Panel – Ask us anything about C
by a1369209993 on Wednesday April 15, 2020 @03:15AM
(#22875346)
UTF-32 is also a variable-width encoding; eg 00000044 00000308 aka "D̈".
[ Parent
| on HN ]
Re:Tell HN: C Experts Panel – Ask us anything about C
by DougGwyn on Thursday April 16, 2020 @07:29PM
(#22894642)
I thought it was strictly one character per 32-bit code.
Anyway, whatever it is called it is what wchar_t should be.
Re:Tell HN: C Experts Panel – Ask us anything about C
by a1369209993 on Friday April 17, 2020 @04:37AM
(#22897266)
There are no fixed width encodings with range of encodable characters anywhere near that of Unicode.
Re:Tell HN: C Experts Panel – Ask us anything about C
by flatfinger on Friday April 17, 2020 @01:20PM
(#22900957)
It's too bad Unicode wasn't designed around the concept of easily-recognizable grapheme clusters and "write-only" [non-round-trip] forms that are normalized in various ways. A text layout engine shouldn't have to have detailed knowledge of rules that are constantly subject to change, but if there were a standard representation for a Unicode string where all grapheme clusters are marked and everything is listed in left-to-right order, and an OS function was available to convert a Unicode string into such a form, a text-layout using that OS routine would be able to accommodate future additions to the character set and and glyph-joining rules without having to know anything about them.
Re:Tell HN: C Experts Panel – Ask us anything about C
by a1369209993 on Friday April 17, 2020 @02:55PM
(#22901791)
You can't do that without commiting to not supporting pathological text, otherwise you're stuck adding new special cases to the layout engine every update anyway.
I do have some ideas for a better encoding (like, I assume, anyone competent with sufficient free time and interest in text encoding), but there's a lot of reluctance to put effort into something that's already completely eclipsed by a technically inferior but not completely unusable alternative, so I've had it mostly shelved.