9 ms·
Dealing with multiple code pages was terrible, ugly, impossible, and simply awful. Unicode was a great salvation. Until the Unicode spec wandered off into nutb
by WalterBright 5y ago
Dealing with multiple code pages was terrible, ugly, impossible, and simply awful.
Unicode was a great salvation. Until the Unicode spec wandered off into nutburgerland:
1. embedding invisible semantic information into the encodings
2. multiple encodings that mean the same thing
3. moved beyond standardizing existing alphabets, and wandered into a never-ending stream of people inventing all sorts of glyphs and campaigning to get them into Unicode
4. set language back 2000 years by deciding that hieroglyphs were better than phonetics
5. conflating 𝖋𝖔𝖓𝖙𝖘 with alphabets
6. the crazy concept of "levels" of Unicode compatibility
all resulting in it simply being impossible to correctly support Unicode in your programs, or design a font to display Unicode.
- quickthrower2 5y agoGenuine question: can you explain how phonetics can be used in a character encoding for text?
- WalterBright 5y agoI don't understand your question. `a` is for the sound `aaaahhhh`.
- Thiez 5y agoBut 'j' in Spanish sounds completely different from 'j' in English. Which of these languages should give up their j and add a new letter to their alphabet? At least in Spanish letters are usually pronounced the same, so presumably Spanish is closer to your ideal. Contrary to English, which seems to be designed specifically to torment its speakers. Here's a famous poem: https://ncf.idallen.com/english.html https://ncf.idallen.com/english.html Perhaps you could give an indication how this poem would be written in English in a hypothetical phonetic spelling? Or would all the languages just convert to the International Phonetic Alphabet, and we'd forbid all the existing alphabets? :)
- WalterBright 5y ago> Which of these languages should give up their j and add a new letter to their alphabet? Neither. They both use 'j'. Problem solved. No, I'm not being facetious. Spanish books are written in Spanish, and English books are written in English. Both use 'j'. Somehow, it works. No need to invent problems.
- Thiez 5y agoNo response to the poem, then?
- WalterBright 5y agoI thought my response was obvious. Should I cut&paste it from the article and post it here?
- Thiez 5y agoIt's not obvious at all. But let's cut&paste some of your stuff: > `a` is for the sound `aaaahhhh`. That's great for words like 'father', 'fall', and 'dark'. But not for words like 'dad' and 'fat' and 'frank'. Or 'same' and 'lame'. So no, in English, 'a' is not the sound for 'aaaahhhh'. 'aaaahhhh' is just one of the various sounds for 'a'. In a lot of ways English is like those hieroglyphics you seem to hate so much, because you have to know the mapping between the words and how they are written. It probably doesn't feel like that to you, because you're used to it by now. If you really want phonetic spelling, you'll have to change the spelling of most English words. That is fine, but I think most people would find that much less appealing than using unicode. Your suggestion would then basically boil down to: "Hey, let's change the spelling of most English words you know, and also ban emojis!" I would prepare for lots of little upside-down hands with the thumb pointing down.
- WalterBright 5y agoSo you want to turn Unicode into a semantic language, too?
- BjoernKW 5y agoIn most languages there's no immediate, bijective mapping between graphemes and phonemes. Some Indo-European languages such as French, Spanish, Italian, or Dutch come quite close in that there is a one-to-one (in some cases context-sensitive) mapping between graphemes or grapheme clusters and the sounds they signify. For English, famously, there's no such one-to-one mapping and for many cases pronunciation has to be memorised: https://ncf.idallen.com/english.html https://ncf.idallen.com/english.html
- WalterBright 5y agoSomehow, English printed books do just fine without icons.
- BjoernKW 5y agoSure, they do. That has little to do with phonetics, though.
- WalterBright 5y ago> That has little to do with phonetics, though. I learned to read by using phonetics. It has a lot to do with the success of English text. English works well as a phonetic language. Just like the text I write here can be read by any second grader.
- quickthrower2 5y agoThe ‘u’ in ruby and run sounds different. English writing is not phonetic. Arabic I think pretty much is though.
- WalterBright 5y ago> English writing is not phonetic. It's phonetic enough to work well as one. Teaching kids to read by sounding out the words works far better than any other method (like look-say). Have fun punishing students by making them learn 10,000 hieroglyphs instead.
- quickthrower2 5y agoI’m a bit lost as you were talking about character encoding with phonetics originally and I couldn’t picture how that would work. With kids yes in would agree sounding out (and pointing out exceptions to the rule) works well enough. But I’m no teacher!
- WalterBright 5y agoThere's a bit of a misunderstanding here. I was not talking about encoding phonetic sounds into Unicode. Unicode should not imply sounds or meaning. Unicode is about visual representation. The argument about phonetic alphabets is they are superior to hieroglyphs.
- dotancohen 5y agoMy acorn disagrees with you.
- WalterBright 5y agoUnicode is supposed to be about the visual representation, not the aural.
- dotancohen 5y agoThen that would have been a much better answer to GP's question "can you explain how phonetics can be used in a character encoding for text?"
- deleted 5y ago[deleted]
- kergonath 5y ago‘A’ as in ‘car’, or ‘A’ as in ‘care’? Yes, I might be being facetious, but letters are divorced from pronunciation, and the great vowel shift made that significantly worse amongst European languages.
- grlass 5y agoRE point 4, I believe that this was initially a descriptivist rather than prescriptivist step. People were using emoticons, showing that emoji might be desirable. Some cell phone manufacturers/carriers added their own emoji [1]. They were very popular. Unicode added emoji to the standard, since lots of people were using it. Not adding emoji would have been _more_ prescriptivist, and since it was desired anyway would have just caused fragmentation. [1] https://blog.emojipedia.org/correcting-the-record-on-the-first-emoji-set/ https://blog.emojipedia.org/correcting-the-record-on-the-fir...
- WalterBright 5y agoEmoticons are simply interpreting :-) as a smiley face, no Unicode invention is necessary.
- grlass 5y agoYes, and emoji came from emoticons, meeting a need to express more complex ideas. Unicode adopted emoji after they were popularised.
- WalterBright 5y ago> meeting a need to express more complex ideas Still not necessary to have special Unicode code points for them. :poop: should do just fine. No need for more than that.
- pests 5y ago:poop: was never made into stuffed animals or pillows either. Branding and imagry means something to some people despite not to you.
- WalterBright 5y agoWhat does branding have to do with Unicode? Is there a Unicode code point for the coca-cola trademark or the Amazon smile?
- q-rews 5y ago3. Yes, sadly. 4. Can you expand on that?
- WalterBright 5y ago> expand Sure. I don't know what most of the buttons do on my car's dashboard, because of the "iconitis" disease that has infected user interface design. Unicode has blessed and encouraged this crap. They don't just standardize, they invent icons intending them to replace the phonetic words. (Apple is kinda schizophrenic on this. Sometimes you'll see "DELETE" as a button, sometimes a trash can.) I don't know what the wash icons on my clothes mean without going to google and looking them up. You can't look up an icon in a dictionary, making it a fundamentally wretched replacement for a phonetic alphabet. Worse, people persistently try to invent icons for verbs and adjectives, which never ever work. Even for nouns, is that scribble a bird, a duck, or a chicken? My car has a button with something that looks like a snowflake on it. Does it turn the heater on? The defroster? The air conditioner? Turn on traction control? Who the hell knows?
- q-rews 5y ago> Who the hell knows? The manual. I see what you’re saying, Gmail is painful to use for this exact reason. I’d argue it’s fine on cars though for a few reasons: - there probably aren’t that many icons to be aware of in a car - cars are generally owned for a long time, so learning 2 new icons every 5-10 years is not much to ask - cost-cutting on I18n: the snowflake could be AC in English but “airflugencoldensteiner” in some other language. It doesn’t scale and it can’t be sold across borders without looking out of place.
- WalterBright 5y ago> The manual. Right, while hurtling down the freeway I can always dig the 500 page manual out and dig through it. Note that I can't use the index to find those icons, because icons have no alphabetic order. Like I said, going backwards 2000 years. > airflugencoldensteiner So just use AC. You can even look it up in the index. > It doesn’t scale and Yah, show it to an illiterate desert dweller, and ask them what they make of it. > it can’t be sold across borders without looking out of place. Of course it can be. Whatcha gonna do, translate that entire 500 page manual into hieroglyphs? Isn't it hilarious that now an entire generation of adults has never used a phone that looks like the typical phone icon? The phone icon on my iphone looks like a phone from the 1960's. However, "PHONE" has remained constant.
- lifthrasiir 5y agoUnicode is just a cumulation of what already existed in one form or another, not an entirely new mistake. > 1. embedding invisible semantic information into the encodings > 2. multiple encodings that mean the same thing Sure, ISO/IEC 8859 back then had no invisible characters nor composed characters, did it? [1] > 3. moved beyond standardizing existing alphabets, and wandered into a never-ending stream of people inventing all sorts of glyphs and campaigning to get them into Unicode > 4. set language back 2000 years by deciding that hieroglyphs were better than phonetics Emoji business is surely ugly (and I have complained about this a lot), but the very reason that Unicode has emoji is that Japanese telcos have exposed their priprietary encodings to the wild email and both Apple and Google had to implement them for the compatibility. Blame them, not Unicode. > 5. conflating 𝖋𝖔𝖓𝖙𝖘 with alphabets Yeah, you will be surprised to hear that Unicode encodes both the Latin letter A and Cyrillic letter A separately. (I think you had already said that they should be unified in the past, but I couldn't find that reply.) > 6. the crazy concept of "levels" of Unicode compatibility Most Unicode conformance rules are optional (past discussion: [2]). Also if you should display a Unicode text in your program and you are not using a stock library, it is up to you to decide what to support because they exist for the reason. No BiDi support? You now disregard right-to-left scripts (or left-to-right scripts if your program is for RTL users). No combining character support? Expect to lose a significant portion of potential users around the world. Probably a colored font support is fine to ignore, but that doesn't mean most other things can be ignored without the cost. [1] https://en.wikipedia.org/wiki/ISO/IEC_8859-8#Code_page_layout https://en.wikipedia.org/wiki/ISO/IEC_8859-8#Code_page_layou... [2] https://news.ycombinator.com/item?id=26904739 https://news.ycombinator.com/item?id=26904739
- WalterBright 5y ago> ISO/IEC 8859 back then had no invisible characters nor composed characters, did it? No reason to repeat mistakes. The whole point of Unicode was to fix it all. > No combining character support? There is no reason to support both combining chars and unique code points for the same glyph. Unicode should pick one and dump the other. > Most Unicode conformance rules are optional I know. This is what makes it crazy and nobody implements it right, or even knows what "right" is. > you will be surprised to hear that Unicode encodes both the Latin letter A and Cyrillic letter A separately They do more than that with visually indistinguishable code points. People use this to embed secret messages in innocuous looking text files that print identically. There's no round trip Unicode->paper->Unicode.
- account42 5y ago7. Han unification
- OskarS 5y agoYeah, in my opinion this is by far the biggest one. The rest of list are either non-issues, or they're annoying but you can deal with them (and there's often arguments on both sides). Han unification, on the other hand, is a disaster for Unicode. The fact that Unicode can't comfortably mix Chinese and Japanese language characters is a disaster for an encoding like Unicode that's supposed to cover the whole world.