Skip to content

Commit

Permalink
[markFeatureWriter] increment mark lookup name disambiguation counter…
Browse files Browse the repository at this point in the history
… as needed
  • Loading branch information
anthrotype committed Nov 16, 2023
1 parent 9aa8956 commit 5d67047
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Lib/ufo2ft/featureWriters/markFeatureWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,14 +732,16 @@ def _makeMarkToMarkLookup(

def _makeMarkFeature(self, include):
baseLkps = []
for i, attachments in enumerate(self.context.groupedMarkToBaseAttachments):
for attachments in self.context.groupedMarkToBaseAttachments:
i = len(baseLkps)
lookup = self._makeMarkLookup(
f"mark2base{'_' + str(i) if i > 0 else ''}", attachments, include
)
if lookup:
baseLkps.append(lookup)
ligaLkps = []
for i, attachments in enumerate(self.context.groupedMarkToLigaAttachments):
for attachments in self.context.groupedMarkToLigaAttachments:
i = len(ligaLkps)
lookup = self._makeMarkLookup(
f"mark2liga{'_' + str(i) if i > 0 else ''}", attachments, include
)
Expand Down Expand Up @@ -794,7 +796,8 @@ def _makeAbvmOrBlwmFeature(self, tag, include):
raise AssertionError(tag)

baseLkps = []
for i, attachments in enumerate(self.context.groupedMarkToBaseAttachments):
for attachments in self.context.groupedMarkToBaseAttachments:
i = len(baseLkps)
lookup = self._makeMarkLookup(
f"{tag}_mark2base{'_' + str(i) if i > 0 else ''}",
attachments,
Expand All @@ -804,7 +807,8 @@ def _makeAbvmOrBlwmFeature(self, tag, include):
if lookup:
baseLkps.append(lookup)
ligaLkps = []
for i, attachments in enumerate(self.context.groupedMarkToLigaAttachments):
for attachments in self.context.groupedMarkToLigaAttachments:
i = len(ligaLkps)
lookup = self._makeMarkLookup(
f"{tag}_mark2liga{'_' + str(i) if i > 0 else ''}",
attachments,
Expand Down

0 comments on commit 5d67047

Please sign in to comment.