[BACK]Return to mandoc_char.7 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandoc_char.7 between version 1.62 and 1.64

version 1.62, 2015/03/30 16:06:14 version 1.64, 2017/02/05 21:41:21
Line 49  names; instead, provide ASCII transcriptions of the na
Line 49  names; instead, provide ASCII transcriptions of the na
 .Ss Dashes and Hyphens  .Ss Dashes and Hyphens
 In typography there are different types of dashes of various width:  In typography there are different types of dashes of various width:
 the hyphen (-),  the hyphen (-),
 the minus sign (\-),  the minus sign (\(mi),
 the en-dash (\(en),  the en-dash (\(en),
 and the em-dash (\(em).  and the em-dash (\(em).
 .Pp  .Pp
Line 62  blue-eyed
Line 62  blue-eyed
 lorry-driver  lorry-driver
 .Ed  .Ed
 .Pp  .Pp
   If a word on a text input line contains a hyphen, a formatter may decide
   to insert an output line break after the hyphen if that helps filling
   the current output line, but the whole word would overflow the line.
   If it is important that the word is not broken across lines in this
   way, a zero-width space
   .Pq Sq \e&
   can be inserted before or after the hyphen.
   While
   .Xr mandoc 1
   never breaks the output line after hyphens adjacent to a zero-width
   space, after any of the other dash- or hyphen-like characters
   represented by escape sequences, or after hyphens inside words in
   macro arguments, other software may not respect these rules and may
   break the line even in such cases.
   .Pp
   Some
   .Xr roff 7
   implementations contains dictionaries allowing to break the line
   at syllable boundaries even inside words that contain no hyphens.
   Such automatic hyphenation is not supported by
   .Xr mandoc 1 ,
   which only breaks the line at whitespace, and inside words only
   after existing hyphens.
   .Pp
 The mathematical minus sign is used for negative numbers or subtraction.  The mathematical minus sign is used for negative numbers or subtraction.
 It should be written as  It should be written as
 .Sq \e- :  .Sq \e(mi :
 .Bd -unfilled -offset indent  .Bd -unfilled -offset indent
 a = 3 \e- 1;  a = 3 \e(mi 1;
 b = \e-2;  b = \e(mi2;
 .Ed  .Ed
 .Pp  .Pp
 The en-dash is used to separate the two elements of a range,  The en-dash is used to separate the two elements of a range,
Line 720  In
Line 744  In
 .Fl T Ns Cm ascii ,  .Fl T Ns Cm ascii ,
 the  the
 \e(ss, \e(nm, \e(nb, \e(nc, \e(ib, \e(ip, \e(pp, \e[sum], \e[product],  \e(ss, \e(nm, \e(nb, \e(nc, \e(ib, \e(ip, \e(pp, \e[sum], \e[product],
 \e[coproduct], \e(gr, \e(\-h, and \e(a. special characters render  \e[coproduct], \e(gr, \e(-h, and \e(a. special characters render
 differently between mandoc and groff.  differently between mandoc and groff.
 .It  .It
 In  In

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.64

CVSweb