From: Todd H. <he...@ae...> - 2010-03-20 00:29:41
|
I cannot get Hyperlatex (2.9a) to work on Fedora 11 (with Emacs 23.1.1). The HTML output contains strange characters, and therefore does not display properly. The problem occurs with even the simplest input files--e.g., \documentclass[12pt]{article} \usepackage{hyperlatex} \begin{document} This is a test. \end{document} The complete HTML output from this input file is appended below. It contains several strange characters: "¼" (#c2bc) ...... appears instead of "<" "¾" (#c2be) ...... appears instead of ">" "¢" (#c2a2) ...... appears (sometimes) instead of a double quote "ü" (#c3bc) "î" (#c3ae) Can anyone tell me what's going on here, or how to fix it? For the record, the problem still occurs even with Hyperlatex 2.7. But on Fedora 10 (with Emacs 22.3.1) everything works fine--with either Hyperlatex 2.7 or Hyperlatex 2.9a. Thank you very much for any help you can give me. Kind regards, -- Todd Hesla Department of Aerospace Engineering and Mechanics University of Minnesota Minneapolis, Minnesota - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - COMPLETE HTML OUTPUT: ¼?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: d.tex using Hyperlatex v 2.9-in-waiting-rk (oct06) (c) Otfried Cheong on Emacs 23.1.1, Fri Mar 19 17:02:32 2010 --¾ ¼head¾ ¼title¾Untitled¼/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=¢ü¢¾¼img border=¢0¢ alt=¢ü¢ src=¢icons/ünext.png¢/¾ü¼/a¾¼/td¾¼td bgcolor="#99ccff"¾¼img alt=¢¢ src=¢icons/üblank.png¢/¾¼/td¾¼td bgcolor="#99ccff"¾¼a href=¢ü¢¾¼img border=¢0¢ alt=¢ü¢ src=¢icons/üprevious.png¢/¾ü¼/a¾¼/td¾¼td align="center" bgcolor="#99ccff" width="100%"¾¼b¾Top¼/b¾ü¼/td¾ü¼/tr¾¼/table¾ü ¼p¾This is a test. ¼/p¾ üîî¼hr /¾ü¼address¾üî¼/address¾¼br /¾ü ¼table width="100%" cellpadding="0" cellspacing="2"¾¼tr¾ ¼td bgcolor="#99ccff"¾¼¼p¾a href=¢ü¢¾¼img border=¢0¢ alt=¢ü¢ src=¢icons/ünext.png¢/¾ü¼/a¾¼/td¾¼td bgcolor="#99ccff"¾¼img alt=¢¢ src=¢icons/üblank.png¢/¾¼/td¾¼td bgcolor="#99ccff"¾¼a href=¢ü¢¾¼img border=¢0¢ alt=¢ü¢ src=¢icons/üprevious.png¢/¾ü¼/a¾¼/td¾¼td align="center" bgcolor="#99ccff" width="100%"¾¼b¾Top¼/b¾ü¼/td¾ü¼/tr¾¼/table¾üü¼/body¾¼/html¾ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
From: tom s. <to...@as...> - 2010-03-20 04:34:00
|
Hi Todd: The issue is the change in the way emacs supports multi-byte text between versions 22 and 23. This change is, I'm afraid, a direct assault on the way that hyperlatex processes text. During the parsing process, hlx changes some latex commands into single byte magic characters so they'll survive the parsing unmolested. For example, the "<" (0x3c) in html tags is converted to an unprintable 0xbc so it won't be confused with an actual "<". The final step involves converting these magic characters back to their printable originals for output. This strategy is now out of bounds, as I understand it, since 0xbc now has a meaning that it didn't in version 22. I have great confidence in the emacs developers to have thought of a way to create some kind of backwards compatibility or configuration option to continue to allow the kind of tricks that hyperlatex is built on. Sadly, I don't know my way around those options, nor am I sure that such a workaround wouldn't disable the possibility of hlx supporting multi-byte text itself, as is now true of the leading versions of TeX itself. -tom -- -------------------------------------------------------- Tom for Treasurer in 2010! http://tomfortreasurer.com Check out "Ten Things You Don't Know About Rhode Island" http://whatcheer.net http://sgouros.com |
From: Roland S. <st...@an...> - 2010-03-22 21:36:12
|
tom sgouros wrote: > This strategy is now out of bounds, as I understand it, since 0xbc now > has a meaning that it didn't in version 22. I have great confidence in > the emacs developers to have thought of a way to create some kind of > backwards compatibility or configuration option to continue to allow the > kind of tricks that hyperlatex is built on. Sadly, I don't know my way > around those options, nor am I sure that such a workaround wouldn't > disable the possibility of hlx supporting multi-byte text itself, as is > now true of the leading versions of TeX itself. At least, emacs --no-multibyte doesn't fix it for us at Debian where we try to compile hyperlatex' documentation and other files. If anyone has got another solution, please tell. It seems to apply to all distributions now. Thanks! bye, Roland |