Hello,

Is anyone still reading this list? :-)

Hyperlatex does not seem to be working with the latest release of emacs
(25.1). The output is invalid html, it seems that hyperlatex fails to
change back the "magic" characters to their real value (e.g. html tags are
opened with '¼' instead of '<').

Forcing the regexp hyperlatex-meta-all to be encoded in unicode seems to
fix that problem (the output is valid html now), but the displayed page is
still broken (invalid characters around the place).

Attached is a MWE main.tex, the file main-broken.html produced by
hyperlatex as-is, and the file main-unicode.html produced if
hyperlatex-meta-all is defined as:

(setq hyperlatex-meta-all
      (encode-coding-string
       (concat "["
      hyperlatex-meta-&
      hyperlatex-meta-<
     hyperlatex-meta->
     (hyperlatex-meta ?%)
     hyperlatex-meta-{
     hyperlatex-meta-}
     hyperlatex-meta-dq
     (hyperlatex-meta ?\\)
     (hyperlatex-meta ?~)
     (hyperlatex-meta 32)
     (hyperlatex-meta ?-)
     (hyperlatex-meta ?')
     (hyperlatex-meta ?`)
     "]") 'utf-8))

This was tested using emacs 25.1.4, hyperlatex 2.9a on linux and emacs
25.1.1, hyperlatex 2.9a on OSX.

According to the co-worker who brought this problem to my attention, it was
working fine 6 months ago.

Thank you, best regards,

Thibaut

<<< text/html; charset="ISO-8859-1"; name="main-unicode.html": Unrecognized >>>
ž?xml version="1.0" encoding="UTF-8"?ū ž!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"ū žhtml xmlns="http://www.w3.org/1999/xhtml"ū ž!-- XML file produced from file: main.tex using Hyperlatex v 2.9-in-waiting-rk (oct06) (c) Otfried Cheong on Emacs 24.3.1, Tue Jun 20 10:39:35 2017 --ū žheadū žtitleūTOtož/titleū žstyle type="text/css"ū .maketitle { align : center } div.abstract { margin-left: 20%; margin-right: 10%; } h3.abstract { align : center } div.verse, div.quote, div.quotation { margin-left : 10%; margin-right : 10%; } dt {font-weight: bold} ž/styleū ü üüüü ž/headū žbodyū žtable width="100%" cellpadding="0" cellspacing="2"ūžtrū žtd bgcolor="#99ccff"ūža href="" border=Ē0Ē alt=ĒüĒ src="" bgcolor="#99ccff"ūžimg alt=ĒĒ src="" bgcolor="#99ccff"ūža href="" border=Ē0Ē alt=ĒüĒ src="" align="center" bgcolor="#99ccff" width="100%"ūžbūTopž/būüž/tdūüž/trūž/tableūü žpūTest: Ķlt; ž/pū üîîžhr /ūüžaddressūüîž/addressūžbr /ūü žtable width="100%" cellpadding="0" cellspacing="2"ūžtrū žtd bgcolor="#99ccff"ūžžpūa href="" border=Ē0Ē alt=ĒüĒ src="" bgcolor="#99ccff"ūžimg alt=ĒĒ src="" bgcolor="#99ccff"ūža href="" border=Ē0Ē alt=ĒüĒ src="" align="center" bgcolor="#99ccff" width="100%"ūžbūTopž/būüž/tdūüž/trūž/tableūüüž/bodyūž/htmlū

Attachment: main.tex
Description: TeX document

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Hyperlatex-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hyperlatex-users

Reply via email to