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.