brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
957 stars 101 forks source link

convert ltx:graphics candidates to file URIs #2367

Open xworld21 opened 6 months ago

xworld21 commented 6 months ago

Fix #2355 (allegedly) by making candidates a comma-separated list of URIs instead of plain file names.

I do not have conclusive proof about Windows, because the relevant tests seem to require a minimum texlive version, and I am using MikTeX. This would explain why CI did not catch the issue.

I suggest taking this PR further: make candidates a space separated list (since now spaces are %-encoded), and add this restriction to the schema (with something like list(anyURI)).

brucemiller commented 2 months ago

Interesting; basically you're trying to establish a consistent filename format that avoids OS dependencies. But rather than scattering lots of URI to/from around, and only dealing with @candidates at that, perhaps there's a common pinch point where the format can be made more consistent? Hmm....