Skip to content

fontlabapp.studios.kerning_batch.punctuation · declarations 001

Back to fontlabapp.studios.kerning_batch.punctuation

TITLE module-attribute

TITLE

expand

expand(pairs: dict, groups: dict, selected: set[str], *, kept: list | None = None) -> dict

Materialize affected effective pairs while keeping all explicit overrides.

glyph_codes

glyph_codes(font: Any, name: str) -> list[int]

Code points of name in the Fontport font, else of its base name before the first ..

is_punctuation

is_punctuation(unicodes: list[int]) -> bool

Use Unicode punctuation categories instead of a hard-coded name list.

master_problem

master_problem(package: Any, master: str, pairs: dict, groups: dict) -> str

Check the writer's value limits and every existing glyph/class pair.

numeric_problem

numeric_problem(package: Any, master: str, pairs: dict) -> str

Match whole-value and persistence checks without private App calls.

Whole-unit, finite and signed32 rules use the public writer helper. The writer exposes no public range validator, so repeat its small range rule.

plan_rows

plan_rows(package: Any, font: Any, snapshot: Any, names: list[str], masters: list[str], punctuation_only: bool) -> list[Row]

The original plan_rows on a typed snapshot: planned exceptions and kept messages.

plural

plural(count: int, word: str) -> str

"1 glyph" / "2 glyphs", as the shared selection panel wrote it.

row_edits

row_edits(rows: list[Row]) -> dict

{master: {typed pair: value}} for every row without a note (the original write).