Newstroke: Add readable glyphs to character names

This means you don't have to keep referring to a Unicode
table to know which character is where - you can see it in the
list and use the symbol search system.

No change to generated output (such suffixes are stripped by the
fontconv.py script).
This commit is contained in:
John Beard 2024-08-26 13:18:35 +01:00
parent 38daf2e2fa
commit 18aa74a33b
13 changed files with 42815 additions and 42811 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -223,7 +223,11 @@ class Glyph(NamedTuple):
def from_sexpr(cls, sexp: Any) -> 'Glyph': def from_sexpr(cls, sexp: Any) -> 'Glyph':
if sexp[0] != "symbol": if sexp[0] != "symbol":
raise KicadSymError(f"Expected a symbol sexpr: {sexp}") raise KicadSymError(f"Expected a symbol sexpr: {sexp}")
name = sexp[1]
# If the name ends with a double underscore suffix, it's a suffix with the
# codepoint of the glyph as a readable glyph, and we don't need it here.
name = re.sub(r"__.*$", "", sexp[1])
if name[0] in Compositions.transforms: if name[0] in Compositions.transforms:
raise KicadSymError(f"Invalid glyph name {name}") raise KicadSymError(f"Invalid glyph name {name}")

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff