texlive[68679] Master/texmf-dist: accented chars in docbook, tex4ht

commits+karl at tug.org commits+karl at tug.org
Fri Oct 27 22:48:58 CEST 2023


Revision: 68679
          https://tug.org/svn/texlive?view=revision&revision=68679
Author:   karl
Date:     2023-10-27 22:48:57 +0200 (Fri, 27 Oct 2023)
Log Message:
-----------
accented chars in docbook, tex4ht r1399

Revision Links:
--------------
    https://tug.org/svn/texlive?view=revision&revision=1399

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-10-27 20:01:02 UTC (rev 68678)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2023-10-27 20:48:57 UTC (rev 68679)
@@ -1,3 +1,9 @@
+2023-10-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-docbook.tex (docbook.4ht): fixed support for accented
+	characters.
+	https://github.com/michal-h21/make4ht/issues/138
+
 2023-10-25  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (tabularray.4ht),

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex	2023-10-27 20:01:02 UTC (rev 68678)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex	2023-10-27 20:48:57 UTC (rev 68679)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-docbook.tex 1362 2023-08-27 15:01:41Z karl $
+% $Id: tex4ht-docbook.tex 1399 2023-10-27 10:48:56Z michal_h21 $
 % compile 3 times:     latex tex4ht-docbook   
 %                or  xhlatex tex4ht-docbook "html,3,sections+"
 %
@@ -123,6 +123,26 @@
 >>>
 
 
+We reuse old accents code from unicode.4ht, because 
+we got errors for accented characters without explicit
+configuration for accents.
+
+\<latex etc\><<<
+\Configure{accents}
+{\ifmmode \expandafter\mathord\fi
+{\leavevmode
+\if !#1!\ht:special{t4ht at +&\#x#2;}%
+\else \expandafter \ifx\csname U#2#1\endcsname\relax
+    \ht:special{t4ht at +&{35}x#2;}%
+\else
+    \ht:special{t4ht at +&{35}x\csname U#2#1\endcsname;}%
+\fi \fi x%
+\ht:special{t4ht@[}x\ht:special{t4ht@]}}}
+{\ifmmode \expandafter\mathord\fi
+{#3}}
+>>>
+
+
 \<configure docbook-mml latex\><<< 
 \def\refLink#1#2#3\EndLink{%
    \ifvmode

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht	2023-10-27 20:01:02 UTC (rev 68678)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/docbook.4ht	2023-10-27 20:48:57 UTC (rev 68679)
@@ -1,4 +1,4 @@
-% docbook.4ht (2023-08-27-08:01), generated from tex4ht-docbook.tex
+% docbook.4ht (2023-10-27-13:27), generated from tex4ht-docbook.tex
 % Copyright 2009-2023 TeX Users Group
 % Copyright 2000-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2023-08-27-08:01}
+\immediate\write-1{version 2023-10-27-13:27}
 
 \exit:ifnot{Preamble,% 
 algorithmic,% 
@@ -547,6 +547,18 @@
    \else
      \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
    \fi}
+\Configure{accents}
+{\ifmmode \expandafter\mathord\fi
+{\leavevmode
+\if !#1!\ht:special{t4ht at +&\#x#2;}%
+\else \expandafter \ifx\csname U#2#1\endcsname\relax
+    \ht:special{t4ht at +&{35}x#2;}%
+\else
+    \ht:special{t4ht at +&{35}x\csname U#2#1\endcsname;}%
+\fi \fi x%
+\ht:special{t4ht@[}x\ht:special{t4ht@]}}}
+{\ifmmode \expandafter\mathord\fi
+{#3}}
 \Configure{newline}{\HCode{<!--br\Hnewline/-->}}
 \Configure{newtheorem}
    {\IgnorePar\EndP\HCode{<blockquote role="newtheorem"><title>}}
@@ -2737,7 +2749,6 @@
 
 
 
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{biblatex}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -3169,6 +3180,11 @@
 
 
 
+
+
+
+
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{memoir}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -3515,6 +3531,7 @@
 
 
 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                 \ConfigureHinput{dcolumn}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -5521,7 +5538,6 @@
 
 
 
-
 
 
 



More information about the tex-live-commits mailing list.