Skip to content

ttx_diff: use more specific xpath to select nameID=25#1596

Merged
anthrotype merged 1 commit into
mainfrom
fix-ttx-diff-kablammo
Aug 14, 2025
Merged

ttx_diff: use more specific xpath to select nameID=25#1596
anthrotype merged 1 commit into
mainfrom
fix-ttx-diff-kablammo

Conversation

@anthrotype

@anthrotype anthrotype commented Aug 14, 2025

Copy link
Copy Markdown
Member

I am not entirely sure why, but after #1590 running ttx_diff.py on Kablammo.glyphs gives a weird "lxml.etree.XPathEvalError: unknown error". Notice the +2 in red under https://googlefonts.github.io/fontc_crater/#other-failures

Maybe the xml file is to big and the xpath expression too broad? i am not entirely sure. But making the xpath expression more selective and explicit seems to fix the error.

JMM

I am not entirely sure why, but after #1590 running ttx_diff.py on Kablammo.glyphs gives a weird "lxml.etree.XPathEvalError: unknown error". Maybe the xml file is to big and the xpath expression too broad, i am not entirely sure. Making the xpath expression more selective and explicit seems fixes the error.
@anthrotype anthrotype added this pull request to the merge queue Aug 14, 2025
Merged via the queue into main with commit 55c2ed5 Aug 14, 2025
12 checks passed
@anthrotype anthrotype deleted the fix-ttx-diff-kablammo branch August 14, 2025 10:39
@rsheeter

Copy link
Copy Markdown
Contributor

That ... is super weird. Seems like a bug. ty for fixing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants