Print this page
9718 update mandoc to 1.14.4

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/mandoc_char.5.man.txt
          +++ new/usr/src/man/man5/mandoc_char.5.man.txt
   1    1  MANDOC_CHAR(5)        Standards, Environments, and Macros       MANDOC_CHAR(5)
   2    2  
   3    3  NAME
   4    4       mandoc_char - mandoc special characters
   5    5  
   6    6  DESCRIPTION
   7    7       This page documents the mandoc_roff(5) escape sequences accepted by
   8    8       mandoc(1) to represent special characters in mdoc(5) and man(5)
   9    9       documents.
  10   10  
  11      -     The rendering depends on the mandoc(1) output mode; in ASCII output, most
  12      -     characters are completely unintelligible.  For that reason, using any of
  13      -     the special characters documented here, except those discussed in the
  14      -     DESCRIPTION, is strongly discouraged; they are supported merely for
  15      -     backwards compatibility with existing documents.
       11 +     The rendering depends on the mandoc(1) output mode; it can be inspected
       12 +     by calling man(1) on the mandoc_char manual page with different -T
       13 +     arguments.  In ASCII output, the rendering of some characters may be hard
       14 +     to interpret for the reader.  Many are rendered as descriptive strings
       15 +     like "<integral>", "<degree>", or "<Gamma>", which may look ugly, and
       16 +     many are replaced by similar ASCII characters.  In particular, accented
       17 +     characters are usually shown without the accent.  For that reason, try to
       18 +     avoid using any of the special characters documented here except those
       19 +     discussed in the DESCRIPTION, unless they are essential for explaining
       20 +     the subject matter at hand, for example when documenting complicated
       21 +     mathematical functions.
  16   22  
  17   23       In particular, in English manual pages, do not use special-character
  18   24       escape sequences to represent national language characters in author
  19   25       names; instead, provide ASCII transcriptions of the names.
  20   26  
  21   27     Dashes and Hyphens
  22   28       In typography there are different types of dashes of various width: the
  23      -     hyphen (-), the minus sign (-), the en-dash (-), and the em-dash (--).
       29 +     hyphen (-), the en-dash (-), the em-dash (--), and the mathematical minus
       30 +     sign (-).
  24   31  
  25   32       Hyphens are used for adjectives; to separate the two parts of a compound
  26   33       word; or to separate a word across two successive lines of text.  The
  27   34       hyphen does not need to be escaped:
  28   35  
  29   36             blue-eyed
  30   37             lorry-driver
  31   38  
       39 +     The en-dash is used to separate the two elements of a range, or can be
       40 +     used the same way as an em-dash.  It should be written as `\(en':
       41 +
       42 +           pp. 95\(en97.
       43 +           Go away \(en or else!
       44 +
       45 +     The em-dash can be used to show an interruption or can be used the same
       46 +     way as colons, semi-colons, or parentheses.  It should be written as
       47 +     `\(em':
       48 +
       49 +           Three things \(em apples, oranges, and bananas.
       50 +           This is not that \(em rather, this is that.
       51 +
       52 +     In mandoc_roff(5) documents, the minus sign is normally written as `\-'.
       53 +     In manual pages, some style guides recommend to also use `\-' if an ASCII
       54 +     0x2d "hyphen-minus" output glyph that can be copied and pasted is desired
       55 +     in output modes supporting it, for example in -T utf8 and -T html.  But
       56 +     currently, no practically relevant manual page formatter actually
       57 +     requires that subtlety, so in manual pages just write plain `-' to
       58 +     represent hyphen, minus, and hyphen-minus.
       59 +
  32   60       If a word on a text input line contains a hyphen, a formatter may decide
  33   61       to insert an output line break after the hyphen if that helps filling the
  34   62       current output line, but the whole word would overflow the line.  If it
  35   63       is important that the word is not broken across lines in this way, a
  36   64       zero-width space (`\&') can be inserted before or after the hyphen.
  37   65       While mandoc(1) never breaks the output line after hyphens adjacent to a
  38   66       zero-width space, after any of the other dash- or hyphen-like characters
  39   67       represented by escape sequences, or after hyphens inside words in macro
  40   68       arguments, other software may not respect these rules and may break the
  41   69       line even in such cases.
  42   70  
  43   71       Some mandoc_roff(5) implementations contains dictionaries allowing to
  44   72       break the line at syllable boundaries even inside words that contain no
  45   73       hyphens.  Such automatic hyphenation is not supported by mandoc(1), which
  46   74       only breaks the line at whitespace, and inside words only after existing
  47   75       hyphens.
  48   76  
  49      -     The mathematical minus sign is used for negative numbers or subtraction.
  50      -     It should be written as `\(mi':
  51      -
  52      -           a = 3 \(mi 1;
  53      -           b = \(mi2;
  54      -
  55      -     The en-dash is used to separate the two elements of a range, or can be
  56      -     used the same way as an em-dash.  It should be written as `\(en':
  57      -
  58      -           pp. 95\(en97.
  59      -           Go away \(en or else!
  60      -
  61      -     The em-dash can be used to show an interruption or can be used the same
  62      -     way as colons, semi-colons, or parentheses.  It should be written as
  63      -     `\(em':
  64      -
  65      -           Three things \(em apples, oranges, and bananas.
  66      -           This is not that \(em rather, this is that.
  67      -
  68      -     Note: hyphens, minus signs, and en-dashes look identical under normal
  69      -     ASCII output.  Other formats, such as PostScript, render them correctly,
  70      -     with differing widths.
  71      -
  72   77     Spaces
  73   78       To separate words in normal text, for indenting and alignment in literal
  74   79       context, and when none of the following special cases apply, just use the
  75   80       normal space character (` ').
  76   81  
  77   82       When filling text, output lines may be broken between words, i.e. at
  78   83       space characters.  To prevent a line break between two particular words,
  79   84       use the unpaddable non-breaking space escape sequence (`\ ') instead of
  80   85       the normal space character.  For example, the input string "number\ 1"
  81   86       will be kept together as "number 1" on the same output line.
↓ open down ↓ 123 lines elided ↑ open up ↑
 205  210             \(r?     ?           upside-down question
 206  211  
 207  212       Quotes:
 208  213             Input    Rendered    Description
 209  214             \(Bq     ,,          right low double-quote
 210  215             \(bq     ,           right low single-quote
 211  216             \(lq     "           left double-quote
 212  217             \(rq     "           right double-quote
 213  218             \(oq     `           left single-quote
 214  219             \(cq     '           right single-quote
 215      -           \(aq     '           apostrophe quote (text)
 216      -           \(dq     "           double quote (text)
      220 +           \(aq     '           apostrophe quote (ASCII character)
      221 +           \(dq     "           double quote (ASCII character)
 217  222             \(Fo     <<          left guillemet
 218  223             \(Fc     >>          right guillemet
 219  224             \(fo     <           left single guillemet
 220  225             \(fc     >           right single guillemet
 221  226  
 222  227       Brackets:
 223  228             Input                Rendered    Description
 224  229             \(lB                 [           left bracket
 225  230             \(rB                 ]           right bracket
 226  231             \(lC                 {           left brace
 227  232             \(rC                 }           right brace
 228  233             \(la                 <           left angle
 229  234             \(ra                 >           right angle
 230      -           \(bv                 |           brace extension
      235 +           \(bv                 |           brace extension (special font)
 231  236             \[braceex]           |           brace extension
 232  237             \[bracketlefttp]     |           top-left hooked bracket
 233  238             \[bracketleftbt]     |           bottom-left hooked bracket
 234  239             \[bracketleftex]     |           left hooked bracket extension
 235  240             \[bracketrighttp]    |           top-right hooked bracket
 236  241             \[bracketrightbt]    |           bottom-right hooked bracket
 237  242             \[bracketrightex]    |           right hooked bracket extension
 238  243             \(lt                 ,-          top-left hooked brace
 239  244             \[bracelefttp]       ,-          top-left hooked brace
 240  245             \(lk                 {           mid-left hooked brace
↓ open down ↓ 28 lines elided ↑ open up ↑
 269  274             \(hA     <=>         left-right double-arrow
 270  275             \(uA     ^           up double-arrow
 271  276             \(dA     v           down double-arrow
 272  277             \(vA     ^=v         up-down double-arrow
 273  278             \(an     -           horizontal arrow extension
 274  279  
 275  280       Logical:
 276  281             Input    Rendered    Description
 277  282             \(AN     ^           logical and
 278  283             \(OR     v           logical or
 279      -           \(no     ~           logical not
 280      -           \[tno]   ~           logical not (text)
      284 +           \[tno]   ~           logical not (text font)
      285 +           \(no     ~           logical not (special font)
 281  286             \(te     <there exists>
 282  287                                  existential quantifier
 283  288             \(fa     <for all>   universal quantifier
 284  289             \(st     <such that> such that
 285  290             \(tf     <therefore> therefore
 286  291             \(3d     <therefore> therefore
 287  292             \(or     |           bitwise or
 288  293  
 289  294       Mathematical:
 290  295             Input            Rendered    Description
 291      -           \(pl             +           plus
 292      -           \(mi             -           minus
 293      -           \-               -           minus (text)
      296 +           \-               -           minus (text font)
      297 +           \(mi             -           minus (special font)
      298 +           +                +           plus (text font)
      299 +           \(pl             +           plus (special font)
 294  300             \(-+             -+          minus-plus
 295      -           \(+-             +-          plus-minus
 296      -           \[t+-]           +-          plus-minus (text)
      301 +           \[t+-]           +-          plus-minus (text font)
      302 +           \(+-             +-          plus-minus (special font)
 297  303             \(pc             .           center-dot
 298      -           \(mu             x           multiply
 299      -           \[tmu]           x           multiply (text)
      304 +           \[tmu]           x           multiply (text font)
      305 +           \(mu             x           multiply (special font)
 300  306             \(c*             x           circle-multiply
 301  307             \(c+             +           circle-plus
 302      -           \(di             /           divide
 303      -           \[tdi]           /           divide (text)
      308 +           \[tdi]           /           divide (text font)
      309 +           \(di             /           divide (special font)
 304  310             \(f/             /           fraction
 305  311             \(**             *           asterisk
 306  312             \(<=             <=          less-than-equal
 307  313             \(>=             >=          greater-than-equal
 308  314             \(<<             <<          much less
 309  315             \(>>             >>          much greater
 310  316             \(eq             =           equal
 311  317             \(!=             !=          not equal
 312  318             \(==             ==          equivalent
 313  319             \(ne             !==         not equivalent
↓ open down ↓ 83 lines elided ↑ open up ↑
 397  403             \'       '           acute
 398  404             \(ga     `           grave
 399  405             \`       `           grave
 400  406             \(ab     `           breve
 401  407             \(ac     ,           cedilla
 402  408             \(ad     "           dieresis
 403  409             \(ah     v           caron
 404  410             \(ao     o           ring
 405  411             \(a~     ~           tilde
 406  412             \(ho     ,           ogonek
 407      -           \(ha     ^           hat (text)
 408      -           \(ti     ~           tilde (text)
      413 +           \(ha     ^           hat (ASCII character)
      414 +           \(ti     ~           tilde (ASCII character)
 409  415  
 410  416       Accented letters:
 411  417             Input    Rendered    Description
 412  418             \('A     A           acute A
 413  419             \('E     E           acute E
 414  420             \('I     I           acute I
 415  421             \('O     O           acute O
 416  422             \('U     U           acute U
 417  423             \('a     a           acute a
 418  424             \('e     e           acute e
↓ open down ↓ 219 lines elided ↑ open up ↑
 638  644  
 639  645  AUTHORS
 640  646       The mandoc_char manual page was written by Kristaps Dzonsons
 641  647       <kristaps@bsd.lv>.
 642  648  
 643  649  CAVEATS
 644  650       The predefined string `\*(Ba' mimics the behaviour of the `|' character
 645  651       in mdoc(5); thus, if you wish to render a vertical bar with no side
 646  652       effects, use the `\(ba' escape.
 647  653  
 648      -illumos                          June 14, 2017                         illumos
      654 +illumos                         August 8, 2018                         illumos
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX