Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding when converting to docbook #138

Open
hcf-n opened this issue Oct 27, 2023 · 1 comment
Open

Encoding when converting to docbook #138

hcf-n opened this issue Oct 27, 2023 · 1 comment

Comments

@hcf-n
Copy link

hcf-n commented Oct 27, 2023

When i convert documents with characters like é, ä, ü, and several others, to docbook with make4ht i get the following errors.

[STATUS]  make4ht: Conversion started
[STATUS]  make4ht: Input file: test.tex
[ERROR]   htlatex: Compilation errors in the htlatex run
[ERROR]   htlatex: Filename	Line	Message
[ERROR]   htlatex: ./test.tex 	4	 Undefined control sequence.
[ERROR]   htlatex: ./test.tex 	4	 Undefined control sequence.

This has not been a problem before, but after i updated today with Tex Live Utility I got the errors. I havn't updated for quite a while.

@michal-h21
Copy link
Owner

I see. This seems to be caused by this change. It didn't cause problems for other output formats, so it went unnoticed. Try this configuration file, which provides the original Unicode configuration for accents:

\Preamble{xhtml}
\catcode`\:=11
      \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}}
\catcode`\:=12
\begin{document}
\EndPreamble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants