Debian Codegraph @

progs/command.txt

raw
1 Ada formatting tool.
2
3 Copyright 2000, 2002, 2004, 2005, 2006, 2007, 2009, 2011, 2012, 2016, 2019
4 AXE Consultants.
5 P.O. Box 1512, Madison WI 53701
6 E-Mail: [email protected]
7
8 ARM_Form is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 3
10 as published by the Free Software Foundation.
11
12 AXE CONSULTANTS MAKES THIS TOOL AND SOURCE CODE AVAILABLE ON AN "AS IS"
13 BASIS AND MAKES NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE ACCURACY,
14 CAPABILITY, EFFICIENCY, MERCHANTABILITY, OR FUNCTIONING OF THIS TOOL.
15 IN NO EVENT WILL AXE CONSULTANTS BE LIABLE FOR ANY GENERAL,
16 CONSEQUENTIAL, INDIRECT, INCIDENTAL, EXEMPLARY, OR SPECIAL DAMAGES,
17 EVEN IF AXE CONSULTANTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
18 DAMAGES.
19
20 A copy of the GNU General Public License is available in the file
21 gpl-3-0.txt in the standard distribution of the ARM_Form tool.
22 Otherwise, see <http://www.gnu.org/licenses/>.
23
24 If the GPLv3 license is not satisfactory for your needs, a commercial
25 use license is available for this tool. Contact Randy at AXE Consultants
26 for more information.
27
28
29 The formatting tool is written in Ada 2005, but mainly uses Ada 95 constructs.
30 Thus, it should be possible to compile it with an Ada 95 compiler with only
31 small modifications.
32
33
34 Running the formating tool:
35
36 The formating tool reads the source text input files (.MSS files) in a
37 Scribe-like format. The files to read, and general formatting parameters,
38 are controlled by a master input file (.MSM file). The tool allows determining
39 the output document, format, and other properties.
40
41 The output of the tool is written into a subdirectory
42 "Output" of the directory where Arm_Form is run. The tool is self-contained; it
43 does not require any pre or post processing except to have Word create the real
44 table of contents for the .RTF outout.
45
46 Usage: Arm_Form <Master_File> [<Format>[ <Changes>[ <BaseVers> [<ChgVers>[ <Output_Path>]]]]]
47
48 The <Master_File> specifies the layout of the document to generate (see below).
49 If <Master_File> has no extension, ".MSM" is assumed.
50
51 The formats are:
52 Text: Pure text files. These are missing a lot of formatting; we recommend
53 using the HTML versions instead.
54 HTML: (Default) HTML files. The HTML is designed for HTML version 4.0. Old
55 browsers may display the documents with little formatting.
56 RTF: RTF files. The RTF files are designed for Word 97 and later. PDF
57 versions should be created from these file using Word and Adobe tools.
58 Corr: Text files with !corrigendum like markup.
59 Info: File in the open source Info format (not supported by AXE).
60
61 <Changes> are:
62 No-Changes: The original text (same as specifying version 0).
63 New-Only: Text with changes applied through the specified change
64 version (<ChgVers>). There are no marking for changes.
65 Show-Changes: The text with changes shown and marked for versions
66 <BaseVers> though <ChgVers>. Changes for older versions
67 are applied without marking. For HTML, deleted text is shown
68 as struck-through and inserted text as underlined. Changes for
69 different versions are in different colors.
70 For RTF, this uses Word's "changes" mechanisms, which can
71 shows changes in different colors.
72 New-Changes: The text with changes applied for versions <BaseVers> though
73 <ChgVers>, with insertions marked. Deletions are marked by just
74 a single blank space. (See Show-Changes for how these are
75 marked). This form is intended to be used with revision bars
76 in Word 97/2000 (Older versions of Word do not reformat the
77 document when deletions are hidden, leaving unsightly blank
78 spaces. This is not a problem with current versions of Word).
79
80 <BaseVers> and <ChgVers> = a value in 0 .. 9 representing the base and
81 primary change version desired.
82
83 <Output_Path> = the path to which to write the result files. This must end
84 with a path separator.
85
86 Summary of commands used in the ARM text input files (.MSM and .MSS files):
87
88 Syntax summary:
89
90 Commands are represented by @<command_name>[<args>]. The command name can be an
91 identifier, or certain special characters. The command name is not
92 case-sensitive: @newpage; @NewPage; @NEWPAGE; all represent the same command.
93 The argument list (if any) is surrounded by one of the bracket pairs
94 (), {}, [], <>, `', "", or %%. These pairs are equivalent, however the matching
95 end character must be used to close an argument list. The arguments can be anything.
96 It can be another sequence of text, keywords, or other items (described below).
97 In this list below, arguments are always signified by {}, but any of the other
98 characters can be used. (Note that there is no escape character for the
99 brackets, so if one of the bracket characters appears in the text, a different
100 pair of bracket characters should be used. Also note that there is no sane way
101 to tell the end of a quoted parameter from the end of a nested quoted command,
102 so parameters nested in a "" pair should never used "" as their brackets. A
103 similar restriction applies to the %% pair.)
104
105 -----------------
106
107 Master file (.MSM) command summary:
108
109 The master file determines the source files that make up a document and their
110 collating order, along with general properties of the output as a whole.
111
112 Note that regular source commands are not allowed in the master file, unless
113 otherwise noted.
114
115 Source commands (the order of these determines the collating order):
116 @Source{Name=<File Name>,SectionName=<Name>,SectionNumber=<AlphaNum>,NewSection=[T|F]} -
117 Specifies a source file for the document. The <File Name> indicates where
118 the source file is found, and may include a path if desired. If <File Name>
119 does not include an extension, ".MSS" is assumed. <Name> gives
120 a short name for the section; it will be used to name the output files,
121 if appropriate for the specified kind of output. <AlphaNum> specifies the
122 section number; it is either a number in the range 0 to 20, or a letter
123 from A .. Z. If NewSection is true (T), this is the first file for the
124 indicated section; otherwise, this is a continuation file for the
125 section. (If this setting is wrong, there will be extra or missing headers
126 for the section.)
127 @TOC
128 Specifies where the table of contents will appear in the collating order;
129 if this is omitted, there will be no table of contents.
130
131 Global properties:
132
133 @ShowIndexEntries
134 If given in the master file, index and glossary entries are visibly
135 displayed in the document. If this command is not given, these items are
136 not displayed (although they may create links if the
137 output format supports links).
138 @HideIndexEntries
139 If given in the master file, or ShowIndexEntries is not given, Index and
140 glossary entries are not displayed in the document (although they may
141 create links if the output format supports links).
142 @ShowAnnotations
143 If given in the master file, annotations will be included in the output.
144 "Annotations" are often described as belonging to the "AARM" below.
145 "RMOnly" text is not included in the output. If this command is not given,
146 the annotations are not included in any form, and "RMOnly" text is
147 included.
148 @HideAnnotations
149 If given in the master file, or ShowAnnotations is not given,
150 annotations are not included in the output in any form, and "RMOnly"
151 text is included in the output.
152 @ShowISO
153 If given in the master file, text marked "ISOOnly" will be included in the
154 output. "NotISO" text is not included in the output. If this command is
155 not given, "ISOOnly" text is not included in any form, and "NotISO" text
156 is included.
157 @HideISO
158 If given in the master file, or ShowISO is not given,
159 "ISOOnly" text is not included in the output in any form, and "NotISO"
160 text is included in the output.
161 @LinkNonTerminals
162 If given in the master file, non-terminals are linked to their original
163 definition (as given in @Syn and similar commands). Otherwise,
164 non-terminals are not linked.
165 @NumberParagraphs
166 If given in the master file, paragraphs are numbered per subclause
167 (as in the Ada Reference Manual). Otherwise, paragraphs are not numbered.
168 @Title{Version=[<version>],Text=[<title_text>]}
169 The document title for version, this is used in headers and footers.
170 If no title is given for the current version, the title of the previous
171 version is used; to use the same title for all versions, give the title
172 for Version=[0].
173 @FilePrefix{<Prefix>}
174 This specifies the prefix of the output file(s). All of the output files
175 will start with this prefix. Keep this short!
176 @ExampleFont{Swiss|Fixed|Roman}
177 This specifies which font is used to display examples.
178 This changes the @Exam{<text>} and @begin{Example} formats.
179 By default, the Fixed font is used.
180 @BodyFont{Swiss|Roman}
181 This specifies which font is used to display the body of the document.
182 This changes all styles that are not defined to use a specific font.
183 By default, the Roman font is used.
184 @NoteFormat{Ada95|ISO2004}
185 This specifies the format of notes sections.
186 If Ada95, the word "NOTES" is on a separate line, and each note is
187 numbered, with the numbers starting at 1 for each section.
188 If ISO2004, each note starts with the word "NOTE", and a number,
189 with the numbers starting from 1 for each subclause.
190 If there is only one note in a subclause, the number should be omitted.
191 @ContentsFormat{Ada95|ISO2004}
192 This specifies the format of contents sections.
193 If Ada95, the title is "Table of Contents".
194 If ISO2004, the title is "Contents".
195 @ListFormat{Ada95|ISO2004}
196 This specifies the format of numbered lists ("enumerate").
197 If Ada95, they're numbered "1.";
198 If ISO2004, they're lettered "a)"; inner lists are numbered "1)".
199 @SubdivisionNames{Chapter|Section|Clause}
200 This specifies the names of subdivisions and the format of section headers.
201 Note: In this document, top-level subdivisions are called sections,
202 and lower-level subdivisions are called clauses, subclauses,
203 and subsubclauses. The names in the final output may be different.
204 If Chapter, top-level subdivisions are called "chapters" and this appears
205 in the titles. Lower-level subdivisions are called "sections". If Section,
206 top-level subdivisions are called "sections" and this appears in the
207 titles. Lower-level subdivisions are called "clauses". If Clause,
208 top-level subdivisions are called "clauses" and this does not appear in
209 the title of top-level subdivisions (Annex still appears). Lower-level
210 subdivisions are called "subclauses". If this is not given, "Section"
211 is used.
212
213 HTML Output properties:
214
215 @SingleHTMLOutputFile
216 If given in the master file, generate a single large file for
217 the output, rather than one file per clause. If this is not given,
218 smaller files are generated.
219 @UseMSDOSFilenames
220 If given in the master file, use 8.3 MS-DOS style filenames.
221 In this case, the @FilePrefix must be less than 4 characters in size,
222 and no clause or subclause number should exceed 35
223 if @SingleHTMLOutputFile isn't given.
224 @HTMLKind{Version=[3|4Comp|4],Unicode=[T|F]}
225 Specifies the kind of HTML that will be output.
226 If Version=3, HTML compatible with (virtually) all browsers will be
227 generated, but it will have limited formatting. The Unicode setting is
228 ignored; special characters will be output using ASCII equivalents,
229 and explicit output with the @Unicode command is prohibited and will
230 cause an error.
231 If Version=4Comp, the HTML will have more extensive formatting, but older
232 browsers will have more limited formatting. If Unicode is true (T),
233 Unicode characters will be used where appropriate (presuming the
234 characters are available on the US version of Windows 2000); otherwise
235 ASCII equivalents will be used. In either case, explicit Unicode
236 characters (@Unicode) are generated.
237 If Version=4, the HTML will have the best formatting on modern
238 browsers (IE 5.0, Firefox 1.0, Netscape 6.2, and later versions of these)
239 but older browsers will have almost no formatting. If Unicode is true (T),
240 Unicode characters will be used where appropriate (presuming the
241 characters are available on the US version of Windows 2000); otherwise
242 ASCII equivalents will be used. In either case, explicit Unicode
243 characters (@Unicode) are generated.
244 The default is a version of 4Comp with Unicode = T.
245 @HTMLTabs{[SingleSpace|QuadSpace|EmulateFixedOnly|EmulateFixedOnlyQuad|EmulateAll]}
246 Specifies how tabs are emulated for text.
247 (HTML does not have tabs, they have to be faked.)
248 For SingleSpace, the tabs are replaced by a single space (always).
249 For QuadSpace, the tabs are replaced by a four hard spaces (always).
250 For EmulateFixedOnly, the tabs are replaced by an appropriate number of
251 hard spaces for styles using fixed fonts (or if the tab is the first
252 character on a line); for other styles, a single space is used.
253 For EmulateFixedOnlyQuad, the tabs are replaced by an appropriate number
254 of hard spaces for styles using fixed fonts; for other styles, four hard
255 spaces are used.
256 For EmulateAll, the tabs are replaced by an appropriate number of
257 hard spaces for all styles. Note that the number of spaces is a guess
258 for non-fixed fonts, and it is unlikely that the tabbed text will line up
259 perfectly.
260 EmulateFixedOnly is the default (as the result will look correct in a
261 fixed font).
262 @HTMLNavBar{RefName=[<URL>],SrchName=[<URL>],IndexName=[<URL>],
263 UseButtons=[T|F],OnTop=[T|F],OnBottom=[T|F]}
264 Specifies the properties of the Navigation Bar in the files.
265 RefName gives the URL of the references page. This can be part of the
266 current document (in which case the URL can be relative), or an external
267 page. It will be the URL assigned to the "References" button/label; if set
268 to null, the "References" button/label will link to the section named
269 "References" if one exists, or the button/label will be omitted otherwise.
270 SrchName gives the URL of the search page. This can be a relative or
271 absolute URL. It will be the URL assigned to the "Search" button/label; if
272 set to null, the "Search" button/label will link to the section named
273 "Search" if one exists, or the button/label will be omitted otherwise.
274 IndexName gives the URL of the search page. This can be a relative or
275 absolute URL. It will be the URL assigned to the "Index" button/label;
276 if set to null, the "Index" button/label will link to the section named
277 "Index" if one exists, or the button/label will be omitted otherwise.
278 If UseButtons is true (T), the navigation bar will use graphic buttons;
279 otherwise, text labels will be generated.
280 If OnTop is true (T), the navigation bar will be on the top of the
281 document page(s) in the header; otherwise it will not appear on top.
282 If OnBottom is true (T), the navigation bar will be on the bottom of the
283 document page(s) in the footer; otherwise it will not appear on the bottom.
284 One of OnTop or OnBottom should be true, or navigation will be difficult!
285 By default, the "References" and "Search" buttons are omitted, buttons
286 are used, and navigation bars are shown on the top and bottom of every
287 page.
288 @HTMLScript{<Script>}
289 Specifies Script code (including the <SCRIPT> </SCRIPT> tags) that should
290 go directly before the </HEAD> on each page. By default, this is empty.
291 This command was designed to allow placing Google Analytics code on
292 each page for web sites that use that for tracking.
293 @HTMLHeader{<HTML_for_Header>}
294 Specifies HTML markup for the header of the the document. This will be
295 repeated on every page, and needs to be a self-contained HTML fragment.
296 By default, this is empty.
297 @HTMLFooter{<HTML_for_Footer>}
298 Specifies HTML markup for the footer of the the document. This will be
299 repeated on every page, and needs to be a self-contained HTML fragment.
300 By default, this is empty.
301 @HTMLColor{Text=[<Color]>,Background=[<Color>],Link=[<Color>],VLink=[<Color>],
302 ALink=[<Color>]}
303 Specifies the default text, background and link colors for the document.
304 <Color> is a color in standard HTML format ("#rrggbb", with each letter
305 replaced by a hex digit).
306 VLink is the color for visited links; ALink is the color for links
307 being clicked. The default is:
308 @HTMLColor{Text=[#000000],Background=[#FFFFF0],Link=[#0000FF],
309 VLink=[#800080],ALink=[#FF0000]}
310 That is, black text, cream background, blue links, purple visited links,
311 and red active links.
312
313
314 RTF Output properties:
315
316 @SingleRTFOutputFile
317 If given in the master file, generate a single large file for
318 the output, rather than one file per section. If this is not given,
319 smaller files are generated.
320 @RTFHeaderPrefix{Version=[<version>],Text=[<title_text>]}
321 The text given in the header before the title; this is *RTF* text; no
322 embedded commands can be given here. If no header prefix is given for the
323 current version, the prefix of the previous version is used; to use the
324 same prefix for all versions, give the prefix for Version=[0]. If this is
325 empty, only the title will be used.
326 @RTFFooterText{Version=[<version>],Text=[<title_text>]}
327 The fixed text given in the footer; this is *RTF* text; no embedded
328 commands can be given here. If no footer text is given for the current
329 version, the text of the previous version is used; to use the same text for
330 all versions, give the prefix for Version=[0]. This text will not be used
331 if UseClauseName is True.
332 @RTFFooter{UseDate=[T|F],UseClauseName=[T|F],UseISOFormat=[T|F]}
333 Specifies the format of the footer. The date will be included if
334 UseDate is true (T), otherwise it will be omitted; by default it is
335 included. The footer text will be the name of the clause that starts the
336 page (other clauses may start on the page) if UseClauseName is true (T),
337 otherwise it will be the FooterText. The defailt is to use clause names.
338 The text font and size will match the ISO requirements if UseISOFormat
339 is true (T) - this means the footer will be in a Swiss font with multiple
340 sizes; otherwise (and this is the default) the footer will be in the body
341 font with a single size.
342 @RTFPageSize{Letter|A4|HalfLetter|Ada95}
343 Specifies the size of the RTF output; Letter is used if this is not
344 specified. Letter is 8.5"x11"; A4 is European standard size; HalfLetter
345 is 5.5"x8.5"; Ada95 is 7"x9".
346 @RTFFonts{Serif=[Times|Souvenir],SansSerif=[Arial|Helvetica]}
347 Specifies the specific fonts used for the Serif and Sans Serif fonts.
348 If not specified, Times ("Times New Roman") and Arial are used.
349 @RTFVersionName{Version=[<version>],Text=[<title_text>]}
350 The specified text names the version as the "author" of any revisions.
351 For instance, for the Ada Standard, @RTFVersionName{Version=[2],Text=[Amendment 1]}
352 gives the author name "Amendment 1" to all version 2 revisions.
353
354 Other commands:
355
356 @comment{<text>} - The text is a comment to the master file, and is ignored
357 on output.
358
359
360
361 ---------------------
362
363 Source file (.MSS) command summary:
364
365 Meta-commands:
366
367 @; - Signifies nothing. Used to break a parameterless command from following
368 text: "@LegalityName@;s" (otherwise the command "LegalityNames" would be
369 looked for).
370 @: - After a period, signifies an sentence ending period, rather than a
371 initial period. Not used currently, but remains in text in case someone
372 cares eventually. (Only matters if the amount of space after sentences
373 is different than the amount between words within a sentence.)
374 @| - Marks a potential line break point, without inserting a hyphen. (Scribe
375 says that it is a "zero-length word".) Not used currently, as the RTF
376 command (\zwbo) prints a square box in both Word 97 and Word 2000 -- and
377 no break. Similarly, zero-width space in HTML 4.0 doesn't work on Internet
378 Exploder 4.1 - it also prints a square box and no break.
379 @! - Marks a potential line break point, inserting a hyphen if the break is
380 used. (A so-called "soft-hyphen"). Unlike the above, this actually
381 works in Word 97 and HTML. &shy.
382
383
384 Text commands:
385
386 @@ - the literal character '@'.
387 @\ - A tab, or end of centered text. Also used to mark the separation between
388 hanging text and the rest of the paragraph.
389 @^ - Sets a tab stop at the current text location. (*Can't implement in RTF and
390 HTML does not have tabs at all; has been removed from the text *)
391 @ - [@<space>] - A hard space; cannot be used to insert a line break.
392 @* - Line break inside a paragraph.
393
394 @+{<text>} - Superscript text (text size will be smaller).
395 @-{<text>} - Subscript text (text size will be smaller).
396 @b{<text>} - Bold text.
397 @i{<text>} - Italic text.
398 @r{<text>} - Roman font text.
399 @ri{<text>} -Roman italic text (use for comments in examples).
400 @s{<text>} - Swiss font text.
401 @f{<text>} - Fixed-width font text.
402 @shrink{<text>} - Text is one size smaller. (Typically 1 point smaller).
403 @grow{<text>} - Text is one size larger. (Typically 1 point larger).
404 @black{<text>} - Text is in a black color.
405 @red{<text>} - Text is in a red color.
406 @green{<text>} - Text is in a green color.
407 @blue{<text>} - Text is in a blue color.
408 @comment{<text>} - The text is a comment to the input files, and is ignored
409 on output.
410 @newpage - Insert a page break. Ends a paragraph.
411 @rmnewpage - Insert a page break in the RM (that is, when HideAnnotations is
412 used), ignored otherwise. Ends a paragraph. Use to insert page
413 breaks to make the printed RM look better.
414 @newcolumn - Insert a column break. Only allowed in a multi-column formats.
415 Ends a paragraph.
416 @newpagever{Version=[<version>} - Insert a page break if we are generating
417 <version> (and ends a paragraph). Otherwise, does nothing.
418 @rmnewpagever{Version=[<version>} - Insert a page break in the RM (that is,
419 when HideAnnotations is used) and we are generating <version>,
420 ignored otherwise. Ends a paragraph. Use to insert page
421 breaks to make the printed RM look better.
422 @isoonlyrmnewpagever{Version=[<version>} - Insert a page break in the RM (that
423 is, when HideAnnotations is used), @ShowISO was given in
424 the master file, and we are generating <version>,
425 ignored otherwise. Ends a paragraph. Use to insert page
426 breaks to make the printed RM look better.
427 @notisormnewpagever{Version=[<version>} - Insert a page break in the RM (that
428 is, when HideAnnotations is used), @ShowISO was not given in
429 the master file, and we are generating <version>,
430 ignored otherwise. Ends a paragraph. Use to insert page
431 breaks to make the printed RM look better.
432 @newcolumnver{Version=[<version>} - - Insert a column break if we are generating
433 <version>, otherwise does nothing. Only allowed in a multi-column
434 formats. Ends a paragraph.
435 @softpage - Insert a soft page break in a format that does not generally
436 allow one. A page is allowed (but not required) at this point.
437 [Note: This doesn't seem to work in Word 97, but we've kept it
438 anyway.]
439 @noprefix - The following paragraph does not have a prefix (that is, hanging
440 text, numbers, or bullets). For example, if the paragraph is in
441 a bulleted list, it will not have a bullet. This command must be
442 given before any text for the paragraph (including index entries
443 and even spaces in example formats).
444 @keepnext - Keep this paragraph with the next one (usually used on leadins,
445 like "The following example shows...:"). This command must be
446 given before any text for the paragraph.
447 @leading - This paragraph leads in an example or list. Cut the space
448 following the paragraph (usually by 30%). This command must be
449 given before any text for the paragraph.
450 @trailing - This paragraph ends an item of some sort. Increase the space
451 following the paragraph (usually by 50%). This command must be
452 given before any text for the paragraph.
453 @noparanum - This paragraph has no number. This command must be
454 given before any text for the paragraph.
455
456 @thinline - Draw a thin separator line across the page. Ends any paragraph.
457 @thickline - Draw a thick separator line across the page. Ends any paragraph.
458
459 -- Section/Clause commands:
460 @LabeledSection{<text>} - Start a labeled section (chapter). The title will be
461 "text". The formatter assigns section numbers.
462 @LabeledSectionNoBreak{<text>} - Start a labeled section (chapter). The
463 title will be "text". The formatter assigns section numbers. No page
464 break before it.
465 @LabeledAnnex{<text>} - Start a labeled (unqualified) annex. The title
466 will be "text". The formatter assigns annex letters.
467 @LabeledInformativeAnnex{<text>} - Start a labeled informative annex. The title
468 will be "text". The formatter assigns annex letters.
469 @LabeledNormativeAnnex{<text>} - Start a labeled normative annex. The title
470 will be "text". The formatter assigns annex letters.
471 @LabeledClause{<text>} - Start a labeled clause. The title will be "text".
472 The formatter assigns clause numbers.
473 @LabeledSubClause{<text>} - Start a labeled subclause. The title will be "text".
474 The formatter assigns subclause numbers.
475 @LabeledSubSubClause{<text>} - Start a labeled subsubclause. The title will be "text".
476 The formatter assigns subsubclause numbers.
477 @LabeledRevisedAnnex{Version=[<version>],
478 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
479 Start a labeled (unqualified) annex. The title will be "new_text". If
480 we are generating an old version of the document, the title is "old_text"
481 instead. (Note that annex references in commands always use the
482 new_text name.) The formatter assigns annex letters. Version is the
483 version number of the change (see @ChgRef for details); InitialVersion
484 is the original insertion version of the Old text (this defaults to 0
485 if not given).
486 @LabeledRevisedNormativeAnnex{Version=[<version>],
487 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
488 Start a labeled normative annex. The title will be "new_text". If we
489 are generating an old version of the document, the title is "old_text"
490 instead. (Note that annex references in commands always use the
491 new_text name.) The formatter assigns annex letters. Version is the
492 version number of the change (see @ChgRef for details); InitialVersion
493 is the original insertion version of the Old text (this defaults to 0
494 if not given).
495 @LabeledRevisedInformativeAnnex{Version=[<version>],
496 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
497 Start a labeled informative annex. The title will be "new_text". If we
498 are generating an old version of the document, the title is "old_text"
499 instead. (Note that annex references in commands always use the
500 new_text name.) The formatter assigns annex letters. Version is the
501 version number of the change (see @ChgRef for details); InitialVersion
502 is the original insertion version of the Old text (this defaults to 0
503 if not given).
504 @LabeledRevisedSection{Version=[<version>],
505 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
506 Start a labeled section (chapter). The title will be "new_text". If we are
507 generating an old version of the document, the title is "old_text" instead.
508 (Note that clause references in commands always use the new_text name.)
509 The formatter assigns clause numbers. Version is the
510 version number of the change (see @ChgRef for details); InitialVersion
511 is the original insertion version of the Old text (this defaults to 0
512 if not given).
513 @LabeledRevisedClause{Version=[<version>],
514 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
515 Start a labeled clause. The title will be "new_text". If we are
516 generating an old version of the document, the title is "old_text" instead.
517 (Note that clause references in commands always use the new_text name.)
518 The formatter assigns clause numbers. Version is the
519 version number of the change (see @ChgRef for details); InitialVersion
520 is the original insertion version of the Old text (this defaults to 0
521 if not given).
522 @LabeledRevisedSubClause{Version=[<version>],
523 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
524 Start a labeled subclause. The title will be "new_text". If we are
525 generating an old version of the document, the title is "old_text" instead.
526 (Note that clause references in commands always use the new_text name.)
527 The formatter assigns subclause numbers. Version is the
528 version number of the change (see @ChgRef for details); InitialVersion
529 is the original insertion version of the Old text (this defaults to 0
530 if not given).
531 @LabeledRevisedSubSubClause{Version=[<version>],
532 [InitialVersion=[<version>],]New=[<new_text>],Old=[<old_text>]} -
533 Start a labeled subsubclause. The title will be "new_text". If we are
534 generating an old version of the document, the title is "old_text" instead.
535 (Note that clause references in commands always use the new_text name.)
536 The formatter assigns subsubclause numbers. Version is the
537 version number of the change (see @ChgRef for details); InitialVersion
538 is the original insertion version of the Old text (this defaults to 0
539 if not given).
540 @LabeledAddedSection{Version=[<version>],Name=[<new_text>]} - Start a labeled
541 section (chapter). The title will be "new_text". If we are generating an old
542 version of the document, this clause does not exist. (Any clause references
543 ought to be in new text.) The formatter assigns clause numbers. Version
544 is the version number of the change (see @ChgRef for details).
545 @LabeledAddedClause{Version=[<version>],Name=[<new_text>]} - Start a labeled
546 clause. The title will be "new_text". If we are generating an old
547 version of the document, this clause does not exist. (Any clause references
548 ought to be in new text.) The formatter assigns clause numbers. Version
549 is the version number of the change (see @ChgRef for details).
550 @LabeledAddedSubClause{Version=[<version>],Name=[<new_text>]} - Start a labeled
551 subclause. The title will be "new_text". If we are generating an old
552 version of the document, this subclause does not exist. (Any subclause
553 references ought to be in new text.) The formatter assigns subclause
554 numbers. Version is the version number of the change (see @ChgRef for
555 details).
556 @LabeledAddedSubSubClause{Version=[<version>],Name=[<new_text>]} - Start a labeled
557 subsubclause. The title will be "new_text". If we are generating an old
558 version of the document, this subsubclause does not exist. (Any subsubclause
559 references ought to be in new text.) The formatter assigns subsubclause
560 numbers. Version is the version number of the change (see @ChgRef for
561 details).
562 @LabeledAddedAnnex{Version=[<version>],Name=[<new_text>]]} -
563 Start a labeled (unqualified) annex. The title will be "new_text". If we
564 are generating an old version of the document, this annex does not appear.
565 (Any annex references in commands ought to be "new text".) The
566 formatter assigns annex letters. Version is the
567 version number of the change (see @ChgRef for details).
568 @LabeledAddedNormativeAnnex{Version=[<version>],Name=[<new_text>]]} -
569 Start a labeled normative annex. The title will be "new_text". If we
570 are generating an old version of the document, this annex does not appear.
571 (Any annex references in commands ought to be "new text".) The
572 formatter assigns annex letters. Version is the
573 version number of the change (see @ChgRef for details).
574 @LabeledAddedInformativeAnnex{Version=[<version>],Name=[<new_text>]} -
575 Start a labeled informative annex. The title will be "new_text". If we
576 are generating an old version of the document, this annex does not appear.
577 (Any annex references in commands ought to be "new text".) The
578 formatter assigns annex letters. Version is the
579 version number of the change (see @ChgRef for details).
580 @LabeledDeletedClause{Version=[<version>],Name=[<old_text>]} - Start a labeled
581 clause. The title will be "old_text". If we are generating a new
582 version of the document, this clause does not exist. (Any clause references
583 ought to be in old deleted text.) The formatter assigns clause numbers. Version
584 is the version number of the change (see @ChgRef for details).
585 [Note: We do not support deleting sections or annexes.]
586 @LabeledDeletedSubClause{Version=[<version>],Name=[<old_text>]} - Start a labeled
587 subclause. The title will be "old_text". If we are generating a new
588 version of the document, this subclause does not exist. (Any subclause
589 references ought to be in old deleted text.) The formatter assigns subclause
590 numbers. Version is the version number of the change (see @ChgRef for
591 details).
592 @LabeledDeletedSubSubClause{Version=[<version>],Name=[<old_text>]} - Start a labeled
593 subsubclause. The title will be "old_text". If we are generating a new
594 version of the document, this subsubclause does not exist. (Any subsubclause
595 references ought to be in old deleted text.) The formatter assigns subsubclause
596 numbers. Version is the version number of the change (see @ChgRef for
597 details).
598
599 @UnnumberedSection{<text>} - Start an unnumbered section. (These are the
600 Forward and Introduction). This *can* be referenced by a reference,
601 and will appear in the table of contents.
602 @Subheading{<text>} - Start an unnumbered subclause (a subclause of an
603 unnumbered section). These are formatting only, they cannot be
604 referenced, nor do they appear in the table of contents.
605 @Heading{<text>} - Start an unnumbered clause (a clause of an unnumbered
606 section). These are formatting only, they cannot be referenced, nor do
607 they appear in the table of contents.
608 @Center{<text>} - Center the otherwise normal text. Note that this is a
609 paragraph style and is treated like a header.
610 @Right{<text>} - Right justify the otherwise normal text. Note that this is a
611 paragraph style and is treated like a header.
612
613 @PrefaceClause{} - Start a new clause without numbering or title - just a
614 page break to an odd page.
615
616 @RefSec{<title>} - Generates a reference to the clause "title". (This must
617 match exactly except for case). The reference is of the form
618 "<clause number>, ``<title>''". (The ARG has directed that this be
619 changed to '<clause number>, "<title>"').
620 @RefSecNum{<title>} - Generates a reference to the clause "title". (This must
621 match exactly except for case). The reference is of the form
622 "<clause number>".
623 @RefSecbyNum{<num>} - Generates a reference to the clause with <num> as a
624 clause number. This is intended to be used internally to the tool,
625 not in document source (the tool assigns the clause numbers).
626
627 @LocalTarget{Target=[<target-text>],Text=[<text>]} - Generates a target for
628 future @LocalLink commands at the current location. <target-text>
629 should be short, using alphanumeric characters. <text> will be
630 generated normally, using the current formatting (no formatting
631 is allowed in <text>).
632 @LocalLink{Target=[<target-text>],Sec=[<title>],Text=[<text>]} - Generates a
633 link to the target specifed in the section given by "title" (this
634 should have been defined by a @LocalTarget command). <text> will be
635 generated as the body of the link, using the current formatting (no
636 formatting in <text>).
637 @URLLink{URL=[<URL>],Text=[<text>]} - Generates a link to the URL specified;
638 <text> will be the body of the link, using the current formatting (no
639 formatting in <text>). The URL should be a complete URL, including
640 "http://".
641 @AILink{AI=[<AI>],Text=[<text>]} - Generates a link to the AI specified;
642 <text> will be the body of the link, using the current formatting (no
643 formatting in <text>). The AI should be an AI number in the full
644 format (AI95-0yyyy-zz, AI05-yyyy-z, or SI99-yyyy-z).
645
646 -- Ada specific commands:
647 @nt{<text>} - A non-terminal in normal text. This will be set in a Swiss
648 (sans-serif) font. Also, for HTML, this will linked to the
649 definition text; use @ntf instead if this is not a real
650 non-terminal.
651 @ntf{<text>} - Format as a non-terminal in normal text. This will be set
652 in a Swiss (sans-serif) font.
653 @key{<text>} - A keyword in normal text. This will be set in boldface.
654 @exam{<text>} - Example text occurring in normal text. This will be set
655 in the example font (which is selected in the master file).
656 @examcom{<text>} - The body of an example comment; this is shown in the
657 roman font in italics. (This is the same as the @RI command, but
658 by using a separate name, we can change the format in the future.)
659 @redundant{<text>} - Marks text thought to be unnecessary in the RM. That is,
660 the rules are explained elsewhere. The text is formatted normally.
661 When annotations are shown, this text is surrounded in brackets.
662 When annotations are not shown, no special formatting is used.
663
664 @syn{[Tabs=<Tabset>, ]LHS=<Non-terminal>, RHS=<Production>}
665 - Marks a syntax production.
666 <Production> contains @syn2 (and @synf) commands for RHS non-terminals.
667 <Tabset> defines any tabs needed by the <Production>.
668 The <Non-terminal> is indexed. The <Non-Terminal> and <Production>
669 (and the clause number) are sent to the syntax manager. Also, saves
670 <Non-terminal> for any following @Syn2 to use. The command also writes
671 @nt<Non-Terminal> ::= <Production>
672 to the output.
673 Note: <Non-Terminal> and <Production> allow @Chg commands.
674 @syni{<prefix>} - Generates <prefix> in the italics of a non-terminal prefix.
675 @syn2{<name>} - Marks a non-terminal name in the production of a syntax rule.
676 If the current non-terminal is not null, generates a cross reference
677 entry: <Name> in <Non-Terminal> at <ClauseNum>. Also, generate an index
678 entry for the item: @Defn2(Term=<Name>,Sec=@i{used}). (For the purposes
679 of the index, all of Annex P is a single paragraph). Otherwise, is the
680 same as @nt.
681 @synf{<name>} - Marks a non-terminal name in the production of a syntax rule,
682 for which there is no formal definition in the document. (Character
683 set names in Ada fall into this category).
684 If the current non-terminal is not null, generates a cross reference
685 entry: <Name> in <Non-Terminal> at <ClauseNum>. Also, generate an index
686 entry for the item: @Defn2(Term=<Name>,Sec=@i{used}). (For the purposes
687 of the index, all of Annex P is a single paragraph). Otherwise, is the
688 same as @ntf.
689 @syntaxsummary -- Generate the syntax summary at this point. *No paragraph
690 numbers*!
691 @syntaxxref -- Generate the syntax cross-reference at this point. *No paragraph
692 numbers*!
693 @AddedSyn{Version=[<Version>],[Tabs=<Tabset>, ]LHS=<Non-terminal>, RHS=<Production>}
694 Add a syntax production for Version. Otherwise, the meaning is the
695 same as for @Syn, above. Note: <Non-terminal> and <Production> need
696 @Chg commands; this command only adds processing for "::=" and overall
697 inclusion or skipping when necessary.
698 @DeletedSyn{Version=[<Version>],[Tabs=<Tabset>, ]LHS=<Non-terminal>, RHS=<Production>}
699 Delete a syntax production for version. Otherwise, the meaning is the
700 same as for @Syn, above. Note: <Non-terminal> and <Production> need
701 @Chg commands; this command only adds processing for "::=" and overall
702 inclusion or skipping when necessary.
703
704 @Attribute{Prefix=<Prefix>,AttrName=<Name>,Text=<Text>}
705 Defines an attribute. Creates a hanging text item <Prefix>'<Name>,
706 with the specified text. The text can contain arbitrary commands;
707 it will be run through the full evaluation code.
708 The attribute and text is also sent to a database used to later create
709 Annex K. (This uses the current value of PrefixType.) Finally, the
710 attribute <Name> is indexed as by calling @Defn2{Term=[Attribute],
711 Sec=<Name>}, and as by calling @Defn{<Name> attribute}. See also
712 ChgAttribute.
713 @AttributeLeading{Prefix=<Prefix>,AttrName=<Name>,Text=<Text>}
714 Same as attribute, except that the first paragraph is a "Leading"
715 paragraph. (Use when the second paragraph is a DescExample, such
716 as when a function specification is given.)
717 @AttributeList
718 Dumps the summary list of all attributes from the attribute database
719 to the output file.
720 @PrefixType{text}
721 Save the indicated text to use as part of any following attribute
722 definitions. The text is also written to the output. The text should
723 fit in the phrase: "For {text}:". For instance, the text could be
724 "every scalar subtype S". See also ChgPrefixType.
725 @EndPrefixType{}
726 (The parameter list must exist and be empty) Set the saved attribute
727 text to "@b{NONE!}". This exists to ensure that the prefixes are set
728 properly, and aren't just set by accident.
729
730 @PragmaSyn{<Text>}
731 Defines a pragma. The text is displayed in the current format.
732 The text should contain an @prag command (which specifies and indexes
733 the name - see below.) The text can contain arbitrary commands;
734 it will be run through the full evaluation code.
735 The text is also sent to a database used to later create Annex L.
736 @AddedPragmaSyn{Version=[<Version>],<Text>}
737 Defines a pragma added by <Version>. Otherwise, the text is as
738 described for PragmaSyntax. Text includes an appropriate @Chg;
739 the purpose of the Version number here is
740 to determine whether (and how) this is entered into Annex L,
741 along with the cross-reference text.
742 @DeletedPragmaSyn{Version=[<Version>],InitialVersion=[<InitialVersion>],<Text>}
743 Defines a pragma deleted by <Version>, originally added by
744 <InitialVersion>. Otherwise, the text is as
745 described for PragmaSyntax. Text includes an appropriate @Chg;
746 the purpose of the Version number here is to determine whether
747 (and how) this is entered into Annex L, along with the cross-reference
748 text.
749 @PragmaList
750 Dumps the summary list of all pragmas from the pragma database
751 to the output file.
752
753 -- Indexing:
754
755 If Show-Index-Entries is not used on the command line, indexing entries
756 are transparent (this is usually the case for the RM).
757
758 If Show-Index-Entries is used on the command line, indexing entries show as
759 italized in curly brackets. RootDefn adds "[distributed]", PDefn adds
760 "[partial]", IndexSee adds ": see <OtherTerm>", and IndexSeeAlso adds
761 ": see also <OtherTerm>" to the reference.
762
763 @IndexList - Generates the index at this point.
764
765 @defn{<text>} - Defines a term, where the entire definition is given in the
766 referenced paragraph.
767 @rootdefn{<text>} - Defines a term, where the definition is given in several
768 paragraphs. This is the primary definition.
769 @pdefn{<text>} - Defines a term, where the definition is given in several
770 paragraphs. This is one of the secondary definitions.
771 @defn2{Term=[<term>],Sec=(<subterm>)} - Same as Defn, except a subterm is
772 allowed. The subterm will be indexed under the primary term.
773 @rootdefn2{Term=[<term>],Sec=(<subterm>)} - Same as RootDefn, except a
774 subterm is allowed.
775 @pdefn2{Term=[<term>],Sec=(<subterm>)} - Same as PDefn, except a subterm is
776 allowed.
777 @seeother{Primary=[<term>],Other=(<other_term>)} - Generates a See
778 reference to <other_term> in the index. No page/clause reference is
779 generated.
780 @seealso{Primary=[<term>],Other=(<other_term>)} - Generates a See also
781 reference to <other_term> in the index. No page/clause reference is
782 generated.
783 @indexsee{Term=[<term>],See=(<other_term>)} - Generates a See
784 reference to <other_term> in the index. A page/clause reference is
785 generated.
786 @indexseealso{Term=[<term>],See=(<other_term>)} - Generates a See also
787 reference to <other_term> in the index. A page/clause reference is
788 generated.
789 @ChildUnit{Parent=[<parent>],Child=[<child>]}
790 Generates three index entries: An index entry for <child>, with a secondary
791 of "@i{child of} <parent>", an index entry for "Language-Defined
792 Library Units" with a secondary entry of <parent>.<child>, and an index
793 entry for <parent>.<child>. The Unit is set to <parent>.<child>.
794 (For version 2 or later, the Language-Defined entry is not generated.)
795 The first entry is added to the package list as well.
796 @SubChildUnit{Parent=[<parent>],Child=[<child>]}
797 Same as @ChildUnit, except that the first entry is added to the
798 subprogram list, rather than the package list.
799 @RootLibUnit{<unit>} - Generates two index entries: An index entry for
800 "Language-Defined Library Units" with a secondary entry of <unit>,
801 and an index entry for <unit>. The Unit is set to <parent>.<child>.
802 (For version 2 or later, the Language-Defined entry is not generated.)
803 The first entry is added to the package list as well.
804 @AdaDefn{<defn>} - Generates an index entry for <defn> with a secondary entry
805 of "@i{in} <Unit>" (where Unit is the unit saved by a previous
806 RootLibUnit or ChildUnit.) Also outputs the <defn> to the output file.
807 @AdaSubDefn{<defn>} - Generates two index entries: one for <defn> with a
808 secondary entry of "@i{in} <Unit>" (where Unit is the unit saved by
809 a previous RootLibUnit or ChildUnit.), and second for "Language-Defined
810 Subprogram" with a secondary entry of "<defn> @i{in} <Unit>".
811 (For version 2 or later, the Language-Defined entry is not generated.)
812 The first entry is added to the subprogram list as well.
813 Also outputs the <defn> to the output file.
814 @AdaTypeDefn{<defn>} - Generates two index entries: one for <defn> with a
815 secondary entry of "@i{in} <Unit>" (where Unit is the unit saved by
816 a previous RootLibUnit or ChildUnit.), and second for "Language-Defined
817 Type" with a secondary entry of "<defn> @i{in} <Unit>".
818 (For version 2 or later, the Language-Defined entry is not generated.)
819 The first entry is added to the type list as well.
820 Also outputs the <defn> to the output file.
821 @AdaSubTypeDefn{Name=<defn>,Of=<type>} - Generates an index entry of
822 "<defn> @i{subtype of} <type>" with a secondary entry of
823 "@i{in} <Unit>" (where Unit is the unit saved by a previous
824 RootLibUnit or ChildUnit.) The entry is added to the type list as well.
825 Also outputs the <defn> to the output file.
826 @AdaExcDefn{<defn>} - Generates an index entry for <defn> with a
827 secondary entry of "@i{in} <Unit>" (where Unit is the unit saved by
828 a previous RootLibUnit or ChildUnit.)
829 The entry is added to the exception list as well.
830 Also outputs the <defn> to the output file.
831 @AdaObjDefn{<defn>} - Generates an index entry for <defn> with a
832 secondary entry of "@i{in} <Unit>" (where Unit is the unit saved by
833 a previous RootLibUnit or ChildUnit.)
834 The entry is added to the object list as well.
835 Also outputs the <defn> to the output file.
836 @AdaPackDefn{<defn>} - Generates an index entry for <defn> with a
837 secondary entry of "@i{in} <Unit>" (where Unit is the unit saved by
838 a previous RootLibUnit or ChildUnit.)
839 The entry is added to the package list as well.
840 Also outputs the <defn> to the output file.
841 Use this for *nested* packages.
842 @IndexCheck{<check>} - Generates an index entry for "check, language defined"
843 with a secondary entry of <check>. (Essentially a Defn2). Also,
844 indexes <check> as a partial definition. (PDefn).
845 @Attr{<name>} -- Generates an index entry for "attributes"
846 with a secondary entry of <name>. (Essentially a Defn2). Also
847 with a secondary entry of <name> (a Defn2), and also an index entry
848 of "<name> attribute" (a Defn). Also puts <name> to the output.
849 @Prag{<name>} -- Generates an index entry for "pragmas"
850 with a secondary entry of <name> (a Defn2), and also an index entry
851 of "<name> pragma" (a Defn). Also puts <name> to the output.
852 @AspectDefn{<name>} -- Generates an index entry for "aspects"
853 with a secondary entry of <name> (a Defn2), and also an index entry
854 of "<name> aspect" (a Defn).
855
856
857 @PackageList -- Generates the list of language-defined packages.
858 @TypeList -- Generates the list of language-defined types and subtypes.
859 @SubprogramList -- Generates the list of language-defined subprograms.
860 @ExceptionList -- Generates the list of language-defined exceptions.
861 @ObjectList -- Generates the list of language-defined objects.
862
863 -- Glossary:
864 @ToGlossary(Term=[<term>], Text=[<text>])
865 Creates a glossary entry for <term> with the value <text>.
866 The item is shown as a annotation in the AARM. The term is also
867 indexed (and displayed as such if appropriate) with @Defn immediately
868 after the annotation header.
869 @ToGlossaryAlso(Term=[<term>], Text=[<text>])
870 Creates a glossary entry for <term> with the value <text>.
871 The text is part of the current paragraph. If Show-Index-Entries is
872 used on the command line, a "[Glossary Entry]" marker is shown;
873 otherwise nothing is. The term is also indexed (and displayed as
874 such if appropriate) with @Defn immediately after the marker.
875 @GlossaryList
876 Generates the glossary.
877
878 -- Implementation-defined annex:
879 @ImplDef{<text>}
880 Creates an implementation-defined entry for <text>. The clause and
881 paragraph references are saved to create part of Annex M. For the AARM,
882 <text> is an annotation; otherwise, it is discarded. See also
883 ChgImplDef.
884 @ImplDefList
885 Generates the implementation-defined list.
886
887 -- Changes:
888 @chgref{Version=[<version>],Kind=(<kind>){,Ref=(<DR_Number>)}{,ARef=(<AI_Number>)}}
889 - Marks a paragraph changed in a corrigendu or amendment. This command
890 precedes any text of the paragraph. The version number of the change is
891 <version>. [This is "1" for technical corrigenum 1; "2" for amendment 1].
892 Kind is either "Revised" (an ordinary change), "Added" (for a paragraph
893 added by the change), "AddedNormal" (for a paragraph added by the
894 change which gets a normal paragraph number - used for insertions at
895 the end of clauses and added to new clauses), "Deleted" (for a
896 paragraph deleted by the change), "DeletedAdded" (for an
897 added paragraph which is later deleted), "DeletedNoDelMsg" (for a
898 paragraph deleted by the change; the "This paragraph was deleted"
899 message is suppressed), "DeletedAddedNoDelMsg" (combines the last
900 two kinds), or "RevisedAdded" (for an
901 added paragraph which is later revised). [These control the paragraph
902 numbering of the following paragraph.] The <DR_Number>(s) and/or
903 <AI_Number>(s) that triggered the change are given. As many references
904 as necessary can be given. (Zero is allowed). The format of the AI
905 numbers is as described for @AILink.
906 Note: If there are changes to the same paragraph in multiple versions,
907 each version should have their own chgref.
908 The ChgRefs should be in the order of the versions (first version 1,
909 then version 2, etc.) The Kind should be consistent for all chgrefs -
910 the numbering is the same no matter when the paragraph was added or
911 deleted. That means "RevisedAdded" after "Added", etc.
912 @chgnote{<text>} Notes on particular change. This is treated as a comment; it
913 has a separate command solely so that stripped easily in the future.
914 @chg{[Version=[<Version>],]New=[<new text>],Old=[<old text>]}
915 Marks a particular change. The new text and the old text are given.
916 (We have both sets of text so we can generate useful differences).
917 @chg commands can be nested; it recommended that they be nested with
918 the newest changes inside of older changes. The text may not contain
919 any command that ends the paragraph. The Version is assumed to be '1'
920 if that parameter is not given. Version is interpreted as for ChgRef.
921 @ChgAdded{Version=[<Version>],[NoPrefix=[T|F],][NoParamnum=[T|F],]
922 [Type=[Leading|Trailing|Normal],][Keepnext=[T|F],]Text=[text]}
923 Marks an insertion of a complete paragraph consisting of 'text'. This
924 cannot be nested in other commands. The AARM prefix (if any) also is
925 marked as an insertion. The optional parameters (conditionally) set the
926 paragraph properties; NoPrefix, Noparanum, and KeepNext work the same
927 as the @NoPrefix, @NoParanum, and @KeepNext commands if set to T,
928 except that they're conditional on the paragraph text being inserted.
929 Similarly, Type works the same as @Leading and @Trailing if set to
930 those values, except that they are conditional. If omitted, NoPrefix
931 is set to F, NoParanum is set to F, KeepNext is set to F, and
932 Type is set to Normal.
933 @ChgDeleted{Version=[<Version>],[NoPrefix=[T|F],][NoParamnum=[T|F],]
934 [Type=[Leading|Trailing|Normal],][Keepnext=[T|F],]Text=[text]}
935 Marks a deletion of a complete paragraph consisting of 'text'. This
936 cannot be nested in other commands. The AARM prefix (if any) also is
937 marked as a deletion. The optional parameters (conditionally) set the
938 paragraph properties; they work as described in ChgAdded. Note that
939 they're conditional on the paragraph text being included in the
940 document (even if it is marked as deleted).
941
942 @ChgImplDef{Version=[<version>],Kind=(<kind>),
943 [InitialVersion=[<version>],]Text=<text>}
944 Marks a changed implementation-defined entry. (Essentially a
945 combination of ChgRef and Impldef.) <text> is the
946 implementation-defined entry. See ChgRef and Impldef for details
947 on the handling of the arguments. The optional InitialVersion parameter
948 specifies the version number for the originally inserted text; if
949 not specified, the Version number is used. (This is appropriate for
950 added items, others should explicitly give an initial version.)
951
952 @ChgImplAdvice{Version=[<version>],Kind=(<kind>),
953 [InitialVersion=[<version>],]Text=<text>}
954 Marks a new or changed implementation advice entry. All IA entries
955 are new with version 2. The clause and paragraph references (along
956 with <text>) are saved to create part of Annex M. For the AARM,
957 <text> is an annotation; otherwise, it is discarded.
958 See ChgRef for details on the handling of Version and Kind arguments.
959 The optional InitialVersion parameter specifies the version number for
960 the originally inserted text; if not specified, the Version number is
961 used.
962 @AddedImplAdviceList{Version=[2]}
963 Generates the implementation advice list; it is inserted with the
964 given version number.
965
966 @ChgDocReq{Version=[<version>],Kind=(<kind>),
967 [InitialVersion=[<version>],]Text=<text>}
968 Marks a new or changed documentation requirements entry. All DocReq
969 entries are new with version 2. The clause and paragraph references
970 (along with <text>) are saved to create part of Annex M. For the AARM,
971 <text> is an annotation; otherwise, it is discarded.
972 See ChgRef for details on the handling of Version and Kind arguments.
973 The optional InitialVersion parameter specifies the version number for
974 the originally inserted text; if not specified, the Version number is
975 used.
976 @AddedDocReqList{Version=[2]}
977 Generates the documentation requirements list; it is inserted with the
978 given version number.
979
980 @ChgAspectDesc{Version=[<version>],Kind=(<kind>),Aspect=[<name>],
981 [InitialVersion=[<version>],]Text=<text>}
982 Marks a new or changed aspect description entry. All aspect
983 descriptions are new with version 3. The clause and paragraph
984 references (along with <name> and <text>) are saved to create part of
985 Annex K. For the AARM, <text> is an annotation; otherwise, it is
986 discarded. See ChgRef for details on the handling of Version and Kind
987 arguments. The optional InitialVersion parameter specifies the version
988 number for the originally inserted text; if not specified, the Version
989 number is used.
990 @AddedDocReqList{Version=[3]}
991 Generates the aspect description list; it is inserted with the
992 given version number.
993
994
995 @ChgAttribute{Version=[<version>],Kind=(<kind>),ChginAnnex=[T|F],
996 Leading=[T|F],Prefix=<Prefix>,AttrName=<Name>,
997 {[Ref={<DR_Number>}|ARef={<AI_Number>}],}
998 [InitialVersion=[<version>],][OmitAnnex=[<Omit>],]Text=<Text>}
999 Marks a changed attribute entry. (Essentially a combination of
1000 ChgRef and Attribute.) ChginAnnex controls whether the change
1001 is reflected in the Annex. (Set this to F when the change is in
1002 text "glued" onto the annex paragraph.) Leading controls whether the
1003 first paragraph is leading or not. The optional InitialVersion parameter
1004 specifies the version number for the originally inserted text; if not
1005 specified, the Version number is used. The optional OmitAnnex boolean
1006 parameter means to omit the attribute from the annex (use this for
1007 moves of attributes, omit the deleted original definition). See ChgRef
1008 and Attribute for the meaning of the other parameters.
1009 @ChgPrefixType{Version=[<version>],Kind=(<kind>),Text=[<text>]}
1010 Marks a changed prefix type text. Also, saves the indicated text to
1011 use as part of any following attribute definitions. The text is also
1012 written to the output. See ChgRef and PrefixType for more information.
1013 @AddedSubheading{Version=[<version>],<text>}
1014 Same as Subheading, except that this heading is present only in
1015 new versions of the document.
1016 @ChgToGlossary{Version=[<version>],Kind=(<kind>),Term=[<term>],Text=[<text>]}
1017 Marks a changed glossary entry. (Essentially a
1018 combination of ChgRef and ToGlossary.) <term> and <text> are the
1019 glossary entry; they can contain @Chg commands. See ChgRef and
1020 ToGlossary for details on the handling of the arguments.
1021 @ChgToGlossaryAlso{Version=[<version>],Kind=(<kind>),Term=[<term>],Text=[<text>]}
1022 Marks a changed glossary entry. (Essentially a
1023 combination of ChgRef and ToGlossaryAlso.) <term> and <text> are the
1024 glossary entry; they can contain @Chg commands. See ChgRef and
1025 ToGlossaryAlso for details on the handling of the arguments.
1026
1027 -- Tabs:
1028 @tabclear() - Clears all tab settings. Tabs are also cleared by leaving the
1029 @begin region that contains the tabstop command. Also ends any
1030 paragraphs.
1031 @tabset(<list>) - Sets tab stops at the indicated values, in picas. The list
1032 is increasing (each value is larger than the one to its right), and
1033 separated by commas. Each value can be preceeded by a modifier:
1034 L - fixed left tab;
1035 P - proporational left tab.
1036 (Other modifiers are possible, but are hard to implement in text mode.)
1037 Proportional tab values are based on the font size; the values
1038 given are for 12 point fonts (in picas); the value is then adjusted
1039 for the actual (default) font size of the paragraph.
1040 Tab stops can only be set in formats that preserve
1041 breaks (i.e. Display). Also ends any paragraphs.
1042 @\ - Move to the next tab stop.
1043
1044 -- Paragraphs:
1045 @begin{<kind>}
1046 Marks the beginning of a group of paragraphs of a particular kind.
1047 See the definition of the kinds below. Most groupings have a
1048 subheading.
1049 @end{<kind>}
1050 Marks the ending of a group of paragraphs of a particular kind.
1051
1052
1053 -- Paragraph kinds (nesting is allowed; characteristics are not preserved
1054 -- unless specifically marked below):
1055
1056
1057 Pure formatting:
1058 Comment - The text is never output into the document.
1059 WideAbove- The paragraph has wider than usual space above, but is
1060 otherwise normal.
1061 DescribeCode -
1062 The text is indented 2 units.
1063 Example - The text is formatted in the example font (which is selected
1064 in the master file) with an indent of 1 unit; spaces and
1065 breaks are preserved. This format preserves size
1066 characteristics of its parent (if any), except that if the
1067 parent is "DescribeCode", the normal characteristics are
1068 used. No page breaks are allowed within a paragraph.
1069 Do not confuse this with "Examples", which is a text
1070 grouping.
1071 ChildExample - The text is formatted in the example font (which is
1072 selected in the master file); spaces and breaks are
1073 preserved. This format preserves size and
1074 indenting characteristics of its parent (if any);
1075 with the exception that the text here is indented one
1076 additional unit.
1077 Itemize - The text is indented and bulleted (with solid circle bullets).
1078 The text preserves the size and indenting of its parent (if
1079 any).
1080 InnerItemize - The text is indented to fit inside an Itemize or
1081 Enumerate paragraph, and bulleted (with [smaller] solid
1082 circle bullets).
1083 InnerInnerItemize - The text is indented to fit inside an InnerItemize
1084 paragraph, and bulleted (with [smaller] solid circle bullets).
1085 Enumerate - The text is indented and numbered (that is, each paragraph
1086 has a prefix number). The text preserves the size and
1087 indenting of its parent (if any). The format of the number
1088 depends on the ListFormat master setting: for RM,
1089 a number followed by a period is used ["1."], for
1090 ISO2004 a letter followed by a paren is used for the main
1091 list ["a)"]; nested lists use a number ["1)"].
1092 InnerEnumerate - The text is indented to fit inside an Itemize or
1093 Enumerate paragraph, and numbered as for Enumerate.
1094 (These should only be used inside of regular Enumerate
1095 blocks if ISO 2004 formatting is desired.)
1096 Display - A normal paragraph indented one level from its parent, except
1097 that spaces and breaks are preserved. The text preserves the
1098 size of its parent (if any). No page breaks are allowed
1099 within a paragraph.
1100 Indent - A normal paragraph indented one level from its parent.
1101 The text preserves the size of its parent (if any).
1102 SyntaxDisplay - The text is in a smaller font, is indented one level,
1103 and spaces and breaks are preserved. No page breaks are
1104 allowed within a paragraph.
1105 Description - A paragraph with text indented 3 units; but the item
1106 is a hanging undent to the normal paragraph level. Usually
1107 used for attributes, but sometimes used for other items.
1108 Same as Hang3List.
1109 DescExample - The text is formatted in a fixed-width example font with
1110 an indent of 4 units; spaces and breaks are preserved. No page breaks
1111 are allowed within a paragraph.
1112 SyntaxText -
1113 The text is indented 1 unit. This is intended to match the
1114 indentation of syntax and is usually used in the syntax
1115 grouping; however syntax is usually in the swiss font.
1116 Hang1List -
1117 A paragraph with text indented 1 unit; but the item
1118 is a hanging undent to the normal paragraph level.
1119 Hang2List -
1120 A paragraph with text indented 2 units; but the item
1121 is a hanging undent to the normal paragraph level.
1122 Hang3List -
1123 A paragraph with text indented 3 units; but the item
1124 is a hanging undent to the normal paragraph level.
1125 Hang4List -
1126 A paragraph with text indented 4 units; but the item
1127 is a hanging undent to the normal paragraph level.
1128 Small - The text has the size of an AARM note, but doesn't
1129 have any headers or extra indentation.
1130 Title - The text is 5 size units (usually 5 points) larger than
1131 normal.
1132 Bundle - The text in the 'bundle' should never be page-breaked.
1133 The format is unchanged.
1134 TwoCol - Sets the text to a two-column format. The text format
1135 is unchanged.
1136 FourCol - Sets the text to a four-column format. The text format
1137 is unchanged.
1138
1139 RM groupings:
1140 Intro - Introductory text. No heading.
1141 Syntax - Syntax.
1142 Resolution- Name resolution rules.
1143 Legality - Legality rules.
1144 StaticSem - Static Semantics.
1145 LinkTime - Post-Compilation Rules.
1146 RunTime - Dynamic Semantics.
1147 Bounded - Bounded (Run-Time) errors.
1148 Erron - Erroneous Execution.
1149 ImplReq - Implementation Requirements.
1150 DocReq - Documentation Requirements.
1151 Metrics - Metrics.
1152 ImplPerm - Implementation Permissions.
1153 ImplAdvice- Implementation Advice.
1154 Notes - Notes. (Each of these is numbered and indented 1 unit.
1155 The format is controlled by the @NoteFormat command
1156 in the master file.)
1157 SingleNote - A single note (it is indented 1 unit, but not numbered.
1158 The format is controlled by the @NoteFormat command
1159 in the master file.)
1160 Examples - Examples. (Do not confuse this with the text format
1161 "Example". This is a grouping with a subhead. It is in
1162 the normal font by default; often an "Example" is found
1163 inside of "Examples".)
1164 NotIso - Text that is not included in ISO documents. No format is implied.
1165 IsoOnly - Text that is included only in ISO documents. No format is implied.
1166 RMOnly - Text that is not included in the AARM (that is, it is only
1167 included in the output if HideAnnotations is used). No
1168 format is implied.
1169
1170 AARM-only groupings: (not shown if HideAnnotations is used)
1171 MetaRules - Language Design Principles.
1172 Inconsistent83 - Inconsistencies with Ada 83.
1173 Incompatible83 - Incompatibilities with Ada 83.
1174 Extend83 - Extensions to Ada 83.
1175 DiffWord83- Wording Changes from Ada 83.
1176 Inconsistent95 - Inconsistencies with Ada 95.
1177 Incompatible95 - Incompatibilities with Ada 95.
1178 Extend95 - Extensions to Ada 95.
1179 DiffWord95- Wording Changes from Ada 95.
1180 Inconsistent2005 - Inconsistencies with Ada 2005.
1181 Incompatible2005 - Incompatibilities with Ada 2005.
1182 Extend2005 - Extensions to Ada 2005.
1183 DiffWord2005- Wording Changes from Ada 2005.
1184 Inconsistent2012 - Inconsistencies with Ada 2012.
1185 Incompatible2012 - Incompatibilities with Ada 2012.
1186 Extend2012 - Extensions to Ada 2012.
1187 DiffWord2012- Wording Changes from Ada 2012.
1188 AARMOnly - Text that is not included in the RM. No format is implied.
1189
1190 AARM annotations: (not shown if HideAnnotations is used)
1191 Reason - Why a rule is necessary.
1192 Ramification- Consequences of rules. (Important ones should be Notes).
1193 Discussion - General annotations.
1194 TheProof - Informal proof as to why Notes or Redundant text follows
1195 from the language.
1196 ImplNote - A note on implementation.
1197 Honest - To be Honest: Only pedants need apply.
1198 GlossaryMarker - Looks like a glossary entry in the AARM (but isn't
1199 really one). (Also internally used by the formatter for
1200 real glossary entries.)
1201 ElementRef - (For ASIS) Marks an Element Reference.
1202 ChildRef - (For ASIS) Marks child references for the preceding
1203 Element Reference.
1204 UsageNote - (For ASIS) Marks a Usage Note.
1205
1206 -- Text Macros:
1207
1208 <Grouping>Name - The name of a kind of rule (as in "This is a
1209 @ResolutionName.").
1210 <Grouping>Title - The title of a kind of rule (as in "This belongs under
1211 "@ResolutionTitle".").
1212 where <Grouping> is any of the paragraph grouping kinds listed above.
1213
1214 -- Character Macros:
1215
1216 These represent characters not available in the lower 128 of Latin-1, including
1217 various mathematical symbols.
1218
1219 @em - EM dash (a very long dash)
1220 @en - EN dash (a long dash)
1221 @thin - A thin space (quarter em if possible)
1222 @geq - Greater than or equal symbol
1223 @gt - Greater than symbol
1224 @leq - Less than or equal symbol
1225 @lt - Less than symbol
1226 @neq - Not equal symbol
1227 @pi - Pi
1228 @smldotlessi -- Small Dotless I (for examples). Use @Unicode(305) if we ever implement that.
1229 @capdottedi -- Capital Dotted I (for examples). Use @Unicode(304) if we ever implement that.
1230 @singlequote - Single quote ('''). Used to avoid confusion in syntax rules.
1231 @latin1{<number>} - Generate the Latin-1 character with the decimal code
1232 "number".
1233 @unicode{<number>} - Generate the Unicode character with the decimal code
1234 "number". Careful: this is unchecked; usually, the characters used
1235 should be limited to the 615 generally supported by Windows.
1236 @times - The middle dot multiply symbol.
1237 @porm - The plus or minus symbol.
1238 @ceiling{<text>} - The ceiling operator, surrounding <text>.
1239 @floor{<text>} - The floor operator, surrounding <text>.
1240 @abs{<text>} - The mathematical absolute value operation, surrounding <text>.
1241 @log{<text>} - The log operation, surrounding <text>. (In practice, this is
1242 always translated "log(<text>)").
1243 @lquote - Left (directed) single quote.
1244 @rquote - Right (directed) single quote.
1245 @ldquote - Left (directed) double quote.
1246 @rdquote - Right (directed) double quote.
1247 @lquotes - Pair of left (directed) single quotes. (Note: The ARG has directed
1248 that these be changed to a left double quote, so this is now the
1249 same as ldquote.)
1250 @rquotes - Pair of right (directed) single quotes. (Note: The ARG has directed
1251 that these be changed to a right double quote, so this is now the
1252 same as rdquote.)
1253
1254 -- Tables:
1255 @table(Columns=<number>,
1256 Alignment=<AllLeft|AllCenter|CenterExceptFirst>,
1257 FirstColWidth=<number>,
1258 LastColWidth=<number>,
1259 NoBreak=<T|F>,
1260 Border=<T|F>,
1261 SmallSize=<T|F>,
1262 Caption=<text>,
1263 Headers=<text>,
1264 Body=<row_text>)
1265
1266 Defines a table.
1267 - Columns must be a single digit (2-9).
1268 - Alignment defines the column text alignment (centered or left edge).
1269 - FirstColWidth defines the width of the first column compared to
1270 the rest - it's in multiples of the standard column width.
1271 Note that some target formats with self-sizing columns (i.e. HTML)
1272 ignore this value. It must be a single digit from 1 to 9.
1273 - LastColWidth defines the width of the last column compared to
1274 the rest - it's in multiples of the standard column width.
1275 Note that some target formats with self-sizing columns (i.e. HTML)
1276 ignore this value. It must be a single digit from 1 to 9.
1277 - If NoBreak is T, the table will be formatted on a single page.
1278 Otherwise, it will be allowed to be split across pages. This
1279 must be F if the table is larger than a single page!
1280 - If Border is T, then a border will be drawn around the table;
1281 otherwise, not border will be used.
1282 - If SmallSize is T, then the text size will be small (AARM-sized);
1283 else the text size will be normal.
1284 - Caption defines the table caption. This spans the entire table.
1285 - Headers defines the table headers. Each header is separated by
1286 a tab stop (@\). This should be a single line.
1287 - Body defines the table body. Each row should be a single line,
1288 with each item separated by a tab stop.
1289 The text may contain character and text formatting commands, but
1290 no paragraph commands. But no text command may extend across the
1291 tab marking the end of an item.
1292 @Last - Marks the end of the second last row of the table. (If left out,
1293 the bottom line of the table may be missing).
1294
1295 -- Pictures: (Graphics, Images)
1296
1297 @PictureInline(Alignment=<Inline|FloatLeft|FloatRight>,
1298 Border=<None|Thin|Thick>,
1299 Height=<nnn>,
1300 Width=<nnn>,
1301 Name=<name>,
1302 Descr=<descr>)
1303 @PictureAlone(Alignment=<Left|Right|Center>,
1304 Border=<None|Thin|Thick>,
1305 Height=<nnn>,
1306 Width=<nnn>,
1307 Name=<name>,
1308 Descr=<descr>)
1309 Includes a picture in the output. PictureAlone is a stand-alone
1310 picture with the appropriate alignment; it must appear outside
1311 of a paragraph. PictureInline occurs in the flow of text (Inline),
1312 or floats to the appropriate margin; it must appear inside of a
1313 paragraph. Otherwise, these are the same.
1314 The picture file's simple name is
1315 "name"; the file is assumed to be a .PNG or .JPG, found in the output
1316 directory. (It needs to be included with the HTML output.)
1317 "descr" is a description of the picture; it's used for the popups
1318 in HTML. Height and Width are the picture size in pixels.
1319 Border specifies the border of the picture.
1320 [Note: Inline alignment is not recommended; the picture location
1321 cannot be controlled, especially on RTF, it can appear in margins
1322 and other bad locations.]
1323
1324 -------------------
1325
1326 Use to create Ada standard documents.
1327
1328
1329 The master file AARM.MSM specifies the Annotated Ada Reference Manual. This
1330 is mainly intended for implementors and language lawyers. It includes
1331 annotations. (In the past, it also included visible index entries, but that
1332 has been turned off by popular demand).
1333
1334 The master file RM.MSM specifies the Ada Reference Manual. This is the
1335 version used by most users.
1336
1337 The master file ISO-RM.MSM specifies Ada Reference Manual in ISO format.
1338 This version lacks some sections, paragraph numbers, and is formatted for A4
1339 paper.
1340
1341 Versions:
1342 0-Original Ada 95 (equivalent to No-Changes)
1343 1-Technical Corrigendum 1
1344 2-Amendment 1 [Ada 2005 (standard published 2007, so could be considered Ada 2007)]
1345 3-3rd Edition (Ada 2012)
1346 4-4th Edition (Ada 202x) - Not official yet.
1347
1348 Please note that there some changes to earlier versions (mostly typographical,
1349 but there are some that are significant) that are not preserved in the Ada 2012
1350 source code (.MSM and .MSS files), so to get an exact match to one of the
1351 previous versions, you must use the source code appropriate for that version.
1352
1353 One specific change; the MSM files for Ada 2012 have @SubdivisionNames{Clause}
1354 (as this is required by ITTF) while the MSM files for Ada 95 and Ada 2005 have
1355 @SubdivisionNames{Section} (as this was required when those standards were
1356 current).
1357
1358 In addition, several clauses were moved to different numbers within the
1359 Standard (for both Ada 2012 and Ada 2005); usually, these were done by
1360 by just renaming the clause (and changing the @Label command) and the
1361 original location is not preserved.
1362