Bug#974990: fonts-opendyslexic: Please package new upstream (2019.09.16 or later)

Samuel Thibault sthibault at debian.org
Tue Nov 17 18:26:10 GMT 2020


Samuel Thibault, le mar. 17 nov. 2020 18:58:31 +0100, a ecrit:
> Samuel Thibault, le mar. 17 nov. 2020 18:46:39 +0100, a ecrit:
> > Mmm, there was already mono and alta in the existing Debian package, and
> > actually on the contrary I cannot find them in the newer upstream
> > release:
> > 
> [...]
> > I'm fetching the tarballs from
> > 
> > https://github.com/antijingoist/opendyslexic/tags
> 
> There are actually the .glyphs file in them, I'll have a look at using
> glyphslib etc.to convert to otf.

This is failing in various ways...

€ glyphs2ufo opendyslexic.glyphs
Traceback (most recent call last):
  File "/usr/bin/glyphs2ufo", line 33, in <module>
    sys.exit(load_entry_point('glyphsLib==5.2.0', 'console_scripts', 'glyphs2ufo')())
  File "/usr/lib/python3/dist-packages/glyphsLib/cli.py", line 228, in _glyphs2ufo_entry_point
    return main(args)
  File "/usr/lib/python3/dist-packages/glyphsLib/cli.py", line 189, in main
    return options.func(options)
  File "/usr/lib/python3/dist-packages/glyphsLib/cli.py", line 208, in glyphs2ufo
    glyphsLib.build_masters(
  File "/usr/lib/python3/dist-packages/glyphsLib/__init__.py", line 104, in build_masters
    font = GSFont(filename)
  File "/usr/lib/python3/dist-packages/glyphsLib/classes.py", line 3653, in __init__
    p.parse_into_object(self, fp.read())
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 63, in parse_into_object
    i = self._parse_dict_into_object(res, text, 1)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 166, in _parse_dict_into_object
    result = self._parse(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 103, in _parse
    return self._parse_list(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 193, in _parse_list
    list_item, i = self._parse(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 97, in _parse
    return self._parse_dict(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 150, in _parse_dict
    i = self._parse_dict_into_object(res, text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 166, in _parse_dict_into_object
    result = self._parse(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 103, in _parse
    return self._parse_list(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 193, in _parse_list
    list_item, i = self._parse(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 97, in _parse
    return self._parse_dict(text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 150, in _parse_dict
    i = self._parse_dict_into_object(res, text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 176, in _parse_dict_into_object
    self._fail("Missing delimiter in dictionary before content", text, i)
  File "/usr/lib/python3/dist-packages/glyphsLib/parser.py", line 235, in _fail
    raise ValueError("{}:\n{}".format(message, text[i : i + 79]))
ValueError: Missing delimiter in dictionary before content:
 Value;
}
);
descender = -520;
guideLines = (
{
angle = 90;
position = "{259, 1


€ glyphs2ufo OpenDyslexic-Mono.glyphs

does work, but then

€ python3
Python 3.8.6 (default, Sep 25 2020, 09:36:53) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from defcon import Font
>>> from ufo2ft import compileOTF
>>> ufo = Font('OpenDyslexicMono-Regular.ufo')
>>> otf = compileOTF(ufo)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/ufo2ft/__init__.py", line 128, in compileOTF
    compileFeatures(
  File "/usr/lib/python3/dist-packages/ufo2ft/__init__.py", line 521, in compileFeatures
    otFont = featureCompiler.compile()
  File "/usr/lib/python3/dist-packages/ufo2ft/featureCompiler.py", line 125, in compile
    self.setupFeatures()
  File "/usr/lib/python3/dist-packages/ufo2ft/featureCompiler.py", line 223, in setupFeatures
    writer.write(self.ufo, featureFile, compiler=self)
  File "/usr/lib/python3/dist-packages/ufo2ft/featureWriters/baseFeatureWriter.py", line 110, in write
    self.setContext(font, feaFile, compiler=compiler)
  File "/usr/lib/python3/dist-packages/ufo2ft/featureWriters/markFeatureWriter.py", line 251, in setContext
    ctx.anchorLists = self._getAnchorLists()
  File "/usr/lib/python3/dist-packages/ufo2ft/featureWriters/markFeatureWriter.py", line 284, in _getAnchorLists
    a = self.NamedAnchor(name=anchorName, x=anchor.x, y=anchor.y)
  File "/usr/lib/python3/dist-packages/ufo2ft/featureWriters/markFeatureWriter.py", line 148, in __init__
    isMark, key, number = parseAnchorName(
  File "/usr/lib/python3/dist-packages/ufo2ft/featureWriters/markFeatureWriter.py", line 126, in parseAnchorName
    raise ValueError("mark anchor key is nil: %r" % anchorName)
ValueError: mark anchor key is nil: '_'

...

Forwarded as

https://github.com/googlefonts/glyphsLib/issues/635
https://github.com/googlefonts/glyphsLib/issues/636
https://github.com/googlefonts/ufo2ft/issues/430

Samuel



More information about the Pkg-a11y-devel mailing list