From: Behdad Esfahbod Date: Mon, 11 Feb 2013 19:27:02 +0000 (-0500) Subject: [Myanmar] Prevent reordering between Asat and Dot below X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c8654ead41ca746d577549c92d2a41c594ab639;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [Myanmar] Prevent reordering between Asat and Dot below Implemented as a hack for now. Myanmar failures down from 23 to 15. MYANMAR: 1123868 out of 1123883 tests passed. 15 failed (0.00133466%) The remaining 15 cases are all where the syllable is wrong according to the OpenType spec. We insert dottedcircle. Uniscribe fails to do that, but it also fails to reorder the prebase-reordering medial-Ra. So it gets it wrong. --- diff --git a/src/hb-unicode-private.hh b/src/hb-unicode-private.hh index 7be4b04..724c6f9 100644 --- a/src/hb-unicode-private.hh +++ b/src/hb-unicode-private.hh @@ -107,6 +107,9 @@ HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE unsigned int modified_combining_class (hb_codepoint_t unicode) { + /* XXX This hack belongs to the Myanmar shaper. */ + if (unicode == 0x1037) unicode = 0x103A; + return _hb_modified_combining_class[combining_class (unicode)]; }