Notes |
(0003810)
nick (manager)
2017-07-31 20:38
|
The Unicode character "minus sign" is used throughout the standard except when the font in use is a constant width one.
Use of two minus signs separated by a space is used to visually appear as "--"; use of two hyphens without a space would run together and appear as a single - in the printed pdf.
The generated HTML, on the other hand, does use a hyphen, and can be easily searched for "--", except that you will need to get the entire standard (or at least all of XCU) as a single HTML file. |
|
(0003811)
geoffclare (manager)
2017-08-01 08:32
|
I'm not sure whether Nick's "except when the font in use is a constant width one" was intended to imply that all dashes in constant width font are plain ASCII, but if so then it isn't true. It used to be true back when we used "real" troff, but with the switch to groff for the POSIX/SUS merge in 2001 some of them became Unicode minus sign. This was discussed on the mailing list last year (around the time we reissued C165 to fix the backquote problem) and is on my to-do list to sort out sometime. |
|
(0004213)
shware_systems (reporter)
2019-01-17 16:00
|
Also, imo if they're running together visually this means the font used for the PDF is buggy (as in too tight a glyph bounding box), or the kerning tables groff uses with it; as hyphen is nominally an en-dash, not an em-dash or strikeout line that might be expected to run together in a fixed width font. |
|
(0004271)
geoffclare (manager)
2019-02-28 15:06
|
This has now been fixed in the troff source. |
|