by WalterBright · 3y ago · 0 comments
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.
The only way this becomes a live issue again is if someone develops a whole new encoding which is incompatible with the latest version of Unicode. And it gets enough traction to get on anyone else's radar. I simply can't see that as very likely.
[Unicode] didn't start the fire; it was always burning, since the world's been turning.
(I.e. the "never-ending madness" is in the continual desire of human cultures to invent new characters with unique semantics and then have them faithfully digitally encoded in a way that carries those semantics. Being upset that this makes the management of a universal text encoding a never-ending job, is a bit like being upset that the Library of Congress always needs reorganizing and expanding because it keeps getting new books.)
> “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.:
Let’s say “important while almost entirely useless” and call it a day?
[1] Or one foot. I remind you that all current standardized definition of "foot" is based on the SI.
Small subsets. No fonts remotely support all the characters. Prog languages do subsets.
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.
Just the opposite. A codepoint looks different in different fonts, and so things that are "identical" in one font won't be "identical" in another font. Only the semantics are the same.
Printed "A" and cursive "A" are both, semantically, "latin capital A". Those semantics are very concrete and specific: they include its sort order, its conversion re: case-conversion, its joining/splitting behavior, its categoric matching in regexps, etc.
But the codepoint "latin capital A" expresses no preference over whether it should be rendered as a printed/roman A or a cursive A. Codepoints don't define glyphs; they only define semantics! The glyphs associated with codepoints are conventional, following the codepoint's description!
Further, codepoints tell accessibility technologies and other machine-agents what a codepoint "is." Greek letter π is text-to-speech'ed as a letter, and together with other greek letters, as a greek word. Mathematical symbol 𝜋 is text-to-speech'ed as the word "pi."
And this is the fundamental failure of Unicode post 16 bit code points. Unicode has set itself an absurdly impossible task.
By the way, if we indeed decide to encode characters according to glyphs, we would have to distinguish a double-storey `a` from a single-storey `a` (among others). They have clearly different glyphs, so why shouldn't we? Think about that.
But somehow mathematical books have done just fine without any need for such encodings. Meaning in written language is inferred from the context, not the symbol. This is because meanings are infinite in variety, and symbols are finite.
> Think about that
I did. That's what fonts are for. Fonts come in endless variety, and so cannot be encoded into Unicode. They are an orthogonal property of rendered text.
And so is formatting - it's an orthogonal property.
So now we can have poop and animal symbols in filenames.
And left-to-right overrides and countless homograph attacks.
It's just sad.