diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-07 15:04:54 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-07 15:04:54 +0000 |
commit | f8c0611295a680d000a73fd31fe26580fa4b4a75 (patch) | |
tree | e4b7c328bb59fbbd203bdb3ec68d849b0036f345 /roff.7 | |
parent | 4c444b6d0742002389376d67d51070f1b5aedadf (diff) | |
download | mandoc-f8c0611295a680d000a73fd31fe26580fa4b4a75.tar.gz |
Re-constitution of `ds' symbol processing. First, push the
roff_getstr() family of functions into roff.c with the "first_string"
directly in struct roff. Second, pre-process each line for reserved
words in libroff, splicing and re-running a line if it has one (this
allows defined symbols to be macros). Remove term.c's invocation of the
roff_getstrn() function. Removed function documentation in roff.3 and
added roff.7 `ds' documentation.
Diffstat (limited to 'roff.7')
-rw-r--r-- | roff.7 | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -92,11 +92,20 @@ The syntax of this macro is the same as that of except that a leading argument must be specified. It is ignored, as are its children. .Ss \&ds -Define a string. -This macro is intended to have two arguments, -the name of the string to define and its content. -Currently, it is ignored including its arguments, -and the number of arguments is not checked. +Define a reserved word. +Its syntax is as follows: +.Pp +.D1 Pf \. Sx \&ds No Cm key val +.Pp +The +.Cm key +and +.Cm val +strings are space-separated. +The +.Cm key +values may be invoked in subsequent text by using \e*(NN for two-letter +pairs, \e*N for one-letter, and \e*[NNN] for arbitrary-length values. .Ss \&de1 The syntax of this macro is the same as that of .Sx \&ig , |