Hi, I'm trying to typeset Patani Malay text using Thai script as guided by the Royal Institute, and I have some problems with Phinthu- modified consonants with below-base vowel combined.
See the sample text captured from the book here: http://linux.thai.net/~thep/shots/20140121-patani-sample-marked.jpg The text is also attached as testbv.txt. With Harfbuzz 0.9.25, I get Phinthu (U+0E3A), the consonant modifier, below the vowel, not right below the consonant as expected: http://linux.thai.net/~thep/shots/20140121-patani-bv-before.png In hb-unicode-private.hh, the combining class for U+0E3A is modified from 103 to 3. I believe there must be some reason behind this, but it prevents some ethnic languages from being properly rendered. AFAIK, there are some other languages that create new consonants this way. I try reverting this (with the attached 01_thai-ccc.patch) and get the proper rendering: http://linux.thai.net/~thep/shots/20140121-patani-bv-after.png Is the change reasonable? In case you asked for the font I use, it's here: http://linux.thai.net/~thep/tmp/thai-ethnic/TTFGaruda.ttf Regards, -Thep. -- Theppitak Karoonboonyanan http://linux.thai.net/~thep/
จือรฺุ การฺู
Index: harfbuzz-0.9.25/src/hb-unicode-private.hh =================================================================== --- harfbuzz-0.9.25.orig/src/hb-unicode-private.hh 2013-08-24 05:20:44.974305436 +0700 +++ harfbuzz-0.9.25/src/hb-unicode-private.hh 2014-01-21 08:37:25.802085862 +0700 @@ -292,7 +292,7 @@ * Assign 3, which is unassigned otherwise. * Uniscribe does this reordering too. */ -#define HB_MODIFIED_COMBINING_CLASS_CCC103 3 /* sara u / sara uu */ +#define HB_MODIFIED_COMBINING_CLASS_CCC103 103 /* sara u / sara uu */ #define HB_MODIFIED_COMBINING_CLASS_CCC107 107 /* mai * */ /* Lao */
_______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz