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

2018-05-29 Thread Ralph Corderoy
Hi Deri, > On my system it seems to use LiberationSerif for Times Roman. I think this lists what's available locally for that font, in order of preference. fc-match -a 'Times New Roman' -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy

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

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

2018-05-27 Thread Ingo Schwarze
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 SOFT HYPHEN (U+00AD), No, that is not a "soft hyphen". Glyph numbe

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

2018-05-27 Thread Pali Rohár
On Sunday 27 May 2018 21:58:07 Ingo Schwarze wrote: > > Happens for: man -Tps and man -Tdvi > > Regarding -Tps, i don't know what you mean. Ok, I would try to explain it a bit more... > As far as i understand, > at least the default font for -Tps does not even contain a > hyphen-minus output gly

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

2018-05-27 Thread Ingo Schwarze
Hi Pali, Pali Rohar wrote on Fri, May 25, 2018 at 04:59:50PM +0200: > On Friday 25 May 2018 15:18:18 Ingo Schwarze wrote: >> For manual pages, the long-established workaround is to use \-. > Can be this information documented somewhere? I was really not able to > find it in any groff documentati

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

2018-05-26 Thread Deri James
On Sat 26 May 2018 11:50:31 Ralph Corderoy wrote: > Hi Deri, > > > man -Tpdf will produce what you want. The '\-' (minus) is used as the > > output glyph, but any copy/paste (or searching within document) will > > use '-' (hyphen). > > > > This is similar to the treatment of ligatures. If you loo

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

2018-05-26 Thread Pali Rohár
On Friday 25 May 2018 17:36:50 Deri James wrote: > On Fri 25 May 2018 16:59:50 Pali Rohár wrote: > > Happens for: man -Tps and man -Tdvi > > > > And I think that the best readable output is by grodvi driver. So would > > really like to have working copy+paste from the dvi output (converted to > >

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

2018-05-26 Thread Pali Rohár
On Saturday 26 May 2018 11:50:31 Ralph Corderoy wrote: > Hi Deri, > > > man -Tpdf will produce what you want. The '\-' (minus) is used as the > > output glyph, but any copy/paste (or searching within document) will > > use '-' (hyphen). > > > > This is similar to the treatment of ligatures. If you

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

2018-05-26 Thread Ralph Corderoy
Hi Deri, > man -Tpdf will produce what you want. The '\-' (minus) is used as the > output glyph, but any copy/paste (or searching within document) will > use '-' (hyphen). > > This is similar to the treatment of ligatures. If you look at the > groff pdf output of the "find" man page you will see t

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

2018-05-25 Thread Deri James
On Fri 25 May 2018 16:59:50 Pali Rohár wrote: > Happens for: man -Tps and man -Tdvi > > And I think that the best readable output is by grodvi driver. So would > really like to have working copy+paste from the dvi output (converted to > PDF viewer). man -Tpdf will produce what you want. The '\-'

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

2018-05-25 Thread Pali Rohár
Hi! On Friday 25 May 2018 15:18:18 Ingo Schwarze wrote: > Hi, > > Pali Rohar wrote on Fri, May 25, 2018 at 09:54:59AM +0200: > > > I would like to ask, how to print hyphen-minus character in groff? > > I mean classic ASCII "-" which has Unicode code point U+002D. > > This has been discussed at

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

2018-05-25 Thread Ingo Schwarze
Hi, Pali Rohar wrote on Fri, May 25, 2018 at 09:54:59AM +0200: > I would like to ask, how to print hyphen-minus character in groff? > I mean classic ASCII "-" which has Unicode code point U+002D. This has been discussed at great length on this list recently. Search the archives. The short answe

[groff] hyphen, minus sign and hyphen-minus

2018-05-25 Thread Pali Rohár
Hi! I would like to ask, how to print hyphen-minus character in groff? I mean classic ASCII "-" which has Unicode code point U+002D. In groff_char(7) documentation is written: - the ISO latin1 ‘Hyphen, Minus Sign’ (code 45) prints as a hyphen (Unicode u2010). The same output glyph can be req