bugtex4ht - Bugs: bug #319, tex4ht changes plain text -- when...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

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

Submitted by:  Nasser M. Abbasi <nma123>
Submitted on:  Thu Jun 30 12:49:16 2016  
 
Category: NonePriority: 5 - Normal
Severity: 7 - ImportantStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu Jun 30 23:11:34 2016, comment #2:

committed to tl, closing. thanks to all.

Karl Berry <karl>
Project Administrator
Thu Jun 30 15:12:30 2016, comment #1:

I've given some information in my answer on TeX.sx:
http://tex.stackexchange.com/a/317390/2891

The problem is that ligatures are formed in this case, hyphens are made active in \ScriptEnv, the solution is to add \hbox{} to the hyphen definition to prevent the ligatures forming. I've commited the solution to tex4ht sources.

Michal Hoftich <michal_h21>
Project Member
Thu Jun 30 12:49:16 2016, original submission:

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

Nasser M. Abbasi <nma123>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by nma123 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Jun 30 23:11:34 2016karlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray