[tex4ht-commits] [SCM] tex4ht updated: r1244 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Nov 21 09:43:15 CET 2022


Author: michal_h21
Date: 2022-11-21 08:43:15 +0000 (Mon, 21 Nov 2022)
New Revision: 1244

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Disabled the \babelfont command

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-11-20 15:09:18 UTC (rev 1243)
+++ trunk/lit/ChangeLog	2022-11-21 08:43:15 UTC (rev 1244)
@@ -1,3 +1,9 @@
+2022-11-21  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (babel-sty-hooks.4ht): disable the \babelfont
+	command.
+	https://github.com/michal-h21/tex4ebook/issues/94
+
 2022-11-20  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (authblk.4ht, caption-hooks.4ht): copyright 2022.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-11-20 15:09:18 UTC (rev 1243)
+++ trunk/lit/tex4ht-4ht.tex	2022-11-21 08:43:15 UTC (rev 1244)
@@ -24007,9 +24007,23 @@
 % Copyright 2022 TeX Users Group
 |<TeX4ht license text|>
 |<disable early sup|>
+|<babelfont|>
 >>> 
 \AddFile{9}{babel-sty-hooks}
 
+The babelfont command can be used in the document preamble.
+It can cause fatal errors, because it changes font encodings
+and can cause loating of OTF fonts
+
+\<babelfont\><<<
+\NewDocumentCommand\:babelfont{o m o m}{}
+
+\:AtEndOfPackage{%
+  % disable \babelfont
+  \let\babelfont\:babelfont
+}
+>>>
+
 %%%%%%%%%%%%%%%%%%%%%%
 \Section{CJK}
 %%%%%%%%%%%



More information about the tex4ht-commits mailing list.