News for hackers. Stuff that matters.
Re:I Can’t Write My Name in Unicode by Someone on Tuesday March 17, 2015 @02:58PM (#9220380)
Imagine a world where the British always write the lowercase letter g as a single-story glyph (http://en.m.wikipedia.org/wiki/G#Typographic_variants). The colonies start writing it identically, but after a while, they start writing it as a double-story g.

After a century or so, nobody in he colonies writes the single-story variant, and all Brits always do.

The unicode consortium studies the case and concludes that there is only a single g with variations in the way it is written. Because of that, it creates a single code point for the lowercase 'g' character.

Now, suppose a web page stores the text 'goto' in Unicode as the code points for 'g', 'o', 't', and 'o'. To write the code that renders that string, you will find you need to know whether the text is written in British English or in colonial English.

Re:I Can’t Write My Name in Unicode by Tomte on Tuesday March 17, 2015 @03:27PM (#9220620)
No, you don't. It's the same letter and it's always "goto".

Your local setup determines the look of the glyph, so nobody sees an unfamiliar form.

But maybe you'd like to encode typefaces/fonts in the Unicode code points, as well? To make sure that I'm seeing the exact same arrangement of pixels you want me to see?

Re:I Can’t Write My Name in Unicode by dalke on Tuesday March 17, 2015 @04:29PM (#9221186)
This is the core of the Han Unification debate.

"G" and "g" are the same letter. They started off as stylistic forms of a unicameral alphabet. Over time they took on separate meanings, and now we have a bicameral alphabet, where the two forms have different code points.

Of course, over the last 2000 years, we've developed rules for how to use them. "I was reading a nice book on Polish polish on the way from Reading to Nice" contains three pairs of words where the capitalization changes the meaning and pronunciation. (In simplified form, "What do you know about polish?" is different than "What do you know about Polish?")

If there were a simple rule to specify capitalization, eg, only the first letter of a sentence, and it were easy to detect the start of a sentence, then the alternate you might say it's pointless to have both "g" and "G"; we should have only a single form and let the local setup determine how to display it. (Something like the Greek sigma, which has the form ς when used at the end of a word, though Unicode has them as two different glyphs.)

In Someone's nice example, it's easy to think of how the two divergent forms of 'g' might take on their own meaning. Perhaps the Americans have decided that double-story g was the sign of true patriots, and that single-story g was for traitors. (Akin to the shibboleth of how to say 'H' in Northern Ireland; aitch was Protestant, haitch was Catholic, and using the wrong version could get you into trouble.) Perhaps they started to use the new 'g' preference as a currency symbol, in the way that £ is the same letter as L, from the Latin libra pondo.

Re:I Can’t Write My Name in Unicode by Tomte on Tuesday March 17, 2015 @04:37PM (#9221256)
Absolutely. But the two "g" haven't diverged, yet.

We don't give out code points to speculative future developments.

If and when they diverge one will get its very own code point.

Re:I Can’t Write My Name in Unicode by dalke on Tuesday March 17, 2015 @05:30PM (#9221659)
The premise of Someone's hypothetical was to explain to theon144 why it might be both hard and important to guess. The hypothetical assumed that the difference already existed. It echos the larger context of Han unification that com2kid started, but with an example that's a lot easier for native English speakers to understand.

So while I agree that they haven't yet diverged, that's outside the context of the hypothetical, where they have diverged.

Re:I Can’t Write My Name in Unicode by Tomte on Tuesday March 17, 2015 @05:44PM (#9221762)
That's wrong. Someone's hypothetical had no diverging meaning involved, only a stylistic choice in the presentation of the same letter.

And he is still wrong when it comes to the claimed necessity to "guess".

The user has set up his system correctly. "Guessing" only comes into play if you want to force your stylistic variation on others.

And that is obviously a bad idea, for all the reasons called out before, like familiarity and readability.

Let's not kid ourselves. When it comes to Han unification opposition there is mostly one issue at play: plain racism. "Our holy script shall not be defiled by those dirty bastards". And that works in all directions.

Re:I Can’t Write My Name in Unicode by Someone on Tuesday March 17, 2015 @03:56PM (#9220885)
The issue is that, in this example, both the colonials and the British think the two 'g' characters are different letters, just as people nowadays think 'g' and 'G' are different characters (historically, that is at least up for debate: http://en.m.wikipedia.org/wiki/Letter_case#History). Americans will want to see a different character when quoting Shakespeare inside American-English text (globalization starts with a different letter than globalisation)

because Unicode has only one character, writing that text in a text editor or storing it in a text column in a database becomes impossible.

Yes, there are workarounds such as using escape characters or html, but those are a nuisance that could be avoided by including both variants in Unicode.

The unicode consortium is entitled to think differently, but they cannot expect everybody to be happy with their choice.

Re:I Can’t Write My Name in Unicode by Anderkent on Tuesday March 17, 2015 @03:22PM (#9220569)
Isn't this the question of a font? In which case the client chooses if they want to use a font with a double-story or a single-story g?
Re:I Can’t Write My Name in Unicode by Someone on Tuesday March 17, 2015 @04:02PM (#9220944)
When reading 'gas', the client will have to figure out whether that is about a liquid, in which case it has to choose a colonial 'g' (when written with a British 'g' 'gas' always is a liquid). If the meaning is that of a gaseous substance, the client will have to do additional work to determine what kind of 'g' to write.
Re:I Can’t Write My Name in Unicode by alblue on Tuesday March 17, 2015 @10:50PM (#9223310)
You seem to be misguided about British English, in which gas is actually gaseous and not in fact an abbreviation for petrol.