[tex4ht-commits] [SCM] tex4ht updated: r1179 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Mon Jul 25 22:40:57 CEST 2022
Author: michal_h21
Date: 2022-07-25 20:40:57 +0000 (Mon, 25 Jul 2022)
New Revision: 1179
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
don't redefine \MakeUppercase in BibLaTeX
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-07-24 17:04:30 UTC (rev 1178)
+++ trunk/lit/ChangeLog 2022-07-25 20:40:57 UTC (rev 1179)
@@ -1,3 +1,8 @@
+2022-07-25 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (biblatex.4ht): don't redefine \MakeUppercase and
+ \MakeLowercase in BibLaTeX.
+
2022-07-24 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (babel.4ht): don't redefine \ref in Babel.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-07-24 17:04:30 UTC (rev 1178)
+++ trunk/lit/tex4ht-4ht.tex 2022-07-25 20:40:57 UTC (rev 1179)
@@ -2215,6 +2215,31 @@
% Biblatex 3.0
%
% Hacks for biblatex
+
+% I don't really understand this, but language processing is broken by default
+% with biblatex. It loads language file, but it executes code which should be
+% executed only in the case if the language file fails, it displays an error message
+% and language handling doesn't work. When we execute following code, the language
+% files are loaded before checking of the success and it seems to work.
+
+\AtBeginDocument{%
+\@ifpackageloaded{babel}
+ {% This is required for languages which are never explicitly selected
+ % It seems this code was executed also with Polyglossia, where it caused compilation error
+ \@ifpackageloaded{polyglossia}{}{%
+ \def\do#1{\blx at lbxinput{#1}{}{}}%
+ \ifx\@empty\bbl at loaded\else%
+ \expandafter\docsvlist\expandafter{\bbl at loaded}%
+ \fi}}{}%
+}
+\fi % end of version boolean
+>>>
+
+2022/07/25: It seems that we don't need to redefine MakeUppercase and MakeLowercase, BiBLaTeX works without these
+redefinitions, and on the contrary, we get compilation error with these, as they were changed in the LaTeX kernel.
+So I think it is best to remove them.
+
+\<biblatex dont use\><<<
% MakeUppercase is redefined by tex4ht, biblatex tries to redefine it as well, but it relies on original
% LaTeX version:
\DeclareRobustCommand{\MakeUppercase}[1]{{%
@@ -2237,24 +2262,6 @@
\blx at hook@lc\protected at edef\reserved at a{\lowercase{#1}}%
\reserved at a
}}
-
-% I don't really understand this, but language processing is broken by default
-% with biblatex. It loads language file, but it executes code which should be
-% executed only in the case if the language file fails, it displays an error message
-% and language handling doesn't work. When we execute following code, the language
-% files are loaded before checking of the success and it seems to work.
-
-\AtBeginDocument{%
-\@ifpackageloaded{babel}
- {% This is required for languages which are never explicitly selected
- % It seems this code was executed also with Polyglossia, where it caused compilation error
- \@ifpackageloaded{polyglossia}{}{%
- \def\do#1{\blx at lbxinput{#1}{}{}}%
- \ifx\@empty\bbl at loaded\else%
- \expandafter\docsvlist\expandafter{\bbl at loaded}%
- \fi}}{}%
-}
-\fi % end of version boolean
>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.