Refine Indic scripts, following Martin Hosken's recommendation
This commit is contained in:
parent
738d096a06
commit
bc187e5ac7
|
@ -73,50 +73,62 @@ hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
|
||||||
case HB_SCRIPT_SYRIAC:
|
case HB_SCRIPT_SYRIAC:
|
||||||
return hb_ot_complex_shaper_arabic;
|
return hb_ot_complex_shaper_arabic;
|
||||||
|
|
||||||
/* TODO: These are all the scripts that the ucd/IndicSyllabicCategory.txt covers.
|
#if 0
|
||||||
* Quite possibly many of these need no shaping, and some other are encoded visually.
|
/* Note:
|
||||||
* Needs to be refined.
|
*
|
||||||
|
* These disabled scripts are listed in ucd/IndicSyllabicCategory.txt, but according
|
||||||
|
* to Martin Hosken do not require complex shaping.
|
||||||
|
*
|
||||||
|
* TODO We currently keep data for these scripts in our indic table. Need to fix the
|
||||||
|
* generator to not do that.
|
||||||
*/
|
*/
|
||||||
case HB_SCRIPT_BALINESE:
|
|
||||||
|
/* Simple? */
|
||||||
case HB_SCRIPT_BATAK:
|
case HB_SCRIPT_BATAK:
|
||||||
case HB_SCRIPT_BENGALI:
|
|
||||||
case HB_SCRIPT_BRAHMI:
|
case HB_SCRIPT_BRAHMI:
|
||||||
|
case HB_SCRIPT_HANUNOO:
|
||||||
|
case HB_SCRIPT_MEETEI_MAYEK:
|
||||||
|
case HB_SCRIPT_SAURASHTRA:
|
||||||
|
|
||||||
|
/* Simple */
|
||||||
|
case HB_SCRIPT_KAYAH_LI:
|
||||||
|
case HB_SCRIPT_LAO:
|
||||||
|
case HB_SCRIPT_LIMBU:
|
||||||
|
case HB_SCRIPT_PHAGS_PA:
|
||||||
|
case HB_SCRIPT_SYLOTI_NAGRI:
|
||||||
|
case HB_SCRIPT_TAGALOG:
|
||||||
|
case HB_SCRIPT_TAGBANWA:
|
||||||
|
case HB_SCRIPT_TAI_LE:
|
||||||
|
case HB_SCRIPT_TAI_VIET:
|
||||||
|
case HB_SCRIPT_THAI:
|
||||||
|
case HB_SCRIPT_TIBETAN:
|
||||||
|
|
||||||
|
/* May need Indic treatment in the future? */
|
||||||
|
case HB_SCRIPT_MYANMAR:
|
||||||
|
#endif
|
||||||
|
|
||||||
|
case HB_SCRIPT_BALINESE:
|
||||||
|
case HB_SCRIPT_BENGALI:
|
||||||
case HB_SCRIPT_BUGINESE:
|
case HB_SCRIPT_BUGINESE:
|
||||||
case HB_SCRIPT_BUHID:
|
case HB_SCRIPT_BUHID:
|
||||||
case HB_SCRIPT_CHAM:
|
case HB_SCRIPT_CHAM:
|
||||||
case HB_SCRIPT_DEVANAGARI:
|
case HB_SCRIPT_DEVANAGARI:
|
||||||
case HB_SCRIPT_GUJARATI:
|
case HB_SCRIPT_GUJARATI:
|
||||||
case HB_SCRIPT_GURMUKHI:
|
case HB_SCRIPT_GURMUKHI:
|
||||||
case HB_SCRIPT_HANUNOO:
|
|
||||||
case HB_SCRIPT_JAVANESE:
|
case HB_SCRIPT_JAVANESE:
|
||||||
case HB_SCRIPT_KAITHI:
|
case HB_SCRIPT_KAITHI:
|
||||||
case HB_SCRIPT_KANNADA:
|
case HB_SCRIPT_KANNADA:
|
||||||
case HB_SCRIPT_KAYAH_LI:
|
|
||||||
case HB_SCRIPT_KHAROSHTHI:
|
case HB_SCRIPT_KHAROSHTHI:
|
||||||
case HB_SCRIPT_KHMER:
|
case HB_SCRIPT_KHMER:
|
||||||
case HB_SCRIPT_LAO:
|
|
||||||
case HB_SCRIPT_LEPCHA:
|
case HB_SCRIPT_LEPCHA:
|
||||||
case HB_SCRIPT_LIMBU:
|
|
||||||
case HB_SCRIPT_MALAYALAM:
|
case HB_SCRIPT_MALAYALAM:
|
||||||
case HB_SCRIPT_MEETEI_MAYEK:
|
|
||||||
case HB_SCRIPT_MYANMAR:
|
|
||||||
case HB_SCRIPT_NEW_TAI_LUE:
|
case HB_SCRIPT_NEW_TAI_LUE:
|
||||||
case HB_SCRIPT_ORIYA:
|
case HB_SCRIPT_ORIYA: case HB_SCRIPT_REJANG:
|
||||||
case HB_SCRIPT_PHAGS_PA:
|
|
||||||
case HB_SCRIPT_REJANG:
|
|
||||||
case HB_SCRIPT_SAURASHTRA:
|
|
||||||
case HB_SCRIPT_SINHALA:
|
case HB_SCRIPT_SINHALA:
|
||||||
case HB_SCRIPT_SUNDANESE:
|
case HB_SCRIPT_SUNDANESE:
|
||||||
case HB_SCRIPT_SYLOTI_NAGRI:
|
|
||||||
case HB_SCRIPT_TAGALOG:
|
|
||||||
case HB_SCRIPT_TAGBANWA:
|
|
||||||
case HB_SCRIPT_TAI_LE:
|
|
||||||
case HB_SCRIPT_TAI_THAM:
|
case HB_SCRIPT_TAI_THAM:
|
||||||
case HB_SCRIPT_TAI_VIET:
|
|
||||||
case HB_SCRIPT_TAMIL:
|
case HB_SCRIPT_TAMIL:
|
||||||
case HB_SCRIPT_TELUGU:
|
case HB_SCRIPT_TELUGU:
|
||||||
case HB_SCRIPT_THAI:
|
|
||||||
case HB_SCRIPT_TIBETAN:
|
|
||||||
return hb_ot_complex_shaper_indic;
|
return hb_ot_complex_shaper_indic;
|
||||||
|
|
||||||
/* ^--- Add new shapers here */
|
/* ^--- Add new shapers here */
|
||||||
|
|
Loading…
Reference in New Issue