feat: --add-all
Python Lint CI / ruff (push) Successful in 5m39s
Python Lint CI / ty (push) Successful in 5m36s
Python Lint CI / ruff-format-check (push) Failing after 5m37s

This commit is contained in:
2026-11-08 13:27:30 +01:00
parent 0e5c4ac472
commit 5fe201e2f8
4 changed files with 16 additions and 1 deletions
+4
View File
@@ -33,6 +33,7 @@ class Reader:
else None
)
self.add_empty = params.add_empty
self.add_all = params.add_all
self.log = logging.getLogger(__name__)
def read(self) -> tuple[list[Glyph], list[GlyphSet], list[Sentence]]:
@@ -53,6 +54,9 @@ class Reader:
sets = self.__read_sets()
if self.add_all:
sets.insert(0, GlyphSet(index=0, length=len(glyphs), name="ALL"))
sentences = self.__read_sentences(names)
return glyphs, sets, sentences