Re: Trouble with Repeatable Arguments in cmdsynopsis
"Steve Cheng" <[email protected]> Thu, 27 Apr 2006 12:12:11 -0400
| Newsgroups | gmane.text.docbook.docbook2x.general |
|---|---|
| Message-ID | <[email protected]> |
> I included the .mxml file because I thought it might contain a clue as > to what was going wrong. When I open this file using vim, and look at > the character in question, there is single character that looks like an > ellipsis, Right, vim supports utf-8. > however when I open the file using a hex editor, it does not > appear to be U+2026. The hex values at that character are E2 80 A6. The Actually E2 80 A6 is the correct UTF-8 representation (i.e. ASCII-compatible) of the Unicode character U+2026. > E2 and the A6 show up in the generated roff file (if I run db2x_manxml > --encoding=utf-8), May I ask you to try this: Take the UTF-8 roff file (i.e. the one with E2 80 A6 in it), and run utf8trans /usr/share/docbook2X/charmaps/roff.charmap ls.1 > ls.1.new Does the ellipsis character E2 80 A6 get turned into the ASCII version "..." in the file ls.1.new? It should. Anyway, I will download the RPM package, and investigate too. > and man displays the corresponding ascii/unicode > characters (00E2 -> lowercase 'a' with circumflex, and a 00A6 -> | > (pipe)) > I'm not sure if the character translation is supposed to have > taken place by this stage, and I know very little about unicode and > character mapping, but I thought it was worth mentioning. The character translation of course is supposed to have happened to the roff file, unless the option --encoding=utf-8 is set, in which case, well, you get utf-8. However, the bug / problem is that E2 80 A6 should automatically get mapped to "..." when that option is not set. By the way, if you only have a few small man pages you want to convert, and don't want to wait until this problem is solved completely, you can use the online converter at http://docbook2x.sourceforge.net/demo/. Character translation works right there; I've just verified. -- Steve Cheng 鄭君博 http://gold-saucer.afraid.org ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642