fontlabapp.studios.derived_glyphs.unicase
unicase
Unicase tab: Scripts/Components/Make Lower Unicase.py in host mode.
Every uppercase cell whose character has a separate single-character
lowercase shows that lowercase as plain components on every master:
contours, components and anchors are replaced, widths and kerning-class
memberships follow the lowercase. Canonical round-trip lowercase first,
then Unicode and glyph-name order; later mappings stay. Missing capitals
are never created; auto targets and bases of auto glyphs are kept (no
opt-in, as in the original). Press Preview, then Apply; Apply asks for
confirmation and refuses a plan that changed after Preview or during the
question. The writer is the shared component-set writer (_component_sets,
replace_contours=True); survey, mappings and plan_key below
are the original's, verbatim. Credit: Pedro Arilla's idea, after Georg
Seifert's "Make lower-unicase font" (no source code copied).
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
TITLE |
attribute | ||
apply_pairs |
function | (package: Any, pairs: list[Pair], *, title: str=TITLE, replace_contours: bool=True, clear_anchors: bool=True,… |
The original's <code>apply_pairs</code>: the shared writer with its Unicase defaults. |
catalog |
attribute | ||
confirm |
function | (parent: Any, message: str) -> bool |
Ask Yes/No (default No) with the original's standard question box (tests replace this). |
glyph_copies |
attribute | (shared captured text) | |
mappings |
function | (package: Any) -> list[Pair] |
Return only the ready pairs from the ordered, fully listed case survey. |
plan_key |
function | (package: Any, rows: list[glyph_copies.Row]) -> tuple |
Bind Preview and confirmation to the font, rows and target shape identities. |
survey |
function | (package: Any) -> list[glyph_copies.Row] |
Choose canonical round-trip sources first, then Unicode and glyph-name order. |