Re: [klreq] Which language code for Hanja?

The IANA subtag registry suggests `hani`, since that's the only subtag that mentions hanja (see https://r12a.github.io/app-subtags/?find=hanja)
```
    type: script
    subtag: Hani
    description: Han, Hanzi, Kanji, Hanja
    added: 2005-10-16
```
>  I am just wondering whether it also has an impact if the language is ko-, and if that's the case, 

Absent a font-family assignment, the ko causes browsers to pick a Korean font. See [this test](https://www.w3.org/International/tests/repo/run?base=misc/default-font&batch=default-font&test=default-font-001.html) and [the results](https://www.w3.org/International/tests/repo/results/default-font).  Note, btw, that the glyph shape chosen in Firefox is different from any of zh-hant, zh-hans, or ja. (Font applied is Apple SD Gothic Neo.)

![screen shot 2018-10-09 at 10 04 55](https://user-images.githubusercontent.com/4839211/46658586-fa5bd000-cbaa-11e8-9af6-5c994dd4f9ee.png)

All the above assumes, as Asmus said, that we're really making a point of the fact that the text contains only hanja characters, otherwise i think that `ko` or less likely `ko-kore` is more appropriate. (As usual, it depends why you're using the `lang` attribute.)




-- 
GitHub Notification of comment by r12a
Please view or discuss this issue at https://github.com/w3c/klreq/issues/23#issuecomment-428119747 using your GitHub account

Received on Tuesday, 9 October 2018 09:13:07 UTC