[indic] Remove unused OT_VD category

This commit is contained in:
Behdad Esfahbod 2018-01-05 17:27:48 +00:00
parent e6618f3bdf
commit f6df251521
3 changed files with 3 additions and 4 deletions

View File

@ -47,7 +47,6 @@ ZWNJ = 5;
ZWJ = 6; ZWJ = 6;
M = 7; M = 7;
SM = 8; SM = 8;
VD = 9;
A = 10; A = 10;
PLACEHOLDER = 11; PLACEHOLDER = 11;
DOTTEDCIRCLE = 12; DOTTEDCIRCLE = 12;
@ -67,7 +66,7 @@ cn = c.ZWJ?.n?;
forced_rakar = ZWJ H ZWJ Ra; forced_rakar = ZWJ H ZWJ Ra;
symbol = Symbol.N?; symbol = Symbol.N?;
matra_group = z{0,3}.M.N?.(H | forced_rakar)?; matra_group = z{0,3}.M.N?.(H | forced_rakar)?;
syllable_tail = (z?.SM.SM?.ZWNJ?)? A{0,3}? VD{0,2}; syllable_tail = (z?.SM.SM?.ZWNJ?)? A{0,3}?;
halant_group = (z?.H.(ZWJ.N?)?); halant_group = (z?.H.(ZWJ.N?)?);
final_halant_group = halant_group | H.ZWNJ; final_halant_group = halant_group | H.ZWNJ;
medial_group = CM?; medial_group = CM?;

View File

@ -51,7 +51,7 @@ enum indic_category_t {
OT_ZWJ = 6, OT_ZWJ = 6,
OT_M = 7, OT_M = 7,
OT_SM = 8, OT_SM = 8,
OT_VD = 9, /* OT_VD = 9, UNUSED; we use OT_A instead. */
OT_A = 10, OT_A = 10,
OT_PLACEHOLDER = 11, OT_PLACEHOLDER = 11,
OT_DOTTEDCIRCLE = 12, OT_DOTTEDCIRCLE = 12,

View File

@ -229,7 +229,7 @@ set_indic_properties (hb_glyph_info_t &info)
{ {
pos = matra_position (u, pos); pos = matra_position (u, pos);
} }
else if ((FLAG_UNSAFE (cat) & (FLAG (OT_SM) | FLAG (OT_VD) | FLAG (OT_A) | FLAG (OT_Symbol)))) else if ((FLAG_UNSAFE (cat) & (FLAG (OT_SM) /* | FLAG (OT_VD) */ | FLAG (OT_A) | FLAG (OT_Symbol))))
{ {
pos = POS_SMVD; pos = POS_SMVD;
} }