fontlabapp.core.menu_names
menu_names
Stable Python names for FontLab's English menu labels (host-free).
Shared by the live tree (fontlabapp.core.host) and the static shim generator
(fontlabapp.core.shimgen), so both derive identical names from the same labels.
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 |
|---|---|---|---|
assign_names |
function | (entries: Sequence[tuple[str, str, bool]], reserved: Iterable[str]=()) -> list[str] |
Unique sibling names for <code>(label, objectName, visible)</code> entries. |
clean_label |
function | (text: str) -> str |
Human label: drop shortcut suffix, mnemonic <code>&</code><code> (</code><code>&&</code><code> is </code><code>&</code>), ellipsis. |
object_slug |
function | (object_name: str) -> str |
Snake_case of a Qt objectName without its <code>action</code><code>/</code><code>menu</code> prefix. |
snake |
function | (label: str) -> str |
Snake_case identifier for a menu label; <code>&</code><code> reads as </code><code>and</code>. |