mirror of
https://github.com/google/fonts.git
synced 2024-12-01 03:06:03 +03:00
[tools] Improve parsing of none-encoded entries in Namelists.
This commit is contained in:
parent
e44fd8e3c6
commit
8523792e6b
@ -70,6 +70,20 @@ Example:
|
||||
abrevedotbelow.sc
|
||||
```
|
||||
|
||||
For legacy reasons, we also accept lines in the form of:
|
||||
|
||||
```
|
||||
Д uni0414.loclBGR
|
||||
И uni0418.loclBGR
|
||||
Й uni0419.loclBGR
|
||||
```
|
||||
|
||||
Using this sample python implementation to obtain the glyph name:
|
||||
|
||||
```py
|
||||
line.strip().rsplit(' ')[-1]
|
||||
```
|
||||
|
||||
## <a name="header"></a> Header
|
||||
|
||||
The header was created to make the Namelist format more self contained.
|
||||
|
@ -590,7 +590,7 @@ def _parseNamelist(lines):
|
||||
# description
|
||||
# line[(2+len(codepoint)),]
|
||||
elif line.startswith(' '):
|
||||
noncode = line.strip()
|
||||
noncode = line.strip().rsplit(' ')[-1]
|
||||
if len(noncode):
|
||||
noncodes.add(noncode)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user