1
0
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:
Lasse Fister 2017-03-07 16:09:43 +01:00
parent e44fd8e3c6
commit 8523792e6b
2 changed files with 15 additions and 1 deletions

View File

@ -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.

View File

@ -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)