3 ms·
I thought Han Unification meant that (most of the common) CJK characters were represented by the same Unicode code points, and that the way to differentiate lik
by jlebar 12y ago
I thought Han Unification meant that (most of the common) CJK characters were represented by the same Unicode code points, and that the way to differentiate like this is by specifying metadata that indicates the "language".
Obviously I'm wrong, because these are just regular Unicode characters, without an HTML "lang" attribute.
What gives?
- fenomas 12y agoTwo separate issues. Pan-CJK fonts like Noto solve a problem that arises from the fact that many CJK characters are only ever used in certain locales. Since most CJK fonts are made for a given locale, they tend not to include any of the (many) CJK characters never used in that locale. Hence, if you render mixed CJK text in (say) a Japanese font, any characters that don't appear in Japanese won't render at all. That's what (I believe) this comment refers to. The Han Unification problem arises from the inverse case - characters that are used in several languages but rendered differently depending on locale[0]. For those characters, they'll render even without a pan-CJK font, but the problem is they'll render in a way that's not appropriate for their locale. [0] Another way to phrase this would be "distinct characters which share a code point becaus Unicode mistakenly thinks they're a single character whose rendering differs by locale". The difference is basically subjective.
- amake 12y ago> if you render mixed CJK text in (say) a Japanese font, any characters that don't appear in Japanese won't render at all. In theory, yes, but that almost never happens. What really happens is that any missing characters will fall back to a different font, so the text is legible but looks terrible from an aesthetic point of view.