[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unusual entity ™ in man page output; how to view it



On Wed, Mar 17, 2004 at 12:12:39AM -0800, Number Six wrote:
> dh_make generates a template manpage.xml which can be run through
> xsltproc using
> /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
> to produce a manpage which may be viewed with "nroff -man".
> 
> The input <productname>Debian</productname> produces the output:
> Debian&#8482;
> 
> My locale is "en_US".  I assume this character is supposed to be
> "Trademark" or "Registered Trademark", but unicode 8482 is a Japanese
> character.

Unicode *hex* 8482 is a Japanese character. Decimal 8482 is hex 2122,
and U+2122 is "TRADE MARK SIGN".

> What is it, and how to I view it, and is it "Correct Behavior" (TM) ?

It's not correct, since &#...;-style entities aren't valid *roff input.
It should be using \(tm instead.

I've never been all that convinced by trying to use docbook for man
pages (particularly not by the output), but I *am* the groff maintainer,
so I guess I'm biased ...

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: