From: handa Date: Tue, 14 Oct 2003 02:07:14 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-0-9-1~92 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0cdcfdbfefb16e9f95b81b50a9dc8cfb5214e693;p=m17n%2Flibotf.git *** empty log message *** --- diff --git a/src/otfdrive.c b/src/otfdrive.c index 08b9007..14e422b 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -155,6 +155,7 @@ setup_lookup_indices (OTF_LangSys *LangSys, OTF_FeatureList *FeatureList, { char tagname[4]; OTF_Tag tag; + int negate = 0; if (*features == '*') { @@ -169,6 +170,8 @@ setup_lookup_indices (OTF_LangSys *LangSys, OTF_FeatureList *FeatureList, break; } + if (*features == '~') + negate = 1, features++; for (i = 0; *features && *features != ','; i++, features++) tagname[i] = *features; if (*features) @@ -182,8 +185,9 @@ setup_lookup_indices (OTF_LangSys *LangSys, OTF_FeatureList *FeatureList, feature = FeatureList->Feature + i; if (tag == feature->FeatureTag) { - for (j = 0; j < feature->LookupCount; j++) - lookup_indices[n++] = feature->LookupListIndex[j]; + if (! negate) + for (j = 0; j < feature->LookupCount; j++) + lookup_indices[n++] = feature->LookupListIndex[j]; feature_table[i] = 1; break; }