/contrib/groff/contrib/mom/momdoc/definitions.html

https://bitbucket.org/freebsd/freebsd-head/ · HTML · 768 lines · 705 code · 63 blank · 0 comment · 0 complexity · 3aef14acd6495967829bea5452045f0d MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5. <title>Mom -- Definitions and Terms</title>
  6. </head>
  7. <body bgcolor="#dfdfdf">
  8. <!====================================================================>
  9. <a href="using.html#TOP">Next</a>&nbsp;&nbsp;
  10. <a href="intro.html#TOP">Prev</a>&nbsp;&nbsp;
  11. <a href="toc.html">Back to Table of Contents</a>
  12. <p>
  13. <a name="TOP"></a>
  14. <a name="TERMS">
  15. <h1 align="center"><u>DEFINITIONS OF TERMS USED IN THIS MANUAL</u></h1>
  16. </a>
  17. <a href="#TERMS_TYPESETTING">Typesetting Terms</a>
  18. <br>
  19. <a href="#TERMS_GROFF">Groff Terms</a>
  20. <br>
  21. <a href="#TERMS_MOM">Mom Document Processing Terms</a>
  22. <p>
  23. I use a number of typesetting-specific and groff-specific terms
  24. throughout this documentation, as well as a few terms that apply
  25. to <strong>mom</strong> herself. To make life easier, I'll explain
  26. them here. Refer back to this section should you encounter a word
  27. or concept you're not familiar with.
  28. <p>
  29. <hr>
  30. <a name="TERMS_TYPESETTING">
  31. <h2><u>Typesetting terms</u></h2>
  32. </a>
  33. <ul>
  34. <li><a href="#TERMS_ASCENDER">Ascender</a>
  35. <li><a href="#TERMS_BASELINE">Baseline</a>
  36. <li><a href="#TERMS_BALLOTBOX">Ballot box</a>
  37. <li><a href="#TERMS_BULLET">Bullet</a>
  38. <li><a href="#TERMS_CAPHEIGHT">Cap-height</a>
  39. <li><a href="#TERMS_DESCENDER">Descender</a>
  40. <li><a href="#TERMS_DISCRETIONARYHYPHEN">Discretionary hyphen</a>
  41. <li><a href="#TERMS_DROPCAP">Drop cap</a>
  42. <li><a href="#TERMS_EM">Em/en</a>
  43. <li><a href="#TERMS_FAMILY">Family</a>
  44. <li><a href="#TERMS_FIGURESPACE">Figure space/Digit space</a>
  45. <li><a href="#TERMS_FIXEDWIDTHSPACE">Fixed width space</a>
  46. <li><a href="#TERMS_FONT">Font</a>
  47. <li><a href="#TERMS_FORCE">Force justify</a>
  48. <li><a href="#TERMS_JUST">Justify/justification</a>
  49. <li><a href="#TERMS_GUTTER">Gutter</a>
  50. <li><a href="#TERMS_KERN">Kerning</a>
  51. <li><a href="#TERMS_KERNUNIT">Kern Units</a>
  52. <li><a href="#TERMS_LEADING">Lead/leading</a>
  53. <li><a href="#TERMS_LEADER">Leaders</a>
  54. <li><a href="#TERMS_LIGATURES">Ligature</a>
  55. <li><a href="#TERMS_PICASPOINTS">Picas/Points</a>
  56. <li><a href="#TERMS_PS">Point Size</a>
  57. <li><a href="#TERMS_QUAD">Quad</a>
  58. <li><a href="#TERMS_RAG">Rag</a>
  59. <li><a href="#TERMS_SHAPE">Shape</a>
  60. <li><a href="#TERMS_SOLID">Solid/set solid</a>
  61. <li><a href="#TERMS_TRACKKERNING">Track kerning/Line kerning</a>
  62. <li><a href="#TERMS_UNBREAKABLESPACE">Unbreakable space</a>
  63. <li><a href="#TERMS_WEIGHT">Weight</a>
  64. <li><a href="#TERMS_WORDSPACE">Word space</a>
  65. <li><a href="#TERMS_XHEIGHT">x-height</a>
  66. </ul>
  67. <dl>
  68. <dt><a name="TERMS_ASCENDER"><em>Ascender</em></a>
  69. <dd>The portion of a letter that extends above the bowl. For example,
  70. the letters a, c, and e have no ascenders. The letters b, d, and h
  71. do.
  72. <dt><a name="TERMS_BASELINE"><em>Baseline</em></a>
  73. <dd>The imaginary line on which the bottoms of capital letters and the
  74. bowls of lower case letters rest.
  75. <dt><a name="TERMS_BALLOTBOX"><em>Ballot box</em></a>
  76. <dd>An unfilled square, usually
  77. <a href="#TERMS_CAPHEIGHT">cap-height</a>
  78. in size, typically placed beside items in a checklist.
  79. <dt><a name="TERMS_BULLET"><em>Bullet</em></a>
  80. <dd>A small, filled circle typically found beside items or points in
  81. a list.
  82. <dt><a name="TERMS_CAPHEIGHT"><em>Cap-height</em></a>
  83. <dd>The height of the tallest capital letter in a given
  84. <a href="#TERMS_FONT">font</a>
  85. at the current
  86. <a href="#TERMS_PS">point size</a>.
  87. <dt><a name="TERMS_DESCENDER"><em>Descender</em></a>
  88. <dd>The portion of a letter that extends beneath the
  89. <a href="#TERMS_BASELINE">baseline</a>
  90. (j, q, y are letters with descenders).
  91. <dt><a name="TERMS_DISCRETIONARYHYPHEN"><em>Discretionary hyphen</em></a>
  92. <dd>A symbol inserted between two syllables of a word that indicates to a
  93. typesetting program the legal hyphenation points in the word. Normally,
  94. if hyphenation is turned on, groff knows where to hyphenate words.
  95. However, hyphenation being what it is (in English, at any rate),
  96. groff doesn't always get it right. Discretionary hyphens make sure
  97. it does. In the event that the word doesn't need to be hyphenated
  98. at all, groff leaves them alone. In groff, the discretionary hyphen is
  99. entered with
  100. <p>
  101. <pre>
  102. \%
  103. </pre>
  104. (backslash followed by a percent).
  105. <dt><a name="TERMS_DROPCAP"><em>Drop cap</em></a>
  106. <dd>A large, usually upper-case letter that introduces the first
  107. paragraph of a document or section thereof. The top of the drop
  108. cap usually lines up with the top of the first line of the
  109. paragraph, and typically &quot;drops&quot; several lines lower.
  110. Text adjacent to the drop cap is indented to the right of the
  111. letter until the bottom of the drop cap is reached, at which
  112. point text reverts to the left margin.
  113. <dt><a name="TERMS_EM"><em>Em/en</em></a>
  114. <dd>An em is a relative measurement equal to the width of the
  115. letter M at a given
  116. <a href="#TERMS_PS">point size</a>
  117. in a given
  118. <a href="#TERMS_FONT">font</a>.
  119. Since most Ms are designed square, an em is usually (but sometimes
  120. erroneously) considered to be the same size as the current point
  121. size (i.e. if the point size of the type is 12, one em equals 12
  122. points). An en is equal to the width of a letter N (historically
  123. 2/3 of an em, although groff treats an en as 1/2 of an em).
  124. Typically, ems and ens are used to measure indents, or to define the
  125. length of dashes (long hyphens).
  126. <dt><a name="TERMS_FAMILY"><em>Family</em></a>
  127. <dd>The collective name by which a collection of
  128. <a href="#TERMS_FONT">fonts</a>
  129. are known, e.g. Helvetica, Times Roman, Garamond.
  130. <dt><a name="TERMS_FIGURESPACE"><em>Figure space/Digit space</em></a>
  131. <dd>A
  132. <a href="#TERMS_FIXEDWIDTHSPACE">fixed width space</a>
  133. that has the width of one digit. Used for aligning numerals in,
  134. say, columns or numbered lists. In groff, the figure space is
  135. entered with
  136. <p>
  137. <pre>
  138. \0
  139. </pre>
  140. (backslash followed by a zero).
  141. <dt><a name="TERMS_FIXEDWIDTHSPACE"><em>Fixed width space</em></a>
  142. <dd>Equal to
  143. <a href="#TERMS_WORDSPACE">word space</a>,
  144. but does not expand or contract when text is
  145. <a href="#TERMS_JUST">justified</a>.
  146. In groff, fixed width space is entered with
  147. <p>
  148. <pre>
  149. \&lt;space&gt;
  150. </pre>
  151. where &lt;space&gt; means "hit the spacebar on your keyboard."
  152. <dt><a name="TERMS_FONT"><em>Font</em></a>
  153. <dd>The specific
  154. <a href="#TERMS_WEIGHT">weight</a>
  155. and
  156. <a href="#TERMS_SHAPE">shape</a>
  157. of type within a
  158. <a href="#TERMS_FAMILY">family</a>,
  159. e.g. light, medium, bold (which are weights), and roman, italic,
  160. condensed (which are shapes). By default, groff knows of four fonts
  161. within its default set of families: R (medium roman), I (medium
  162. italic), B (bold roman) and BI (bold italic).
  163. <dt><a name="TERMS_FORCE"><em>Force justify
  164. </em></a>
  165. <dd>Sometimes, in
  166. <a href="#TERMS_JUST">justified</a>
  167. text, a line needs to be broken short of the right margin. Force
  168. justifying means telling a typesetting program (like groff) that you
  169. want the line broken early AND that you want the line's word spacing
  170. stretched to force the line flush with the right margin.
  171. <dt><a name="TERMS_GUTTER"><em>Gutter</em></a>
  172. <dd>The vertical whitespace separating columns of type.
  173. <dt><a name="TERMS_JUST"><em>Justify/justification</em></a>
  174. <dd>Lines of type are justified when they're flush at both the left and
  175. right margins. Justification is the act of making both margins flush.
  176. Some people use the terms "left justified" and "right justified"
  177. to mean type where only the left (or right) margins align. I don't.
  178. See
  179. <a href="#TERMS_QUAD">quad</a>.
  180. <dt><a name="TERMS_KERN"><em>Kerning</em></a>
  181. <dd>Moving pairs of letters closer together to remove excess
  182. whitespace between them. In the days before phototypesetting,
  183. type was set from small, rectangular blocks of wood or metal, each
  184. block having exactly one letter. Because the edge of each block
  185. determined the edge of each letter, certain letter combinations (TA,
  186. for example) didn't fit together well and had to be mortised by hand
  187. to bring them visually closer. Modern typesetting systems usually
  188. take care of kerning automatically, but they're far from perfect.
  189. Professional typesetters still devote a lot of time to fitting letters
  190. and punctuation together properly.
  191. <dt><a name="TERMS_KERNUNIT"><em>Kern Units</em></a>
  192. <dd>A relative distance equal to 1/36 of the current
  193. <a href="#TERMS_PS">point size</a>.
  194. Used between individual letters
  195. for
  196. <a href="#TERMS_KERN">kerning</a>.
  197. Different typesetting systems use different values (1/54 is
  198. popular), and sometimes call kern units by a different name.
  199. <p>
  200. <strong>Experts:
  201. <br></strong>A kern unit has nothing to do with groff
  202. machine units.
  203. <dt><a name="TERMS_LEADING"><em>Lead/leading</em></a>
  204. <dd>The distance from the
  205. <a href="#TERMS_BASELINE">baseline</a>
  206. of one line of type to the line of type immediately beneath it.
  207. Pronounced "ledding." Also called line spacing. Usually measured
  208. in
  209. <a href="#TERMS_PICASPOINTS">points</a>.
  210. <p>
  211. <em>In case you're interested...</em> In previous centuries,
  212. lines of type were separated by thin strips of--you guessed
  213. it--lead. Lines of type that had no lead between them were said to
  214. be &quot;set solid.&quot; Once you began separating them with strips
  215. of lead, they were said to be &quot;leaded&quot;, and the spacing was
  216. expressed in terms of the number of
  217. <a href="#TERMS_PICASPOINTS">points</a>
  218. of lead. For this reason, &quot;leading&quot; and &quot;line
  219. spacing&quot; aren't, historically speaking, synonymous. If type
  220. was set 10 on 12, for example, the leading was 2 points, not 12.
  221. Nowadays, however, the two terms are used interchangeably to mean
  222. the distance from baseline to baseline.
  223. <dt><a name="TERMS_LEADER"><em>Leaders</em></a>
  224. <dd>Single characters used to fill lines, usually to their end.
  225. So called because they &quot;lead&quot; the eye from one element
  226. of the page to another. For example, in the following (brief)
  227. Table of Contents, the periods (dots) are leaders.
  228. <p>
  229. <pre>
  230. Foreword............... 2
  231. Chapter 1.............. 5
  232. Chapter 2.............. 38
  233. Chapter 3.............. 60
  234. </pre>
  235. <dt><a name="TERMS_LIGATURES"><em>Ligature</em></a>
  236. <dd>Ligatures are letters joined together to form a single character.
  237. The commonest are fi, fl, ff, ffi and ffl. Others are ae and oe.
  238. Occasionally, one sees an st ligature, but this is archaic and
  239. quite rare.
  240. <dt><a name="TERMS_PICASPOINTS"><em>Picas/Points</em></a>
  241. <dd>There are twelve points in a pica, and six picas in an inch
  242. (hence 72 points to the inch). In the same way that gem-dealers
  243. have always used their own system of measurement for weight (carats),
  244. typographers have always used their own system of measurement for type.
  245. <dt><a name="TERMS_PS"><em>Point Size</em></a>
  246. <dd>The nominal size of type, measured in
  247. <a href="#TERMS_PICASPOINTS">points</a>
  248. from the bottom of the longest
  249. <a href="#TERMS_DESCENDER">descender</a>
  250. to the top of the highest
  251. <a href="#TERMS_ASCENDER">ascender</a>.
  252. In reality, type is always fractionally smaller than its point size.
  253. <dt><a name="TERMS_QUAD"><em>Quad</em></a>
  254. <dd>When only one margin of type is flush, lines of type are quadded in
  255. the direction of the flush margin. Therefore, quad left means the
  256. left margin is flush, the right isn't. Quad right means the right
  257. margin is flush, the left isn't. Quad centre means neither the left
  258. nor the right margin is flush; rather, lines of type are quadded on
  259. both sides so that type appears centred on the page.
  260. <dt><a name="TERMS_RAG"><em>Rag</em></a>
  261. <dd>Describes a margin that isn't flush. Rag right means the right
  262. margin isn't flush. Rag left means the left margin isn't flush.
  263. The expression "flush left/rag right" is sometimes used to describe
  264. type that is
  265. <a href="#TERMS_QUAD">quadded</a>
  266. left.
  267. <dt><a name="TERMS_SHAPE"><em>Shape</em></a>
  268. <dd>The degree of slant and/or the width of characters.
  269. (Technically speaking, this is not a proper typesetting term;
  270. however, it may help clarify some concepts presented in these
  271. documents.)
  272. <p>
  273. Some typical shapes are:
  274. <ul>
  275. <li>&quot;Roman&quot;, which has no slant, and has letterforms of
  276. average width
  277. <li>&quot;Italic&quot;, which is slanted, and has letterforms
  278. of average width
  279. <li>&quot;Condensed&quot;, which has no slant, but has
  280. letterforms narrower than the average represented by Roman
  281. <li>&quot;Condensed Italic&quot;, which is slanted, with letterforms narrower
  282. than average
  283. </ul>
  284. The term
  285. <a href="#TERMS_FONT">font</a>,
  286. as it is used in these documents, refers to a combination of
  287. <a href="#TERMS_WEIGHT">weight</a>
  288. and shape.
  289. <dt><a name="TERMS_SOLID"><em>Solid/set solid</em></a>
  290. <dd>When no
  291. <a href="#TERMS_LEADING">lead</a>
  292. is added between lines of type (i.e. the
  293. <a href="#TERMS_PS">point size</a>
  294. and linespacing are the same), the lines are said to be &quot;set
  295. solid.&quot;
  296. <dt><a name="TERMS_TRACKKERNING"><em>Track kerning/Line kerning</em></a>
  297. <dd>Sometimes, it's advantageous to increase or decrease the amount of
  298. space between every letter in a line by an equal (usually small)
  299. amount, in order to fit more (or fewer) characters on the line.
  300. The correct term is letter spacing, but track kerning and line kerning
  301. (and sometimes, just "kerning") have come to mean the same thing.
  302. <dt><a name="TERMS_UNBREAKABLESPACE"><em>Unbreakable space</em></a>
  303. <dd>Equal to
  304. <a href="#TERMS_WORDSPACE">word space</a>,
  305. however words separated by an unbreakable space will always be kept
  306. together on the same line. Expands and contracts like word space.
  307. Useful for proper names, which one should, whenever possible, avoid
  308. splitting onto two lines. In groff, unbreakable space is entered
  309. with
  310. <p>
  311. <pre>
  312. \~
  313. </pre>
  314. (backslash followed by a tilde).
  315. <dt><a name="TERMS_WEIGHT"><em>Weight</em></a>
  316. <dd>The thickness of the strokes of letterforms. Medium and Book
  317. have average thicknesses and are the weights used for most of the
  318. text in books, magazines, newspapers, etc. Light has strokes
  319. slightly thinner than Medium or Book, but is still acceptable for
  320. most text. Semibold, Bold, Heavy and Black all have strokes of
  321. increasing thickness, making them suitable for heads, subheads,
  322. headlines and the like.
  323. <dt><a name="TERMS_WORDSPACE"><em>Word space</em></a>
  324. <dd>The amount of whitespace between words. When text is
  325. <a href="#TERMS_JUST">justified</a>,
  326. word space expands or contracts to make the margins flush.
  327. <dt><a name="TERMS_XHEIGHT"><em>x-height</em></a>
  328. <dd>The height of a lower case letter x in a given font at a given
  329. point size. Generally used to mean the average height of the bowl
  330. of lower case letters.
  331. </dl>
  332. <p>
  333. <hr>
  334. <a name="TERMS_GROFF">
  335. <h2><u>Groff terms</u></h2>
  336. </a>
  337. <ul>
  338. <li><a href="#TERMS_ALIAS">Alias</a>
  339. <li><a href="#TERMS_ARGUMENTS">Arguments</a>
  340. <li><a href="#TERMS_COMMENTLINES">Comment lines</a>
  341. <li><a href="#TERMS_CONTROLLINES">Control Lines</a>
  342. <li><a href="#TERMS_FILLED">Filled lines</a>
  343. <li><a href="#TERMS_INLINES">Inline escapes</a>
  344. <li><a href="#TERMS_INPUTLINE">Input line</a>
  345. <li><a href="#TERMS_MACROS">Macros</a>
  346. <li><a href="#TERMS_UNITS">Machine units</a>
  347. <li><a href="#TERMS_NUMERICARGUMENT">Numeric argument</a>
  348. <li><a href="#TERMS_OUTPUTLINE">Output line</a>
  349. <li><a href="#TERMS_PRIMITIVES">Primitives</a>
  350. <li><a href="#TERMS_STRINGARGUMENT">String Argument</a>
  351. <li><a href="#TERMS_UNITOFMEASURE">Unit of measure</a>
  352. <li><a href="#TERMS_ZEROWIDTHCHARACTER">Zero-width character</a>
  353. </ul>
  354. <dl>
  355. <dt><a name="TERMS_ALIAS"><em>Alias</em></a>
  356. <dd>A
  357. <a href="#TERMS_MACROS">macro</a>
  358. invoked by a name different from its &quot;official&quot;
  359. name. For example, the official name of the macro to change
  360. <a href="#TERMS_FAMILY">family</a>
  361. is <strong>FAMILY</strong>. Its alias is
  362. <strong>FAM</strong>. Aliases may be created for any macro (via the
  363. <a href="goodies.html#ALIAS">ALIAS</a>
  364. macro) provided the alias uses a name not already taken
  365. by the <strong>mom</strong> macros or one of the groff
  366. <a href="#TERMS_PRIMITIVES">primitives</a>.
  367. For a complete list of words or names you must not use, see the
  368. <a href="reserved.html#RESERVED">list of reserved words</a>.
  369. <dt><a name="TERMS_ARGUMENTS"><em>Arguments</em></a>
  370. <dd>Parameters or information needed by a
  371. <a href="#TERMS_MACROS">macro</a>
  372. to do its job. For example, in the macro
  373. <p>
  374. <pre>
  375. .PT_SIZE 12
  376. </pre>
  377. &quot;12&quot; is the argument. In the macro
  378. <p>
  379. <pre>
  380. .QUAD LEFT
  381. </pre>
  382. LEFT is the argument. Arguments are separated from macros by spaces.
  383. Some macros require several arguments; each is separated by a space.
  384. <dt><a name="TERMS_COMMENTLINES"><em>Comment Lines</em></a>
  385. <dd><a href="#TERMS_INPUTLINE">Input lines</a>
  386. introduced with the comment character
  387. <p>
  388. <pre>
  389. \#
  390. </pre>
  391. When processing output, groff silently ignores everything on a
  392. line that begins with the comment character.
  393. <dt><a name="TERMS_CONTROLLINES"><em>Control Lines</em></a>
  394. <dd>Instructions to groff that appear on a line by themselves,
  395. which means that &quot;control lines&quot; are either
  396. <a href="#TERMS_MACROS">macros</a>
  397. or groff
  398. <a href="#TERMS_PRIMITIVES">primitives</a>.
  399. Control lines begin with a period or, occasionally, an apostrophe.
  400. <dt><a name="TERMS_FILLED"><em>Filled lines/fill mode</em></a>
  401. <dd>Automatic
  402. <a href="#TERMS_JUST">justification</a>
  403. or
  404. <a href="#TERMS_QUAD">quadding</a>.
  405. In fill mode, the ends of lines as they appear in your text editor
  406. are ignored. Instead, words from adjoining
  407. <a href="#TERMS_INPUTLINE">input lines</a>
  408. are added one at a time to the output line until no more words fit.
  409. Then, depending whether text is to be
  410. <a href="#TERMS_JUST">justified</a>
  411. or
  412. <a href="#TERMS_QUAD">quadded</a>
  413. (left, right, or centre), and depending on whether automatic
  414. hyphenation is turned on, groff attempts to hyphenate the last word,
  415. or, barring that, spreads and breaks the line (when justification
  416. is turned on) or breaks and quads the line (when quadding is turned
  417. on).
  418. <p>
  419. <a name="TERMS_NOFILL"></a>
  420. Nofill mode (non-filled text) means that groff respects the ends
  421. of lines as they appear in your text editor.
  422. <dt><a name="TERMS_INLINES"><em>Inline escapes</em></a>
  423. <dd>Instructions issued to groff that appear as part of an
  424. <a href="#TERMS_INPUTLINE">input line</a>
  425. (as opposed to
  426. <a href="#TERMS_MACROS">macros</a>,
  427. which must appear on a line by themselves). Inline escapes are
  428. always introduced by the backslash character. For example,
  429. <p>
  430. <pre>
  431. A line of text with the word T\*[BU 2]oronto in it
  432. </pre>
  433. contains the inline escape \*[BU 2] (which means &quot;move the letter
  434. 'o' 2
  435. <a href="#TERMS_KERNUNIT">kern units</a>
  436. closer to the letter 'T'&quot;).
  437. <p>
  438. <strong>Mom</strong>'s inline escapes always take the form
  439. <strong>\*[</strong><i>ESCAPE</i><strong>]</strong>, where <i>ESCAPE</i>
  440. is composed of capital letters, sometimes followed immediately
  441. by a digit, sometimes followed by a space and a
  442. <a href="#TERMS_NUMERICARGUMENT">numeric argument</a>.
  443. <strong>Groff</strong>'s escapes begin with the backslash character
  444. but typically have no star and are in lower case. For example, the
  445. <strong>mom</strong> escapes to move forward 6 points on a line are
  446. either
  447. <p>
  448. <pre>
  449. \*[FP6]&nbsp;&nbsp;or&nbsp;&nbsp;\*[FWD 6p]
  450. </pre>
  451. while the <strong>groff</strong> escape for the same thing is
  452. <p>
  453. <pre>
  454. \h'6p'
  455. </pre>
  456. <dt><a name="TERMS_INPUTLINE"><em>Input line</em></a>
  457. <dd>A line of text as it appears in your text editor.
  458. <dt><a name="TERMS_MACROS"><em>Macros</em></a>
  459. <dd>Instructions embedded in a document that determine how groff processes
  460. the text for output. <strong>mom</strong>'s macros always begin with a
  461. period, on a line by themselves, and must be typed in capital letters.
  462. Typically, macros contain complex commands issued to groff--behind
  463. the scenes--via groff
  464. <a href="#TERMS_PRIMITIVES">primitives</a>.
  465. <dt><a name="TERMS_UNITS"><em>Machine units</em></a>
  466. <dd>A machine unit is 1/1000 of a
  467. <a href="#TERMS_PICASPOINTS">point</a>
  468. when the groff device is ps. (&quot;ps&quot; means
  469. &quot;PostScript&quot;--the default device for which groff
  470. prepares output, and the device for which <strong>mom</strong> was
  471. specifically designed.)
  472. <dt><a name="TERMS_NUMERICARGUMENT"><em>Numeric argument</em></a>
  473. <dd>An
  474. <a href="#TERMS_ARGUMENT">argument</a>
  475. that has the form of a digit. Numeric arguments can be built out
  476. of arithmetic expressions using +, -, *, and / for plus, minus,
  477. times, and divided-by respectively. If a numeric argument requires
  478. a
  479. <a href="#TERMS_UNITOFMEASURE">unit of measure</a>,
  480. a unit of measure must be appended to <em>every</em> digit in the
  481. argument. For example:
  482. <p>
  483. <pre>
  484. .ALD 1i-1v
  485. </pre>
  486. <strong>NOTE:</strong> groff does not respect the order of operations,
  487. but rather evaluates arithmetic expressions from left to right.
  488. Parentheses must be used to circumvent this peculiarity. Not to
  489. worry, though. The likelihood of more than just the occasional plus
  490. or minus sign when using <strong>mom</strong>'s macros is slim.
  491. <dt><a name="TERMS_OUTPUTLINE"><em>Output line</em></a>
  492. <dd>A line of text as it appears in output copy.
  493. <dt><a name="TERMS_PRIMITIVES"><em>Primitives</em></a>
  494. <dd>The two-letter, lower case instructions groff uses as its
  495. native command language, and out of which macros are built.
  496. <dt><a name="TERMS_STRINGARGUMENT"><em>String Argument</em></a>
  497. <dd>Technically, any
  498. <a href="#TERMS_ARGUMENTS">argument</a>
  499. that is not numeric. In this documentation, string argument means
  500. an argument that requires the user to input text. For example, in
  501. the
  502. <a href="#TERMS_MACROS">macro</a>
  503. <p>
  504. <pre>
  505. .TITLE "My Pulitzer Novel"
  506. </pre>
  507. &quot;My Pulitzer Novel&quot; is a string argument.
  508. <p>
  509. Because string arguments must be enclosed by double-quotes, you can't
  510. use double-quotes as part of the string argument. If you need
  511. double-quotes to be part of a string argument, use the
  512. <a href="#TERMS_INLINES">inline escapes</a>
  513. <strong>\(lq</strong> and <strong>\(rq</strong> (leftquote and rightquote
  514. respectively) in place of the double-quote character (").
  515. <dt><a name="TERMS_UNITOFMEASURE"><em>Unit of measure</em></a>
  516. <dd>The single letter after a
  517. <a href="#TERMS_NUMERICARGUMENT">numeric argument</a>
  518. that tells <strong>mom</strong> what measurement scale the argument
  519. should use. Common valid units are:
  520. <p>
  521. <table valign="baseline" summary="unitsofmeasure">
  522. <tr><td><strong>i</strong><td> = <td>inches
  523. <tr><td><strong>p</strong><td> = <td>points
  524. <tr><td><strong>P</strong><td> = <td>picas
  525. <tr><td><strong>c</strong><td> = <td>centimetres
  526. <tr><td><strong>m</strong><td> = <td>ems
  527. <tr><td><strong>n</strong><td> = <td>ens
  528. <tr><td><strong>v</strong><td> = <td>the current leading (line space)</td></tr>
  529. </table>
  530. <br>
  531. <dd>Units of measure must come immediately after the numeric argument (i.e.
  532. with no space between the argument and the unit of measure), like this:
  533. <p>
  534. <pre>
  535. .ALD 2v
  536. .LL 39P
  537. .IL 1i
  538. </pre>
  539. The above example advances 2 line spaces and sets the line length to
  540. 39 picas with a left indent of 1 inch.
  541. <p>
  542. <strong>IMPORTANT:</strong> Most <strong>mom</strong> macros
  543. that set the size or measure of something MUST be given a unit of
  544. measure. <strong>mom</strong>'s macros do not have default units
  545. of measure. There are a couple of exceptions, the most notable of
  546. which are <strong>PT_SIZE</strong> and <strong>LS</strong>. Both use
  547. <a href="#TERMS_PICASPOINTS">points</a>
  548. as the default unit of measure, which means
  549. you don't have to append &quot;p&quot; to their argument.
  550. <p>
  551. You can enter decimal values for any unit of measure. Different units
  552. may be combined by adding them together (e.g. 1.5i+2m, which gives a
  553. measure of 1-1/2 inches plus 2 ems).
  554. <p>
  555. <strong>NOTE:</strong> a pica is composed of 12 points,
  556. therefore 12.5 picas is 12 picas and 6 points, not 12 picas
  557. and 5 points. If you want 12 picas and 5 points, you have to
  558. enter the measure as 12P+5p.
  559. <dt><a name="TERMS_ZEROWIDTHCHARACTER"><em>Zero-width character</em></a>
  560. <dd>The
  561. <a href="#TERMS_INLINES">inline escape</a>
  562. that allows you to print a literal period, apostrophe and, if
  563. <a href="#TERMS_OUTPUTLINE">output lines</a>
  564. are
  565. <a href="#TERMS_FILLED">filled</a>,
  566. a space that falls at the beginning of an
  567. <a href="#TERMS_INPUTLINE">input line</a>.
  568. It looks like this:
  569. <p>
  570. <pre>
  571. \&amp;
  572. </pre>
  573. (backslash followed by an ampersand).
  574. <p>
  575. Normally, groff interprets a period (or an apostrophe) at the beginning
  576. of an input line as meaning that what follows is a
  577. <a href="#TERMS_CONTROLLINES">control line</a>.
  578. In fill modes, groff treats a space at the beginning of an input
  579. line as meaning &quot;start a new line and put a space at the
  580. beginning of it.&quot; If you want groff to interpret periods and
  581. apostrophes at the beginning of input lines literally (i.e. print
  582. them), or spaces at the beginning of input lines as just garden
  583. variety word spaces, you must start the line with the zero-width
  584. character.
  585. </dl>
  586. <p>
  587. <hr>
  588. <a name="TERMS_MOM">
  589. <h2><u>Mom's Document Processing Terms</u></h2>
  590. </a>
  591. <ul>
  592. <li><a href="#TERMS_BLOCKQUOTE">Blockquote</a>
  593. <li><a href="#TERMS_CONTROLMACRO">Control macro</a>
  594. <li><a href="#TERMS_DOCHEADER">Docheader</a>
  595. <li><a href="#TERMS_EPIGRAPH">Epigraph</a>
  596. <li><a href="#TERMS_FOOTER">Footer</a>
  597. <li><a href="#TERMS_HEAD">Head</a>
  598. <li><a href="#TERMS_HEADER">Header</a>
  599. <li><a href="#TERMS_LINEBREAK">Linebreak</a>
  600. <li><a href="#TERMS_PARAHEAD">Paragraph head</a>
  601. <li><a href="#TERMS_QUOTE">Quote</a>
  602. <li><a href="#TERMS_RUNNING">Running text</a>
  603. <li><a href="#TERMS_SUBHEAD">Subhead</a>
  604. <li><a href="#TERMS_TOGGLE">Toggle</a>
  605. </ul>
  606. <dl>
  607. <dt><a name="TERMS_BLOCKQUOTE"><em>Blockquote</em></a>
  608. <dd>Cited material other than
  609. <a href="#TERMS_QUOTE">quotes</a>.
  610. Typically set at a smaller point size than paragraph text, indented
  611. from the left and right margins. Blockquotes are
  612. <a href="#TERMS_FILLED">filled</a>.
  613. <dt><a name="TERMS_CONTROLMACRO"><em>Control macro</em></a>
  614. <dd>Macros used in
  615. <a href="docprocessing.html#DOCPROCESSING">document processing</a>
  616. to control/alter the appearance of document elements (e.g. heads,
  617. quotes, footnotes,
  618. <a href="#TERMS_HEADER">headers</a>,
  619. etc.).
  620. <dt><a name="TERMS_DOCHEADER"><em>Document header/docheader</em></a>
  621. <dd>Document information (title, subtitle, author, etc) output
  622. at the top of page one.
  623. <dt><a name="TERMS_EPIGRAPH"><em>Epigraph</em></a>
  624. <dd>A short, usually cited passage that appears at the
  625. beginning of a chapter, story, or other document.
  626. <dt><a name="TERMS_FOOTER"><em>Footer/page footer</em></a>
  627. <dd>Document information (frequently author and title) output in
  628. the bottom margin of pages <em>after</em> page one. Not to be
  629. confused with footnotes, which are considered part of
  630. <a href="#TERMS_RUNNING">running text</a>.
  631. <dt><a name="TERMS_HEAD"><em>Head</em></a>
  632. <dd>A title that introduces a major section of a document.
  633. <dt><a name="TERMS_HEADER"><em>Header/page header</em></a>
  634. <dd>Document information (frequently author and title) output in
  635. the top margin of pages <em>after</em> page one.
  636. <p>
  637. <strong>NOTE:</strong> In terms of content and style, headers and
  638. <a href="#TERMS_FOOTER">footers</a>
  639. are the same; they differ only in their placement on the page. In
  640. most places in this documentation, references to the content or
  641. style of headers applies equally to footers.
  642. <dt><a name="TERMS_LINEBREAK"><em>Linebreak/author linebreak</em></a>
  643. <dd>A horizontal gap in
  644. <a href="#TERMS_RUNNING">running text</a>,
  645. frequently set off by typographic symbols such as asterisks or
  646. daggers. Used to indicate a shift in the content of a document
  647. (e.g. a scene change in a short story). Also commonly called a
  648. scene break or a section break.
  649. <dt><a name="TERMS_PARAHEAD"><em>Paragraph head</em></a>
  650. <dd>A title joined to the body of a paragraph; hierarchically one
  651. level beneath
  652. <a href="#TERMS_SUBHEAD">subheads</a>.
  653. <dt><a name="TERMS_QUOTE"><em>Quote</em></a>
  654. <dd>A quote, to <strong>mom</strong>, is a line-for-line setting
  655. of quoted material (e.g. poetry, song lyrics, or a snippet of
  656. programming code). You don't have to use
  657. <a href="typesetting.html#BR">BR</a>
  658. with quotes.
  659. <dt><a name="TERMS_RUNNING"><em>Running text</em></a>
  660. <dd>In a document formatted with <strong>mom</strong>, running
  661. text means text that forms the body of the document, including
  662. elements such as heads and subheads.
  663. <a href="#TERMS_DOCHEADER">Docheaders</a>,
  664. <a href="#TERMS_HEADER">headers</a>,
  665. <a href="#TERMS_FOOTER">footers</a>
  666. and page numbers are NOT part of running text.
  667. <dt><a name="TERMS_SUBHEAD"><em>Subhead</em></a>
  668. <dd>A title used to introduce secondary sections of a document;
  669. hierarchically one level beneath sections introduced by
  670. <a href="#TERMS_HEAD">heads</a>.
  671. <dt><a name="TERMS_TOGGLE"><em>Toggle</em></a>
  672. <dd>A macro or tag that, when invoked without an argument,
  673. begins something or turns a feature on, and, when invoked with
  674. ANY argument, ends something or turns a feature off. See
  675. <a href="intro.html#TOGGLE_EXAMPLE">Example 3</a>
  676. of the section
  677. <a href="intro.html#MACRO_ARGS">How to read macro arguments</a>.
  678. </dl>
  679. <p>
  680. <hr>
  681. <a href="using.html#TOP">Next</a>&nbsp;&nbsp;
  682. <a href="intro.html#TOP">Prev</a>&nbsp;&nbsp;
  683. <a href="#TOP">Top</a>&nbsp;&nbsp;
  684. <a href="toc.html">Back to Table of Contents</a>
  685. </body>
  686. </html>