Skip to content

Commit 624c987

Browse files
committed
remove scaffolding for pre-defined exceptions
(not sure how they are supposed to work)
1 parent 5a5c1d0 commit 624c987

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

kernFeatureWriter.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
tag_ara = '_ARA'
2727
tag_heb = '_HEB'
2828
tag_rtl = '_RTL'
29-
tag_exception = 'EXC_'
3029

3130

3231
# helpers
@@ -200,15 +199,13 @@ def __init__(
200199
self.glyph_group_exceptions = {}
201200
self.group_glyph_exceptions = {}
202201
self.group_group = {}
203-
self.predefined_exceptions = {}
204202

205203
self.rtl_glyph_glyph = {}
206204
self.rtl_glyph_glyph_exceptions = {}
207205
self.rtl_glyph_group = {}
208206
self.rtl_glyph_group_exceptions = {}
209207
self.rtl_group_glyph_exceptions = {}
210208
self.rtl_group_group = {}
211-
self.rtl_predefined_exceptions = {}
212209

213210
self.pairs_unprocessed = []
214211
self.pairs_processed = []
@@ -395,11 +392,6 @@ def _find_exceptions(self):
395392
del self.kerning[pair]
396393
continue
397394

398-
# Filter pre-defined exception pairs.
399-
if any([tag_exception in item for item in pair]):
400-
self.predefined_exceptions[pair] = self.kerning[pair]
401-
del self.kerning[pair]
402-
403395
glyph_2_glyph = sorted(
404396
[pair for pair in self.kerning.keys() if(
405397
not is_group(pair[0]) and
@@ -763,8 +755,6 @@ def _make_fea_data(self, kp):
763755
# ------------------
764756
order_ltr = [
765757
# container_dict, minKern, comment, enum
766-
(kp.predefined_exceptions, 0,
767-
'\n# pre-defined exceptions:', True),
768758
(kp.glyph_glyph, self.minKern,
769759
'\n# glyph, glyph:', False),
770760
(kp.glyph_glyph_exceptions, 0,
@@ -786,8 +776,6 @@ def _make_fea_data(self, kp):
786776
# ------------------
787777
order_rtl = [
788778
# container_dict, minKern, comment, enum
789-
(kp.rtl_predefined_exceptions, 0,
790-
'\n# RTL pre-defined exceptions:', True),
791779
(kp.rtl_glyph_glyph, self.minKern,
792780
'\n# RTL glyph, glyph:', False),
793781
(kp.rtl_glyph_glyph_exceptions, 0,

0 commit comments

Comments
 (0)