by krispyfi · 3y ago · 0 comments
Someone should go back in time and tell them...
> Unicode aims in the first instance at the characters published in modern text (e.g. in the union of all newspapers and magazines printed in the world in 1988), whose number is far below 2¹⁴ = 16,384.
...and yeah, that's probably true. It wasn't until several years later that they joined forces with the ISO10646 project, which aimed to encode every character ever used by any human writing system, and 16 bits turned out not to be enough.
1. formatting
2. fonts
3. semantic meaning
4. multiple encodings for the same code point
5. you vote for my invented character and I'll vote for your invented character
6. multiple code points for the same glyph
7. an incomprehensible document describing all this nonsense
8. an impossibility to implement it all
I'm fairly sure a good fraction of these are due to the desire for compatibility:
PDF: https://www.unicode.org/versions/Unicode15.0.0/ch02.pdf#G110...
> Conceptually, compatibility characters are characters that would not have been encoded in the Unicode Standard except for compatibility and round-trip convertibility with other standards. Such standards include international, national, and vendor character encoding standards. For the most part, these are widely used standards that pre-dated Unicode, but because continued interoperability with new standards and data sources is one of the primary design goals of the Unicode Standard, additional compatibility characters are added as the situation warrants.
Round-trip convertibility is important for interoperability, which is important for getting the standard accepted. A data encoding standard that causes data loss is not acceptable, and trying to impose such on the world would have rightfully failed.
Never ending madness.
> impose such on the world
The imposing is inflicted by the Unicode standard on everyone in the world who have no use for never ending new invented encodings for the same thing.
> “multiple encodings for the same code point”, “multiple code points for the same glyph”, and “an incomprehensible document describing all this nonsense”
One important factor for adoption was round trip idempotency. Unicode doesn’t simply encode every glyph but incorporates as many existing character sets as possible. (Of course “possible” is modulated by the fact there are/were competing encodings for the same language).
If you use a unicode-aware grep and use it to search for ‘.’, you want the result to be the same as `cat`, rather than having the result re-coded, objcopy-like.
Sure, this is less of a problem in 2023, but still a major problem that will continue indefinitely due to legacy files, legacy hardware, and small-resource devices. So there is no way in unicode to tell by inspection if ‘A’ is Latin or Greek..which is true also on the printed page.
Likewise the writing of different languages don’t merely have different appearance, but different semantics for the visually same shape. In some languages (e.g. French), diacritics are largely semantically silent: you can understand a sentence with them stripped out, though they can simplify reading in some cases by disambiguating some otherwise homonyms. In other languages (e.g. the German umlaut) they are simply contractions — fossils of medieval handwriting. Yet again, in Swedish they can be optional, like the acute accent or form completely different letters like ä. Capturing this is complicated and even discussing it requires, yes, an almost incomprehensible document.
And it has all been implemented but using those libraries is hard, because language processing is hard. In general I/O is hard.
Im not sure what you mean about “semantic meaning” but I do agree, mostly, with your other complaints.
There's one code point for the letter `a` and another code point for the mathematical symbol `a`, despite being visually identical. I.e. the code points have acquired semantic meaning.
Spy agencies use this so different versions of a document look identical when printed. Thus, they can use this to track down the mole who leaked a sensitive document.
Of course it will be inappropriate in many situations. Well, guess what, so are many words. Emoji are no longer just fun. They're also a great way for people of different languages to understand each other. No need to make things more difficult to understand and there's also a lot of non-controversial cases for this (doctor my eggplant sparks when the water tap is open is not quite as clear :) )
Of course the level of explicitness can be decided by the font designers, and the big tech companies will no doubt stylise them tastefully. The same way the gun emoji is now a green water pistol.
But I really don't understand leaving this major topic of human interaction out of what is becoming a language. I'm really serious about this. Any service, website or app not wanting to support them can simply block them just like they already do certain words, and it's much easier to do than a filter on words which can be bypassed by misspelling, inserting spaces etc. This is how 'pr0n' became a word. With emoji you can't do this.
I'm a bit tired of the tech sector pushing American prudeness on the whole world. Here in Barcelona you can buy waffles in the shape of penises and vulvas with strategically placed white chocolate and eat them on the street but a tastefully stylised emoji is not ok? Different cultures have different standards and Unicode was supposed to represent everyone.
See, e.g.:
Semantics: there's a code point for the letter 'a' and another code point for the mathematical symbol 'a', although the glyphs are identical. Unicode points should not have semantic meaning - semantic meaning comes from the context in which the points are used.
You know, like the text in a printed book.
And so on, for the other bullet points.
So now we can have poop and animal symbols in filenames.
And left-to-right overrides and countless homograph attacks.
It's just sad.
EDIT: Skimming it, I don't see how the issue is addressed, except in a diagram that says,
* Modern-Use Ideographs: 54x256 = 13,824
* Added Ideographs: 64x256 = 16,384
Also it talks about deduplicating identical characters in Chinese, the Japanese alphabets, and Korean (Hangul).
More interesting is the full explanation of modern use:
Distinction of "moderm-use" characters: Unicode gives higher priority to ensuring utility for the future than to preserving past antiquities. Unicode aims in the first instance at the characters published in modern text (e.g. in the union of all newspapers and magazines printed in the world in 1988), whose number is undoubtedly far below 2^14 = 16,384. Beyond those modern-use characters, all others may be defined to be obsolete or rare; these are better candidates for private-use registration than for congesting the public list of generally-useful Unicodes.
It's very interesting, and revealing about the author, to define use as newspaper and magazine publishing.
EDIT:
> Beyond those modern-use characters, all others may be defined to be obsolete or rare; these are better candidates for private-use registration than for congesting the public list of generally-useful Unicodes.
I do believe that the initial estimation was not very off. IICore 2.2 [1] contains 9,810 Han characters across all relevant countries and even assuming that every character should be encoded in two ways (to account for simplified-traditional splits) and IICore had some significant omissions we could have just encoded ~40,000 characters. If everything went well according to their plan.
The reality however was that PUA for rare characters was an old concept---pretty much every East Asian character set has one---and proven so ineffective. PUA is by definition not interchangable, but rare characters are still in use and they have to be interchanged anyway. So people avoided them like a plague and argued for bigger character sets instad, East Asian character sets had to be ballooned up, and at the point of Unicode they became so large that a naive vision of Unicode 88 no longer worked.
[1] https://en.wikipedia.org/wiki/International_Ideographs_Core
They probably didn't foresee the "unreasonable" and "uninteresting" use of emojis.