Katakana, Hiragana, and Unicode
johndcook.com
johndcook.com
> How do the 46 characters map into the 90 characters?
Because there are actually more than 46 characters.
> Do they map the same way for both hiragana and katakana?
Yes. That's also how we do conversion between hiragana and katakana. By adding/subtracting 0x60.
...
That said, culturally Japan seems like exactly the kind of place where, were they English-speakers, all the kids would absolutely be required to learn perfect cursive.
In practice, there are no less than 4 separate scripts that are used in Japanese: hiragana, katakana, kanji, and romaji, and some mix of all 4 can appear in the same sentence.
It's not so much analogous to cursive, which is a different "style" of writing the same "thing" – katakana and hiragana developed at different times for different groups and came to play different roles, and there are (usually) semantic implications to which are used.
But from what I understand Hirigana is used more for Japanese words, and Katakana more for loan words from other languages.
It actually leads to a nice shortcut for some words. If I’m reading Hirigana I’ll try to match that with words in Japanese that I know. However, if the word I’m looking at is Katakana, I’ll flip that off and start trying to match phonetically.
I assume with fluency this all becomes automatic, but I’m a ways off from that yet!
Katakana, hiragana, and kanji are all in active use--that's why they don't fall away.
Kanji are your primary word base. They are sort of like root words in English.
Hiragana often serves as kind of a marker--endings of certain words as well as phrase markers (particles). These are particularly important because Japanese does not normally break words with spaces.
Katakana often denotes a foreign phonetic word or foreign names. Login is particularly good example for this forum: ログイン (ro-gu-i-n).
Japanese speakers actively use the differences as cues when reading. Watch a native Japanese speaker try to puzzle out Japanese learning materials for non-native speakers. If everything is written in hiragana (not uncommon for beginning materials), native speakers often have to puzzle over things a bit before they work out what a sentence says. This is one of the reasons why you want to get to Kanji as fast as possible when learning Japanese--the differences in script are important for reading comprehension.
You can see all of these in play on the Asahi Shimbun webpage: https://www.asahi.com/
Actually when you look at the use of English in Japanese media, you’ll quickly notice a lot of unnatural-looking overuse of uppercase. That’s because to them it feels natural to use uppercase the same way they use katakana.
As between the versions for the same mora, they get sorted with tertiary differences as: hiragana comes before katakana, small comes before regular-size, and for katakana regular width comes before halfwidth. There's also a "circled" set of the katakana that sort after the halfwidth ones.
So they're equivalent (or not) depending on how you're doing the collation/comparison.
Hence, that's very much fortunate that someone wrote about it.
Perhaps most interesting in this respect is the comparison between the Devanagri ि and the Thai ใ which both appear before the consonant that they’re attached to, but in Thai the input will be ใ + ค to get ใค (so you input in the order of appearance rather than the order of pronunciation) while in Devanagari, the input would be क + ि to get कि (so you input in pronunciation order rather than graphic order).
Worth noting that «-a» is often implied and both, Thai and Devanagari (and in nearly all other Brahmi and Pali derived scripts), and is implicitely derived by the language speaker, and therefore is dropped from the spelling most of the time except for specific cases.
Also I guess this isn't specific to Japanese, but if you use normalization in NFD form, the modifiers like handakuten get split into separate characters (I don't think most people ever use unicode normalization but iirc mac filesystem paths are normalized so it can be really confusing when you do actually run into it).
Considering that there is a seemingly easy lossless transformation path from/to these full-width/half-width alternatives, it would suffice to only support the full-width form one would think (and do some transformation as necessary without the user being involved).
You'll want to use half-width for full number fields because html number input is half-width, and you'd need to move to the "full" alpha numeric keyboard to get full-width. Also if you allow full-width it opens the door to Chinese numerals, which you'd have to convert as well.
Same thing for email address fields, allowing full-width character is user-friendly but you're pretty guaranteed to have no autocompletion on the user side, you deal with weird validations errors as some users will mistakenly convert part of the address to invalid chars, when forcing half-width pretty gets rid of that class of error altogether (assuming you don't allow full-width mail addresses in the first place. If I'm not mistaken they can be valid, including with a full-width domain)
Places where there's less room for error usually allow both (like addresses for instance, where you won't run any validation on it anyway. Except on old sites and anal retentive services that will force you to go full-width sometimes)
Ex. あさり = asari = ah - sa - ri あっさり = assari = ah <tiny pause, hard s> sa - ri
not to be confused with あつさり which is atsusari (which is a made up word), but because the tsu is regular sized, you pronounce it instead of altering other character pronunciations.
Also of note - they completely left out "n" ん in hiragana, ン in katakana.
And "wo" isn't really pronounced "wo", it is pronounced just "oh" and spelled "o" in romaji. And while there is a "wo" in katakana, I have never seen it used. It is used as a particle which is inherently a native japanese thing and ergo you use hiragana for it.
https://www.key-shortcut.com/en/writing-systems/%E3%81%B2%E3...
As can be seen in this chart, the code points for Hiragana and Katakana are x60 apart (also pointed out by @innocenat).
It's not clear why characters like ん, ン, and ヶ are excluded from the article. They are used extensively in everyday Japanese.
This is probably the system that is still used today by most bank printers in Japan. The code point usage was carried forward to JIS.
The Greek alphabet looks, to super biased me, fairly simple in comparison to others. And yet it only has 26 characters, not 90 or whatnot. So perhaps the complexity is completely necessary.
What about an alphabet that’s as minimalist as possible? Does one have to then fight with distinctiveness?
Are there any examples of alphabets that are both inefficient and hard to distinguish between similar characters? Did they evolve or fall out of favour?
What about data loss? How subtly “decayed” could letters be before you can’t differentiate similar ones?
I’m suddenly so interested in all this…
So it’s not exactly what you’re looking for, but very similar.
“Human speech may have a universal transmission rate: 39 bits per second No matter how quickly you speak, you still share the same amount of information” (https://www.science.org/content/article/human-speech-may-hav...)
As for writing efficiency I would say Korean Hangul is the best writing system in the world. It combines the best attributes of alphabets and syllabaries.
Also western writing systems aren’t as simple as they seem. Every letter has multiple forms upper/lower and print/cursive making at least 4x (cursive forms often vary depending of location within a word) as many forms as you expect.
ゐ and ゑ (these days pronounced the same as Japanese i and e) are known by all native Japanese speakers, were used historically, and actually still see some use in certain scenarios (like signs, or names of things). The other ones were never actually used much afaik and only recently were introduced to Unicode at all, and are probably unknown to most Japanese people except those interested in this kind of thing.
(Adding kanji into the mix somewhat complicates matters, as there are so many potential characters you cannot just blindly cache the rasterization of every one of them and never throw any away, but that's also not the degree of complexity you get from Arabic and such.)
You're forgeting about small kana which can be arbitrarily appended to the big kana. Regular words only have one or two small kana after a big kana, but technically there can be arbitrarily many. Either way, they affect word-breaking.