Skip to content

fontlabapp.metrics.zones.rows

rows

Parse visible zone cells and retain explicit per-row source identities.

Hidden metadata never participates in visible tuple sorting. Duplicate visible rows use their source key as a deterministic tie-breaker; no name/value lookup is used to recover identity after editing or removing a row.

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
Row attribute (shared captured text)
inherit function (proposed: Zones, current: Zones) -> Zones Retain each exact Suggest match once; replacement rows have no origin.
key function (zone: Zone) -> tuple Keep source tuple sorting; resolve equal visible values by opaque key.
normalize function (zones: Zones) -> Zones Normalize visible source values while retaining all original metadata.
number function (value: object) -> float Parse a finite source/table number before rounding or arithmetic.
ordered function (zones: Zones) -> tuple[tuple[str, Zone], ...] Copy display order without native item handles or mutable metadata.
origins function (zones: Zones) -> tuple[Origin | None, ...] Return identities in exactly the same order as the four visible cells.
parse_rows function (rows: Iterable[Iterable[object]], *, origins: Iterable[Origin | None] | None=None) -> Zones Parse every four-cell row and its separate exact-length identity channel.
require_origins function (before: Zones, after: Zones) -> None Reject foreign, altered or duplicated source identities before staging.
result_matches function (expected: Zones, actual: Zones, before: Zones) -> bool Allow fresh identities for new rows; preserve every retained source row.
rows function (zones: Zones) -> tuple[Row, ...] Display top rows first, then bottom, descending by the visible tuple.
text function (value: object) -> str Reject malformed text before it reaches a native QString boundary.