提交 3d25079f 编写于 作者: B Behdad Esfahbod

[Indic] Don't form Reph is Ra is the only consonant in the syllable

上级 b99d63ae
......@@ -63,7 +63,7 @@ enum indic_category_t {
/* Visual positions in a syllable from left to right. */
enum indic_position_t {
POS_RA,
POS_RA_TO_BECOME_REPH,
POS_LEFT_MATRA,
POS_PRE_C,
......
......@@ -287,6 +287,16 @@ initial_reordering_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buff
if (base < start)
base = start; /* Just in case... */
/* -> If the syllable starts with Ra + Halant (in a script that has Reph)
* and has more than one consonant, Ra is excluded from candidates for
* base consonants. */
if (has_reph && base == start) {
/* Have no other consonant, so Reph is not formed and Ra becomes base. */
has_reph = false;
}
/* 2. Decompose and reorder Matras:
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册