summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-27 20:48:57 +0000
committerKarl Berry <karl@freefriends.org>2023-10-27 20:48:57 +0000
commit3bab6284c93491b38391f3f71cc7113c1fdb5038 (patch)
tree732778c25afb6f11b8491dcb1e3bcdfbe8365dcc /Master/texmf-dist/source/generic
parent1d55c8b2cc67da8038f7456daa08a11e403ab4af (diff)
accented chars in docbook, tex4ht r1399
git-svn-id: svn://tug.org/texlive/trunk@68679 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog6
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex22
2 files changed, 27 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 9ac2a7d02da..6c152f54e57 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-27 Michal Hoftich <michal.h21@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@gmail.com>
* tex4ht-4ht.tex (tabularray.4ht),
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex
index b6ac89f11de..a65ce6153c9 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex
@@ -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@+&\#x#2;}%
+\else \expandafter \ifx\csname U#2#1\endcsname\relax
+ \ht:special{t4ht@+&{35}x#2;}%
+\else
+ \ht:special{t4ht@+&{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