brucemiller / LaTeXML

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

emulate \cf@encoding transitions in \bbl@switch #2233

Closed dginev closed 1 year ago

dginev commented 1 year ago

Fixes #2175

To quote Bruce from our discussion today: "this should buy us another couple of releases".

We may approach the question differently in a hypothetical world where latexml loads latex.ltx in its entirety.

For now, this PR extends the custom guards we have for \bbl@switch, which are hosted at babel_support.sty.ltxml, to also track the low-level behavior of updating \cf@encoding with concrete tokens, as needed by a babel language switch.

Hopefully CI passes on all older texlives, I have confirmed texlive 2022 and 2023 succeed.

dginev commented 1 year ago

There appears to be another tiny detail in testing plutonikogreek (now that it is in the correct language), switching to draft to study that. The test is reporting instead of a

dginev commented 1 year ago

It's a one-liner, but it really has to be the precise logic.

CI + texlives 2022 and 2023 now all pass 81_babel.t

Ready for review.