[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] hyphen vs. minus sign
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] hyphen vs. minus sign |
Date: |
Fri, 14 Sep 2007 08:14:00 +0200 (CEST) |
> Input:
> \- -
> MINUS SIGN HYPHEN
>
> Output with the current groff CVS:
>
> groff -Tutf8 U+2212 U+002D
> MINUS SIGN HYPHEN-MINUS
This is fixed now; it will again create HYPHEN instead of HYPHEN-MINUS
(and this can be overridden on demand as documented). The solution
was quite simple: For the UTF-8 device, I now say
.char - \[hy]
which makes `-' a pure input character, quite similar to the soft
hyphen. As far as I can see, this is the only character in the range
0x00-0x7F which has to be handled specially, right? Everything else
map to itself even in UTF-8 mode.
> groff -Thtml U+2212 U+002D
> MINUS SIGN HYPHEN-MINUS
This stays as-is.
> groff -Tdvi, U+002D U+002D
> dvipdf, acroread5, HYPHEN-MINUS HYPHEN-MINUS
> copy & paste
Using dvipdfmx instead of dvipdf (from TeXLive), I correctly get MINUS
SIGN and HYPHEN-MINUS. AFAIK only dvipdfmx supports ToUnicode maps.
> groff -Tps, U+00AD U+002D
> ps2pdf, acroread5, SOFT HYPHEN HYPHEN-MINUS
> copy & paste
Well, using ps2pdf from ghostscript 8.55, xpdf correctly gives MINUS
SIGN and HYPHEN-MINUS. Additionally, acroread 7.0.8 (on my GNU/Linux
box) returns the same. One of the tools in your change is apparently
broken...
Werner
- Re: [Groff] gkurz, a short introduction for german users, Axel Kielhorn, 2007/09/08
- Re: [Groff] gkurz, a short introduction for german users, Tadziu Hoffmann, 2007/09/11
- Re: [Groff] gkurz, a short introduction for german users, Werner LEMBERG, 2007/09/11
- Re: [Groff] hyphen vs. minus sign, Bruno Haible, 2007/09/11
- Re: [Groff] hyphen vs. minus sign, Werner LEMBERG, 2007/09/13
- Re: [Groff] hyphen vs. minus sign,
Werner LEMBERG <=
- Re: [Groff] hyphen vs. minus sign, Bruno Haible, 2007/09/14
- Re: [Groff] hyphen vs. minus sign, Werner LEMBERG, 2007/09/15
- Re: [Groff] hyphen vs. minus sign, Bruno Haible, 2007/09/15
- Re: [Groff] hyphen vs. minus sign, Werner LEMBERG, 2007/09/17
- Re: [Groff] hyphen vs. minus sign, Gunnar Ritter, 2007/09/17
- Re: [Groff] hyphen vs. minus sign, brian m. carlson, 2007/09/17
- Re: [Groff] hyphen vs. minus sign, Werner LEMBERG, 2007/09/27
Re: [Groff] gkurz, a short introduction for german users, Axel Kielhorn, 2007/09/13