[Indic] Don't let ZWNJ at the end of syllable affect base search
Fixes a few Devanagari, half of remaining Kannada failures, quarter for Telugu, and others slightly improved or unchanged.
This commit is contained in:
parent
20b68e699f
commit
a9e45c32e4
|
@ -530,8 +530,12 @@ initial_reordering_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buff
|
||||||
base = i;
|
base = i;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (is_joiner (info[i]))
|
{
|
||||||
|
/* A ZWJ at the end of syllable, or any ZWJ/ZWNJ in other places, stop the base
|
||||||
|
* search (to request explicit half or halant forms. */
|
||||||
|
if (is_joiner (info[i]) && (i + 1 < end || info[i].indic_category() == OT_ZWJ))
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
} while (i > limit);
|
} while (i > limit);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue