hmm, on Wed, Oct 19, 2011 at 12:18:55AM +0200, frantisek holop said that
> hi there,
> 
> the port i am working on uses a2x to turn text files into man pages.
> i have noticed that the generated man pages are full of html entity
> codes for characters like "'" and others.
> 
> for example:
> 
> Don't
> 
> is turned into:
> 
> Don’t
> 
> 
> the files were generated with:
> 
> /usr/local/bin/a2x.py -d manpage  -f manpage file.txt
> 
> 
> how can i make this go away?  i see other ports using a2x
> but in more creative ways like a2x + xmlto.
> 
> is using only a2x for generating man pages broken?

i have also tried the flow:

$ asciidoc -d manpage -b docbook -o file.xml - < file.txt
$ xmlto man file.xml

but the html entities are still there in file.8

in the debian generated man page for the same port i see:

.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '

and "Don't" looks like this:

Don\(cqt

-f
-- 
the borg assimilated my race & all i got was this t-shirt

Reply via email to