We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-02-03 09:09:53 +0200

Bug: Contact search Alphabet grid is broken using Korean letters

I had no chance to see whether contact search grid is working for Korean, since before 1.0.3.8 it only worked for characters belonging to each locale and there was no ko_KR locale at all. Now I can see my contacts are grouped in 1.0.3.8, but missing fonts were very irritating to me.

Background for non-Koreans: Korean alphabet, Hangul, is composed by consonants and vowels. The preferred way to group contacts for Korean users is grouping by first letter's first consonant (choseong, in Korean). While grouping itself works very well (this is actually the way I expected!), but the device's font don't have enough characters to properly show each group's headers. As seen on the image below, there are a lot of squares after the alphabets.

Contact grouping as of 1.0.3.8

The root cause of problem is that Korean characters are scattered into several parts inside Unicode. One block is U+AC00 to U+D7AF where "fully composed" characters reside. The other part is U+1100 to U+11FF where "individual" characters reside. After grouping Korean names (composed by multiple characters on U+AC00 to U+D7AF) they are indexed by the latter individual characters (U+1100 to U+11FF). Current Korean font for Jolla device is Droid Sans Fallback, which contains Korean glyphs for U+AC00 to U+D7AF but not U+1100 to U+11FF, resulting all those squared characters.

We have two solutions for now: One is add missing glyphs into Droid Sans, or just add additional, good-looking Korean font. I strongly suggest adding NanumGothic (for sans serif) and NanumMyeongjo (for serif) fonts. These are OFL-licensed Korean fonts, making its way into various Linux distributions and mobile platforms including Firefox OS [2], Android (default Korean font since 4.2) [3][4] due to its modern look and feel and huge preferences. Fontconfig since 2.8 contains Nanum fonts by default too. [1] These font contain all the needed glyphs, and shows correct output like this (note the absence of squares):

What it should be

Feel free to ask about test cases, etc.

  • [1] https://bugs.freedesktop.org/show_bug.cgi?id=42423
  • [2] https://bugzilla.mozilla.org/show_bug.cgi?id=835264
  • [3] http://www.android.com/about/jelly-bean/
  • [4] https://android.googlesource.com/platform/external/naver-fonts/+/master/README

Bug: Contact search Alphabet grid is broken using Korean letters

I had no chance to see whether contact search grid is working for Korean, since before 1.0.3.8 it only worked for characters belonging to each locale and there was no ko_KR locale at all. Now I can see my contacts are grouped in 1.0.3.8, but missing fonts were very irritating to me.

Background for non-Koreans: Korean alphabet, Hangul, is composed by consonants and vowels. The preferred way to group contacts for Korean users is grouping by first letter's first consonant (choseong, in Korean). While grouping itself works very well (this is actually the way I expected!), but the device's font don't have enough characters to properly show each group's headers. As seen on the image below, there are a lot of squares after the alphabets.

Contact grouping as of 1.0.3.8

The root cause of problem is that Korean characters are scattered into several parts inside Unicode. One block is U+AC00 to U+D7AF where "fully composed" characters reside. The other part is U+1100 to U+11FF where "individual" characters reside. After grouping Korean names (composed by multiple characters on U+AC00 to U+D7AF) they are indexed by the latter individual characters (U+1100 to U+11FF). Current Korean font for Jolla device is Droid Sans Fallback, which contains Korean glyphs for U+AC00 to U+D7AF but not U+1100 to U+11FF, resulting all those squared characters.

Added: According to /etc/fonts/local.conf, WenQuanYi Zen Hei is bound to Sail Sans Pro Light and it contains Korean glyphs for U+AC00 to U+D7AF, it doesn't contain all of U+1100 to U+11FF glyphs for Korean. Some glyphs were there, but they are irrelevant to represent any of modern Korean syllables.

We have two solutions for now: One is add missing glyphs into Droid Sans, or just add additional, good-looking Korean font. I strongly suggest adding NanumGothic (for sans serif) and NanumMyeongjo (for serif) fonts. These are OFL-licensed Korean fonts, making its way into various Linux distributions and mobile platforms including Firefox OS [2], Android (default Korean font since 4.2) [3][4] due to its modern look and feel and huge preferences. Fontconfig since 2.8 contains Nanum fonts by default too. [1] These font contain all the needed glyphs, and shows correct output like this (note the absence of squares):

What it should be

Feel free to ask about test cases, etc.

  • [1] https://bugs.freedesktop.org/show_bug.cgi?id=42423
  • [2] https://bugzilla.mozilla.org/show_bug.cgi?id=835264
  • [3] http://www.android.com/about/jelly-bean/
  • [4] https://android.googlesource.com/platform/external/naver-fonts/+/master/README