Re: [groff] man -Tdvi replaces $ by £

2018-05-28 Thread Werner LEMBERG
> grodvi invoked by man -Tdvi replaces all occurrences of dollar > character ($) by pound sterling character (£). Indeed. > .TH test 1 > .BI "perl example: " "$str =~ m/^[a-z]$/;" This example tries to use `$' within bold italic. However, the TeX CM font `cmbi10' doesn't provide this character

[groff] man -Tdvi replaces $ by £

2018-05-28 Thread Pali Rohár
Hi! When formatting source code examples for manpage I found following obscure bug. grodvi invoked by man -Tdvi replaces all occurrences of dollar character ($) by pound sterling character (£). As $ is used in more languages for accessing variable it is really a problem if is replaced by £. To de

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Deri James
On Sat 26 May 2018 13:16:42 Pali Rohár wrote: > And as I said "man -T dvi | dvipdfmx" > gives me better PDF output as man -Tpdf. So for reading I would really > prefer man -Tdvi Hi Pali, Have you tried passing -P-e on the command line when using -T pdf? One difference is that dvipdfmx always emb

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Ingo Schwarze
Hi Pali, Pali Rohar wrote on Mon, May 28, 2018 at 04:28:51PM +0200: > On Sunday 27 May 2018 21:58:07 Ingo Schwarze wrote: >> Ingo Schwarze wrote: >>> So usage of mathematical minus sign (\-) is recommended as 0x2D >>> character for describing command line options in manpage? >> Unfortunately, ye

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Pali Rohár
On Sunday 27 May 2018 21:58:07 Ingo Schwarze wrote: > > So usage of mathematical minus sign (\-) is recommended as 0x2D > > character for describing command line options in manpage? > > Unfortunately, yes, that is the consensus regarding best practice, > for want of a better alternative. Ok, and

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Pali Rohár
On Monday 28 May 2018 10:08:05 Mike Bianchi wrote: > On Mon, May 28, 2018 at 03:24:05PM +0200, Pali Rohár wrote: > > On Monday 28 May 2018 15:16:53 Pali Rohár wrote: > > > On Monday 28 May 2018 02:48:09 Ingo Schwarze wrote: > > > > Pali Rohar wrote on Sun, May 27, 2018 at 11:52:44PM +0200: > > > >

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Mike Bianchi
On Mon, May 28, 2018 at 03:24:05PM +0200, Pali Rohár wrote: > On Monday 28 May 2018 15:16:53 Pali Rohár wrote: > > On Monday 28 May 2018 02:48:09 Ingo Schwarze wrote: > > > Pali Rohar wrote on Sun, May 27, 2018 at 11:52:44PM +0200: > > > : > > > PS name TR# Unicode > > > --- ---

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Pali Rohár
On Monday 28 May 2018 15:16:53 Pali Rohár wrote: > On Monday 28 May 2018 02:48:09 Ingo Schwarze wrote: > > Hi Pali, > > > > Pali Rohar wrote on Sun, May 27, 2018 at 11:52:44PM +0200: > > > > > Now I looked deeply at man -Tps output and basically \- sequence is > > > written as character 0xAD (\25

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Pali Rohár
On Monday 28 May 2018 02:48:09 Ingo Schwarze wrote: > Hi Pali, > > Pali Rohar wrote on Sun, May 27, 2018 at 11:52:44PM +0200: > > > Now I looked deeply at man -Tps output and basically \- sequence is > > written as character 0xAD (\255 in octet) into output postscript file. > > Therefore it is SO

Re: [groff] hyphen, minus sign and hyphen-minus

2018-05-28 Thread Pali Rohár
Hi! I will look at PS and react later, for now just DVI part: On Monday 28 May 2018 02:48:09 Ingo Schwarze wrote: > > I looked deeply at DVI output and basically \- is printed in DVI as > > glyph with index 0 from font cmsy10. Looking at cmsy10.pfb Type1 font > > file and there is "dup 0 /minus pu