[tex4ht] [bug #319] tex4ht changes plain text -- when in lualatex mode to HEX 15

Nasser M. Abbasi nma at 12000.org
Thu Jun 30 14:49:16 CEST 2016


URL:
  <http://puszcza.gnu.org.ua/bugs/?319>

                 Summary: tex4ht changes plain text -- when in lualatex mode
to HEX 15
                 Project: tex4ht
            Submitted by: nma123
            Submitted on: Thu 30 Jun 2016 03:49:16 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 7 - Important
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I found that -- get changed to NAK (hex 15) in HTML when compiling in lualatex
mode. This is a big problem. It means I can't use all the code formating code
I have.  Below is a MWE, and more screen shots and information can be found at
this link 

http://tex.stackexchange.com/questions/317293/tex4ht-corrupts-inside-cdata-in-the-html-file

\documentclass[11pt]{article}% 
\IfFileExists{luatex85.sty}{\usepackage{luatex85}}{}

\ifdefined\HCode% detect tex4ht
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\else
\usepackage{fontspec}
\fi

\begin{document}    
\ifdefined\HCode
{\ScriptEnv{html}{\ifvmode\IgnorePar\fi\EndP\NoFonts\hfill\break}{\EndNoFonts\endgraf}
\begin{html}
<PRE>
-- this is a test
</PRE>
\end{html}}
\else 
test
\fi

\end{document}

Now compiling the above using make4ht --lua foo.tex and looking at the HTML,
we see that the -- has been changed to HEX 15.

When compiling using make4ht foo.tex, the problem do not exist and -- are left
as is. 

I am using TL 2016 on Linux




    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?319>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list