From 6e3906a13a1058be3157f1fb2e748cfff6527e1a Mon Sep 17 00:00:00 2001 From: Deyan Ginev Date: Thu, 12 Oct 2023 15:32:37 -0400 Subject: [PATCH] \cf@encoding MUST be defined in terms of edef \f@encoding for bbl@switch --- lib/LaTeXML/Package/babel_support.sty.ltxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/LaTeXML/Package/babel_support.sty.ltxml b/lib/LaTeXML/Package/babel_support.sty.ltxml index bed63f402..afffecb3d 100644 --- a/lib/LaTeXML/Package/babel_support.sty.ltxml +++ b/lib/LaTeXML/Package/babel_support.sty.ltxml @@ -148,10 +148,10 @@ EoTeX DefPrimitive('\ltx@bbl@select@language{}', sub { my ($stomach, $language) = @_; + DefMacroI('\cf@encoding', undef, Expand(T_CS('\f@encoding'))); $language = ToString(Expand($language)); my $iso = $$bbl_language_map{$language}; MergeFont(language => $iso) if $iso; - DefMacroI('\cf@encoding', undef, ExplodeText(LookupValue('font')->getEncoding)); return; }); # pretend we've got hyphenation patterns for ANY language.