home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / rfc / ftsc / rtf_spec.004 < prev    next >
Encoding:
Text File  |  2003-06-11  |  268.1 KB  |  7,310 lines

  1.  
  2.  
  3.  
  4.        Microsoft(R) MS-DOS(R), Windows(TM), OS/2(R),      Microsoft (R)
  5.        and Apple(R) Macintosh(R) Applications
  6.  
  7.        Versions:    RTF Version 1.3                         Product Support
  8.                                                                Services
  9.  
  10.        Subject:     Rich Text Format (RTF) Specification  Application Note
  11.  
  12.        Contents:    126 Pages, No Disk                    1/94   GC0165
  13.  
  14.  
  15.  
  16.            INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY
  17.          ACCOMPANY THIS DOCUMENT (collectively referred to as an Application
  18.            Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
  19.            EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
  20.        WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
  21.          The user assumes the entire risk as to the accuracy and the use of
  22.            this Application Note. This Application Note may be copied and
  23.         distributed subject to the following conditions:  1) All text must be
  24.          copied without modification and all pages must be included;  2) If
  25.         software is included, all files on the disk(s) must be copied without
  26.          modification (the MS-DOS  utility diskcopy is appropriate for this
  27.             purpose);  3) All components of this Application Note must be
  28.            distributed together;  and  4) This Application Note may not be
  29.                                distributed for profit.
  30.  
  31.         Copyright (C) 1989-1994 Microsoft Corporation.  All Rights Reserved.
  32.          Microsoft, MS, and MS-DOS are registered trademarks and Windows and
  33.                  Windows NT are trademarks of Microsoft Corporation.
  34.  
  35.           PostScript is a registered trademark of Adobe Systems, Inc.Apple,
  36.         Macintosh, and TrueType are registered trademarks and QuickDraw is a
  37.                           trademark of Apple Computer, Inc.
  38.             IBM, OS/2, and Personal System/2 are registered trademarks of
  39.                     International Business Machines Corporation.
  40.          Arial, Courier New and Times New Roman are registered trademarks of
  41.                             The Monotype Corporation PLC.
  42.         ITC Zapf Chancery is a registered trademark of International Typeface
  43.                                     Corporation.
  44.               Palatino is a registered trademark of Linotype AG and its
  45.                                     subsidiaries.
  46.                   Unicode is a trademark of Unicode, Incorporated.
  47.              This document was created using Microsoft Word for Windows.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.                          Microsoft Product Support Services
  60.  
  61.  
  62.  
  63.  
  64.                                Rich Text Format (RTF) Specification    page 2
  65.  
  66.        Table of Contents
  67.  
  68.  
  69.  
  70.        1. Introduction .....................................................4
  71.  
  72.        2. RTF Syntax .......................................................4
  73.  
  74.        3. Conventions of an RTF Reader .....................................7
  75.  
  76.        4. Formal Syntax ...................................................10
  77.  
  78.        5. Contents of an RTF File .........................................11
  79.  
  80.             5.1. Header ...................................................11
  81.  
  82.                     5.1.1. RTF Version.....................................11
  83.  
  84.                     5.1.2. Character Set...................................11
  85.  
  86.                     5.1.3. Font Table......................................12
  87.  
  88.                     5.1.4. File Table......................................17
  89.  
  90.                     5.1.5. Color Table.....................................18
  91.  
  92.                     5.1.6. Style Sheet.....................................19
  93.  
  94.                     5.1.7. Revision Marks..................................23
  95.  
  96.             5.2. Document Area ............................................24
  97.  
  98.                     5.2.1. Information Group...............................24
  99.  
  100.                     5.2.2. Document Formatting Properties..................26
  101.  
  102.                     5.2.3. Section Text....................................33
  103.  
  104.                     5.2.4. Paragraph Text..................................40
  105.  
  106.                     5.2.5. Character Text..................................58
  107.  
  108.                     5.2.6. Bookmarks.......................................69
  109.  
  110.                     5.2.7. Pictures........................................70
  111.  
  112.                     5.2.8. Objects.........................................75
  113.  
  114.                     5.2.9. Drawing Objects.................................80
  115.  
  116.                     5.2.10. Footnotes......................................90
  117.  
  118.  
  119.                          Microsoft Product Support Services
  120.  
  121.  
  122.  
  123.  
  124.                                Rich Text Format (RTF) Specification    page 3
  125.  
  126.                     5.2.11. Annotations....................................91
  127.  
  128.                     5.2.12. Fields.........................................92
  129.  
  130.                     5.2.13. Index Entries..................................94
  131.  
  132.                     5.2.14. Table of Contents Entries......................95
  133.  
  134.                     5.2.15. Bidirectional Language Support.................96
  135.  
  136.        6. Index of RTF Control Words ......................................97
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.                          Microsoft Product Support Services
  180.  
  181.  
  182.  
  183.  
  184.                                Rich Text Format (RTF) Specification    page 4
  185.  
  186.  
  187.  
  188.        1.   Introduction
  189.  
  190.             The Rich Text Format (RTF) Specification is a method of encoding
  191.             formatted text and graphics for easy transfer between
  192.             applications. Currently, users depend on special translation
  193.             software to move word-processing documents between different MS-
  194.             DOS, Windows, OS/2, and Apple Macintosh applications.
  195.  
  196.             The RTF Specification provides a format for text and graphics
  197.             interchange that can be used with different output devices,
  198.             operating environments, and operating systems. RTF uses the ANSI,
  199.             PC-8, Macintosh, or IBM(R) PC character set to control the
  200.             representation and formatting of a document, both on the screen
  201.             and in print. With the RTF Specification, documents created under
  202.             different operating systems and with different software
  203.             applications can be transferred between those operating systems
  204.             and applications.
  205.  
  206.             Software that takes a formatted file and turns it into an RTF
  207.             file is called a writer. An RTF writer separates the
  208.             application's control information from the actual text and writes
  209.             a new file containing the text and the RTF groups associated with
  210.             that text. Software that translates an RTF file into a formatted
  211.             file is called a reader.
  212.  
  213.        2.   RTF Syntax
  214.  
  215.             An RTF file consists of unformatted text, control words, control
  216.             symbols, and groups. For ease of transport, a standard RTF file
  217.             can consist of only 7-bit ASCII characters. (Converters that
  218.             communicate with Microsoft Word for Windows or Microsoft Word for
  219.             the Macintosh should expect 8-bit characters.)
  220.  
  221.             A control word is a specially formatted command that RTF uses to
  222.             mark printer control codes and information that applications use
  223.             to manage documents. A control word takes the following form:
  224.  
  225.                  \ LetterSequence<Delimiter>
  226.  
  227.             Note that a backslash begins each control word.
  228.  
  229.             The LetterSequence is made up of lowercase alphabetic characters
  230.             between "a" and "z" inclusive. RTF is case sensitive, and all RTF
  231.             control words must be in lowercase.
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.                          Microsoft Product Support Services
  240.  
  241.  
  242.  
  243.  
  244.                                Rich Text Format (RTF) Specification    page 5
  245.  
  246.             The Delimiter marks the end of an RTF control word, and can be
  247.             one of the following:
  248.  
  249.             *  A space. In this case, the space is part of the control word.
  250.  
  251.             *  A digit or a hyphen (-), which indicates that a numeric
  252.                parameter follows. The subsequent digital sequence is then
  253.                delimited by a space or any character other than a letter or a
  254.                digit. The parameter can be a positive or a negative number.
  255.                The range of the values for the number is -32767 through
  256.                32767. However, Microsoft Word for Windows, Word for OS/2, and
  257.                Word for the Macintosh restrict the range to -31680 through
  258.                31680. If a numeric parameter immediately follows the control
  259.                word, this parameter becomes part of the control word. The
  260.                control word is then delimited by a space or a nonalphabetic
  261.                or nonnumeric character in the same manner as any other
  262.                control word.
  263.  
  264.             *  Any character other than a letter or a digit. In this case,
  265.                the delimiting character terminates the control word but is
  266.                not actually part of the control word.
  267.  
  268.             If a space delimits the control word, the space does not appear
  269.             in the document. Any characters following the delimiter,
  270.             including spaces, will appear in the document. For this reason,
  271.             you should use spaces only where necessary; do not use spaces
  272.             merely to break up RTF code.
  273.  
  274.             A control symbol consists of a backslash followed by a single,
  275.             nonalphabetic character. For example, \ ~ represents a
  276.             nonbreaking space. Control symbols take no delimiters.
  277.  
  278.             A group consists of text and control words or control symbols
  279.             enclosed in braces ({ }). The opening brace ({ ) indicates the
  280.             start of the group and the closing brace ( }) indicates the end
  281.             of the group. Each group specifies the text affected by the group
  282.             and the different attributes of that text. The RTF file can also
  283.             include groups for fonts, styles, screen color, pictures,
  284.             footnotes, annotations, headers and footers, summary information,
  285.             fields, and bookmarks, as well as document-, section-, paragraph-
  286.             , and character-formatting properties. If the font, file, style,
  287.             screen-color, revision mark, and summary-information groups and
  288.             document-formatting properties are included, they must precede
  289.             the first plain-text character in the document. These groups form
  290.             the RTF file header. If the group for fonts is included, it
  291.             should precede the group for styles. If any group is not used, it
  292.             can be omitted. The groups are discussed in the following
  293.             sections.
  294.  
  295.             The control properties of certain control words (such as bold,
  296.             italic, keep together, and so forth) have only two states. When
  297.             such a control word has no parameter or has a nonzero parameter,
  298.  
  299.                          Microsoft Product Support Services
  300.  
  301.  
  302.  
  303.  
  304.                                Rich Text Format (RTF) Specification    page 6
  305.  
  306.             it is assumed that the control word turns on the property. When
  307.             such a control word has a parameter of 0 (zero), it is assumed
  308.             that the control word turns off the property. For example, \ b
  309.             turns on bold, whereas \ b0 turns off bold.
  310.  
  311.             Certain control words, referred to as destinations, mark the
  312.             beginning of a collection of related text that could appear at
  313.             another position, or destination, within the document.
  314.             Destinations may also be text that is used but should not appear
  315.             within the document at all. An example of a destination is the
  316.             \ footnote group, where the footnote text follows the control
  317.             word. Destination control words and their following text must be
  318.             enclosed in braces. Destinations added after the RTF
  319.             Specification published in the March 1987 Microsoft Systems
  320.             Journal may be preceded by the control symbol \ *. This control
  321.             symbol identifies destinations whose related text should be
  322.             ignored if the RTF reader does not recognize the destination.
  323.             (RTF writers should follow the convention of using this control
  324.             symbol when adding new destinations or groups.) Destinations
  325.             whose related text should be inserted into the document even if
  326.             the RTF reader does not recognize the destination should not use
  327.             \ *. All destinations that were not included in the March 1987
  328.             revision of the RTF Specification are shown with \ * as part of
  329.             the control word.
  330.  
  331.             Formatting specified within a group affects only the text within
  332.             that group. Generally, text within a group inherits the
  333.             formatting of the text in the preceding group. However, Microsoft
  334.             implementations of RTF assume that the footnote, annotation,
  335.             header, and footer groups (described later in this chapter) do
  336.             not inherit the formatting of the preceding text. Therefore, to
  337.             ensure that these groups are always formatted correctly, you
  338.             should set the formatting within these groups to the default with
  339.             the \ sectd, \ pard, and \ plain control words, and then add any
  340.             desired formatting.
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.                          Microsoft Product Support Services
  360.  
  361.  
  362.  
  363.  
  364.                                Rich Text Format (RTF) Specification    page 7
  365.  
  366.             The control words, control symbols, and braces constitute control
  367.             information. All other characters in the file are plain text.
  368.             Here is an example of plain text that does not exist within a
  369.             group:
  370.  
  371.                  {\rtf\ansi\deff0{\fonttbl{\f0\froman Tms Rmn;}{\f1\fdecor
  372.                  Symbol;}{\f2\fswiss Helv;}}{\colortbl;\red0\green0\blue0;
  373.                  \red0\green0\blue255;\red0\green255\blue255;\red0\green255\
  374.                  blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\
  375.                  green255\blue0;\red255\green255\blue255;}{\stylesheet{\fs20
  376.                  \snext0Normal;}}{\info{\author John Doe}
  377.                  {\creatim\yr1990\mo7\dy30\hr10\min48}{\version1}{\edmins0}
  378.                  {\nofpages1}{\nofwords0}{\nofchars0}{\vern8351}}\widoctrl\ft
  379.                  nbj \sectd\linex0\endnhere \pard\plain \fs20 This is plain
  380.                  text.\par}
  381.  
  382.             The phrase ``This is plain text'' is not part of a group and is
  383.             treated as document text.
  384.  
  385.             As previously mentioned, the backslash ( \ ) and braces ({ })
  386.             have special meaning in RTF. To use these characters as text,
  387.             precede them with a backslash, as in \\ , \ {, and \}.
  388.  
  389.        3.   Conventions of an RTF Reader
  390.  
  391.             The reader of an RTF stream is concerned with the following:
  392.  
  393.             *  Separating control information from plain text.
  394.  
  395.             *  Acting on control information.
  396.  
  397.             *  Collecting and properly inserting text into the document, as
  398.                directed by the current group state.
  399.  
  400.             Acting on control information is designed to be a relatively
  401.             simple process. Some control information simply contributes
  402.             special characters to the plain text stream. Other information
  403.             serves to change the program state, which includes properties of
  404.             the document as a whole, or to change any of a collection of
  405.             group states, which apply to parts of the document.
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.                          Microsoft Product Support Services
  420.  
  421.  
  422.  
  423.  
  424.                                Rich Text Format (RTF) Specification    page 8
  425.  
  426.             As previously mentioned, a group state can specify the following:
  427.  
  428.             *  The destination, or part of the document that the plain text
  429.                is constructing.
  430.  
  431.             *  Character-formatting properties, such as bold or italic.
  432.  
  433.             *  Paragraph-formatting properties, such as justified or
  434.                centered.
  435.  
  436.             *  Section-formatting properties, such as the number of columns.
  437.  
  438.             *  Table-formatting properties, which define the number of cells
  439.                and dimensions of a table row.
  440.  
  441.             In practice, an RTF reader will evaluate each character it reads
  442.             in sequence as follows:
  443.  
  444.             *  If the character is an opening brace ({), the reader stores
  445.                its current state on the stack. If the character is a closing
  446.                brace (}), the reader retrieves the current state from the
  447.                stack.
  448.  
  449.             *  If the character is a backslash (\), the reader collects the
  450.                control word or control symbol and its parameter, if any, and
  451.                looks up the control word or control symbol in a table that
  452.                maps control words to actions. It then carries out the action
  453.                prescribed in the table. (The possible actions are discussed
  454.                below.) The read pointer is left before or after a control-
  455.                word delimiter, as appropriate.
  456.  
  457.             *  If the character is anything other than an opening brace ({),
  458.                closing brace (}), or backslash (\) , the reader assumes that
  459.                the character is plain text and writes the character to the
  460.                current destination using the current formatting properties.
  461.  
  462.             If the RTF reader cannot find a particular control word or
  463.             control symbol in the look-up table described above, the control
  464.             word or control symbol should be ignored. If a control word or
  465.             control symbol is preceded by an opening brace ({), it is part of
  466.             a group. The current state should be saved on the stack, but no
  467.             state change should occur. When a closing brace (}) is
  468.             encountered, the current state should be retrieved from the
  469.             stack, thereby resetting the current state. If the \ * control
  470.             symbol precedes a control word, then it defines a destination
  471.             group and was itself preceded by an opening brace ({). The RTF
  472.             reader should discard all text up to and including the closing
  473.             brace (}) that closes this group. All RTF readers must recognize
  474.             all destinations defined in the March 1987 RTF Specification. The
  475.             reader may skip past the group, but it is not allowed to simply
  476.             discard the control word. Destinations defined since March 1987
  477.             are marked with the \* control symbol.
  478.  
  479.                          Microsoft Product Support Services
  480.  
  481.  
  482.  
  483.  
  484.                                Rich Text Format (RTF) Specification    page 9
  485.  
  486.                Note:  All RTF readers must implement the \* control
  487.                       symbol so that they can read RTF files written by
  488.                       newer RTF writers.
  489.  
  490.             For control words or control symbols that the RTF reader can find
  491.             in the look-up table, the possible actions are as follows.
  492.  
  493.             Action                 Description
  494.  
  495.             -------------------    ------------------------------------------
  496.  
  497.             Change Destination     The RTF reader changes the destination to
  498.                                    the destination described in the table
  499.                                    entry. Destination changes are legal only
  500.                                    immediately after an opening brace ({ ).
  501.                                    (Other restrictions may also apply; for
  502.                                    example, footnotes cannot be nested.) Many
  503.                                    destination changes imply that the current
  504.                                    property settings will be reset to their
  505.                                    default settings. Examples of control words
  506.                                    that change destination are \ footnote,
  507.                                    \ header, \ footer, \ pict, \ info,
  508.                                    \ fonttbl, \ stylesheet, and \ colortbl.
  509.                                    This Application Note identifies all
  510.                                    destination control words where they appear
  511.                                    in control-word tables.
  512.  
  513.             Change Formatting      The RTF reader changes the property as
  514.             Property               described in the table entry. The entry
  515.                                    will specify whether a parameter is
  516.                                    required. The ``ndex of RTF Control ''
  517.                                    section at the end of this Application Note
  518.                                    also specifies which control words require
  519.                                    parameters. If a parameter is needed and
  520.                                    not specified, then a default value will be
  521.                                    used. The default value used depends on
  522.                                    the control word. If the control word does
  523.                                    not specify a default, then all RTF readers
  524.                                    should assume a default of 0.
  525.  
  526.             Insert Special         The reader inserts into the document the
  527.             Character              character code or codes described in the
  528.                                    table entry.
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.                          Microsoft Product Support Services
  540.  
  541.  
  542.  
  543.  
  544.                                Rich Text Format (RTF) Specification   page 10
  545.  
  546.             Action                 Description
  547.  
  548.             -------------------    ------------------------------------------
  549.  
  550.             Insert Special         The reader inserts into the document the
  551.             Character and          character code or codes described in the
  552.             Perform Action         table entry and performs whatever other
  553.                                    action the entry specifies. For example,
  554.                                    when Microsoft Word interprets \ par, a
  555.                                    paragraph mark is inserted in the document
  556.                                    and special code is run to record the
  557.                                    paragraph properties belonging to that
  558.                                    paragraph mark.
  559.  
  560.  
  561.  
  562.        4.   Formal Syntax
  563.  
  564.             This Application Note describes RTF using the following syntax,
  565.             based on Backus-Naur Form.
  566.  
  567.             Syntax       Meaning
  568.  
  569.             ---------    ---------------------------------------------------
  570.  
  571.             #PCDATA      Text (without control words).
  572.  
  573.             #SDATA       Hexadecimal data.
  574.  
  575.             #BDATA       Binary data.
  576.  
  577.             'c'          A literal.
  578.  
  579.             <text>       A nonterminal.
  580.  
  581.             a            The (terminal) control word a, without a parameter.
  582.  
  583.             a  or aN     The (terminal) control word a, with a parameter.
  584.  
  585.             a?           Item a is optional.
  586.  
  587.             a+           One or more repetitions of item a.
  588.  
  589.             a*           Zero or more repetitions of item a.
  590.  
  591.             a b          Item a followed by item b.
  592.  
  593.             a | b        Item a or item b.
  594.  
  595.             a & b        Item a and/or item b, in any order.
  596.  
  597.  
  598.  
  599.                          Microsoft Product Support Services
  600.  
  601.  
  602.  
  603.  
  604.                                Rich Text Format (RTF) Specification   page 11
  605.  
  606.        5.   Contents of an RTF File
  607.  
  608.             An RTF file has the following syntax:
  609.  
  610.             <File>      '{' <header> <document>'}'
  611.  
  612.  
  613.  
  614.             This syntax is the standard RTF syntax;  any RTF reader must be
  615.             able to correctly interpret RTF written to this syntax.  It is
  616.             worth mentioning again that RTF readers do not have to use all
  617.             control words, but they must be able to harmlessly ignore unknown
  618.             (or unused) control words, and they must correctly skip over
  619.             destinations marked with the \* control symbol. There may,
  620.             however, be RTF writers that generate RTF that does not conform
  621.             to this syntax, and as such, RTF readers should be robust enough
  622.             to handle some minor variations.  Nonetheless, if an RTF writer
  623.             generates RTF conforming to this specification, then any correct
  624.             RTF reader should be able to interpret it.
  625.  
  626.        5.1.  Header
  627.  
  628.             The header has the following syntax:
  629.  
  630.             <header>          \ rtf <charset> \ deff? <fonttbl> <filetbl>?
  631.                               <colortbl>? <stylesheet>? <revtbl>?
  632.  
  633.  
  634.  
  635.           5.1.1. RTF Version
  636.  
  637.             An entire RTF file is considered a group and must be enclosed in
  638.             braces. The control word \ rtfN must follow the opening brace.
  639.             The numeric parameter N identifies the major version of the RTF
  640.             Specification used. The RTF standard described in this
  641.             Application Note, although titled as version 1.2, continues to
  642.             correspond syntactically to RTF Specification Version 1.
  643.             Therefore, the numeric parameter N for the \rtf control word
  644.             should still be emitted as 1.
  645.  
  646.           5.1.2. Character Set
  647.  
  648.             After specifying the RTF version, you must declare the character
  649.             set used in this document. The control word for the character set
  650.             must precede any plain text or any table control words. The RTF
  651.             Specification currently supports the following character sets.
  652.  
  653.             Control word      Character set
  654.  
  655.             --------------    ----------------------------------------------
  656.  
  657.  
  658.  
  659.                          Microsoft Product Support Services
  660.  
  661.  
  662.  
  663.  
  664.                                Rich Text Format (RTF) Specification   page 12
  665.  
  666.             Control word      Character set
  667.  
  668.             --------------    ----------------------------------------------
  669.  
  670.             \ ansi            ANSI (the default)
  671.  
  672.             \ mac             Apple Macintosh
  673.  
  674.             \ pc              IBM PC code page 437
  675.  
  676.             \ pca             IBM PC code page 850, used by IBM Personal
  677.                               System/2(R) (not implemented in version 1 of
  678.                               Microsoft Word for OS/2)
  679.  
  680.  
  681.  
  682.           5.1.3. Font Table
  683.  
  684.             The \ fonttbl control word introduces the font table group.
  685.             Unique \fN control words define each font available in the
  686.             document, and are used to reference that font throughout the
  687.             document. This group has the following syntax:
  688.  
  689.             <fonttbl>         '{' \ fonttbl (<fontinfo> | ('{' <fontinfo>
  690.                               '}'))+  '}'
  691.  
  692.             <fontinfo>        <fontnum><fontfamily><fcharset>?<fprq>?<fontemb
  693.                               >?<codepage>? <fontname><fontaltname>? ';'
  694.  
  695.             <fontnum>         \ f
  696.  
  697.             <fontfamily>      \ fnil | \ froman | \ fswiss | \ fmodern |
  698.                               \ fscript | \ fdecor | \ ftech | \ fbidi
  699.  
  700.             <fcharset>        \ fcharset
  701.  
  702.             <fprq>            \ fprq
  703.  
  704.             <fontname>        #PCDATA
  705.  
  706.             <fontaltname>     '{\*' \falt #PCDATA '}'
  707.  
  708.             <fontemb>         '{\ *' \ fontemb <fonttype> <fontfname>?
  709.                               <data>? '}'
  710.  
  711.             <fonttype>        \ ftnil | \ fttruetype
  712.  
  713.             <fontfname>       '{\ *' \ fontfile <codepage>? #PCDATA '}'
  714.  
  715.             <codepage>        \ cpg
  716.  
  717.  
  718.  
  719.                          Microsoft Product Support Services
  720.  
  721.  
  722.  
  723.  
  724.                                Rich Text Format (RTF) Specification   page 13
  725.  
  726.             Note for <fontemb> that either <fontfname> or <data> must be
  727.             present, although both may be present.
  728.  
  729.             All fonts available to the RTF writer can be included in the font
  730.             table, even if the document doesn't use all the fonts.
  731.  
  732.             RTF also supports font families, so that applications can attempt
  733.             to intelligently choose fonts if the exact font is not present on
  734.             the reading system. RTF uses the following control words to
  735.             describe the various font families.
  736.  
  737.             Control word      Font family                Examples
  738.  
  739.             --------------    ------------------------   ----------------
  740.  
  741.             \ fnil            Unknown or default fonts
  742.                               (the default)
  743.  
  744.             \ froman          Roman, proportionally      Times New
  745.                               spaced serif fonts         Roman(R),
  746.                                                          Palatino(R)
  747.  
  748.             \ fswiss          Swiss, proportionally      Arial(R)
  749.                               spaced sans serif fonts
  750.  
  751.             \ fmodern         Fixed-pitch serif and      Courier New(R),
  752.                               sans serif fonts           Pica
  753.  
  754.             \ fscript         Script fonts               Cursive
  755.  
  756.             \ fdecor          Decorative fonts           Old English, ITC
  757.                                                          Zapf Chancery(R)
  758.  
  759.             \ ftech           Technical, symbol, and     Symbol
  760.                               mathematical fonts
  761.  
  762.             \ fbidi           Arabic, Hebrew, or other   Miriam
  763.                               bidirectional font
  764.  
  765.  
  766.  
  767.             If an RTF file uses a default font, the default font number is
  768.             specified with the \ deffN control word, which must precede the
  769.             font-table group. The RTF writer supplies the default font number
  770.             used in the creation of the document as the numeric argument N.
  771.             The RTF reader then translates this number through the font table
  772.             into the most similar font available on the reader's system.
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.                          Microsoft Product Support Services
  780.  
  781.  
  782.  
  783.  
  784.                                Rich Text Format (RTF) Specification   page 14
  785.  
  786.             The following control words specify the character set,
  787.             alternative font name and pitch of a font in the font table.
  788.  
  789.             Control word      Definition
  790.  
  791.             --------------    ----------------------------------------------
  792.  
  793.             \ fcharsetN       Specifies the character set of a font in the
  794.                               font table.
  795.  
  796.             \falt             Indicates alternate font name to use if the
  797.                               specified font in the font table is not
  798.                               available.  '{\*' \falt <Alternate Font
  799.                               Name>'}'
  800.  
  801.             \ fprqN           Specifies the pitch of a font in the font
  802.                               table.
  803.  
  804.  
  805.  
  806.             If \fcharset is specified, the N argument can be one of the
  807.             following types.
  808.  
  809.             Character set                 N Value
  810.  
  811.             ---------------------------   ----------------------------------
  812.  
  813.             ANSI_CHARSET                  0
  814.  
  815.             SYMBOL_CHARSET                2
  816.  
  817.             SHIFTJIS_CHARSET              128
  818.  
  819.             GREEK_CHARSET                 161
  820.  
  821.             TURKISH_CHARSET               162
  822.  
  823.             HEBREW_CHARSET                177
  824.  
  825.             ARABICSIMPLIFIED_CHARSET      178
  826.  
  827.             ARABICTRADITIONAL_CHARSET     179
  828.  
  829.             ARABICUSER_CHARSET            180
  830.  
  831.             HEBREWUSER_CHARSET            181
  832.  
  833.             CYRILLIC_CHARSET              204
  834.  
  835.             EASTERNEUROPE_CHARSET         238
  836.  
  837.  
  838.  
  839.                          Microsoft Product Support Services
  840.  
  841.  
  842.  
  843.  
  844.                                Rich Text Format (RTF) Specification   page 15
  845.  
  846.             Character set                 N Value
  847.  
  848.             ---------------------------   ----------------------------------
  849.  
  850.             PC437_CHARSET                 254
  851.  
  852.             OEM_CHARSET                   255
  853.  
  854.  
  855.  
  856.             If \fprq is specified, the N argument can be one of the following
  857.             values.
  858.  
  859.             Pitch             Value
  860.  
  861.             --------------    ----------------------------------------------
  862.  
  863.             Default pitch     0
  864.  
  865.             Fixed pitch       1
  866.  
  867.             Variable pitch    2
  868.  
  869.  
  870.  
  871.             5.1.3.1.  Font Embedding
  872.  
  873.             RTF supports embedded fonts with the \ fontemb group located
  874.             inside a font definition. An embedded font can be specified by a
  875.             filename, or the actual font data may be located inside the
  876.             group. If a filename is specified, it is contained in the
  877.             \ fontfile group. The \ cpg control word can be used to specify
  878.             the character set for the filename.
  879.  
  880.             RTF supports TrueType  and other embedded fonts. The type of the
  881.             embedded font is described by the following control words.
  882.  
  883.             Control word      Embedded font type
  884.  
  885.             --------------    ----------------------------------------------
  886.  
  887.             \ ftnil           Unknown or default font type (the default)
  888.  
  889.             \ fttruetype      TrueType font
  890.  
  891.  
  892.  
  893.             5.1.3.2.  Code Page Support
  894.  
  895.             A font may have a different character set from the character set
  896.             of the document. For example, the Symbol font has the same
  897.             characters in the same positions both on the Macintosh and in
  898.  
  899.                          Microsoft Product Support Services
  900.  
  901.  
  902.  
  903.  
  904.                                Rich Text Format (RTF) Specification   page 16
  905.  
  906.             Windows. RTF describes this with the \ cpg control word, which
  907.             names the character set used by the font. In addition, filenames
  908.             (used in field instructions and in embedded fonts) may not
  909.             necessarily be the same as the character set of the document; the
  910.             \ cpg control word can change the character set for these
  911.             filenames as well. However, all RTF documents must still declare
  912.             a character set (that is, \ansi, \mac, \pc, or \pca) to maintain
  913.             backwards compatibility with earlier RTF readers.
  914.  
  915.             The table below describes valid values for \ cpg.
  916.  
  917.             Value             Description
  918.  
  919.             --------------    ----------------------------------------------
  920.  
  921.             437               United States IBM
  922.  
  923.             708               Arabic (ASMO 708)
  924.  
  925.             709               Arabic (ASMO 449+, BCON V4)
  926.  
  927.             710               Arabic (transparent Arabic)
  928.  
  929.             711               Arabic (Nafitha Enhanced)
  930.  
  931.             720               Arabic (transparent ASMO)
  932.  
  933.             819               Windows 3.1 (United States and Western Europe)
  934.  
  935.             850               IBM multilingual
  936.  
  937.             852               Eastern European
  938.  
  939.             860               Portuguese
  940.  
  941.             862               Hebrew
  942.  
  943.             863               French Canadian
  944.  
  945.             864               Arabic
  946.  
  947.             865               Norwegian
  948.  
  949.             866               Soviet Union
  950.  
  951.             932               Japanese
  952.  
  953.             1250              Windows 3.1 (Eastern European)
  954.  
  955.             1251              Windows 3.1 (Cyrillic)
  956.  
  957.  
  958.  
  959.                          Microsoft Product Support Services
  960.  
  961.  
  962.  
  963.  
  964.                                Rich Text Format (RTF) Specification   page 17
  965.  
  966.           5.1.4. File Table
  967.  
  968.             The \ filetbl control word introduces the file table destination.
  969.             This group defines the files referenced in the document and has
  970.             the following syntax:
  971.  
  972.             <filetbl>         '{\ *'  \ filetbl ('{' <fileinfo> '}')+  '}'
  973.  
  974.             <fileinfo>        \ file <filenum><relpath>?<osnum>?
  975.                               <filesource>+ <filename>
  976.  
  977.             <filenum>          \ fid
  978.  
  979.             <relpath>         \ frelative
  980.  
  981.             <osnum>           \ fosnum
  982.  
  983.             <filesource>       \ fvalidmac | \ fvaliddos | \ fvalidntfs |
  984.                               \ fvalidhpfs | \ fnetwork
  985.  
  986.             <filename>        #PCDATA
  987.  
  988.  
  989.  
  990.             Note that the filename can be any valid alphanumeric string for
  991.             the named file system, indicating the complete path and filename.
  992.  
  993.             Control word      Definition
  994.  
  995.             --------------    ----------------------------------------------
  996.  
  997.             \ filetbl         A list of documents referenced by the current
  998.                               document. The file table has a structure
  999.                               analogous to the style or font table. This is a
  1000.                               destination control word output as part of the
  1001.                               document header.
  1002.  
  1003.             \ file            Marks the beginning of a file group, which
  1004.                               lists relevant information about the referenced
  1005.                               file. This is a destination control word.
  1006.  
  1007.             \ fidN            File ID number. Files are referenced later in
  1008.                               the document using this number.
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.                          Microsoft Product Support Services
  1020.  
  1021.  
  1022.  
  1023.  
  1024.                                Rich Text Format (RTF) Specification   page 18
  1025.  
  1026.             Control word      Definition
  1027.  
  1028.             --------------    ----------------------------------------------
  1029.  
  1030.             \ frelativeN      The character position within the path
  1031.                               (starting at 0 [zero]) where the referenced
  1032.                               file's path starts to be relative to the path
  1033.                               of the owning document. For example, a document
  1034.                               is saved to the path
  1035.                               C:\ PRIVATE\ RESUME\ FILE1.DOC and its file
  1036.                               table contains the path
  1037.                               C:\ PRIVATE\ RESUME\ EDU\ FILE2.DOC, then that
  1038.                               entry in the file table will be \ frelative18,
  1039.                               to point at the character "e" in "edu". This
  1040.                               allows preservation of relative paths.
  1041.  
  1042.             \ fosnumN         Currently only filled in for paths from the
  1043.                               Macintosh file system. It is an operating-
  1044.                               system-specific number for identifying the
  1045.                               file, which may be used to speed up access to
  1046.                               the file, or find it if the file has been moved
  1047.                               to another folder or disk. The Macintosh
  1048.                               operating system name for this number is the
  1049.                               "file id." Additional meanings of the \ fosnumN
  1050.                               control word may be defined for other file
  1051.                               systems in the future.
  1052.  
  1053.             \ fvalidmac       Macintosh file system.
  1054.  
  1055.             \ fvaliddos       MS-DOS file system.
  1056.  
  1057.             \ fvalidntfs      NTFS file system.
  1058.  
  1059.             \ fvalidhpfs      HPFS file system.
  1060.  
  1061.             \ fnetwork        Network file system. This control word may be
  1062.                               used in conjunction with any of the previous
  1063.                               file source control words.
  1064.  
  1065.  
  1066.  
  1067.           5.1.5. Color Table
  1068.  
  1069.             The \ colortbl control word introduces the color table group,
  1070.             which defines screen colors, character colors, and other color
  1071.             information. This group has the following syntax:
  1072.  
  1073.             <colortbl>        '{' \ colortbl <colordef>+ '}'
  1074.  
  1075.             <colordef>        \ red ? & \ green ? & \ blue ? ';'
  1076.  
  1077.  
  1078.  
  1079.                          Microsoft Product Support Services
  1080.  
  1081.  
  1082.  
  1083.  
  1084.                                Rich Text Format (RTF) Specification   page 19
  1085.  
  1086.             The following are valid control words for this group.
  1087.  
  1088.             Control word      Meaning
  1089.  
  1090.             --------------    ----------------------------------------------
  1091.  
  1092.             \ redN            Red index
  1093.  
  1094.             \ greenN          Green index
  1095.  
  1096.             \ blueN           Blue index
  1097.  
  1098.  
  1099.  
  1100.             Each definition must be delimited by a semicolon, even if the
  1101.             definition is omitted. If a color definition is omitted, the RTF
  1102.             reader uses its default color. In the example below, three colors
  1103.             are defined. The first color is omitted, as shown by the
  1104.             semicolon following the \ colortbl control word.
  1105.  
  1106.                  {\colortbl;\red0\green0\blue0;\red0\green0\blue255;}
  1107.  
  1108.             The foreground and background colors use indexes into the color
  1109.             table to define a color. For more information on color setup, see
  1110.             your Windows documentation.
  1111.  
  1112.             The following example defines a block of text in color (where
  1113.             supported). Note that the cf/cb index is the index of an entry in
  1114.             the color table, which represents a red/green/blue color
  1115.             combination.
  1116.  
  1117.                  {\f1\cb1\cf2 This is colored text. The background is color
  1118.                  1 and the foreground is color 2.}
  1119.  
  1120.             If the file is translated for software that does not display
  1121.             color, the reader ignores the color-table group.
  1122.  
  1123.           5.1.6. Style Sheet
  1124.  
  1125.             The \ stylesheet control word introduces the style sheet group,
  1126.             which contains definitions and descriptions of the various styles
  1127.             used in the document. All styles in the document's style sheet
  1128.             can be included, even if not all the styles are used. In RTF, a
  1129.             style is a form of shorthand used to specify a set of character,
  1130.             paragraph, or section formatting.
  1131.  
  1132.             The style-sheet group has the following syntax:
  1133.  
  1134.            <stylesheet>      '{' \ stylesheet <style>+ '}'
  1135.  
  1136.  
  1137.  
  1138.  
  1139.                          Microsoft Product Support Services
  1140.  
  1141.  
  1142.  
  1143.  
  1144.                                Rich Text Format (RTF) Specification   page 20
  1145.  
  1146.            <style>           '{' <styledef>?<keycode>? <formatting>
  1147.                              <additive>? <based>? <next>? <stylename>? ';'
  1148.                              '}'
  1149.  
  1150.            <styledef>        \ s  | \ cs  | \ ds
  1151.  
  1152.            <keycode>         '{' \ keycode <keys> '}'
  1153.  
  1154.            <additive>        \additive
  1155.  
  1156.            <based>           \ sbasedon
  1157.  
  1158.            <next>            \ snext
  1159.  
  1160.            <formatting>      (<brdrdef> | <parfmt> | <apoctl> | <tabdef> |
  1161.                              <shading> | <chrfmt>)+
  1162.  
  1163.            <stylename>       #PCDATA
  1164.  
  1165.            <keys>            ( \ shift? & \ ctrl? & \ alt?) <key>
  1166.  
  1167.            <key>             \ fn | #PCDATA
  1168.  
  1169.  
  1170.  
  1171.             For <style>, both <styledef> and <stylename> are optional; the
  1172.             default is paragraph style 0. Note for <stylename> that Microsoft
  1173.             Word for the Macintosh interprets commas in #PCDATA as separating
  1174.             style synonyms. Also, for <key>, the data must be exactly one
  1175.             character.
  1176.  
  1177.            Control word      Meaning
  1178.  
  1179.            --------------    -----------------------------------------------
  1180.  
  1181.            \csN              Designates character style.
  1182.  
  1183.            \sN               Designates paragraph style.
  1184.  
  1185.            \dsN              Designates section style.
  1186.  
  1187.            \ additive        Used in a character style definition
  1188.                              ('{\ *'\ cs/'}'). Indicates that style
  1189.                              attributes are to be applied in addition to
  1190.                              current attributes, rather than setting the
  1191.                              character attributes to only the style
  1192.                              definition.
  1193.  
  1194.            \ sbasedonN       Defines the number of the style on which the
  1195.                              current style is based (the default is 222--no
  1196.                              style).
  1197.  
  1198.  
  1199.                          Microsoft Product Support Services
  1200.  
  1201.  
  1202.  
  1203.  
  1204.                                Rich Text Format (RTF) Specification   page 21
  1205.  
  1206.            Control word      Meaning
  1207.  
  1208.            --------------    -----------------------------------------------
  1209.  
  1210.            \ snextN          Defines the next style associated with the
  1211.                              current style; if omitted, the next style is the
  1212.                              current style.
  1213.  
  1214.            \ keycode         This group is specified within the description
  1215.                              of a style in the style sheet in the RTF header.
  1216.                              The syntax for this group is '{\ *'\ keycode
  1217.                              <keys>'}' where <keys> are the characters used
  1218.                              in the key code. For example, a style, Normal,
  1219.                              may be defined {\ s0 {\ *\ keycode \ shift\ ctrl
  1220.                              n}Normal;} within the RTF style sheet. See the
  1221.                              Special Character control words for the
  1222.                              characters outside the alphanumeric range that
  1223.                              may be used.
  1224.  
  1225.            \ alt             The alt modifier key. Used to describe shortcut-
  1226.                              key codes for styles.
  1227.  
  1228.            \ shift           The shift modifier key. Used to describe
  1229.                              shortcut-key codes for styles.
  1230.  
  1231.            \ ctrl            The ctrl modifier key. Used to describe
  1232.                              shortcut-key codes for styles.
  1233.  
  1234.            \ fnN             Specifies a function key where N is the function
  1235.                              key number. Used to describe shortcut-key codes
  1236.                              for styles.
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.                          Microsoft Product Support Services
  1260.  
  1261.  
  1262.  
  1263.  
  1264.                                Rich Text Format (RTF) Specification   page 22
  1265.  
  1266.             The following is an example of an RTF style sheet
  1267.  
  1268.                  {\stylesheet{\fs20 \sbasedon222\snext0{\*\keycode
  1269.                  \shift\ctrl n}
  1270.                  Normal;}{\s1\qr \fs20 \sbasedon0\snext1 FLUSHRIGHT;}{\s2\fi-
  1271.                  720\li720\fs20\ri2880\sbasedon0\snext2 IND;}}
  1272.  
  1273.             and RTF paragraphs to which the styles are applied:
  1274.  
  1275.                  \widowctrl\ftnbj\ftnrestart \sectd \linex0\endnhere
  1276.                  \pard\plain
  1277.                  \fs20 This is Normal style.
  1278.                  \par \pard\plain \s1\qr\fs20
  1279.                  This is right justified. I call this style FLUSHRIGHT.
  1280.                  \par \pard\plain \s2\fi-720\li720\fs20\ri2880
  1281.                  This is an indented paragraph. I call this style IND. It
  1282.                  produces
  1283.                  a hanging indent.
  1284.                  \par}
  1285.  
  1286.             Some of the control words in this example are discussed in later
  1287.             sections. In the example, note that the properties of the style
  1288.             were emitted following the application of the style. This was
  1289.             done for two reasons: 1) to allow RTF readers that don't support
  1290.             styles to still retain all formatting, and 2) to allow the
  1291.             additive model for styles, where additional property changes are
  1292.             ``added'' on top of the defined style. Some RTF readers may not
  1293.             ``apply'' a style upon only encountering the style number without
  1294.             the accompanying formatting information because of this.
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.                          Microsoft Product Support Services
  1320.  
  1321.  
  1322.  
  1323.  
  1324.                                Rich Text Format (RTF) Specification   page 23
  1325.  
  1326.           5.1.7. Revision Marks
  1327.  
  1328.             This table allows tracking of multiple authors and reviewers of a
  1329.             document, and is used in conjunction with the character
  1330.             properties for revision marks.
  1331.  
  1332.             Control word      Definition
  1333.  
  1334.             --------------    ----------------------------------------------
  1335.  
  1336.             \ revtbl          This group consists of subgroups that each
  1337.                               identify the author of a revision in the
  1338.                               document, as in {Author1;}. This is a
  1339.                               destination control word.
  1340.  
  1341.                               Revision conflicts, such as one author deleting
  1342.                               another's additions, are stored as one group,
  1343.                               in the following form:
  1344.  
  1345.                               CurrentAuthor\'00\'<length of previous author's
  1346.                               name>PreviousAuthor\'00
  1347.                               PreviousRevisionTime
  1348.  
  1349.                               The 4 bytes of the Date/Time (DTTM) structure
  1350.                               are emitted as ASCII characters, so values
  1351.                               greater than 127 should be emitted as quoted
  1352.                               hexadecimal values.
  1353.  
  1354.  
  1355.  
  1356.             All time references for revision marks use the following bit
  1357.             field structure, DTTM.
  1358.  
  1359.             Bit numbers    Information       Range
  1360.  
  1361.             ------------   --------------    -------------------------------
  1362.  
  1363.             0-5            Minute            0-59
  1364.  
  1365.             6-10           Hour              0-23
  1366.  
  1367.             11-15          Day of month      1-31
  1368.  
  1369.             16-19          Month             1-12
  1370.  
  1371.             20-28          Year              = Year - 1900
  1372.  
  1373.             29-31          Day of week       0 (Sun)-6 (Sat)
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.                          Microsoft Product Support Services
  1380.  
  1381.  
  1382.  
  1383.  
  1384.                                Rich Text Format (RTF) Specification   page 24
  1385.  
  1386.        5.2.  Document Area
  1387.  
  1388.             Once the RTF header is defined, the RTF reader has enough
  1389.             information to correctly read the actual document text. The
  1390.             document area has the following syntax.
  1391.  
  1392.             <document>        <info>? <docfmt>* <section>+
  1393.  
  1394.  
  1395.  
  1396.           5.2.1. Information Group
  1397.  
  1398.             The \ info control word introduces the information group, which
  1399.             contains information about the document. This can include the
  1400.             title, author, keywords, comments, and other information specific
  1401.             to the file. This information is for use by a document-management
  1402.             utility, if available.
  1403.  
  1404.             This group has the following syntax.
  1405.  
  1406.             <info>            '{' <title>? & <subject>? & <author>? &
  1407.                               <operator>? & <keywords>? & <comment>? &
  1408.                               \ version? & <doccomm>? & \ vern? & <creatim>?
  1409.                               & <revtim>? & <printim>? & <buptim>? &
  1410.                               \ edmins? & \ nofpages? & \ nofwords?
  1411.                               \ nofchars? & \ id? '}'
  1412.  
  1413.             <title>           '{' \ title #PCDATA '}'
  1414.  
  1415.             <subject>         '{' \ subject #PCDATA '}'
  1416.  
  1417.             <author>          '{' \ author #PCDATA '}'
  1418.  
  1419.             <operator>        '{' \ operator #PCDATA '}'
  1420.  
  1421.             <keywords>        '{' \ keywords #PCDATA '}'
  1422.  
  1423.             <comment>         '{' \ comment #PCDATA '}'
  1424.  
  1425.             <doccomm>         '{' \ doccomm #PCDATA '}'
  1426.  
  1427.             <creatim>         '{' \ creatim <time> '}'
  1428.  
  1429.             <revtim>          '{' \ revtim <time> '}'
  1430.  
  1431.             <printim>         '{' \ printim <time> '}'
  1432.  
  1433.             <buptim>          '{' \ buptim <time> '}'
  1434.  
  1435.             <time>            \ yr? \ mo? \ dy? \ hr? \ min? \ sec?
  1436.  
  1437.  
  1438.  
  1439.                          Microsoft Product Support Services
  1440.  
  1441.  
  1442.  
  1443.  
  1444.                                Rich Text Format (RTF) Specification   page 25
  1445.  
  1446.             Some applications, such as Word, ask the user to type this
  1447.             information when saving the document in its native format. If the
  1448.             document is then saved as an RTF file or translated into RTF, the
  1449.             RTF writer specifies this information using the following control
  1450.             words. These control words are destinations and both the control
  1451.             words and the text should be enclosed in braces ({ }).
  1452.  
  1453.             Control word      Meaning
  1454.  
  1455.             --------------    ----------------------------------------------
  1456.  
  1457.             \ title           Title of the document. This is a destination
  1458.                               control word.
  1459.  
  1460.             \ subject         Subject of the document. This is a destination
  1461.                               control word.
  1462.  
  1463.             \ author          Author of the document. This is a destination
  1464.                               control word.
  1465.  
  1466.             \ operator        Person who last made changes to the document.
  1467.                               This is a destination control word.
  1468.  
  1469.             \ keywords        Selected keywords for the document. This is a
  1470.                               destination control word.
  1471.  
  1472.             \ comment         Comments; text is ignored. This is a
  1473.                               destination control word.
  1474.  
  1475.             \ versionN        Version number of the document.
  1476.  
  1477.             \ doccomm         Comments displayed in Word's Edit Summary Info
  1478.                               dialog box. This is a destination control word.
  1479.  
  1480.  
  1481.  
  1482.             The RTF writer may automatically enter other control words,
  1483.             including the following.
  1484.  
  1485.             Control word      Meaning
  1486.  
  1487.             --------------    ----------------------------------------------
  1488.  
  1489.             \ vernN           Internal version number
  1490.  
  1491.             \ creatim         Creation time
  1492.  
  1493.             \ revtim          Revision time
  1494.  
  1495.             \ printim         Last print time
  1496.  
  1497.  
  1498.  
  1499.                          Microsoft Product Support Services
  1500.  
  1501.  
  1502.  
  1503.  
  1504.                                Rich Text Format (RTF) Specification   page 26
  1505.  
  1506.             Control word      Meaning
  1507.  
  1508.             --------------    ----------------------------------------------
  1509.  
  1510.             \ buptim          Backup time
  1511.  
  1512.             \ edminsN         Total editing time (in minutes)
  1513.  
  1514.             \ yrN             Year
  1515.  
  1516.             \ moN             Month
  1517.  
  1518.             \ dyN             Day
  1519.  
  1520.             \ hrN             Hour
  1521.  
  1522.             \ minN            Minute
  1523.  
  1524.             \ secN            Seconds
  1525.  
  1526.             \ nofpagesN       Number of pages
  1527.  
  1528.             \ nofwordsN       Number of words
  1529.  
  1530.             \ nofcharsN       Number of characters
  1531.  
  1532.             \ idN             Internal ID number
  1533.  
  1534.  
  1535.  
  1536.             Any control word described in the previous table that does not
  1537.             have a numeric parameter specifies a date; all dates are
  1538.             specified with the \ yr \ mo \ dy \ hr \ min \ sec controls.
  1539.  
  1540.             An example of an information group follows:
  1541.  
  1542.                  {\info{\title The Panda's Thumb}{\author Stephen J
  1543.                  Gould}{\keywords
  1544.                  science natural history }}
  1545.  
  1546.           5.2.2. Document Formatting Properties
  1547.  
  1548.             After the information group (if any), there may be some document
  1549.             formatting control words (described as  <docfmt> in the document
  1550.             area syntax description). These control words specify the
  1551.             attributes of the document, such as margins and footnote
  1552.             placement. These attributes must precede the first plain-text
  1553.             character in the document.
  1554.  
  1555.             The control words that specify document formatting are listed in
  1556.             the following table (measurements are in twips; a twip is one-
  1557.  
  1558.  
  1559.                          Microsoft Product Support Services
  1560.  
  1561.  
  1562.  
  1563.  
  1564.                                Rich Text Format (RTF) Specification   page 27
  1565.  
  1566.             twentieth of a point). For omitted control words, RTF uses the
  1567.             default values.
  1568.  
  1569.             Control word      Meaning
  1570.  
  1571.             --------------    ----------------------------------------------
  1572.  
  1573.             \ deftabN         Default tab width in twips (the default is
  1574.                               720).
  1575.  
  1576.             \ hyphhotzN       Hyphenation hot zone in twips (the amount of
  1577.                               space at the right margin in which words are
  1578.                               hyphenated).
  1579.  
  1580.             \ hyphconsecN     N is the maximum number of consecutive lines
  1581.                               that will be allowed to end in a hyphen. 0
  1582.                               means no limit.
  1583.  
  1584.             \ hyphcaps        Toggles hyphenation of capitalized words (the
  1585.                               default is on).  Append 1 or leave control word
  1586.                               by itself to toggle property on; append 0
  1587.                               (zero) to turn it off.
  1588.  
  1589.             \ hyphauto        Toggles automatic hyphenation (the default is
  1590.                               off).  Append 1 or leave control word by itself
  1591.                               to toggle property on; append 0 (zero) to turn
  1592.                               it off.
  1593.  
  1594.             \ linestartN      Beginning line number (the default is 1).
  1595.  
  1596.             \ fracwidth       Uses fractional character widths when printing
  1597.                               (QuickDraw [TM] only).
  1598.  
  1599.             \ *\ nextfile     Destination; the argument is the name of the
  1600.                               file to print or index next; it must be
  1601.                               enclosed in braces. This is a destination
  1602.                               control word.
  1603.  
  1604.             \ *\ template     Destination; the argument is the name of a
  1605.                               related template file; it must be enclosed in
  1606.                               braces. This is a destination control word.
  1607.  
  1608.             \ makebackup      Backup copy is made automatically when the
  1609.                               document is saved.
  1610.  
  1611.             \ defformat       Tells the RTF reader that the document should
  1612.                               be saved in RTF format.
  1613.  
  1614.             \ psover          Prints PostScript(R) over the text.
  1615.  
  1616.  
  1617.  
  1618.  
  1619.                          Microsoft Product Support Services
  1620.  
  1621.  
  1622.  
  1623.  
  1624.                                Rich Text Format (RTF) Specification   page 28
  1625.  
  1626.             Control word      Meaning
  1627.  
  1628.             --------------    ----------------------------------------------
  1629.  
  1630.             \ doctemp         Document is a boilerplate document. For Word
  1631.                               for Windows, this is a template; for Word for
  1632.                               the Macintosh, this is a stationery file.
  1633.  
  1634.             \ deflangN        Defines the default language used in the
  1635.                               document used with a \ plain control word. See
  1636.                               the section "Character-Formatting Properties"
  1637.                               on page 32 of this Application Note for a list
  1638.                               of possible values for N.
  1639.  
  1640.             ----------------------------------------------------------------
  1641.             Footnotes and Endnotes
  1642.             ----------------------------------------------------------------
  1643.  
  1644.             \ fetN            Footnote/endnote type. This indicates what type
  1645.                               of notes are present in the document.
  1646.  
  1647.                               0  Footnotes only or nothing at all (the
  1648.                               default).
  1649.  
  1650.                               1  Endnotes only.
  1651.  
  1652.                               2  Footnotes and endnotes both.
  1653.  
  1654.                               For backward compatibility, if \ fet1 is
  1655.                               emitted, \ endnotes or \ enddoc will be emitted
  1656.                               along with \ aendnotes or \ aenddoc. RTF
  1657.                               readers that understand \ fet will need to
  1658.                               ignore the footnote-positioning control words,
  1659.                               and use the endnote control words instead.
  1660.  
  1661.             \ ftnsep          Text argument separates footnotes from the
  1662.                               document. This is a destination control word.
  1663.  
  1664.             \ ftnsepc         Text argument separates continued footnotes
  1665.                               from the document. This is a destination
  1666.                               control word.
  1667.  
  1668.             \ ftncn           Text argument is a notice for continued
  1669.                               footnotes. This is a destination control word.
  1670.  
  1671.             \ aftnsep         Text argument separates endnotes from the
  1672.                               document. This is a destination control word.
  1673.  
  1674.             \ aftnsepc        Text argument separates continued endnotes from
  1675.                               the document. This is a destination control
  1676.                               word.
  1677.  
  1678.  
  1679.                          Microsoft Product Support Services
  1680.  
  1681.  
  1682.  
  1683.  
  1684.                                Rich Text Format (RTF) Specification   page 29
  1685.  
  1686.             Control word      Meaning
  1687.  
  1688.             --------------    ----------------------------------------------
  1689.  
  1690.             \ aftncn          Text argument is a notice for continued
  1691.                               endnotes. This is a destination control word.
  1692.  
  1693.             \ endnotes        Footnotes at the end of the section (the
  1694.                               default).
  1695.  
  1696.             \ enddoc          Footnotes at the end of the document.
  1697.  
  1698.             \ ftntj           Footnotes beneath text (top justified).
  1699.  
  1700.             \ ftnbj           Footnotes at the bottom of the page (bottom
  1701.                               justified).
  1702.  
  1703.             \ aendnotes       Endnotes at end of section (the default).
  1704.  
  1705.             \ aenddoc         Endnotes at end of document.
  1706.  
  1707.             \ aftnbj          Endnotes at bottom of page (bottom justified).
  1708.  
  1709.             \ aftntj          Endnotes beneath text (top justified).
  1710.  
  1711.             \ ftnstartN       Beginning footnote number (the default is 1).
  1712.  
  1713.             \ aftnstartN      Beginning endnote number (the default is 1).
  1714.  
  1715.             \ ftnrstpg        Restart footnote numbering each page.
  1716.  
  1717.             \ ftnrestart      Footnote numbers restart at each section.
  1718.                               Microsoft Word for the Macintosh uses this
  1719.                               control to restart footnote numbering at each
  1720.                               page.
  1721.  
  1722.             \ ftnrstcont      Continuous footnote numbering (the default).
  1723.  
  1724.             \ aftnrestart     Restart endnote numbering each section.
  1725.  
  1726.             \ aftnrstcont     Continuous endnote numbering (the default).
  1727.  
  1728.             \ ftnnar          Footnote numbering---rabic numbering (1, 2, 3,
  1729.                               /)
  1730.  
  1731.             \ ftnnalc         Footnote numbering---lphabetic lowercase (a, b,
  1732.                               c, /)
  1733.  
  1734.             \ ftnnauc         Footnote numbering---lphabetic uppercase (A, B,
  1735.                               C, /)
  1736.  
  1737.  
  1738.  
  1739.                          Microsoft Product Support Services
  1740.  
  1741.  
  1742.  
  1743.  
  1744.                                Rich Text Format (RTF) Specification   page 30
  1745.  
  1746.             Control word      Meaning
  1747.  
  1748.             --------------    ----------------------------------------------
  1749.  
  1750.             \ ftnnrlc         Footnote numbering---oman lowercase (i, ii,
  1751.                               iii, /)
  1752.  
  1753.             \ ftnnruc         Footnote numbering---oman uppercase (I, II,
  1754.                               III, /)
  1755.  
  1756.             \ ftnnchi         Footnote numbering---hicago Manual of Style (*,
  1757.                               _, _, S)
  1758.  
  1759.             \ aftnnar         Endnote numbering--Arabic numbering (1, 2, 3,
  1760.                               /)
  1761.  
  1762.             \ aftnnalc        Endnote numbering--Alphabetic lowercase (a, b,
  1763.                               c, /)
  1764.  
  1765.             \ aftnnauc        Endnote numbering--Alphabetic uppercase (A, B,
  1766.                               C, /)
  1767.  
  1768.             \ aftnnrlc        Endnote numbering--Roman lowercase (i, ii, iii,
  1769.                               /)
  1770.  
  1771.             \ aftnnruc        Endnote numbering---oman uppercase (I, II, III,
  1772.                               /)
  1773.  
  1774.             \ aftnnchi        Endnote numbering---hicago Manual of Style (*,
  1775.                               _, _, S)
  1776.  
  1777.             ----------------------------------------------------------------
  1778.             Page Information
  1779.             ----------------------------------------------------------------
  1780.  
  1781.             \ paperwN         Paper width in twips (the default is 12,240).
  1782.  
  1783.             \ paperhN         Paper height in twips (the default is 15,840).
  1784.  
  1785.             \ pszN            Used to differentiate between paper sizes with
  1786.                               identical dimensions under Windows NT [TM].
  1787.                               Values 1-41 correspond to paper sizes defined
  1788.                               in DRIVINI.H in the Windows 3.1 SDK (DMPAPER_
  1789.                               values). Values greater than or equal to 42
  1790.                               correspond to user-defined forms under Windows
  1791.                               NT.
  1792.  
  1793.             \ marglN          Left margin in twips (the default is 1800).
  1794.  
  1795.             \ margrN          Right margin in twips (the default is 1800).
  1796.  
  1797.  
  1798.  
  1799.                          Microsoft Product Support Services
  1800.  
  1801.  
  1802.  
  1803.  
  1804.                                Rich Text Format (RTF) Specification   page 31
  1805.  
  1806.             Control word      Meaning
  1807.  
  1808.             --------------    ----------------------------------------------
  1809.  
  1810.             \ margtN          Top margin in twips (the default is 1440).
  1811.  
  1812.             \ margbN          Bottom margin in twips (the default is 1440).
  1813.  
  1814.             \ facingp         Facing pages (activates odd/even headers and
  1815.                               gutters).
  1816.  
  1817.             \ gutterN         Gutter width in twips (the default is 0).
  1818.  
  1819.             \ margmirror      Switches margin definitions on left and right
  1820.                               pages.  Used in conjunction with \ facingp.
  1821.  
  1822.             \ landscape       Landscape format.
  1823.  
  1824.             \ pgnstartN       Beginning page number (the default is 1).
  1825.  
  1826.             \ widowctrl       Enable widow and orphan control.
  1827.  
  1828.             ----------------------------------------------------------------
  1829.             Linked Styles
  1830.             ----------------------------------------------------------------
  1831.  
  1832.             \ linkstyles      Update document styles automatically based on
  1833.                               template.
  1834.  
  1835.             ----------------------------------------------------------------
  1836.             Compatibility Options
  1837.             ----------------------------------------------------------------
  1838.  
  1839.             \ notabind        Don't add automatic tab stop for hanging
  1840.                               indent.
  1841.  
  1842.             \ wraptrsp        Wrap trailing spaces onto the next line.
  1843.  
  1844.             \ prcolbl         Print all colors as black.
  1845.  
  1846.             \ noextrasprl     Don't add extra space to line height for
  1847.                               showing raised/lowered characters.
  1848.  
  1849.             \ nocolbal        Don't balance columns.
  1850.  
  1851.             \ cvmme           Treat old-style escaped quotation marks (\ ")
  1852.                               as current style ("") in mail merge data
  1853.                               documents.
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.                          Microsoft Product Support Services
  1860.  
  1861.  
  1862.  
  1863.  
  1864.                                Rich Text Format (RTF) Specification   page 32
  1865.  
  1866.             Control word      Meaning
  1867.  
  1868.             --------------    ----------------------------------------------
  1869.  
  1870.             \ sprstsp         Suppress extra line spacing at top of page.
  1871.                               Basically, this means to ignore any line
  1872.                               spacing larger than Auto at the top of a page.
  1873.  
  1874.             \ sprsspbf        Suppress space before paragraph property after
  1875.                               hard page or column break.
  1876.  
  1877.             \ otblrul         Combine table borders as done in Word 5.x for
  1878.                               the Macintosh. Contradictory table border
  1879.                               information is resolved in favor of the first
  1880.                               cell.
  1881.  
  1882.             \ transmf         Metafiles are considered transparent; don't
  1883.                               blank the area behind metafiles.
  1884.  
  1885.             \ swpbdr          If a paragraph has a left border (not a box)
  1886.                               and the Different Odd And Even or Mirror
  1887.                               Margins check box is selected, Word will print
  1888.                               the border on the right for odd-numbered pages.
  1889.  
  1890.             \ brkfrm          Show hard (manual) page breaks and column
  1891.                               breaks in frames.
  1892.  
  1893.             ----------------------------------------------------------------
  1894.             Forms
  1895.             ----------------------------------------------------------------
  1896.  
  1897.             \ formprot        This document is protected for forms.
  1898.  
  1899.             \ allprot         This document has no unprotected areas.
  1900.  
  1901.             \ formshade       This document has form field shading on.
  1902.  
  1903.             \ formdisp        This document currently has a forms drop down
  1904.                               or check box selected.
  1905.  
  1906.             \ printdata       This document has print form data only on.
  1907.  
  1908.             ----------------------------------------------------------------
  1909.             Revision Marks
  1910.             ----------------------------------------------------------------
  1911.  
  1912.             \ revprot         This document is protected for revisions. The
  1913.                               user can edit the document, but revision
  1914.                               marking cannot be disabled.
  1915.  
  1916.             \ revisions       Turns on revision marking.
  1917.  
  1918.  
  1919.                          Microsoft Product Support Services
  1920.  
  1921.  
  1922.  
  1923.  
  1924.                                Rich Text Format (RTF) Specification   page 33
  1925.  
  1926.             Control word      Meaning
  1927.  
  1928.             --------------    ----------------------------------------------
  1929.  
  1930.             \ revpropN        Argument indicates how revised text will be
  1931.                               displayed: 0 for no properties shown; 1 for
  1932.                               bold; 2 for italic; 3 for underline (the
  1933.                               default); 4 for double underline.
  1934.  
  1935.             \ revbarN         Vertical lines mark altered text, based on the
  1936.                               argument: 0 for no marking; 1 for left margin;
  1937.                               2 for right margin; 3 for outside (the default:
  1938.                               left on left pages, right on right pages).
  1939.  
  1940.             ----------------------------------------------------------------
  1941.             Annotations
  1942.             ----------------------------------------------------------------
  1943.  
  1944.             \ annotprot       This document is protected for annotations. The
  1945.                               user cannot edit the document but can insert
  1946.                               annotations.
  1947.  
  1948.             ----------------------------------------------------------------
  1949.             Bidirectional Controls
  1950.             ----------------------------------------------------------------
  1951.  
  1952.             \ rtldoc          This document will be formatted to have Arabic-
  1953.                               style pagination.
  1954.  
  1955.             \ ltrdoc          This document will have English-style
  1956.                               pagination (the default).
  1957.  
  1958.  
  1959.  
  1960.             Note that the three document-protection control words
  1961.             (\ formprot, \ revprot, and \ annotprot) are mutually exclusive;
  1962.             only one of the three can apply to any given document. Also,
  1963.             there is currently no method for storing passwords in RTF, so any
  1964.             document that associates a password with a protection level will
  1965.             lose the password protection in RTF.
  1966.  
  1967.             For more information about bidirectional controls, see
  1968.             ``Bidirectional Language Support'' on page 53 of this Application
  1969.             Note.
  1970.  
  1971.           5.2.3. Section Text
  1972.  
  1973.             Each section in the RTF file has the following syntax:
  1974.  
  1975.             <section>          <secfmt>* <hdrftr>? <para>+ ( \ sect
  1976.                               <section>)?
  1977.  
  1978.  
  1979.                          Microsoft Product Support Services
  1980.  
  1981.  
  1982.  
  1983.  
  1984.                                Rich Text Format (RTF) Specification   page 34
  1985.  
  1986.  
  1987.  
  1988.             5.2.3.1.  Section Formatting Properties
  1989.  
  1990.             At the beginning of each section, there may be some section-
  1991.             formatting control words (described as <secfmt> in the section
  1992.             text syntax description). These control words specify section-
  1993.             formatting properties, which apply to the text following the
  1994.             control word, with the exception of the section-break control
  1995.             words (those beginning with \ sbk). Section-break control words
  1996.             describe the break preceding the text. These control words can
  1997.             appear anywhere in the section, not just at the start.
  1998.  
  1999.             Note that if the \sectd control word is not present, the current
  2000.             section inherits all section properties defined in the previous
  2001.             section.
  2002.  
  2003.             The section-formatting control words are listed in the following
  2004.             table.
  2005.  
  2006.             Control word      Meaning
  2007.  
  2008.             --------------    ----------------------------------------------
  2009.  
  2010.             \sect             New section.
  2011.  
  2012.             \ sectd           Reset to default section properties.
  2013.  
  2014.             \ endnhere        Endnotes included in the section.
  2015.  
  2016.             \ binfsxnN        N is the printer bin used for the first page of
  2017.                               the section. If this control is not defined
  2018.                               then the first page uses the same printer bin
  2019.                               as defined by the \ binsxnN control.
  2020.  
  2021.             \ binsxnN         N is the printer bin used for the pages of the
  2022.                               section.
  2023.  
  2024.             \ dsN             Designates section style; if a section style is
  2025.                               specified, style properties must be specified
  2026.                               with the section.
  2027.  
  2028.             \ pnseclvlN       Used for multilevel lists. This property sets
  2029.                               the default numbering style for each
  2030.                               corresponding \ pnlvlN control word (bullets
  2031.                               and numbering property for paragraphs) within
  2032.                               that section. This is a destination control
  2033.                               word.
  2034.  
  2035.             \ sectunlocked    This section is unlocked for forms.
  2036.  
  2037.  
  2038.  
  2039.                          Microsoft Product Support Services
  2040.  
  2041.  
  2042.  
  2043.  
  2044.                                Rich Text Format (RTF) Specification   page 35
  2045.  
  2046.             Control word      Meaning
  2047.  
  2048.             --------------    ----------------------------------------------
  2049.  
  2050.             ----------------------------------------------------------------
  2051.             Section Break
  2052.             ----------------------------------------------------------------
  2053.  
  2054.             \ sbknone         No section break.
  2055.  
  2056.             \ sbkcol          Section break starts a new column.
  2057.  
  2058.             \ sbkpage         Section break starts a new page (the default).
  2059.  
  2060.             \ sbkeven         Section break starts at an even page.
  2061.  
  2062.             \ sbkodd          Section break starts at an odd page.
  2063.  
  2064.             ----------------------------------------------------------------
  2065.             Columns
  2066.             ----------------------------------------------------------------
  2067.  
  2068.             \ colsN           Number of columns for "snaking" (the default is
  2069.                               1).
  2070.  
  2071.             \ colsxN          Space between columns in twips (the default is
  2072.                               720).
  2073.  
  2074.             \ colnoN          Column number to be formatted; used to specify
  2075.                               formatting for variable-width columns.
  2076.  
  2077.             \ colsrN          Space to right of column in twips; used to
  2078.                               specify formatting for variable-width columns.
  2079.  
  2080.             \ colwN           Width of column in twips; used to override the
  2081.                               default constant width setting for variable-
  2082.                               width columns.
  2083.  
  2084.             \ linebetcol      Line between columns.
  2085.  
  2086.             ----------------------------------------------------------------
  2087.             Line Numbering
  2088.             ----------------------------------------------------------------
  2089.  
  2090.             \ linemodN        Line-number modulus amount to increase each
  2091.                               line number (the default is 1).
  2092.  
  2093.             \ linexN          Distance from the line number to the left text
  2094.                               margin in twips (the default is 360). The
  2095.                               automatic distance is 0.
  2096.  
  2097.  
  2098.  
  2099.                          Microsoft Product Support Services
  2100.  
  2101.  
  2102.  
  2103.  
  2104.                                Rich Text Format (RTF) Specification   page 36
  2105.  
  2106.             Control word      Meaning
  2107.  
  2108.             --------------    ----------------------------------------------
  2109.  
  2110.             \ linestartsN     Beginning line number (the default is 1).
  2111.  
  2112.             \ linerestart     Line numbers restart at \ linestarts value.
  2113.  
  2114.             \ lineppage       Line numbers restart on each page.
  2115.  
  2116.             \ linecont        Line numbers continue from the preceding
  2117.                               section.
  2118.  
  2119.             ----------------------------------------------------------------
  2120.             Page Information
  2121.             ----------------------------------------------------------------
  2122.  
  2123.             \ pgwsxnN         N is the page width in twips. A \ sectd resets
  2124.                               the value to that specified by \ paperwN in the
  2125.                               document properties.
  2126.  
  2127.             \ pghsxnN         N is the page height in twips. A \ sectd resets
  2128.                               the value to that specified by \ paperhN in the
  2129.                               document properties.
  2130.  
  2131.             \ marglsxnN       N is the left margin of the page in twips. A
  2132.                               \ sectd resets the value to that specified by
  2133.                               \ marglN in the document properties.
  2134.  
  2135.             \ margrsxnN       N is the right margin of the page in twips. A
  2136.                               \ sectd resets the value to that specified by
  2137.                               \ margrN in the document properties.
  2138.  
  2139.             \ margtsxnN       N is the top margin of the page in twips. A
  2140.                               \ sectd resets the value to that specified by
  2141.                               \ margtN in the document properties.
  2142.  
  2143.             \ margbsxnN       N is the bottom margin of the page in twips. A
  2144.                               \ sectd resets the value to that specified by
  2145.                               \ margbN in the document properties.
  2146.  
  2147.             \ guttersxnN      N is the width of the gutter margin for the
  2148.                               section in twips. A \ sectd resets the value to
  2149.                               that specified by \ gutterN from the document
  2150.                               properties. If Facing Pages is turned off, the
  2151.                               gutter will be added to the left margin of all
  2152.                               pages. If Facing Pages is turned on, the gutter
  2153.                               will be added to the left side of odd-numbered
  2154.                               pages and the right side of even-numbered
  2155.                               pages.
  2156.  
  2157.  
  2158.  
  2159.                          Microsoft Product Support Services
  2160.  
  2161.  
  2162.  
  2163.  
  2164.                                Rich Text Format (RTF) Specification   page 37
  2165.  
  2166.             Control word      Meaning
  2167.  
  2168.             --------------    ----------------------------------------------
  2169.  
  2170.             \ lndscpsxn       Page orientation is in landscape format. To mix
  2171.                               portrait and landscape sections within a
  2172.                               document, the \ landscape control should not be
  2173.                               used so that the default for a section is
  2174.                               portrait, which may be overridden by the
  2175.                               \ lndscpsxn control.
  2176.  
  2177.             \ titlepg         First page has a special format.
  2178.  
  2179.             \ headeryN        Header is N twips from the top of the page (the
  2180.                               default is 720).
  2181.  
  2182.             \ footeryN        Footer is N twips from the bottom of the page
  2183.                               (the default is 720).
  2184.  
  2185.             ----------------------------------------------------------------
  2186.             Page Numbers
  2187.             ----------------------------------------------------------------
  2188.  
  2189.             \ pgnstartsN      Beginning page number (the default is 1).
  2190.  
  2191.             \ pgncont         Continuous page numbering (the default).
  2192.  
  2193.             \ pgnrestart      Page numbers restart at \ pgnstarts value.
  2194.  
  2195.             \ pgnxN           Page number is N twips from the right margin
  2196.                               (the default is 720).
  2197.  
  2198.             \ pgnyN           Page number is N twips from the top margin (the
  2199.                               default is 720).
  2200.  
  2201.             \ pgndec          Page-number format is decimal.
  2202.  
  2203.             \ pgnucrm         Page-number format is uppercase roman numeral.
  2204.  
  2205.             \ pgnlcrm         Page-number format is lowercase roman numeral.
  2206.  
  2207.             \ pgnucltr        Page-number format is uppercase letter.
  2208.  
  2209.             \ pgnlcltr        Page-number format is lowercase letter.
  2210.  
  2211.             \ pgnhnN          Indicates which heading level is used to prefix
  2212.                               a heading number to the page number.  This
  2213.                               control word can only be used in conjunction
  2214.                               with numbered heading styles. 0 specifies to
  2215.                               not show heading level (the default). Values 1-
  2216.                               9 correspond to heading levels 1 through 9.
  2217.  
  2218.  
  2219.                          Microsoft Product Support Services
  2220.  
  2221.  
  2222.  
  2223.  
  2224.                                Rich Text Format (RTF) Specification   page 38
  2225.  
  2226.             Control word      Meaning
  2227.  
  2228.             --------------    ----------------------------------------------
  2229.  
  2230.             \ pgnhnsh         Hyphen separator character.  This separator and
  2231.                               the successive ones appear between the heading
  2232.                               level number and the page number.
  2233.  
  2234.             \ pgnhnsp         Period separator character.
  2235.  
  2236.             \ pgnhnsc         Colon separator character.
  2237.  
  2238.             \ pgnhnsm         Em-dash (--- separator character.
  2239.  
  2240.             \ pgnhnsn         En-dash (-) separator character.
  2241.  
  2242.             ----------------------------------------------------------------
  2243.             Vertical Alignment
  2244.             ----------------------------------------------------------------
  2245.  
  2246.             \ vertalt         Text is top-aligned (the default).
  2247.  
  2248.             \ vertalb         Text is bottom-aligned.
  2249.  
  2250.             \ vertalc         Text is centered vertically.
  2251.  
  2252.             \ vertalj         Text is justified vertically.
  2253.  
  2254.             ----------------------------------------------------------------
  2255.             Bidirectional Controls
  2256.             ----------------------------------------------------------------
  2257.  
  2258.             \ rtlsect         This section will snake (newspaper style)
  2259.                               columns from right to left.
  2260.  
  2261.             \ ltrsect         This section will snake (newspaper style)
  2262.                               columns from left to right (the default).
  2263.  
  2264.  
  2265.  
  2266.             5.2.3.2.  Headers and Footers
  2267.  
  2268.             Headers and footers are RTF destinations. Each section in the
  2269.             document can have its own set of headers and footers. If no
  2270.             headers or footers are defined for a given section, the headers
  2271.             and footers from the previous section (if any) are used. Headers
  2272.             and footers have the following syntax:
  2273.  
  2274.             <hdrftr>          '{' <hdrctl> <para>+ '}' <hdrftr>?
  2275.  
  2276.  
  2277.  
  2278.  
  2279.                          Microsoft Product Support Services
  2280.  
  2281.  
  2282.  
  2283.  
  2284.                                Rich Text Format (RTF) Specification   page 39
  2285.  
  2286.             <hdrctl>          \ header | \ footer | \ headerl | \ headerr |
  2287.                               \ headerf | \ footerl | \ footerr | \ footerf
  2288.  
  2289.  
  2290.  
  2291.             Note that each separate <hdrftr> group must have a distinct
  2292.             <hdrctl> introducing it.
  2293.  
  2294.             Control word      Meaning
  2295.  
  2296.             --------------    ----------------------------------------------
  2297.  
  2298.             \ header          Header on all pages. This is a destination
  2299.                               control word.
  2300.  
  2301.             \ footer          Footer on all pages. This is a destination
  2302.                               control word.
  2303.  
  2304.             \ headerl         Header on left pages only. This is a
  2305.                               destination control word.
  2306.  
  2307.             \ headerr         Header on right pages only. This is a
  2308.                               destination control word.
  2309.  
  2310.             \ headerf         Header on first page only. This is a
  2311.                               destination control word.
  2312.  
  2313.             \ footerl         Footer on left pages only. This is a
  2314.                               destination control word.
  2315.  
  2316.             \ footerr         Footer on right pages only. This is a
  2317.                               destination control word.
  2318.  
  2319.             \ footerf         Footer on first page only. This is a
  2320.                               destination control word.
  2321.  
  2322.  
  2323.  
  2324.             The \ headerl, \ headerr, \ footerl, and \ footerr control words
  2325.             are used in conjunction with the \ facingp control word, and the
  2326.             \ headerf and \ footerf control words are used in conjunction
  2327.             with the \ titlepg control word. Many RTF readers will not
  2328.             function correctly if the appropriate document properties are not
  2329.             set. In particular, if \facingp is not set, then only \header and
  2330.             \footer should be used; if \facingp is set, then only \headerl,
  2331.             \headerr, \footerl, and \footerr should be used.  Combining both
  2332.             \facingp and \titlepg is allowed. You should not use \header to
  2333.             set the headers for both pages when \facingp is set. You can use
  2334.             \headerf if \titlepg is not set, but no header will appear. For
  2335.             more information, see "Document Formatting Properties" on page 15
  2336.             and "Section Formatting Properties" on page 19 of this
  2337.             Application Note.
  2338.  
  2339.                          Microsoft Product Support Services
  2340.  
  2341.  
  2342.  
  2343.  
  2344.                                Rich Text Format (RTF) Specification   page 40
  2345.  
  2346.             If the previous section had a first page header or footer and had
  2347.             \ titlepg set, and the current section does not, then the
  2348.             previous section's first page header or footer is disabled.
  2349.             However, it is not destroyed; if subsequent sections have
  2350.             \ titlepg set, then the first page header or footer is restored.
  2351.  
  2352.           5.2.4. Paragraph Text
  2353.  
  2354.             There are two kinds of paragraphs: plain and table. A table is a
  2355.             collection of paragraphs, and a table row is a continuous
  2356.             sequence of paragraphs partitioned into cells. The \ intbl
  2357.             paragraph-formatting control word identifies the paragraph as
  2358.             part of a table. For more information, see "Table Definitions" on
  2359.             page 30 of this Application Note. This control is inherited
  2360.             between paragraphs that do not have paragraph properties reset
  2361.             with \ pard.
  2362.  
  2363.             <para>            <textpar> | <row>
  2364.  
  2365.             <textpar>         <pn>? <brdrdef>? <parfmt>* <apoctl>* <tabdef>?
  2366.                               <shading>? (\subdocument | <char>+) ( \ par
  2367.                               <para>)?
  2368.  
  2369.             <row>             <tbldef> <cell>+ \ row
  2370.  
  2371.             <cell>            <textpar>+ \ cell
  2372.  
  2373.  
  2374.  
  2375.             5.2.4.1.  Paragraph Formatting Properties
  2376.  
  2377.             These control words (described as <parfmt> in the paragraph-text
  2378.             syntax description) specify generic paragraph formatting
  2379.             properties. These control words can appear anywhere in the body
  2380.             of the paragraph, not just at the beginning.
  2381.  
  2382.             Note that if the \pard control word is not present, the current
  2383.             paragraph inherits all paragraph properties defined in the
  2384.             previous paragraph.
  2385.  
  2386.             The paragraph-formatting control words are listed in the
  2387.             following table.
  2388.  
  2389.             Control word      Meaning
  2390.  
  2391.             --------------    ----------------------------------------------
  2392.  
  2393.             \par              New paragraph.
  2394.  
  2395.             \ pard            Resets to default paragraph properties.
  2396.  
  2397.  
  2398.  
  2399.                          Microsoft Product Support Services
  2400.  
  2401.  
  2402.  
  2403.  
  2404.                                Rich Text Format (RTF) Specification   page 41
  2405.  
  2406.             Control word      Meaning
  2407.  
  2408.             --------------    ----------------------------------------------
  2409.  
  2410.             \ sN              Designates paragraph style; if a paragraph
  2411.                               style is specified, style properties must be
  2412.                               specified with the paragraph.  N references an
  2413.                               entry in the stylesheet.
  2414.  
  2415.             \ hyphpar         Toggles automatic hyphenation for the
  2416.                               paragraph.  Append 1 or nothing to toggle
  2417.                               property on; append 0 (zero) to turn it off.
  2418.  
  2419.             \ intbl           Paragraph is part of a table.
  2420.  
  2421.             \ keep            Keep paragraph intact.
  2422.  
  2423.             \ nowidctlpar     No widow/orphan control. This is a paragraph-
  2424.                               level property and is used to override the
  2425.                               document-level \ widowctrl.
  2426.  
  2427.             \ keepn           Keep paragraph with the next paragraph.
  2428.  
  2429.             \ levelN          N is the outline level of the paragraph.
  2430.  
  2431.             \ noline          No line numbering.
  2432.  
  2433.             \ pagebb          Break page before the paragraph.
  2434.  
  2435.             \ sbys            Side-by-side paragraphs.
  2436.  
  2437.             ----------------------------------------------------------------
  2438.             Alignment
  2439.             ----------------------------------------------------------------
  2440.  
  2441.             \ ql              Left-aligned (the default).
  2442.  
  2443.             \qr               Right-aligned.
  2444.  
  2445.             \ qj              Justified.
  2446.  
  2447.             \ qc              Centered.
  2448.  
  2449.             ----------------------------------------------------------------
  2450.             Indentation
  2451.             ----------------------------------------------------------------
  2452.  
  2453.             \ fiN             First-line indent (the default is 0).
  2454.  
  2455.             \ liN             Left indent (the default is 0).
  2456.  
  2457.  
  2458.  
  2459.                          Microsoft Product Support Services
  2460.  
  2461.  
  2462.  
  2463.  
  2464.                                Rich Text Format (RTF) Specification   page 42
  2465.  
  2466.             Control word      Meaning
  2467.  
  2468.             --------------    ----------------------------------------------
  2469.  
  2470.             \ riN             Right indent (the default is 0).
  2471.  
  2472.             ----------------------------------------------------------------
  2473.             Spacing
  2474.             ----------------------------------------------------------------
  2475.  
  2476.             \ sbN             Space before (the default is 0).
  2477.  
  2478.             \ saN             Space after (the default is 0).
  2479.  
  2480.             \ slN             Space between lines: if this control word is
  2481.                               missing or if \ sl1000 is used, the line
  2482.                               spacing is automatically determined by the
  2483.                               tallest character in the line; if N is a
  2484.                               positive value, this size is used only if it is
  2485.                               taller than the tallest character (otherwise
  2486.                               the tallest character is used); if N is a
  2487.                               negative value, the absolute value of N is
  2488.                               used, even if it is shorter than the tallest
  2489.                               character.
  2490.  
  2491.             \ slmultN         Line spacing multiple; indicates that the
  2492.                               current line spacing is a multiple of "Single"
  2493.                               line spacing. This control word can follow only
  2494.                               the \ sl control word and works in conjunction
  2495.                               with it.
  2496.  
  2497.                               0 "At Least" or "Exactly" line spacing.
  2498.  
  2499.                               1 Multiple line spacing, relative to "Single."
  2500.  
  2501.             ----------------------------------------------------------------
  2502.             Subdocuments
  2503.             ----------------------------------------------------------------
  2504.  
  2505.             \ subdocumentN    This indicates that a subdocument in a master
  2506.                               document/subdocument relationship should occur
  2507.                               here. N represents an index into the file
  2508.                               table. This control word must be the only item
  2509.                               in a paragraph.
  2510.  
  2511.             ----------------------------------------------------------------
  2512.             Bidirectional Controls
  2513.             ----------------------------------------------------------------
  2514.  
  2515.             \ rtlpar          Text in this paragraph will be displayed with
  2516.                               right-to-left precedence.
  2517.  
  2518.  
  2519.                          Microsoft Product Support Services
  2520.  
  2521.  
  2522.  
  2523.  
  2524.                                Rich Text Format (RTF) Specification   page 43
  2525.  
  2526.             Control word      Meaning
  2527.  
  2528.             --------------    ----------------------------------------------
  2529.  
  2530.             \ ltrpar          Text in this paragraph will be displayed with
  2531.                               left-to-right precedence (the default).
  2532.  
  2533.  
  2534.  
  2535.             5.2.4.2.  Tabs
  2536.  
  2537.             Any paragraph may have its own set of tabs. Tabs must follow this
  2538.             syntax:
  2539.  
  2540.             <tabdef>          (<tab> | <bartab>) +
  2541.  
  2542.             <tab>             <tabkind>? <tablead>? \ tx
  2543.  
  2544.             <bartab>          <tablead>? \ tb
  2545.  
  2546.             <tabkind>         \ tqr | \ tqc | \ tqdec
  2547.  
  2548.             <tablead>         \ tldot | \ tlhyph | \ tlul | \tlth | \ tleq
  2549.  
  2550.  
  2551.  
  2552.             Control word      Meaning
  2553.  
  2554.             --------------    ----------------------------------------------
  2555.  
  2556.             \ txN             Tab position in twips from the left margin.
  2557.  
  2558.             \ tqr             Flush-right tab.
  2559.  
  2560.             \ tqc             Centered tab.
  2561.  
  2562.             \ tqdec           Decimal tab.
  2563.  
  2564.             \ tbN             Bar tab position in twips from the left margin.
  2565.  
  2566.             \ tldot           Leader dots.
  2567.  
  2568.             \ tlhyph          Leader hyphens.
  2569.  
  2570.             \ tlul            Leader underline.
  2571.  
  2572.             \ tlth            Leader thick line.
  2573.  
  2574.             \ tleq            Leader equal sign.
  2575.  
  2576.  
  2577.  
  2578.  
  2579.                          Microsoft Product Support Services
  2580.  
  2581.  
  2582.  
  2583.  
  2584.                                Rich Text Format (RTF) Specification   page 44
  2585.  
  2586.             5.2.4.3.  Bullets and Numbering
  2587.  
  2588.             To provide compatibility with existing RTF readers, all
  2589.             applications that can automatically bullet or number paragraphs
  2590.             will also emit the generated text as plain text in the \ pntext
  2591.             group. This will allow existing RTF readers to capture the plain
  2592.             text and safely ignore the autonumber instructions. This group
  2593.             precedes all bulleted or numbered paragraphs, and will contain
  2594.             all the text and formatting that would be auto-generated. It
  2595.             should precede the '{'\ *\ pn / '}' destination, and it is the
  2596.             responsibility of RTF readers that understand the '{'\ *\ pn /
  2597.             '}' destination to ignore the \ pntext group.
  2598.  
  2599.             <pn>              <pnseclvl> | <pnpara>
  2600.  
  2601.             <pnseclvl>        '{\*' \pnseclvl <pndesc>'}'
  2602.  
  2603.             <pnpara>          <pntext> <pnprops>
  2604.  
  2605.             <pntext>          '{' \pntext <char> '}'
  2606.  
  2607.             <pnprops>         '{\*' \pn <pnlevel> <pndesc>'}'
  2608.  
  2609.             <pnlevel>         \pnlvl | \pnlvlblt | \pnlvlbody | \pnlvlcont
  2610.  
  2611.             <pndesc>          <pnnstyle> & <pnchrfmt> & <pntxtb> & <pntxta> &
  2612.                               <pnfmt>
  2613.  
  2614.             <pnnstyle>        \pncard | \pndec | \pnucltr | \pnucrm |
  2615.                               \pnlcltr | \pnlcrm | \pnord | \pnordt
  2616.  
  2617.             <pnchrfmt>        \pnf? & \pnfs? & \pnb? & \pni? & \pncaps? &
  2618.                               \pnscaps? & <pnul>? & \pnstrike? & \pncf?
  2619.  
  2620.             <pnul>            \pnul | \pnuld | \pnuldb | \pnulnone | \pnulw
  2621.  
  2622.             <pnfmt>           \pnnumonce? & \pnacross? & \pnindent? & \pnsp?
  2623.                               & \pnprev? & <pnjust>? & \pnstart? & \pnhang? &
  2624.                               \pnrestart?
  2625.  
  2626.             <pnjust>          \pnqc | \pnql | \pnqr
  2627.  
  2628.             <pntxtb>          '{' \pntxtb #PCDATA'}'
  2629.  
  2630.             <pntxta>          '{' \pntxta #PCDATA'}'
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.  
  2637.  
  2638.  
  2639.                          Microsoft Product Support Services
  2640.  
  2641.  
  2642.  
  2643.  
  2644.                                Rich Text Format (RTF) Specification   page 45
  2645.  
  2646.             Settings below marked with an asterisk can be turned off by
  2647.             appending 0 (zero) to the control word.
  2648.  
  2649.             Control word      Definition
  2650.  
  2651.             --------------    ----------------------------------------------
  2652.  
  2653.             \ pntext          This group precedes all numbered/bulleted
  2654.                               paragraphs, and contains all auto-generated
  2655.                               text and formatting. It should precede the
  2656.                               '{\ *'\ pn / '}' destination, and it is the
  2657.                               responsibility of RTF readers that understand
  2658.                               the '{\ *'\ pn / '}' destination to ignore this
  2659.                               preceding group. This is a destination control
  2660.                               word.
  2661.  
  2662.             \ pn              Turns on paragraph numbering. This is a
  2663.                               destination control word.
  2664.  
  2665.             \ pnlvlN          Paragraph level, where N is a level from 1 to
  2666.                               9. Default set by \pnseclvlN section formatting
  2667.                               property.
  2668.  
  2669.             \ pnlvlblt        Bulleted paragraph (corresponds to level 11).
  2670.                               The actual character used for the bullet is
  2671.                               stored in the \ pntxtb group.
  2672.  
  2673.             \ pnlvlbody       Simple paragraph numbering (corresponds to
  2674.                               level 10).
  2675.  
  2676.             \ pnlvlcont       Continue numbering but do not display number
  2677.                               (`skip numbering'').
  2678.  
  2679.             \ pnnumonce       Number each cell only once in a table (the
  2680.                               default is to number each paragraph in a
  2681.                               table).
  2682.  
  2683.             \ pnacross        Number across rows (the default is to number
  2684.                               down columns).
  2685.  
  2686.             \pnhang           Paragraph uses a hanging indent.
  2687.  
  2688.             \ pnrestart       Restart numbering after each section break.
  2689.                               Note that this control word is used only in
  2690.                               conjunction with the Heading Numbering feature
  2691.                               (applying multilevel numbering to Heading style
  2692.                               definitions).
  2693.  
  2694.             \ pncard          Cardinal numbering (One, Two, Three).
  2695.  
  2696.             \ pndec           Decimal numbering (1, 2, 3).
  2697.  
  2698.  
  2699.                          Microsoft Product Support Services
  2700.  
  2701.  
  2702.  
  2703.  
  2704.                                Rich Text Format (RTF) Specification   page 46
  2705.  
  2706.             Control word      Definition
  2707.  
  2708.             --------------    ----------------------------------------------
  2709.  
  2710.             \ pnucltr         Uppercase alphabetic numbering (A, B, C).
  2711.  
  2712.             \ pnucrm          Uppercase roman numbering (I, II, III).
  2713.  
  2714.             \ pnlcltr         Lowercase alphabetic numbering (a, b, c).
  2715.  
  2716.             \ pnlcrm          Lowercase roman numbering. (i, ii, iii).
  2717.  
  2718.             \ pnord           Ordinal numbering (1st, 2nd, 3rd).
  2719.  
  2720.             \ pnordt          Ordinal text numbering (First, Second, Third).
  2721.  
  2722.             \ pnb             Bold numbering.*
  2723.  
  2724.             \ pni             Italic numbering.*
  2725.  
  2726.             \ pncaps          All Caps numbering.*
  2727.  
  2728.             \ pnscaps         Small Caps numbering.*
  2729.  
  2730.             \ pnul            Continuous underline.*
  2731.  
  2732.             \ pnuld           Dotted underline.
  2733.  
  2734.             \ pnuldb          Double underline.
  2735.  
  2736.             \ pnulnone        Turns off underlining.
  2737.  
  2738.             \ pnulw           Word underline.
  2739.  
  2740.             \ pnstrike        Strikethrough numbering.*
  2741.  
  2742.             \ pncfN           Foreground color--index into color table (the
  2743.                               default is 0).
  2744.  
  2745.             \ pnfN            Font number.
  2746.  
  2747.             \ pnfsN           Font size (in half-points).
  2748.  
  2749.             \ pnindentN       Minimum distance from margin to body text.
  2750.  
  2751.             \ pnspN           Distance from number text to body text.
  2752.  
  2753.             \ pnprev          Used for multilevel lists. Include information
  2754.                               from previous level in this level; for example,
  2755.                               1, 1.1, 1.1.1, 1.1.1.1
  2756.  
  2757.  
  2758.  
  2759.                          Microsoft Product Support Services
  2760.  
  2761.  
  2762.  
  2763.  
  2764.                                Rich Text Format (RTF) Specification   page 47
  2765.  
  2766.             Control word      Definition
  2767.  
  2768.             --------------    ----------------------------------------------
  2769.  
  2770.             \ pnqc            Centered numbering.
  2771.  
  2772.             \ pnql            Left-justified numbering.
  2773.  
  2774.             \ pnqr            Right-justified numbering.
  2775.  
  2776.             \ pnstartN        Start At number.
  2777.  
  2778.             \ pntxta          Text after. This group contains the text that
  2779.                               succeeds the number. This is a destination
  2780.                               control word.
  2781.  
  2782.             \ pntxtb          Text before. This group contains the text that
  2783.                               precedes the number. This is a destination
  2784.                               control word.
  2785.  
  2786.  
  2787.  
  2788.             Note that there is a limit of 32 characters total for the sum of
  2789.             text before and text after for simple numbering. Multilevel
  2790.             numbering has a limit of 64 characters total for the sum of all
  2791.             levels.
  2792.  
  2793.             5.2.4.4.  Paragraph Borders
  2794.  
  2795.             Paragraph borders have the following syntax:
  2796.  
  2797.             <brdrdef>         (<brdrseg> <brdr> )+
  2798.  
  2799.             <brdrseg>         \ brdrt | \ brdrb | \ brdrl | \ brdrr |
  2800.                               \ brdrbtw | \ brdrbar | \ box
  2801.  
  2802.             <brdr>            <brdrk>  \ brdrw? \ brsp? \ brdrcf?
  2803.  
  2804.             <brdrk>           \ brdrs | \ brdrth | \ brdrsh | \ brdrdb |
  2805.                               \ brdrdot | \brdrdash | \ brdrhair
  2806.  
  2807.  
  2808.  
  2809.             Control word      Meaning
  2810.  
  2811.             --------------    ----------------------------------------------
  2812.  
  2813.             \ brdrt           Border top.
  2814.  
  2815.             \ brdrb           Border bottom.
  2816.  
  2817.  
  2818.  
  2819.                          Microsoft Product Support Services
  2820.  
  2821.  
  2822.  
  2823.  
  2824.                                Rich Text Format (RTF) Specification   page 48
  2825.  
  2826.             Control word      Meaning
  2827.  
  2828.             --------------    ----------------------------------------------
  2829.  
  2830.             \ brdrl           Border left.
  2831.  
  2832.             \ brdrr           Border right.
  2833.  
  2834.             \ brdrbtw         Consecutive paragraphs with identical border
  2835.                               formatting are considered part of a single
  2836.                               group with the border information applying to
  2837.                               the entire group. To have borders around
  2838.                               individual paragraphs within the group, the
  2839.                               \ brdrbtw control must be specified for that
  2840.                               paragraph.
  2841.  
  2842.             \ brdrbar         Border outside (right side of odd-numbered
  2843.                               pages, left side of even-numbered pages).
  2844.  
  2845.             \ box             Border around the paragraph (box paragraph).
  2846.  
  2847.             \ brdrs           Single-thickness border.
  2848.  
  2849.             \ brdrth          Double-thickness border.
  2850.  
  2851.             \ brdrsh          Shadowed border.
  2852.  
  2853.             \ brdrdb          Double border.
  2854.  
  2855.             \ brdrdot         Dotted border.
  2856.  
  2857.             \brdrdash         Dashed border.
  2858.  
  2859.             \ brdrhair        Hairline border.
  2860.  
  2861.             \ brdrwN          N is the width in twips of the pen used to draw
  2862.                               the paragraph border line.
  2863.  
  2864.             \ brdrcfN         N is the color of the paragraph border;
  2865.                               specified as an index into the color table in
  2866.                               the RTF header.
  2867.  
  2868.             \ brspN           Space in twips between borders and the
  2869.                               paragraph.
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.                          Microsoft Product Support Services
  2880.  
  2881.  
  2882.  
  2883.  
  2884.                                Rich Text Format (RTF) Specification   page 49
  2885.  
  2886.             5.2.4.5.  Paragraph Shading
  2887.  
  2888.             Paragraph shading has the following syntax:
  2889.  
  2890.             <shading>         ( \ shading | <pat>) \ cfpat? \ cbpat?
  2891.  
  2892.             <pat>             \ bghoriz | \ bgvert | \ bgfdiag | \ bgbdiag |
  2893.                               \ bgcross | \ bgdcross | \ bgdkhoriz |
  2894.                               \ bgdkvert | \ bgdkfdiag | \ bgdkbdiag |
  2895.                               \ bgdkcross | \ bgdkdcross
  2896.  
  2897.  
  2898.  
  2899.             Control word      Meaning
  2900.  
  2901.             --------------    ----------------------------------------------
  2902.  
  2903.             \ shadingN        N is the shading of the paragraph in hundredths
  2904.                               of a percent.
  2905.  
  2906.             \ bghoriz         Specifies a horizontal background pattern for
  2907.                               the paragraph.
  2908.  
  2909.             \ bgvert          Specifies a vertical background pattern for the
  2910.                               paragraph.
  2911.  
  2912.             \ bgfdiag         Specifies a forward diagonal background pattern
  2913.                               for the paragraph ( \ \ \ \ ).
  2914.  
  2915.             \ bgbdiag         Specifies a backward diagonal background
  2916.                               pattern for the paragraph (//// ).
  2917.  
  2918.             \ bgcross         Specifies a cross background pattern for the
  2919.                               paragraph.
  2920.  
  2921.             \ bgdcross        Specifies a diagonal cross background pattern
  2922.                               for the paragraph.
  2923.  
  2924.             \ bgdkhoriz       Specifies a dark horizontal background pattern
  2925.                               for the paragraph.
  2926.  
  2927.             \ bgdkvert        Specifies a dark vertical background pattern
  2928.                               for the paragraph.
  2929.  
  2930.             \ bgdkfdiag       Specifies a dark forward diagonal background
  2931.                               pattern for the paragraph ( \ \ \ \ ).
  2932.  
  2933.             \ bgdkbdiag       Specifies a dark backward diagonal background
  2934.                               pattern for the paragraph (//// ).
  2935.  
  2936.  
  2937.  
  2938.  
  2939.                          Microsoft Product Support Services
  2940.  
  2941.  
  2942.  
  2943.  
  2944.                                Rich Text Format (RTF) Specification   page 50
  2945.  
  2946.             Control word      Meaning
  2947.  
  2948.             --------------    ----------------------------------------------
  2949.  
  2950.             \ bgdkcross       Specifies a dark cross background pattern for
  2951.                               the paragraph.
  2952.  
  2953.             \ bgdkdcross      Specifies a dark diagonal cross background
  2954.                               pattern for the paragraph.
  2955.  
  2956.             \ cfpatN          N is the line color of the background pattern,
  2957.                               specified as an index into the document's color
  2958.                               table.
  2959.  
  2960.             \ cbpatN          N is the background color of the background
  2961.                               pattern, specified as an index into the
  2962.                               document's color table.
  2963.  
  2964.  
  2965.  
  2966.             5.2.4.6.  Positioned Objects and Frames
  2967.  
  2968.             The following paragraph-formatting control words specify the
  2969.             location of a paragraph on the page. Consecutive paragraphs with
  2970.             the same frame formatting are considered to be part of the same
  2971.             frame. For two framed paragraphs to appear at the same position
  2972.             on a page, they must be separated by a paragraph with different
  2973.             or no frame information.
  2974.  
  2975.             Note that if any paragraph in a table row has any of these
  2976.             control words specified, then all paragraphs in the table row
  2977.             must have the same control words specified, either by inheriting
  2978.             the properties from the previous paragraph or by respecifying the
  2979.             controls.
  2980.  
  2981.             Paragraph positioning has the following syntax:
  2982.  
  2983.             <apoctl>          <framesize> & <horzpos> & <vertpos> & <txtwrap>
  2984.                               & <dropcap>
  2985.  
  2986.             <framesize>       \ absw? & \ absh?
  2987.  
  2988.             <horzpos>         <hframe> & <hdist>
  2989.  
  2990.             <vertpos>         <vframe> & <vdist>
  2991.  
  2992.             <txtwrap>         \ nowrap? & \ dxfrtext? & \ dfrmtxtx?
  2993.                               &\ dfrmtxty?
  2994.  
  2995.             <dropcap>         \dropcapli? & \dropcapt?
  2996.  
  2997.  
  2998.  
  2999.                          Microsoft Product Support Services
  3000.  
  3001.  
  3002.  
  3003.  
  3004.                                Rich Text Format (RTF) Specification   page 51
  3005.  
  3006.             <hframe>          \ phmrg? | \ phpg? | \ phcol?
  3007.  
  3008.             <hdist>           \ posx? | \ posnegx? | \ posxc? | \ posxi? |
  3009.                               \ posxo? | \ posxl? | \ posxr?
  3010.  
  3011.             <vframe>          \ pvmrg? | \ pvpg? | \ pvpara?
  3012.  
  3013.             <vdist>           \ posy? | \ posnegy? | \ posyt? | \ posyil? |
  3014.                               \ posyb? | \ posyc?
  3015.  
  3016.  
  3017.  
  3018.             Control word      Meaning
  3019.  
  3020.             --------------    ----------------------------------------------
  3021.  
  3022.             \ abswN           N is the width of the frame in twips.
  3023.  
  3024.             \ abshN           N is the height of the frame in twips. A
  3025.                               positive number indicates the minimum height of
  3026.                               the frame and a negative number indicates the
  3027.                               exact height of the frame. A value of zero
  3028.                               indicates that the height of the frame adjusts
  3029.                               to the contents of the frame. This is the
  3030.                               default for frames where no height is given.
  3031.  
  3032.             ----------------------------------------------------------------
  3033.             Horizontal Position
  3034.             ----------------------------------------------------------------
  3035.  
  3036.             \ phmrg           Use the margin as the horizontal reference
  3037.                               frame.
  3038.  
  3039.             \ phpg            Use the page as the horizontal reference frame.
  3040.  
  3041.             \ phcol           Use the column as the horizontal reference
  3042.                               frame. This is the default if no horizontal
  3043.                               reference frame is given.
  3044.  
  3045.             \ posxN           Positions the frame N twips from the left edge
  3046.                               of the reference frame.
  3047.  
  3048.             \ posnegxN        Same as \ posx but allows arbitrary negative
  3049.                               values.
  3050.  
  3051.             \ posxc           Centers the frame horizontally within the
  3052.                               reference frame.
  3053.  
  3054.             \ posxi           Positions the paragraph horizontally inside the
  3055.                               reference frame.
  3056.  
  3057.  
  3058.  
  3059.                          Microsoft Product Support Services
  3060.  
  3061.  
  3062.  
  3063.  
  3064.                                Rich Text Format (RTF) Specification   page 52
  3065.  
  3066.             Control word      Meaning
  3067.  
  3068.             --------------    ----------------------------------------------
  3069.  
  3070.             \ posxo           Positions the paragraph horizontally outside
  3071.                               the reference frame.
  3072.  
  3073.             \ posxr           Positions the paragraph to the right within the
  3074.                               reference frame.
  3075.  
  3076.             \ posxl           Positions the paragraph to the left within the
  3077.                               reference frame. This is the default if no
  3078.                               horizontal positioning information is given.
  3079.  
  3080.             ----------------------------------------------------------------
  3081.             Vertical Position
  3082.             ----------------------------------------------------------------
  3083.  
  3084.             \ pvmrg           Positions the reference frame vertically
  3085.                               relative to the margin. This is the default if
  3086.                               no vertical frame positioning information is
  3087.                               given.
  3088.  
  3089.             \ pvpg            Positions the reference frame vertically
  3090.                               relative to the page.
  3091.  
  3092.             \ pvpara          Positions the reference frame vertically
  3093.                               relative to the top of the top left corner of
  3094.                               the next unframed paragraph in the RTF stream.
  3095.  
  3096.             \ posyN           Positions the paragraph N twips from the top
  3097.                               edge of the reference frame.
  3098.  
  3099.             \ posnegyN        Same as \ posy but allows arbitrary negative
  3100.                               values.
  3101.  
  3102.             \ posyil          Positions the paragraph vertically to be in-
  3103.                               line.
  3104.  
  3105.             \ posyt           Positions the paragraph at the top of the
  3106.                               reference frame.
  3107.  
  3108.             \ posyc           Centers the paragraph vertically within the
  3109.                               reference frame.
  3110.  
  3111.             \ posyb           Positions the paragraph at the bottom of the
  3112.                               reference frame.
  3113.  
  3114.  
  3115.  
  3116.  
  3117.  
  3118.  
  3119.                          Microsoft Product Support Services
  3120.  
  3121.  
  3122.  
  3123.  
  3124.                                Rich Text Format (RTF) Specification   page 53
  3125.  
  3126.             Control word      Meaning
  3127.  
  3128.             --------------    ----------------------------------------------
  3129.  
  3130.             ----------------------------------------------------------------
  3131.             Text Wrapping
  3132.             ----------------------------------------------------------------
  3133.  
  3134.             \ nowrap          Prevents text from flowing around the
  3135.                               positioned object.
  3136.  
  3137.             \ dxfrtextN       Distance in twips of a positioned paragraph
  3138.                               from text in the main text flow in all
  3139.                               directions.
  3140.  
  3141.             \ dfrmtxtxN       N is the horizontal distance in twips from text
  3142.                               on both sides of the frame.
  3143.  
  3144.             \ dfrmtxtyN       N is the vertical distance in twips from text
  3145.                               on both sides of the frame.
  3146.  
  3147.             ----------------------------------------------------------------
  3148.             Drop Caps
  3149.             ----------------------------------------------------------------
  3150.  
  3151.             \ dropcapliN      Number of lines drop cap is to occupy. The
  3152.                               range is 1 through 10.
  3153.  
  3154.             \ dropcaptN       Type of drop cap:
  3155.  
  3156.                               1  In-text drop cap
  3157.  
  3158.                               2  Margin drop cap
  3159.  
  3160.  
  3161.  
  3162.             The following is an example of absolute-positioned text in a
  3163.             document:
  3164.  
  3165.                  \par \pard \pvpg\phpg\posxc\posyt\absw5040\dxfrtest173 First
  3166.                  APO para
  3167.                  \par \pard \phmrg\posxo\posyc\dxfrtext1152 Second APO para
  3168.  
  3169.             5.2.4.7.  Table Definitions
  3170.  
  3171.             There is no RTF table group; instead, tables are specified as
  3172.             paragraph properties. A table is represented as a sequence of
  3173.             table rows. A table row is a continuous sequence of paragraphs
  3174.             partitioned into cells. The table row begins with the \ trowd
  3175.             control word and ends with the \ row control word. Every
  3176.             paragraph that is contained in a table row must have the \ intbl
  3177.             control word specified or inherited from the previous paragraph.
  3178.  
  3179.                          Microsoft Product Support Services
  3180.  
  3181.  
  3182.  
  3183.  
  3184.                                Rich Text Format (RTF) Specification   page 54
  3185.  
  3186.             A cell may have more than one paragraph in it; the cell is
  3187.             terminated by a cell mark (the \ cell control word), and the row
  3188.             is terminated by a row mark (the \ row control word). Table rows
  3189.             can also be positioned. In this case, every paragraph in a table
  3190.             row must have the same positioning controls (see the <apoctl>
  3191.             controls on page 28 of this Application Note). Table properties
  3192.             may be inherited from the previous row; therefore, a series of
  3193.             table rows may be introduced by a single <tbldef>.
  3194.  
  3195.             An RTF table row has the following syntax, as shown in the
  3196.             general paragraph-text syntax shown on page 22 of this
  3197.             Application Note.
  3198.  
  3199.             <row>             <tbldef> <cell>+ \ row
  3200.  
  3201.             <cell>            <textpar>+ \ cell
  3202.  
  3203.  
  3204.  
  3205.             A table definition has the following syntax:
  3206.  
  3207.             <tbldef>          \ trowd \ trgaph <rowjust>?  & <rowwrite>?
  3208.                               <rowtop>? & <rowbot>? & <rowleft>? &
  3209.                               <rowright>? & <rowhor>? & <rowvert>? &
  3210.                               \ trleft? & \trrh? \trhdr? & \trkeep?
  3211.                               <celldef>+
  3212.  
  3213.             <rowjust>          \ trql | \ trqr | \ trqc
  3214.  
  3215.             <rowwrite>        \ ltrrow | \ rtlrow
  3216.  
  3217.             <rowtop>          \ trbrdrt <brdr>
  3218.  
  3219.             <rowbot>          \ trbrdrl <brdr>
  3220.  
  3221.             <rowleft>         \ trbrdrb <brdr>
  3222.  
  3223.             <rowright>        \ trbrdrr <brdr>
  3224.  
  3225.             <rowhor>          \ trbrdrh <brdr>
  3226.  
  3227.             <rowvert>         \ trbrdrv <brdr>
  3228.  
  3229.             <celldef>         ( \ clmgf? & \ clmrg? <celltop>? & <cellleft>?
  3230.                               & <cellbot>? & <cellright>? & <cellshad>?)
  3231.                               \ cellx
  3232.  
  3233.             <celltop>         \ clbrdrt <brdr>
  3234.  
  3235.             <cellleft>        \ clbrdrl <brdr>
  3236.  
  3237.  
  3238.  
  3239.                          Microsoft Product Support Services
  3240.  
  3241.  
  3242.  
  3243.  
  3244.                                Rich Text Format (RTF) Specification   page 55
  3245.  
  3246.             <cellbot>         \ clbrdrb <brdr>
  3247.  
  3248.             <cellright>       \ clbrdrr <brdr>
  3249.  
  3250.             <cellshad>        <cellpat>? \ clcfpat? & \ clcbpat? & \ clshdng
  3251.  
  3252.             <cellpat>         \ clbghoriz | \ clbgvert | \ clbgfdiag |
  3253.                               \ clbgbdiag | \ clbgcross | \clbgdcross |
  3254.                               \ clbgdkhor | \ clbgdkvert | \ clbgdkfdiag |
  3255.                               \ clbgdkbdiag | \ clbgdkcross | \ clbgdkdcross
  3256.  
  3257.  
  3258.  
  3259.             Note for <tbldef> that the number of \cellxs must match the
  3260.             number of \cells in the \row.
  3261.  
  3262.             The following control words further define options for each row
  3263.             of the table.
  3264.  
  3265.             Control word      Meaning
  3266.  
  3267.             --------------    ----------------------------------------------
  3268.  
  3269.             \ trowd           Sets table row defaults.
  3270.  
  3271.             \ trgaphN         Half the space between the cells of a table row
  3272.                               in twips.
  3273.  
  3274.             \ cellxN          Defines the right boundary of a table cell,
  3275.                               including its half of the space between cells.
  3276.  
  3277.             \ clmgf           The first cell in a range of table cells to be
  3278.                               merged.
  3279.  
  3280.             \ clmrg           Contents of the table cell are merged with
  3281.                               those of the preceding cell.
  3282.  
  3283.             ----------------------------------------------------------------
  3284.             Row Formatting
  3285.             ----------------------------------------------------------------
  3286.  
  3287.             \ trql            Left-justifies a table row with respect to its
  3288.                               containing column.
  3289.  
  3290.             \ trqr            Right-justifies a table row with respect to its
  3291.                               containing column.
  3292.  
  3293.             \ trqc            Centers a table row with respect to its
  3294.                               containing column.
  3295.  
  3296.  
  3297.  
  3298.  
  3299.                          Microsoft Product Support Services
  3300.  
  3301.  
  3302.  
  3303.  
  3304.                                Rich Text Format (RTF) Specification   page 56
  3305.  
  3306.             Control word      Meaning
  3307.  
  3308.             --------------    ----------------------------------------------
  3309.  
  3310.             \ trleftN         Position of the leftmost edge of the table with
  3311.                               respect to the left edge of its column.
  3312.  
  3313.             \ trrhN           Height of a table row in twips; when 0 (zero),
  3314.                               the height is sufficient for all the text in
  3315.                               the line; when positive, the height is
  3316.                               guaranteed to be at least the specified height;
  3317.                               when negative, the absolute value of the height
  3318.                               is used, regardless of the height of the text
  3319.                               in the line.
  3320.  
  3321.             \ trhdr           Table row header; this row should appear at the
  3322.                               top of every page the current table appears on.
  3323.  
  3324.             \ trkeep          Table row keep together; this row cannot be
  3325.                               split by a page break. This property is assumed
  3326.                               off unless the control word is present.
  3327.  
  3328.             ----------------------------------------------------------------
  3329.             Bidirectional Controls
  3330.             ----------------------------------------------------------------
  3331.  
  3332.             \ rtlrow          Cells in this table row will have right-to-left
  3333.                               precedence.
  3334.  
  3335.             \ ltrrow          Cells in this table row will have left-to-right
  3336.                               precedence (the default).
  3337.  
  3338.             ----------------------------------------------------------------
  3339.             Row Borders
  3340.             ----------------------------------------------------------------
  3341.  
  3342.             \ trbrdrt         Table row border top.
  3343.  
  3344.             \ trbrdrl         Table row border left.
  3345.  
  3346.             \ trbrdrb         Table row border bottom.
  3347.  
  3348.             \ trbrdrr         Table row border right.
  3349.  
  3350.             \ trbrdrh         Table row border horizontal (inside).
  3351.  
  3352.             \ trbrdrv         Table row border vertical (inside).
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.                          Microsoft Product Support Services
  3360.  
  3361.  
  3362.  
  3363.  
  3364.                                Rich Text Format (RTF) Specification   page 57
  3365.  
  3366.             Control word      Meaning
  3367.  
  3368.             --------------    ----------------------------------------------
  3369.  
  3370.             ----------------------------------------------------------------
  3371.             Cell Borders
  3372.             ----------------------------------------------------------------
  3373.  
  3374.             \ clbrdrb         Bottom table cell border.
  3375.  
  3376.             \ clbrdrt         Top table cell border.
  3377.  
  3378.             \ clbrdrl         Left table cell border.
  3379.  
  3380.             \ clbrdrr         Right table cell border.
  3381.  
  3382.             ----------------------------------------------------------------
  3383.             Cell Shading and Background Pattern
  3384.             ----------------------------------------------------------------
  3385.  
  3386.             \ clshdngN        N is the shading of a table cell in hundredths
  3387.                               of a percent. This control should be included
  3388.                               in RTF along with cell border information.
  3389.  
  3390.             \ clbghoriz       Specifies a horizontal background pattern for
  3391.                               the cell.
  3392.  
  3393.             \ clbgvert        Specifies a vertical background pattern for the
  3394.                               cell.
  3395.  
  3396.             \ clbgfdiag       Specifies a forward diagonal background pattern
  3397.                               for the cell ( \ \ \ \ ).
  3398.  
  3399.             \ clbgbdiag       Specifies a backward diagonal background
  3400.                               pattern for the cell (//// ).
  3401.  
  3402.             \ clbgcross       Specifies a cross background pattern for the
  3403.                               cell.
  3404.  
  3405.             \ clbgdcross      Specifies a diagonal cross background pattern
  3406.                               for the cell.
  3407.  
  3408.             \ clbgdkhor       Specifies a dark horizontal background pattern
  3409.                               for the cell.
  3410.  
  3411.             \ clbgdkvert      Specifies a dark vertical background pattern
  3412.                               for the cell.
  3413.  
  3414.             \ clbgdkfdiag     Specifies a dark forward diagonal background
  3415.                               pattern for the cell ( \ \ \ \ ).
  3416.  
  3417.  
  3418.  
  3419.                          Microsoft Product Support Services
  3420.  
  3421.  
  3422.  
  3423.  
  3424.                                Rich Text Format (RTF) Specification   page 58
  3425.  
  3426.             Control word      Meaning
  3427.  
  3428.             --------------    ----------------------------------------------
  3429.  
  3430.             \ clbgdkbdiag     Specifies a dark backward diagonal background
  3431.                               pattern for the cell (//// ).
  3432.  
  3433.             \ clbgdkcross     Specifies a dark cross background pattern for
  3434.                               the cell.
  3435.  
  3436.             \ clbgdkdcross    Specifies a dark diagonal cross background
  3437.                               pattern for the cell.
  3438.  
  3439.             \ clcfpatN        N is the line color of the background pattern.
  3440.  
  3441.             \ clcbpatN        N is the background color of the background
  3442.                               pattern.
  3443.  
  3444.  
  3445.  
  3446.             The following is an example of table text:
  3447.  
  3448.                  \par \trowd \trqc\trgaph108\trrh280\trleft36
  3449.                  \clbrdrt\brdrth \clbrdrl\brdrth \clbrdrb\brdrdb
  3450.                  \clbrdrr\brdrdb \cellx3636\clbrdrt\brdrth
  3451.                  \clbrdrl\brdrdb \clbrdrb\brdrdb \clbrdrr\brdrdb
  3452.                  \cellx7236\clbrdrt\brdrth \clbrdrl\brdrdb
  3453.                  \clbrdrb\brdrdb \clbrdrr\brdrdb \cellx10836\pard \intbl
  3454.                  \cell \pard \intbl \cell \pard \intbl \cell \pard \intbl
  3455.                  \row
  3456.                  \trowd \trqc\trgaph108\trrh280\trleft36 \clbrdrt\brdrdb
  3457.                  \clbrdrl\brdrth \clbrdrb \brdrsh\brdrs \clbrdrr\brdrdb
  3458.                  \cellx3636\clbrdrt\brdrdb \clbrdr \brdrdb
  3459.                  \clbrdrb\brdrsh\brdrs \clbrdrr\brdrdb
  3460.                  \cellx7236\clbrdrt\brdrdb \clbrdr \brdrdb
  3461.                  \clbrdrb\brdrsh\brdrs \clbrdrr\brdrdb \cellx10836\pard
  3462.                  \intbl \cell \pard \intbl \cell \pard \intbl \cell \pard
  3463.                  \intbl \row \pard
  3464.  
  3465.           5.2.5. Character Text
  3466.  
  3467.             Character text has the following syntax:
  3468.  
  3469.             <char>            <ptext> | <atext> | '{' <char> '}'
  3470.  
  3471.             <ptext>           (<chrfmt>* <data>+ )+
  3472.  
  3473.             <data>            #PCDATA | <spec> | <pict> | <obj> | <do> |
  3474.                               <foot> | <annot> | <field> | <idx> | <toc> |
  3475.                               <book>
  3476.  
  3477.  
  3478.  
  3479.                          Microsoft Product Support Services
  3480.  
  3481.  
  3482.  
  3483.  
  3484.                                Rich Text Format (RTF) Specification   page 59
  3485.  
  3486.             5.2.5.1.  Character Formatting Properties
  3487.  
  3488.             These control words (described as <chrfmt> in the syntax
  3489.             description) change character formatting properties. A control
  3490.             word preceding plain text turns on the specified attribute. Some
  3491.             control words (indicated in the following table by an asterisk
  3492.             following the description) can be turned off by the control word
  3493.             followed by 0 (zero). For example, \ b turns on bold, while \ b0
  3494.             turns off bold.
  3495.  
  3496.             The character-formatting control words are listed in the
  3497.             following table.
  3498.  
  3499.             Control word      Meaning
  3500.  
  3501.             --------------    ----------------------------------------------
  3502.  
  3503.             \ plain           Reset character formatting properties to a
  3504.                               default value defined by the application. The
  3505.                               associated character formatting properties
  3506.                               (described in the section "Associated Character
  3507.                               Properties" on page 35 of this Application
  3508.                               Note) are also reset.
  3509.  
  3510.             \ b               Bold.*
  3511.  
  3512.             \ caps            All capitals.*
  3513.  
  3514.             \ deleted         Marks the text as deletion revision marked.*
  3515.  
  3516.             \ dnN             Subscript position in half-points (the default
  3517.                               is 6).
  3518.  
  3519.             \ sub             Subscripts text and shrinks point size
  3520.                               according to font information.
  3521.  
  3522.             \ nosupersub      Turns off superscripting or subscripting.
  3523.  
  3524.             \ expndN          Expansion or compression of the space between
  3525.                               characters in quarter-points; a negative value
  3526.                               compresses (the default is 0).
  3527.  
  3528.             \ expndtwN        Expansion or compression of the space between
  3529.                               characters in twips; a negative value
  3530.                               compresses. For backward compatibility, both
  3531.                               \ expndtw and \ expnd should be emitted.
  3532.  
  3533.             \ kerningN        Point size (in half-points) above which to kern
  3534.                               character pairs. \ kerning0 turns off kerning.
  3535.  
  3536.  
  3537.  
  3538.  
  3539.                          Microsoft Product Support Services
  3540.  
  3541.  
  3542.  
  3543.  
  3544.                                Rich Text Format (RTF) Specification   page 60
  3545.  
  3546.             Control word      Meaning
  3547.  
  3548.             --------------    ----------------------------------------------
  3549.  
  3550.             \ fN              Font number.  N refers to an entry in the font
  3551.                               table.
  3552.  
  3553.             \ fsN             Font size in half-points (the default is 24).
  3554.  
  3555.             \ i               Italic.*
  3556.  
  3557.             \ outl            Outline.*
  3558.  
  3559.             \ revised         Text has been added since revision marking was
  3560.                               turned on.
  3561.  
  3562.             \ revauthN        Index into the revision table. The content of
  3563.                               the Nth group in the revision table is
  3564.                               considered to be the author of that revision.
  3565.  
  3566.             \ revdttmN        Time of the revision. The 32-bit DTTM structure
  3567.                               is emitted as a long integer.
  3568.  
  3569.             \ scaps           Small capitals.*
  3570.  
  3571.             \ shad            Shadow.*
  3572.  
  3573.             \ strike          Strikethrough.*
  3574.  
  3575.             \ ul              Continuous underline. \ ul0 turns off all
  3576.                               underlining.
  3577.  
  3578.             \ uld             Dotted underline.
  3579.  
  3580.             \ uldb            Double underline.
  3581.  
  3582.             \ ulnone          Stops all underlining.
  3583.  
  3584.             \ ulw             Word underline.
  3585.  
  3586.             \ upN             Superscript position in half-points (the
  3587.                               default is 6).
  3588.  
  3589.             \ super           Superscripts text and shrinks point size
  3590.                               according to font information.
  3591.  
  3592.             \ v               Hidden text.*
  3593.  
  3594.             \ cfN             Foreground color (the default is 0).
  3595.  
  3596.             \ cbN             Background color (the default is 0).
  3597.  
  3598.  
  3599.                          Microsoft Product Support Services
  3600.  
  3601.  
  3602.  
  3603.  
  3604.                                Rich Text Format (RTF) Specification   page 61
  3605.  
  3606.             Control word      Meaning
  3607.  
  3608.             --------------    ----------------------------------------------
  3609.  
  3610.             \ rtlch           The character data following this control word
  3611.                               will be treated as a right-to-left run.
  3612.  
  3613.             \ ltrch           The character data following this control word
  3614.                               will be treated as a left-to-right run (the
  3615.                               default).
  3616.  
  3617.             \ csN             Designates character style; if a character
  3618.                               style is specified, style properties must be
  3619.                               specified with the character run.  N refers to
  3620.                               an entry in the style table.
  3621.  
  3622.             \ cchsN           Indicates any characters not belonging to the
  3623.                               default document character set and tells which
  3624.                               character set they do belong to. Macintosh
  3625.                               character sets are represented by values
  3626.                               greater than 255. The values for N correspond
  3627.                               to the values for the \ fcharset control word.
  3628.  
  3629.             \ langN           Applies a language to a character. N is a
  3630.                               number corresponding to a language. The \ plain
  3631.                               control word resets the language property to
  3632.                               the language defined by \ deflangN in the
  3633.                               document properties.
  3634.  
  3635.  
  3636.  
  3637.             The following table defines the standard languages used by
  3638.             Microsoft. This table was generated by the Unicode [TM] group for
  3639.             use with TrueType and Unicode.
  3640.  
  3641.             Language name                 Language ID
  3642.  
  3643.             ---------------------------   ----------------------------------
  3644.  
  3645.             No language                   0x0400
  3646.  
  3647.             Albanian                      0x041c
  3648.  
  3649.             Arabic                        0x0401
  3650.  
  3651.             Bahasa                        0x0421
  3652.  
  3653.             Belgian Dutch                 0x0813
  3654.  
  3655.             Belgian French                0x080c
  3656.  
  3657.  
  3658.  
  3659.                          Microsoft Product Support Services
  3660.  
  3661.  
  3662.  
  3663.  
  3664.                                Rich Text Format (RTF) Specification   page 62
  3665.  
  3666.             Language name                 Language ID
  3667.  
  3668.             ---------------------------   ----------------------------------
  3669.  
  3670.             Brazilian Portuguese          0x0416
  3671.  
  3672.             Bulgarian                     0x0402
  3673.  
  3674.             Catalan                       0x0403
  3675.  
  3676.             Croato-Serbian (Latin)        0x041a
  3677.  
  3678.             Czech                         0x0405
  3679.  
  3680.             Danish                        0x0406
  3681.  
  3682.             Dutch                         0x0413
  3683.  
  3684.             English (Australian)          0x0c09
  3685.  
  3686.             English (U.K.)                0x0809
  3687.  
  3688.             English (U.S.)                0x0409
  3689.  
  3690.             Finnish                       0x040b
  3691.  
  3692.             French                        0x040c
  3693.  
  3694.             French (Canadian)             0x0c0c
  3695.  
  3696.             German                        0x0407
  3697.  
  3698.             Greek                         0x0408
  3699.  
  3700.             Hebrew                        0x040d
  3701.  
  3702.             Hungarian                     0x040e
  3703.  
  3704.             Icelandic                     0x040f
  3705.  
  3706.             Italian                       0x0410
  3707.  
  3708.             Japanese                      0x0411
  3709.  
  3710.             Korean                        0x0412
  3711.  
  3712.             Norwegian (Bokmal)            0x0414
  3713.  
  3714.             Norwegian (Nynorsk)           0x0814
  3715.  
  3716.             Polish                        0x0415
  3717.  
  3718.  
  3719.                          Microsoft Product Support Services
  3720.  
  3721.  
  3722.  
  3723.  
  3724.                                Rich Text Format (RTF) Specification   page 63
  3725.  
  3726.             Language name                 Language ID
  3727.  
  3728.             ---------------------------   ----------------------------------
  3729.  
  3730.             Portuguese                    0x0816
  3731.  
  3732.             Rhaeto-Romanic                0x0417
  3733.  
  3734.             Romanian                      0x0418
  3735.  
  3736.             Russian                       0x0419
  3737.  
  3738.             Serbo-Croatian (Cyrillic)     0x081a
  3739.  
  3740.             Simplified Chinese            0x0804
  3741.  
  3742.             Slovak                        0x041b
  3743.  
  3744.             Spanish (Castilian)           0x040a
  3745.  
  3746.             Spanish (Mexican)             0x080a
  3747.  
  3748.             Swedish                       0x041d
  3749.  
  3750.             Swiss French                  0x100c
  3751.  
  3752.             Swiss German                  0x0807
  3753.  
  3754.             Swiss Italian                 0x0810
  3755.  
  3756.             Thai                          0x041e
  3757.  
  3758.             Traditional Chinese           0x0404
  3759.  
  3760.             Turkish                       0x041f
  3761.  
  3762.             Urdu                          0x0420
  3763.  
  3764.  
  3765.  
  3766.             To read negative \ expnd values from Word for the Macintosh, an
  3767.             RTF reader should use only the low-order 6 bits of the value
  3768.             read. Word for the Macintosh does not emit negative values for
  3769.             \ expnd. Instead, it treats values from 57 through 63 as -7
  3770.             through -1, respectively (the low-order 6 bits of 57 through 63
  3771.             are the same as -7 through -1).
  3772.  
  3773.             5.2.5.2.  Associated Character Properties
  3774.  
  3775.             Bidirectional-aware text processors often need to associate a
  3776.             Latin (or other left-to-right) font with an Arabic or Hebrew (or
  3777.             other right-to-left) font. The association is needed to match
  3778.  
  3779.                          Microsoft Product Support Services
  3780.  
  3781.  
  3782.  
  3783.  
  3784.                                Rich Text Format (RTF) Specification   page 64
  3785.  
  3786.             commonly used pairs of fonts in name, size, and other attributes.
  3787.             While RTF defines a broad variety of associated character
  3788.             properties, any implementation may choose to not implement a
  3789.             particular associated character property and share the property
  3790.             between the Latin and Arabic fonts.
  3791.  
  3792.             Property association uses the following syntax:
  3793.  
  3794.             <atext>           <ltrrun> | <rtlrun>
  3795.  
  3796.             <ltrrun>          \ rtlch \ af & <aprops>* \ ltrch <ptext>
  3797.  
  3798.             <rtlrun>          \ ltrch \ af & <aprops>* \ rtlch <ptext>
  3799.  
  3800.  
  3801.  
  3802.             Here are some examples of property association:
  3803.  
  3804.                  \ ltrch\ af2\ ab\ au\ rtlch\ u Sample Text
  3805.  
  3806.             This is a right-to-left run. Text will use the default
  3807.             bidirectional font, and will be underlined. The left-to-right
  3808.             font associated with this run is font 2 (in the font table) with
  3809.             bolding and underlining.
  3810.  
  3811.                  \ plain\ rtlch\ ltrch Sample Text
  3812.  
  3813.             This is a left-to-right run. The right-to-left font and the left-
  3814.             to-right font use the default font (specified by \ deff).
  3815.  
  3816.                  \ rtlch\ af5\ ab\ ai\ ltrch\ u Sample Text
  3817.  
  3818.             This is a left-to-right run. The right-to-left font is font 5,
  3819.             bold and italicized. The left-to-right font is the default font,
  3820.             underlined. If the reader does not support underlining in the
  3821.             associated font, both fonts will be underlined.
  3822.  
  3823.             The property association control words (described as <aprops> in
  3824.             the syntax description) are listed in the following table. Some
  3825.             control words (indicated in the following table by an asterisk
  3826.             following the description) can be turned off by the control word
  3827.             followed by 0 (zero).
  3828.  
  3829.             Control word      Meaning
  3830.  
  3831.             --------------    ----------------------------------------------
  3832.  
  3833.             \ ab              Associated font is bold.*
  3834.  
  3835.             \ acaps           Associated font is all capitals.*
  3836.  
  3837.  
  3838.  
  3839.                          Microsoft Product Support Services
  3840.  
  3841.  
  3842.  
  3843.  
  3844.                                Rich Text Format (RTF) Specification   page 65
  3845.  
  3846.             Control word      Meaning
  3847.  
  3848.             --------------    ----------------------------------------------
  3849.  
  3850.             \ acfN            Associated foreground color (the default is 0).
  3851.  
  3852.             \ adnN            Associated font is subscript position in half-
  3853.                               points (the default is 6).
  3854.  
  3855.             \ aexpndN         Expansion or compression of the space between
  3856.                               characters in quarter-points; a negative value
  3857.                               compresses (the default is 0).
  3858.  
  3859.             \ afN             Associated font number (the default is 0).
  3860.  
  3861.             \ afsN            Associated font size in half-points (the
  3862.                               default is 24).
  3863.  
  3864.             \ ai              Associated font is italic.*
  3865.  
  3866.             \ alangN          Language ID for the associated font. (This uses
  3867.                               the same language ID codes describedon page 34
  3868.                               of this Application Note.)
  3869.  
  3870.             \ aoutl           Associated font is outline.*
  3871.  
  3872.             \ ascaps          Associated font is small capitals.*
  3873.  
  3874.             \ ashad           Associated font is shadow.*
  3875.  
  3876.             \ astrike         Associated font is strikethrough.*
  3877.  
  3878.             \ aul             Associated font is continuous underline. \ aul0
  3879.                               turns off all underlining for the alternate
  3880.                               font.
  3881.  
  3882.             \ auld            Associated font is dotted underline.
  3883.  
  3884.             \ auldb           Associated font is double underline.
  3885.  
  3886.             \ aulnone         Associated font is no longer underlined.
  3887.  
  3888.             \ aulw            Associated font is word underline.
  3889.  
  3890.             \ aupN            Superscript position in half-points (the
  3891.                               default is 6).
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899.                          Microsoft Product Support Services
  3900.  
  3901.  
  3902.  
  3903.  
  3904.                                Rich Text Format (RTF) Specification   page 66
  3905.  
  3906.             5.2.5.3.  Special Characters
  3907.  
  3908.             The RTF Specification includes control words for special
  3909.             characters (described as <spec> in the character-text syntax
  3910.             description). If a special-character control word is not
  3911.             recognized by the RTF reader, it is ignored, and the text
  3912.             following it is considered plain text. The RTF Specification is
  3913.             flexible enough to allow new special characters to be added for
  3914.             interchange with other software.
  3915.  
  3916.             The special RTF characters are listed in the following table.
  3917.  
  3918.             Control word      Meaning
  3919.  
  3920.             --------------    ----------------------------------------------
  3921.  
  3922.             \ chdate          Current date (as in headers).
  3923.  
  3924.             \ chdpl           Current date in long format (for example,
  3925.                               Thursday, October 28, 1993).
  3926.  
  3927.             \ chdpa           Current date in abbreviated format (for
  3928.                               example, Thu, Oct 28, 1993).
  3929.  
  3930.             \ chtime          Current time (as in headers).
  3931.  
  3932.             \ chpgn           Current page number (as in headers).
  3933.  
  3934.             \ sectnum         Current section number (as in headers).
  3935.  
  3936.             \ chftn           Automatic footnote reference (footnotes follow
  3937.                               in a group).
  3938.  
  3939.             \ chatn           Annotation reference (annotation text follows
  3940.                               in a group).
  3941.  
  3942.             \ chftnsep        Anchoring character for footnote separator.
  3943.  
  3944.             \ chftnsepc       Anchoring character for footnote continuation.
  3945.  
  3946.             \ cell            End of table cell.
  3947.  
  3948.             \ row             End of table row.
  3949.  
  3950.             \ par             End of paragraph.
  3951.  
  3952.             \ sect            End of section and paragraph.
  3953.  
  3954.             \ page            Required page break.
  3955.  
  3956.             \ column          Required column break.
  3957.  
  3958.  
  3959.                          Microsoft Product Support Services
  3960.  
  3961.  
  3962.  
  3963.  
  3964.                                Rich Text Format (RTF) Specification   page 67
  3965.  
  3966.             Control word      Meaning
  3967.  
  3968.             --------------    ----------------------------------------------
  3969.  
  3970.             \ line            Required line break (no paragraph break).
  3971.  
  3972.             \ softpage        Nonrequired page break. Emitted as it appears
  3973.                               in galley view.
  3974.  
  3975.             \ softcol         Nonrequired column break. Emitted as it appears
  3976.                               in galley view.
  3977.  
  3978.             \ softline        Nonrequired line break. Emitted as it appears
  3979.                               in galley view.
  3980.  
  3981.             \ softlheightN    Nonrequired line height. This is emitted as a
  3982.                               prefix to each line.
  3983.  
  3984.             \ tab             Tab character; same as ASCII 9.
  3985.  
  3986.             \ emdash          Em-dash (---.
  3987.  
  3988.             \ endash          En-dash (-).
  3989.  
  3990.             \ emspace         Nonbreaking space equal to width of character
  3991.                               "m" in current font.
  3992.  
  3993.             \ enspace         Nonbreaking space equal to width of character
  3994.                               "n" in current font.
  3995.  
  3996.             \ bullet          Bullet character.
  3997.  
  3998.             \ lquote          Left single quotation mark.
  3999.  
  4000.             \ rquote          Right single quotation mark.
  4001.  
  4002.             \ ldblquote       Left double quotation mark.
  4003.  
  4004.             \ rdblquote       Right double quotation mark.
  4005.  
  4006.             \ |               Formula character.
  4007.  
  4008.             \ ~               Nonbreaking space.
  4009.  
  4010.             \ -               Optional hyphen.
  4011.  
  4012.             \ _               Nonbreaking hyphen.
  4013.  
  4014.             \ :               Specifies a subentry in an index entry.
  4015.  
  4016.  
  4017.  
  4018.  
  4019.                          Microsoft Product Support Services
  4020.  
  4021.  
  4022.  
  4023.  
  4024.                                Rich Text Format (RTF) Specification   page 68
  4025.  
  4026.             Control word      Meaning
  4027.  
  4028.             --------------    ----------------------------------------------
  4029.  
  4030.             \ *               Marks a destination whose text should be
  4031.                               ignored if not understood by the RTF reader.
  4032.  
  4033.             \ 'hh             A hexadecimal value, based on the specified
  4034.                               character set (may be used to identify 8-bit
  4035.                               values).
  4036.  
  4037.             \ ltrmark         The following characters should be displayed
  4038.                               from left to right; usually found at the start
  4039.                               of \ltrch runs.
  4040.  
  4041.             \ rtlmark         The following characters should be displayed
  4042.                               from right to left; usually found at the start
  4043.                               of \rtlch runs.
  4044.  
  4045.             \ zwj             Zero-width joiner. This is used to ligate
  4046.                               (join) characters.
  4047.  
  4048.             \ zwnj            Zero-width nonjoiner. This is used for
  4049.                               unligating a characters.
  4050.  
  4051.  
  4052.  
  4053.             Note that an ASCII 9 is accepted as a tab character. A carriage
  4054.             return (character value 13) or linefeed (character value 10) will
  4055.             be treated as a \ par control if the character is preceded by a
  4056.             backslash. You must include the backslash, or RTF ignores the
  4057.             control word. (You may also want to insert a carriage-
  4058.             return/linefeed pair without backslashes at least every 255
  4059.             characters for better text transmission over communication
  4060.             lines.)
  4061.  
  4062.             The following are the code values for the special characters
  4063.             listed.
  4064.  
  4065.             Control word      Word for Windows    Apple Macintosh
  4066.                               and OS/2
  4067.  
  4068.             --------------    -----------------   --------------------------
  4069.  
  4070.             \ bullet          149                 0xA5
  4071.  
  4072.             \ endash          150                 0xD1
  4073.  
  4074.             \ emdash          151                 0xD0
  4075.  
  4076.             \ lquote          145                 0xD4
  4077.  
  4078.  
  4079.                          Microsoft Product Support Services
  4080.  
  4081.  
  4082.  
  4083.  
  4084.                                Rich Text Format (RTF) Specification   page 69
  4085.  
  4086.             Control word      Word for Windows    Apple Macintosh
  4087.                               and OS/2
  4088.  
  4089.             --------------    -----------------   --------------------------
  4090.  
  4091.             \ rquote          146                 0xD5
  4092.  
  4093.             \ ldblquote       147                 0xD2
  4094.  
  4095.             \ rdblquote       148                 0xD3
  4096.  
  4097.  
  4098.  
  4099.           5.2.6. Bookmarks
  4100.  
  4101.             This destination may specify one of two control words:
  4102.             \ *\ bkmkstart, which indicates the start of the specified
  4103.             bookmark, and \ *\ bkmkend, which indicates the end of the
  4104.             specified bookmark.
  4105.  
  4106.             Bookmarks have the following syntax:
  4107.  
  4108.             <book>            <bookstart> | <bookend>
  4109.  
  4110.             <bookstart>       '{\ *' \ bkmkstart ( \ bkmkcolf? &
  4111.                               \ bkmkcoll?) #PCDATA '}'
  4112.  
  4113.             <bookend>         '{\ *' \ bkmkend #PCDATA '}'
  4114.  
  4115.  
  4116.  
  4117.             A bookmark is shown in the following example:
  4118.  
  4119.                  \pard\plain \fs20 Kuhn believes that science, rather than
  4120.                  discovering in experience certain structured
  4121.                  relationships, actually creates (or already participates in)
  4122.                  a presupposed structure to which it fits the data.
  4123.                  {\bkmkstart paradigm} Kuhn calls such a presupposed
  4124.                  structure a paradigm.{\bkmkend paradigm}
  4125.  
  4126.             The bookmark start and the bookmark end are matched with the
  4127.             bookmark tag. In the example, the bookmark tag was "paradigm."
  4128.             Each bookmark start should have a matching bookmark end; however,
  4129.             the bookmark start and the bookmark end may be in any order.
  4130.  
  4131.             \ bkmkcolfN is used to denote the first column of a table covered
  4132.             by a bookmark. If it is not included, the first column is
  4133.             assumed. \ bkmkcollN is used to denote the last column. If it is
  4134.             not used, the last column is assumed. These controls are used
  4135.             within the \ *\ bkmkstart destination following the \ bkmkstart
  4136.             control. For example, {\ *\ bkmkstart\ bkmkcolf2\ bkmkcoll5
  4137.  
  4138.  
  4139.                          Microsoft Product Support Services
  4140.  
  4141.  
  4142.  
  4143.  
  4144.                                Rich Text Format (RTF) Specification   page 70
  4145.  
  4146.             Table1} places the bookmark "Table1" on columns 2 through 5 of a
  4147.             table.
  4148.  
  4149.           5.2.7. Pictures
  4150.  
  4151.             An RTF file can include pictures created with other applications.
  4152.             These pictures can be in hexadecimal (the default) or binary
  4153.             format. Pictures are destinations, and begin with the \ pict
  4154.             control word. A picture destination has the following syntax:
  4155.  
  4156.             <pict>            '{' \ pict (<brdr>? & <shading>? & <picttype> &
  4157.                               <pictsize> & <metafileinfo>?) <data> '}'
  4158.  
  4159.             <picttype>        \ macpict | \ pmmetafile | \ wmetafile |
  4160.                               \ dibitmap <bitmapinfo> | \ wbitmap
  4161.                               <bitmapinfo>
  4162.  
  4163.             <bitmapinfo>      \ wbmbitspixel  & \ wbmplanes & \ wbmwidthbytes
  4164.  
  4165.             <pictsize>        ( \ picw & \ pich) \picwgoal? & \pichgoal?
  4166.                               \ picscalex? & \ picscaley? & \ picscaled? &
  4167.                               \ piccropt? & \ piccropb? & \ piccropr? &
  4168.                               \ piccropl?
  4169.  
  4170.             <metafileinfo>    \picbmp & \picbpp
  4171.  
  4172.             <data>            ( \ bin #BDATA) | #SDATA
  4173.  
  4174.  
  4175.  
  4176.             These control words are described in the following table (some
  4177.             measurements in this table are in twips; a twip is one-twentieth
  4178.             of a point).
  4179.  
  4180.             Control word      Meaning
  4181.  
  4182.             --------------    ----------------------------------------------
  4183.  
  4184.             \ macpict         Source of the picture is QuickDraw.
  4185.  
  4186.             \ pmmetafileN     Source of the picture is an OS/2 metafile; the
  4187.                               N argument identifies the metafile type. The N
  4188.                               values are descibed on page 41 of this
  4189.                               Application Note.
  4190.  
  4191.             \ wmetafileN      Source of the picture is a Windows metafile;
  4192.                               the N argument identifies the metafile type
  4193.                               (the default is 1).
  4194.  
  4195.  
  4196.  
  4197.  
  4198.  
  4199.                          Microsoft Product Support Services
  4200.  
  4201.  
  4202.  
  4203.  
  4204.                                Rich Text Format (RTF) Specification   page 71
  4205.  
  4206.             Control word      Meaning
  4207.  
  4208.             --------------    ----------------------------------------------
  4209.  
  4210.             \ dibitmapN       Source of the picture is a Windows device-
  4211.                               independent bitmap; the N argument identifies
  4212.                               the bitmap type (must equal 0).
  4213.  
  4214.                               The information to be included in RTF from a
  4215.                               Windows device-independent bitmap is the
  4216.                               concatenation of the BITMAPINFO structure
  4217.                               followed by the actual pixel data.
  4218.  
  4219.             \ wbitmapN        Source of the picture is a Windows device-
  4220.                               dependent bitmap; the N argument identifies the
  4221.                               bitmap type (must equal 0).
  4222.  
  4223.                               The information to be included in RTF from a
  4224.                               Windows device-dependent bitmap is the result
  4225.                               of the GetBitmapBits function.
  4226.  
  4227.  
  4228.  
  4229.             For more information on the GetDIBits and GetBitmapBits functions
  4230.             and the structure of Windows device-independent and device-
  4231.             dependent bitmaps, see Volume 1 and Volume 2 of the Programmer's
  4232.             Reference in the Microsoft Windows 3.1 Software Development Kit.
  4233.             For best device-independence and interoperability with Microsoft
  4234.             products, however, use of the \wbitmap and \dibitmap control
  4235.             words is discouraged.  Rather, bitmaps should be embedded within
  4236.             Windows metafiles and the \wmetafile control word used.  For more
  4237.             information on embedding bitmaps within metafiles, see Volume 1
  4238.             and Volume 2 of the Programmer's Reference in the Microsoft
  4239.             Windows 3.1 Software Development Kit.
  4240.  
  4241.  
  4242.  
  4243.             ----------------------------------------------------------------
  4244.             Bitmap Information
  4245.             ----------------------------------------------------------------
  4246.  
  4247.             \ wbmbitspixelN     Number of adjacent color bits on each plane
  4248.                                 needed to define a pixel (the default is 1).
  4249.                                 Possible values are 1 (monochrome), 4 (16
  4250.                                 colors), 8 (256 colors) and 24 (RGB).
  4251.  
  4252.             \ wbmplanesN        Number of bitmap color planes (must equal 1).
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.                          Microsoft Product Support Services
  4260.  
  4261.  
  4262.  
  4263.  
  4264.                                Rich Text Format (RTF) Specification   page 72
  4265.  
  4266.             \ wbmwidthbytesN    Specifies the number of bytes in each raster
  4267.                                 line. This value must be an even number since
  4268.                                 the Windows graphics device interface (GDI)
  4269.                                 assumes that the bit values of a bitmap form
  4270.                                 an array of integer (two-byte) values. In
  4271.                                 other words, \wbmwidthbytes times 8 must be
  4272.                                 the next multiple of 16 greater than or equal
  4273.                                 to the \picw (bitmap width in pixels) value.
  4274.  
  4275.             ----------------------------------------------------------------
  4276.             Picture Size, Scaling, and Cropping
  4277.             ----------------------------------------------------------------
  4278.  
  4279.             \ picwN             xExt field if the picture is a Windows
  4280.                                 metafile; picture width in pixels if the
  4281.                                 picture is a bitmap or from QuickDraw.
  4282.  
  4283.             \ pichN             yExt field if the picture is a Windows
  4284.                                 metafile; picture height in pixels if the
  4285.                                 picture is a bitmap or from QuickDraw.
  4286.  
  4287.             \ picwgoalN         Desired width of the picture in twips.
  4288.  
  4289.             \ pichgoalN         Desired height of the picture in twips.
  4290.  
  4291.             \ picscalexN        Horizontal scaling value; the N argument is a
  4292.                                 value representing a percentage (the default
  4293.                                 is 100).
  4294.  
  4295.             \ picscaleyN        Vertical scaling value; the N argument is a
  4296.                                 value representing a percentage (the default
  4297.                                 is 100).
  4298.  
  4299.             \ picscaled         Scales the picture to fit within the
  4300.                                 specified frame; used only with \ macpict
  4301.                                 pictures.
  4302.  
  4303.             \ piccroptN         Top cropping value in twips; a positive value
  4304.                                 crops toward the center of the picture; a
  4305.                                 negative value crops away from the center,
  4306.                                 adding a space border around picture (the
  4307.                                 default is 0).
  4308.  
  4309.             \ piccropbN         Bottom cropping value in twips; a positive
  4310.                                 value crops toward the center of the picture;
  4311.                                 a negative value crops away from the center,
  4312.                                 adding a space border around picture (the
  4313.                                 default is 0).
  4314.  
  4315.  
  4316.  
  4317.  
  4318.  
  4319.                          Microsoft Product Support Services
  4320.  
  4321.  
  4322.  
  4323.  
  4324.                                Rich Text Format (RTF) Specification   page 73
  4325.  
  4326.             \ piccroplN         Left cropping value in twips; a positive
  4327.                                 value crops toward the center of the picture;
  4328.                                 a negative value crops away from the center,
  4329.                                 adding a space border around picture (the
  4330.                                 default is 0).
  4331.  
  4332.             \ piccroprN         Right cropping value in twips; a positive
  4333.                                 value crops toward the center of the picture;
  4334.                                 a negative value crops away from the center,
  4335.                                 adding a space border around picture (the
  4336.                                 default is 0).
  4337.  
  4338.             ----------------------------------------------------------------
  4339.             Metafile Information
  4340.             ----------------------------------------------------------------
  4341.  
  4342.             \ picbmp            Specifies whether a metafile contains a
  4343.                                 bitmap.
  4344.  
  4345.             \ picbppN           Specifies the bits per pixel in a metafile
  4346.                                 bitmap. The valid range is 1-32, with 1, 4,
  4347.                                 8, and 24 being recognized.
  4348.  
  4349.             ----------------------------------------------------------------
  4350.             Picture Data
  4351.             ----------------------------------------------------------------
  4352.  
  4353.             \ binN              The picture is in binary format; the numeric
  4354.                                 parameter N is the number of bytes that
  4355.                                 follow. Unlike all other controls, this
  4356.                                 control word takes a 32-bit parameter.
  4357.  
  4358.  
  4359.  
  4360.             The \ wbitmap control word is optional; if no other picture type
  4361.             is specified, the picture is assumed to be a Windows bitmap. If
  4362.             \ wmetafile is specified, the N argument can be one of the
  4363.             following types.
  4364.  
  4365.             Type                N argument
  4366.  
  4367.             -----------------   --------------------------------------------
  4368.  
  4369.             MM_TEXT             1
  4370.  
  4371.             MM_LOMETRIC         2
  4372.  
  4373.             MM_HIMETRIC         3
  4374.  
  4375.             MM_LOENGLISH        4
  4376.  
  4377.  
  4378.  
  4379.                          Microsoft Product Support Services
  4380.  
  4381.  
  4382.  
  4383.  
  4384.                                Rich Text Format (RTF) Specification   page 74
  4385.  
  4386.             Type                N argument
  4387.  
  4388.             -----------------   --------------------------------------------
  4389.  
  4390.             MM_HIENGLISH        5
  4391.  
  4392.             MM_TWIPS            6
  4393.  
  4394.             MM_ISOTROPIC        7
  4395.  
  4396.             MM_ANISOTROPIC      8
  4397.  
  4398.  
  4399.  
  4400.             For more information about these types, see volume 1 of the
  4401.             Programmer's Reference in the Microsoft Windows 3.1 Software
  4402.             Development Kit.
  4403.  
  4404.             If \ pmmetafile is specified, the N argument can be one of the
  4405.             following types.
  4406.  
  4407.             Type                N argument
  4408.  
  4409.             -----------------   --------------------------------------------
  4410.  
  4411.             PU_ARBITRARY        0x0004
  4412.  
  4413.             PU_PELS             0x0008
  4414.  
  4415.             PU_LOMETRIC         0x000C
  4416.  
  4417.             PU_HIMETRIC         0x0010
  4418.  
  4419.             PU_LOENGLISH        0x0014
  4420.  
  4421.             PU_HIENGLISH        0x0018
  4422.  
  4423.             PU_TWIPS            0x001C
  4424.  
  4425.  
  4426.  
  4427.             For more information about these types, see volume 2 of the OS/2
  4428.             Programmer's Reference.
  4429.  
  4430.             Be careful with spaces following control words when dealing with
  4431.             pictures in binary format. When reading files, RTF considers the
  4432.             first space after a control word the delimiter and subsequent
  4433.             spaces part of the document text. Therefore, any extra spaces are
  4434.             attached to the picture, with unpredictable results.
  4435.  
  4436.             RTF writers should not use the carriage-return/linefeed (CR/LF)
  4437.             combination to break up pictures in binary format. If they do,
  4438.  
  4439.                          Microsoft Product Support Services
  4440.  
  4441.  
  4442.  
  4443.  
  4444.                                Rich Text Format (RTF) Specification   page 75
  4445.  
  4446.             the CR/LF combination is treated as literal text and considered
  4447.             part of the picture data.
  4448.  
  4449.             The picture in hexadecimal or binary format follows the picture-
  4450.             destination control words. The following example illustrates the
  4451.             destination format:
  4452.  
  4453.                  {\pict\wbitmap0\picw170\pich77\wbmbitspixel1\wbmplanes1\wbmw
  4454.                  idthbytes22
  4455.                  \picwgoal505
  4456.                  \pichgoal221
  4457.                  \picscalex172
  4458.                  \picscaley172
  4459.                  49f2000000000273023d1101a030
  4460.                  3901000a000000000273023d98
  4461.                  0048000200000275
  4462.                  02040000200010275023e000000000
  4463.                  273023d000002b90002b90002
  4464.                  b90002b90002b9
  4465.                  0002b90002b90002b90002b90002b90002
  4466.                  b92222b90002b90002b90
  4467.                  002b90002b9
  4468.                  0002b90002b90002b90002b9000
  4469.  
  4470.           5.2.8. Objects
  4471.  
  4472.             Microsoft OLE links, Microsoft OLE embedded objects, and
  4473.             Macintosh Edition Manager subscriber objects are represented in
  4474.             RTF as objects. Objects are destinations that contain a data part
  4475.             and a result part. The data part is generally hidden to the
  4476.             application that produced the document. A separate application
  4477.             uses the data and supplies the appearance of the data. This
  4478.             appearance is the result part of the object.
  4479.  
  4480.             The representation of objects in RTF is designed to allow RTF
  4481.             readers that don't understand objects or don't use a particular
  4482.             type of object to use the current result in place of the object.
  4483.             This allows the appearance of the object to be maintained through
  4484.             the conversion even though the object functionality is lost. Each
  4485.             object comes with optional information about the object, a
  4486.             required destination that contains the object data, and an
  4487.             optional result that contains the current appearance of the
  4488.             object. This result contains standard RTF. It is an important
  4489.             responsibility of the RTF writer to provide the result so that
  4490.             existing RTF readers that either do not support objects or that
  4491.             do not support the particular type of object will be able to
  4492.             display the object.
  4493.  
  4494.             When the object is an OLE embedded or linked object, the data
  4495.             part of the object is the structure produced by the
  4496.             OLESaveToStream function. Some OLE clients rely on the OLE system
  4497.             to render the object and a copy of the result is not available to
  4498.  
  4499.                          Microsoft Product Support Services
  4500.  
  4501.  
  4502.  
  4503.  
  4504.                                Rich Text Format (RTF) Specification   page 76
  4505.  
  4506.             the RTF writer for that application. For these cases, the object
  4507.             result can be extracted from the structure produced by the
  4508.             OLESaveToStream function. For information about the
  4509.             OLESaveToStream function, see the Microsoft Object Linking and
  4510.             Embedding Software Development Kit.
  4511.  
  4512.             The syntax for this destination is:
  4513.  
  4514.             <obj>             ( '{' \ object (<objtype> & <objmod>? &
  4515.                               <objclass>? & <objname>? & <objtime>? &
  4516.                               <objsize>? & <rsltmod>?) <objdata> <result> '}'
  4517.                               ) | <pubobject>
  4518.  
  4519.             <objtype>         \ objemb | \ objlink | \ objautlink | \ objsub
  4520.                               | \ objpub | \ objicemb
  4521.  
  4522.             <objmod>          \ linkself? & \ objlock? | \objupdate?
  4523.  
  4524.             <objclass>        '{\ *' \ objclass #PCDATA '}'
  4525.  
  4526.             <objname>         '{\ *' \ objname #PCDATA '}'
  4527.  
  4528.             <objtime>         '{\ *' \ objtime <time> '}'
  4529.  
  4530.             <rsltmod>         \ rsltmerge? & <rslttype>?
  4531.  
  4532.             <rslttype>        \ rsltrtf | \ rslttxt | \ rsltpict | \ rsltbmp
  4533.  
  4534.             <objsize>         \ objsetsize? & \ objalign? & \ objtransy? &
  4535.                               <objhw>? & \ objcropt? & \ objcropb? &
  4536.                               \ objcropl? & \ objcropr? & \ objscalex? &
  4537.                               \ objscaley?
  4538.  
  4539.             <objhw>           \ objh & \ objw
  4540.  
  4541.             <objdata>         '{\ *' \ objdata (<objalias>? & <objsect>?)
  4542.                               <data> '}'
  4543.  
  4544.             <objalias>        '{\ *' \ objalias <data> '}'
  4545.  
  4546.             <objsect>         '{\ *' \ objsect <data> '}'
  4547.  
  4548.             <result>          '{' \ result <para>+ '}'
  4549.  
  4550.  
  4551.  
  4552.  
  4553.  
  4554.  
  4555.  
  4556.  
  4557.  
  4558.  
  4559.                          Microsoft Product Support Services
  4560.  
  4561.  
  4562.  
  4563.  
  4564.                                Rich Text Format (RTF) Specification   page 77
  4565.  
  4566.             Control word      Meaning
  4567.  
  4568.             --------------    ----------------------------------------------
  4569.  
  4570.             ----------------------------------------------------------------
  4571.             Object Type
  4572.             ----------------------------------------------------------------
  4573.  
  4574.             \ objemb          An object type of OLE embedded object. If no
  4575.                               type is given for the object, the object is
  4576.                               assumed to be of type \ objemb.
  4577.  
  4578.             \ objlink         An object type of OLE link.
  4579.  
  4580.             \ objautlink      An object type of OLE autolink.
  4581.  
  4582.             \ objsub          An object type of Macintosh Edition Manager
  4583.                               subscriber.
  4584.  
  4585.             \ objpub          An object type of Macintosh Edition Manager
  4586.                               publisher.
  4587.  
  4588.             \ objicemb        An object type of MS(R) Word for the Macintosh
  4589.                               Installable Command (IC) Embedder.
  4590.  
  4591.             ----------------------------------------------------------------
  4592.             Object Information
  4593.             ----------------------------------------------------------------
  4594.  
  4595.             \ linkself        The object is a link to another part of the
  4596.                               same document.
  4597.  
  4598.             \ objlock         Locks the object from any updates.
  4599.  
  4600.             \ objupdate       Forces an update to the object before
  4601.                               displaying it.  Note that this will override
  4602.                               any values in the <objsize> control words, but
  4603.                               reasonable values should always be provided for
  4604.                               these to maintain backwards compatibility.
  4605.  
  4606.             \ objclass        The text argument is the object class to use
  4607.                               for this object; ignore the class specified in
  4608.                               the object data. This is a destination control
  4609.                               word.
  4610.  
  4611.             \ objname         The text argument is the name of this object.
  4612.                               This is a destination control word.
  4613.  
  4614.             \ objtime         Describes the time that the object was last
  4615.                               updated.
  4616.  
  4617.  
  4618.  
  4619.                          Microsoft Product Support Services
  4620.  
  4621.  
  4622.  
  4623.  
  4624.                                Rich Text Format (RTF) Specification   page 78
  4625.  
  4626.             Control word      Meaning
  4627.  
  4628.             --------------    ----------------------------------------------
  4629.  
  4630.             ----------------------------------------------------------------
  4631.             Object Size, Position, Cropping, and Scaling
  4632.             ----------------------------------------------------------------
  4633.  
  4634.             \ objhN           N is the original object height in twips,
  4635.                               assuming the object has a graphical
  4636.                               representation.
  4637.  
  4638.             \ objwN           N is the original object width in twips,
  4639.                               assuming the object has a graphical
  4640.                               representation.
  4641.  
  4642.             \ objsetsize      Forces the object server to set the object's
  4643.                               dimensions to that specified by the client.
  4644.  
  4645.             \ objalignN       N is the distance in twips from the left edge
  4646.                               of the objects that should be aligned on a tab
  4647.                               stop. This is needed to place Equation Editor
  4648.                               equations correctly in line.
  4649.  
  4650.             \ objtransyN      N is the distance in twips the objects should
  4651.                               be moved vertically with respect to the
  4652.                               baseline. This is needed to place Math Type
  4653.                               equations correctly in line.
  4654.  
  4655.             \ objcroptN       N is the top cropping distance in twips.
  4656.  
  4657.             \ objcropbN       N is the bottom cropping distance in twips.
  4658.  
  4659.             \ objcroplN       N is the left cropping distance in twips.
  4660.  
  4661.             \ objcroprN       N is the right cropping distance in twips.
  4662.  
  4663.             \ objscalexN      N is the horizontal scaling percentage.
  4664.  
  4665.             \ objscaleyN      N is the vertical scaling percentage.
  4666.  
  4667.             ----------------------------------------------------------------
  4668.             Object Data
  4669.             ----------------------------------------------------------------
  4670.  
  4671.             \ objdata         This subdestination contains the data for the
  4672.                               object in the appropriate format; OLE objects
  4673.                               are in OLESaveToStream format. This is a
  4674.                               destination control word.
  4675.  
  4676.  
  4677.  
  4678.  
  4679.                          Microsoft Product Support Services
  4680.  
  4681.  
  4682.  
  4683.  
  4684.                                Rich Text Format (RTF) Specification   page 79
  4685.  
  4686.             Control word      Meaning
  4687.  
  4688.             --------------    ----------------------------------------------
  4689.  
  4690.             \ objalias        This subdestination contains the Alias Record
  4691.                               for the publisher object for the Macintosh
  4692.                               Edition Manager. This is a destination control
  4693.                               word.
  4694.  
  4695.             \ objsect         This subdestination contains the Section Record
  4696.                               for the publisher object for the Macintosh
  4697.                               Edition Manager. This is a destination control
  4698.                               word.
  4699.  
  4700.             ----------------------------------------------------------------
  4701.             Object Result
  4702.             ----------------------------------------------------------------
  4703.  
  4704.             \ rsltrtf         Forces the result to be rich-text format, if
  4705.                               possible.
  4706.  
  4707.             \ rsltpict        Forces the result to be a Windows metafile or
  4708.                               MacPict image format, if possible.
  4709.  
  4710.             \ rsltbmp         Forces the result to be a bitmap, if possible.
  4711.  
  4712.             \ rslttxt         Forces the result to be plain text, if
  4713.                               possible.
  4714.  
  4715.             \ rsltmerge       Uses the formatting of the current result
  4716.                               whenever a new result is obtained.
  4717.  
  4718.             \ result          The result destination is optional in the
  4719.                               \ object destination. It contains the last
  4720.                               update of the result of the object. The data of
  4721.                               the result destination should be standard RTF
  4722.                               so that RTF readers that don't understand
  4723.                               objects or the type of object represented can
  4724.                               use the current result in the object's place to
  4725.                               maintain appearance. This is a destination
  4726.                               control word.
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736.  
  4737.  
  4738.  
  4739.                          Microsoft Product Support Services
  4740.  
  4741.  
  4742.  
  4743.  
  4744.                                Rich Text Format (RTF) Specification   page 80
  4745.  
  4746.             5.2.8.1.  Macintosh Edition Manager Publisher Objects
  4747.  
  4748.             Word for the Macintosh writes publisher objects for the Macintosh
  4749.             Edition Manager in terms of bookmarks (see "Bookmarks" on page 38
  4750.             of this Application Note). The range of publisher objects are
  4751.             marked as bookmarks, so these controls are all used within the
  4752.             \ bkmkstart destination. The RTF syntax for a publisher object
  4753.             is:
  4754.  
  4755.             <pubobject>       '{\ *' \ bkmkstart \ bkmkpub \ pubauto?
  4756.                               (<objalias>? & <objsect>) #PCDATA '}'
  4757.  
  4758.  
  4759.  
  4760.             Control word      Meaning
  4761.  
  4762.             --------------    ----------------------------------------------
  4763.  
  4764.             \ bkmkpub         The bookmark marks a Macintosh Edition Manager
  4765.                               publisher object.
  4766.  
  4767.             \ pubauto         The publisher object updates all Macintosh
  4768.                               Edition Manager subscribers of this object
  4769.                               automatically whenever it is edited.
  4770.  
  4771.  
  4772.  
  4773.           5.2.9. Drawing Objects
  4774.  
  4775.             Drawing objects and the drawing primitives enumerated within
  4776.             drawing object groups use the syntax described by the following
  4777.             tables.
  4778.  
  4779.             <do>              '{\ *' \ do <dohead> <dpinfo>'}'
  4780.  
  4781.             <dohead>          <dobx> <doby> <dodhgt> <dolock>?
  4782.  
  4783.             <dobx>            \ dobxpage | \ dobxcolumn | \ dobxmargin
  4784.  
  4785.             <doby>            \ dobypage | \ dobypara | \ dobymargin
  4786.  
  4787.             <dodhgt>          \ dodhgt
  4788.  
  4789.             <dolock>          \ dolock
  4790.  
  4791.             <dpinfo>           <dpgroup> | <dpcallout> | <dpsimple>
  4792.  
  4793.             <dpgroup>         \ dpgroup \ dpcount <dphead> <dpinfo>+
  4794.                               \ dpendgroup <dphead>
  4795.  
  4796.  
  4797.  
  4798.  
  4799.                          Microsoft Product Support Services
  4800.  
  4801.  
  4802.  
  4803.  
  4804.                                Rich Text Format (RTF) Specification   page 81
  4805.  
  4806.             <dpcallout>       \ dpcallout <cotype> <coangle>? <coaccent>?
  4807.                               <cosmartattach>? <cobestfit>? <cominusx>?
  4808.                               <cominusy>? <coborder>? <codescent>?
  4809.                               \ dpcooffset \ dpcolength <dphead> <dppolyline>
  4810.                               <dphead> <dpprops> <dptextbox> <dphead>
  4811.                               <dpprops>
  4812.  
  4813.             <dpsimple>        <dpsimpledpk> <dphead> <dpprops>
  4814.  
  4815.             <dpsimpledpk>     <dpline> | <dprect> | <dptextbox> | <dpellipse>
  4816.                               | <dppolyline> | <dparc>
  4817.  
  4818.             <dpline>          \ dpline <dppt> <dppt>
  4819.  
  4820.             <dprect>          \ dprect (\ dproundr)?
  4821.  
  4822.             <dptextbox>       \ dptxbx \ dptxbxmar '{' \ dptxbxtext
  4823.                               <para>+'}'
  4824.  
  4825.             <dpellipse>       \ dpellipse
  4826.  
  4827.             <dparc>           \ dparc \ dparcflipx? \ dparcflipy?
  4828.  
  4829.             <dppolyline>      \ dppolyline (\ dppolygon)? \ dppolycount
  4830.                               <dppt>+
  4831.  
  4832.             <dppt>            \ dpptx \ dppty
  4833.  
  4834.             <dphead>          \ dpx \ dpy \ dpxsize \ dpysize
  4835.  
  4836.  
  4837.  
  4838.             Note that in <dpgroup> the number of <dpinfo>s is equal to the
  4839.             argument of \ dpcount, while in <dppolyline> the number of
  4840.             <dppt>s is equal to the argument of \ dppolycount.
  4841.  
  4842.             The following elements of the drawing-object syntax pertain
  4843.             specifically to callout objects:
  4844.  
  4845.             <cotype>          \ dpcotright | \ dpcotsingle | \ dpcotdouble |
  4846.                               \ dpcottriple
  4847.  
  4848.             <coangle>         \ dpcoa
  4849.  
  4850.             <coaccent>        \ dpcoaccent
  4851.  
  4852.             <cosmartattach>   \ dpcosmarta
  4853.  
  4854.             <cobestfit>       \ dpcobestfit
  4855.  
  4856.             <cominusx>        \ dpcominusx
  4857.  
  4858.  
  4859.                          Microsoft Product Support Services
  4860.  
  4861.  
  4862.  
  4863.  
  4864.                                Rich Text Format (RTF) Specification   page 82
  4865.  
  4866.             <cominusy>        \ dpcominusy
  4867.  
  4868.             <coborder>        \ dpcoborder
  4869.  
  4870.             <codescent>       \ dpcodtop | \ dpcodcenter | \ dpcodbottom |
  4871.                               \ dpcodabs
  4872.  
  4873.  
  4874.  
  4875.             The remaining elements of the drawing object syntax are
  4876.             properties applied to individual drawn primitives:
  4877.  
  4878.             <dpprops>           <lineprops>? <fillprops>? <endstylestart>?
  4879.                                 <endstyleend>? <shadow>?
  4880.  
  4881.             <lineprops>         <linestyle> <linecolor> \ dplinew
  4882.  
  4883.             <linestyle>         \ dplinesolid | \ dplinehollow | \ dplinedash
  4884.                                 | \ dplinedot | \ dplinedado | \ dplinedadodo
  4885.  
  4886.             <linecolor>         <linegray> | <linergb>
  4887.  
  4888.             <linegray>          \ dplinegray
  4889.  
  4890.             <linergb>           \ dplinecor \ dplinecog \ dplinecob<linepal>?
  4891.  
  4892.             <linepal>           \ dplinepal
  4893.  
  4894.             <fillprops>         <fillcolorfg> <fillcolorbg> \ dpfillpat
  4895.  
  4896.             <fillcolorfg>       <fillfggray> | <fillfgrgb>
  4897.  
  4898.             <fillfggray>        \ dpfillfggray
  4899.  
  4900.             <fillfgrgb>         \ dpfillfgcr \ dpfillfgcg
  4901.                                 \ dpfillfgcb<fillfgpal>?
  4902.  
  4903.             <fillfgpal>         \ dpfillfgpal
  4904.  
  4905.             <fillcolorbg>       <fillbggray> | <fillbgrgb>
  4906.  
  4907.             <fillbggray>        \ dpfillbggray
  4908.  
  4909.             <fillbgrgb>         \ dpfillbgcr \ dpfillbgcg
  4910.                                 \ dpfillbgcb<fillbgpal>?
  4911.  
  4912.             <fillbgpal>         \ dpfillbgpal
  4913.  
  4914.             <endstylestart>     <arrowstartfill> \ dpastartl \ dpastartw
  4915.  
  4916.             <arrowstartfill>    \ dpastartsol | \ dpastarthol
  4917.  
  4918.  
  4919.                          Microsoft Product Support Services
  4920.  
  4921.  
  4922.  
  4923.  
  4924.                                Rich Text Format (RTF) Specification   page 83
  4925.  
  4926.             <endstyleend>       <arrowendfill> \ dpaendl \ dpaendw
  4927.  
  4928.             <arrowendfill>      \ dpaendsol | \ dpaendhol
  4929.  
  4930.             <shadow>            \ dpshadow \ dpshadx \ dpshady
  4931.  
  4932.  
  4933.  
  4934.             The following table describes the control words for the drawing
  4935.             object group in detail. All color values are RGB values between
  4936.             0-255. All distances are in twips. All other values are as
  4937.             indicated.
  4938.  
  4939.             Control word      Definition
  4940.  
  4941.             --------------    ----------------------------------------------
  4942.  
  4943.             \ do              Indicates a drawing object is to be inserted at
  4944.                               this point in the character stream. This is a
  4945.                               destination control word.
  4946.  
  4947.             \ dolock          The drawing object's anchor is locked and
  4948.                               cannot be moved.
  4949.  
  4950.             \ dobxpage        The drawing object is page relative in the x-
  4951.                               direction.
  4952.  
  4953.             \ dobxcolumn      The drawing object is column relative in the x-
  4954.                               direction.
  4955.  
  4956.             \ dobxmargin      The drawing object is margin relative in the x-
  4957.                               direction.
  4958.  
  4959.             \ dobypage        The drawing object is page relative in the y-
  4960.                               direction.
  4961.  
  4962.             \ dobypara        The drawing object is paragraph relative in the
  4963.                               y-direction.
  4964.  
  4965.             \ dobymargin      The drawing object is margin relative in the y-
  4966.                               direction.
  4967.  
  4968.             \ dodhgtN         The drawing object is positioned at the
  4969.                               following numeric address in the z-ordering.
  4970.  
  4971.             ----------------------------------------------------------------
  4972.             Drawing Primitives
  4973.             ----------------------------------------------------------------
  4974.  
  4975.             \ dpgroup         Begin group of drawing primitives.
  4976.  
  4977.  
  4978.  
  4979.                          Microsoft Product Support Services
  4980.  
  4981.  
  4982.  
  4983.  
  4984.                                Rich Text Format (RTF) Specification   page 84
  4985.  
  4986.             Control word      Definition
  4987.  
  4988.             --------------    ----------------------------------------------
  4989.  
  4990.             \ dpcountN        Number of drawing primitives in the current
  4991.                               group.
  4992.  
  4993.             \ dpendgroup      End group of drawing primitives.
  4994.  
  4995.             \ dparc           Arc drawing primitive.
  4996.  
  4997.             \ dpcallout       Callout drawing primitive, which consists of
  4998.                               both a polyline and a text box.
  4999.  
  5000.             \ dpellipse       Ellipse drawing primitive.
  5001.  
  5002.             \ dpline          Line drawing primitive.
  5003.  
  5004.             \ dppolygon       Polygon drawing primitive (closed polyline).
  5005.  
  5006.             \ dppolyline      Polyline drawing primitive.
  5007.  
  5008.             \ dprect          Rectangle drawing primitive.
  5009.  
  5010.             \ dptxbx          Text box drawing primitive.
  5011.  
  5012.             ----------------------------------------------------------------
  5013.             Position and Size
  5014.             ----------------------------------------------------------------
  5015.  
  5016.             \ dpxN            X-offset of the drawing primitive from its
  5017.                               anchor.
  5018.  
  5019.             \ dpxsizeN        X-size of the drawing primitive.
  5020.  
  5021.             \ dpyN            Y-offset of the drawing primitive from its
  5022.                               anchor.
  5023.  
  5024.             \ dpysizeN        Y-size of the drawing primitive.
  5025.  
  5026.             ----------------------------------------------------------------
  5027.             Callouts
  5028.             ----------------------------------------------------------------
  5029.  
  5030.             \ dpcoaN          Angle of callout's diagonal line is restricted
  5031.                               to one of the following: 0, 30, 45, 60, or 90.
  5032.                               If this control word is absent, the callout has
  5033.                               an arbitrary angle, indicated by the
  5034.                               coordinates of its primitives.
  5035.  
  5036.  
  5037.  
  5038.  
  5039.                          Microsoft Product Support Services
  5040.  
  5041.  
  5042.  
  5043.  
  5044.                                Rich Text Format (RTF) Specification   page 85
  5045.  
  5046.             Control word      Definition
  5047.  
  5048.             --------------    ----------------------------------------------
  5049.  
  5050.             \ dpcoaccent      Accent bar on callout (vertical bar between
  5051.                               polyline and text box).
  5052.  
  5053.             \ dpcobestfit     Best fit callout (x-length of each line in
  5054.                               callout is similar).
  5055.  
  5056.             \ dpcoborder      Visible border on callout text box.
  5057.  
  5058.             \ dpcodabsN       Absolute distance-attached polyline. N is the
  5059.                               offset in twips from the corner that an auto-
  5060.                               attached callout would attach to.
  5061.  
  5062.             \ dpcodbottom     Bottom-attached polyline.
  5063.  
  5064.             \ dpcodcenter     Center-attached polyline.
  5065.  
  5066.             \ dpcodtop        Top-attached callout.
  5067.  
  5068.             \ dpcolengthN     Length of callout.
  5069.  
  5070.             \ dpcominusx      Text box falls in quadrants II or III relative
  5071.                               to polyline origin.
  5072.  
  5073.             \ dpcominusy      Text box falls in quadrants III or IV relative
  5074.                               to polyline origin.
  5075.  
  5076.             \ dpcooffsetN     Offset of callout. This is the distance between
  5077.                               the end of the polyline and the edge of the
  5078.                               text box.
  5079.  
  5080.             \ dpcosmarta      Auto-attached callout. Polyline will attach to
  5081.                               either the top or bottom of the text box
  5082.                               depending on the relative quadrant.
  5083.  
  5084.             \ dpcotdouble     Double line callout.
  5085.  
  5086.             \ dpcotright      Right angle callout.
  5087.  
  5088.             \ dpcotsingle     Single line callout.
  5089.  
  5090.             \ dpcottriple     Triple line callout.
  5091.  
  5092.             ----------------------------------------------------------------
  5093.             Text Boxes and Rectangles
  5094.             ----------------------------------------------------------------
  5095.  
  5096.             \ dptxbxmarN      Internal margin of the text box.
  5097.  
  5098.  
  5099.                          Microsoft Product Support Services
  5100.  
  5101.  
  5102.  
  5103.  
  5104.                                Rich Text Format (RTF) Specification   page 86
  5105.  
  5106.             Control word      Definition
  5107.  
  5108.             --------------    ----------------------------------------------
  5109.  
  5110.             \ dptxbxtext      Group that contains the text of the text box.
  5111.  
  5112.             \ dproundr        Rectangle is a round rectangle.
  5113.  
  5114.             ----------------------------------------------------------------
  5115.             Lines and Polylines
  5116.             ----------------------------------------------------------------
  5117.  
  5118.             \ dpptxN          X-coordinate of the current vertex (only for
  5119.                               lines and polylines). The coordinate order for
  5120.                               a point must be x, y.
  5121.  
  5122.             \ dpptyN          Y-coordinate of the current vertex (only for
  5123.                               lines and polylines). The coordinate order for
  5124.                               a point must be x, y.
  5125.  
  5126.             \ dppolycountN    Number of vertices in polyline drawing
  5127.                               primitive.
  5128.  
  5129.             ----------------------------------------------------------------
  5130.             Arcs
  5131.             ----------------------------------------------------------------
  5132.  
  5133.             \ dparcflipx      This indicates that the end point of the arc is
  5134.                               to the right of the start point. Arcs are
  5135.                               drawn counter-clockwise.
  5136.  
  5137.             \ dparcflipy      This indicates that the end point of the arc is
  5138.                               below the start point. Arcs are drawn counter-
  5139.                               clockwise.
  5140.  
  5141.             ----------------------------------------------------------------
  5142.             Line Style
  5143.             ----------------------------------------------------------------
  5144.  
  5145.             \ dplinecobN      Blue value for line color.
  5146.  
  5147.             \ dplinecogN      Green value for line color.
  5148.  
  5149.             \ dplinecorN      Red value for line color.
  5150.  
  5151.             \ dplinepal       Render line color using the PALETTERGB macro
  5152.                               instead of the RGB macro in Windows.
  5153.  
  5154.             \ dplinedado      Dashed-dotted line style.
  5155.  
  5156.             \ dplinedadodo    Dashed-dotted-dotted line style.
  5157.  
  5158.  
  5159.                          Microsoft Product Support Services
  5160.  
  5161.  
  5162.  
  5163.  
  5164.                                Rich Text Format (RTF) Specification   page 87
  5165.  
  5166.             Control word      Definition
  5167.  
  5168.             --------------    ----------------------------------------------
  5169.  
  5170.             \ dplinedash      Dashed line style.
  5171.  
  5172.             \ dplinedot       Dotted line style.
  5173.  
  5174.             \ dplinegrayN     Grayscale value for line color (in half-
  5175.                               percentages).
  5176.  
  5177.             \ dplinehollow    Hollow line style (no line color).
  5178.  
  5179.             \ dplinesolid     Solid line style.
  5180.  
  5181.             \ dplinewN        Thickness of line (in twips).
  5182.  
  5183.             ----------------------------------------------------------------
  5184.             Arrow Style
  5185.             ----------------------------------------------------------------
  5186.  
  5187.             \ dpaendhol       Hollow end arrow (lines only).
  5188.  
  5189.             \ dpaendlN        Length of end arrow, relative to pen width:
  5190.  
  5191.                               1  Small
  5192.  
  5193.                               2  Medium
  5194.  
  5195.                               3  Large
  5196.  
  5197.             \ dpaendsol       Solid end arrow (lines only).
  5198.  
  5199.             \ dpaendwN        Width of end arrow, relative to pen width:
  5200.  
  5201.                               1  Small
  5202.  
  5203.                               2  Medium
  5204.  
  5205.                               3  Large
  5206.  
  5207.             \ dpastarthol     Hollow start arrow (lines only).
  5208.  
  5209.             \ dpastartlN      Length of start arrow, relative to pen width:
  5210.  
  5211.                               1  Small
  5212.  
  5213.                               2  Medium
  5214.  
  5215.                               3  Large
  5216.  
  5217.  
  5218.  
  5219.                          Microsoft Product Support Services
  5220.  
  5221.  
  5222.  
  5223.  
  5224.                                Rich Text Format (RTF) Specification   page 88
  5225.  
  5226.             Control word      Definition
  5227.  
  5228.             --------------    ----------------------------------------------
  5229.  
  5230.             \ dpastartsol     Solid start arrow (lines only).
  5231.  
  5232.             \ dpastartwN      Width of start arrow, relative to pen width:
  5233.  
  5234.                               1  Small
  5235.  
  5236.                               2  Medium
  5237.  
  5238.                               3  Large
  5239.  
  5240.             ----------------------------------------------------------------
  5241.             Fill Pattern
  5242.             ----------------------------------------------------------------
  5243.  
  5244.             \ dpfillbgcbN     Blue value for background fill color.
  5245.  
  5246.             \ dpfillbgcgN     Green value for background fill color.
  5247.  
  5248.             \ dpfillbgcrN     Red value for background fill color.
  5249.  
  5250.             \ dpfillbgpal     Render fill background color using the
  5251.                               PALETTERGB macro instead of the RGB macro in
  5252.                               Windows.
  5253.  
  5254.             \ dpfillbggrayN   Grayscale value for background fill (in half-
  5255.                               percentages).
  5256.  
  5257.             \ dpfillfgcbN     Blue value for foreground fill color.
  5258.  
  5259.             \ dpfillfgcgN     Green value for foreground fill color.
  5260.  
  5261.             \ dpfillfgcrN     Red value for foreground fill color.
  5262.  
  5263.             \ dpfillfgpal     Render fill foreground color using the
  5264.                               PALETTERGB macro instead of the RGB macro in
  5265.                               Windows.
  5266.  
  5267.             \ dpfillfggrayN   Grayscale value for foreground fill (in half-
  5268.                               percentages).
  5269.  
  5270.             \ dpfillpatN      Index into a list of fill patterns. See below
  5271.                               for list.
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.  
  5278.  
  5279.                          Microsoft Product Support Services
  5280.  
  5281.  
  5282.  
  5283.  
  5284.                                Rich Text Format (RTF) Specification   page 89
  5285.  
  5286.             Control word      Definition
  5287.  
  5288.             --------------    ----------------------------------------------
  5289.  
  5290.             ----------------------------------------------------------------
  5291.             Shadow
  5292.             ----------------------------------------------------------------
  5293.  
  5294.             \ dpshadow        Current drawing primitive has a shadow.
  5295.  
  5296.             \ dpshadxN        X-offset of the shadow.
  5297.  
  5298.             \ dpshadyN        Y-offset of the shadow.
  5299.  
  5300.  
  5301.  
  5302.             The following values are available for specifying fill patterns
  5303.             in drawing objects with the \dpfillpat control word.
  5304.  
  5305.             Value        Fill pattern
  5306.  
  5307.             ---------    ---------------------------------------------------
  5308.  
  5309.             0 (zero)     Clear (no pattern)
  5310.  
  5311.             1            Solid (100%)
  5312.  
  5313.             2            5%
  5314.  
  5315.             3            10%
  5316.  
  5317.             4            20%
  5318.  
  5319.             5            25%
  5320.  
  5321.             6            30%
  5322.  
  5323.             7            40%
  5324.  
  5325.             8            50%
  5326.  
  5327.             9            60%
  5328.  
  5329.             10           70%
  5330.  
  5331.             11           75%
  5332.  
  5333.             12           80%
  5334.  
  5335.             13           90%
  5336.  
  5337.  
  5338.  
  5339.                          Microsoft Product Support Services
  5340.  
  5341.  
  5342.  
  5343.  
  5344.                                Rich Text Format (RTF) Specification   page 90
  5345.  
  5346.             Value        Fill pattern
  5347.  
  5348.             ---------    ---------------------------------------------------
  5349.  
  5350.             14           Dark horizontal lines
  5351.  
  5352.             15           Dark vertical lines
  5353.  
  5354.             16           Dark left-diagonal lines (\\\)
  5355.  
  5356.             17           Dark right-diagonal lines (///)
  5357.  
  5358.             18           Dark grid lines
  5359.  
  5360.             19           Dark trellis lines
  5361.  
  5362.             20           Light horizontal lines
  5363.  
  5364.             21           Light vertical lines
  5365.  
  5366.             22           Light left-diagonal lines (\\\)
  5367.  
  5368.             23           Light right-diagonal lines (///)
  5369.  
  5370.             24           Light grid lines
  5371.  
  5372.             25           Light trellis lines
  5373.  
  5374.  
  5375.  
  5376.           5.2.10.Footnotes
  5377.  
  5378.             The \ footnote control word introduces a footnote. Footnotes are
  5379.             destinations in RTF. A footnote is anchored to the character that
  5380.             immediately precedes the footnote destination (that is, the
  5381.             footnote moves with the character to which it is anchored). If
  5382.             automatic footnote numbering is defined, the destination can be
  5383.             preceded by a footnote reference character, identified by the
  5384.             control word \ chftn. No Microsoft product supports footnotes
  5385.             within headers, footers, or annotations. Placing a footnote
  5386.             within headers, footers, or annotations will often result in a
  5387.             corrupt document.
  5388.  
  5389.             Footnotes have the following syntax.
  5390.  
  5391.             <foot>            '{\ *' \ footnote <para>+ '}'
  5392.  
  5393.  
  5394.  
  5395.  
  5396.  
  5397.  
  5398.  
  5399.                          Microsoft Product Support Services
  5400.  
  5401.  
  5402.  
  5403.  
  5404.                                Rich Text Format (RTF) Specification   page 91
  5405.  
  5406.             Here is an example of a destination containing footnotes:
  5407.  
  5408.                  \ftnbj\ftnrestart \sectd \linemod0\linex0\endnhere
  5409.                  \pard\plain
  5410.                  \ri1170 \fs20 {\pu6 Mead's landmark study has been amply
  5411.                  annotated.\chftn
  5412.                  {\*\footnote \pard\plain \s246 \fs20 {\up6\chftn }See
  5413.                  Sahlins, Bateson, and
  5414.                  Geertz for a complete bibliography.}
  5415.                  It was her work in America during the Second World War,
  5416.                  however, that forms
  5417.                  the basis for the paper. As others have noted, \chftn
  5418.                  {\*\footnote \pard\plain \s246 \fs20 {\up6\chftn}
  5419.                  A complete bibliography will be found at the end of this
  5420.                  chapter.}
  5421.                  this period was a turning point for Margaret Mead.}
  5422.                  \par
  5423.  
  5424.             To indicate endnotes, the following combination is emitted:
  5425.             \ footnote\ ftnalt. Existing readers will ignore the \ ftnalt
  5426.             control word and treat everything as a footnote.
  5427.  
  5428.             For other control words relating to footnotes, see the sections
  5429.             titled "Document Formatting Properties" (page 15),  "Section
  5430.             Formatting Properties" (page 19),  and "Special Characters" (page
  5431.             37) in this Application Note.
  5432.  
  5433.           5.2.11.Annotations
  5434.  
  5435.             RTF annotations have two parts; the author ID (introduced by the
  5436.             control word \ atnid) and the annotation text (introduced by the
  5437.             control word \ annotation); there is no group enclosing both
  5438.             parts. No Microsoft product supports annotations within headers,
  5439.             footers, or footnotes. Placing an annotation within headers,
  5440.             footers, or footnotes will often result in a corrupt document.
  5441.             Each part of the annotation is an RTF destination. Annotations
  5442.             are anchored to the character that immediately precedes the
  5443.             annotation.
  5444.  
  5445.             If an annotation is associated with an annotation bookmark, the
  5446.             following two destination control words precede and follow the
  5447.             bookmark. The alphanumeric string N, such as a long integer,
  5448.             represents the bookmark name.
  5449.  
  5450.             <atrfstart>       '{\ *' \ atrfstart N '}'
  5451.  
  5452.             < atrfend>        '{\ *' \ atrfend N '}'
  5453.  
  5454.  
  5455.  
  5456.  
  5457.  
  5458.  
  5459.                          Microsoft Product Support Services
  5460.  
  5461.  
  5462.  
  5463.  
  5464.                                Rich Text Format (RTF) Specification   page 92
  5465.  
  5466.             Annotations have the following syntax:
  5467.  
  5468.             <annot>           <annotid> <atnauthor> <atntime>? \ chatn
  5469.                               <atnicn>? <annotdef>
  5470.  
  5471.             <annotid>         '{\ *' \ atnid #PCDATA '}'
  5472.  
  5473.             < atnauthor>      '{\*' \atnauthor #PCDATA '}'
  5474.  
  5475.             <annotdef>        '{\ *' \ annotation <atnref> <para>+ '}'
  5476.  
  5477.             < atnref>         '{\ *' \ atnref N '}'
  5478.  
  5479.             <atntime>         '{\ *' \ atntime <time> '}'
  5480.  
  5481.             <atnicn>          '{\ *' \ atnicn <pict> '}'
  5482.  
  5483.  
  5484.  
  5485.             An example of annotation text follows:
  5486.  
  5487.                  An example of a paradigm might be Newtonian physics or
  5488.                  Darwinian biology.{\v\fs16 {\atnid bz}\chatn{\*\annotation
  5489.                  \pard\plain \s224 \fs20 {\field{\fldinst page \\#'"Page:
  5490.                  '#'\line'"}{\fldrslt}}{\fs16 \chatn }
  5491.                  How about some examples that deal with social science?
  5492.                  That's what this paper is about.}}
  5493.  
  5494.             Annotations may have optional time stamps (contained in the
  5495.             \ atntime destination) or icons (contained in the \ atnicn
  5496.             destination).
  5497.  
  5498.           5.2.12.Fields
  5499.  
  5500.             The \ field control word introduces a field destination, which
  5501.             contains the text of Word for Windows fields.
  5502.  
  5503.             Fields have the following syntax:
  5504.  
  5505.             <field>           '{' \ field <fieldmod>? <fieldinst> <fieldrslt>
  5506.                               '}'
  5507.  
  5508.             <fieldmod>        \ flddirty? & \ fldedit? & \ fldlock? &
  5509.                               \ fldpriv?
  5510.  
  5511.             <fieldinst>       '{\ *' \ fldinst <char>+ <fldalt>? '}'
  5512.  
  5513.             <fldalt>          \ fldalt
  5514.  
  5515.             <fieldrslt>       '{\ *' \ fldrslt <para>+ '}'
  5516.  
  5517.  
  5518.  
  5519.                          Microsoft Product Support Services
  5520.  
  5521.  
  5522.  
  5523.  
  5524.                                Rich Text Format (RTF) Specification   page 93
  5525.  
  5526.             There are several control words that alter the interpretation of
  5527.             the field. These control words are listed in the following table.
  5528.  
  5529.             Control word      Meaning
  5530.  
  5531.             --------------    ----------------------------------------------
  5532.  
  5533.             \ flddirty        A formatting change has been made to the field
  5534.                               result since the field was last updated.
  5535.  
  5536.             \ fldedit         Text has been added to, or removed from, the
  5537.                               field result since the field was last updated.
  5538.  
  5539.             \ fldlock         Field is locked and cannot be updated.
  5540.  
  5541.             \ fldpriv         Result is not in a form suitable for display
  5542.                               (for example, binary data used by fields whose
  5543.                               result is a picture).
  5544.  
  5545.  
  5546.  
  5547.             Two subdestinations are required within the \ field destination.
  5548.             They must be enclosed in braces ({ }) and begin with the
  5549.             following control words.
  5550.  
  5551.             Control word      Meaning
  5552.  
  5553.             --------------    ----------------------------------------------
  5554.  
  5555.             \ fldinst         Field instructions. This is a destination
  5556.                               control word.
  5557.  
  5558.             \ fldrslt         Most recent calculated result of the field.
  5559.                               This is a destination control word.
  5560.  
  5561.  
  5562.  
  5563.             If the instruction for a field contains a filename, then the
  5564.             \ cpg control can be used to define the character set of the
  5565.             filename. See ``Code Page Support'' on page 9 of this Application
  5566.             Note for details.
  5567.  
  5568.             The \ fldrslt control word should be included even if no result
  5569.             has been calculated because most readers (even those readers that
  5570.             do not recognize fields) can generally include the value of the
  5571.             \ fldrslt destination in the document.
  5572.  
  5573.  
  5574.  
  5575.  
  5576.  
  5577.  
  5578.  
  5579.                          Microsoft Product Support Services
  5580.  
  5581.  
  5582.  
  5583.  
  5584.                                Rich Text Format (RTF) Specification   page 94
  5585.  
  5586.             An example of some field text follows:
  5587.  
  5588.                  {\field\fldedit{\fldinst author}{\fldrslt Joe
  5589.                  Smith}}\par\pard
  5590.                  {\field{\fldinst time \\@ "h:mm AM/PM"}{\fldrslt 8:12 AM}}
  5591.  
  5592.             You can use the \fldalt control word to specify that the given
  5593.             field reference is to an endnote. For example, the following
  5594.             field in RTF is a reference to a footnote:
  5595.  
  5596.                  {\ field{\ *\ fldinst NOTEREF _RefNumber } {\ fldrslt 1}}
  5597.  
  5598.             The following is an example of a reference to an endnote:
  5599.  
  5600.                  {\ field{\ *\ fldinst NOTEREF _RefNumber \ fldalt }
  5601.                  {\ fldrslt I}}
  5602.  
  5603.             If the specified field is a form field, the \*\datafield
  5604.             destination appears as a part of <char> and contains the binary
  5605.             data of a form field instruction. For example:
  5606.  
  5607.                  {\ field{\*\fldinst {\*\bkmkstart Text1} FORMTEXT
  5608.                  {{\*\datafield
  5609.                  00000000000000000554657874310008476565207768697a000000000000
  5610.                  0000000000}}}{\fldrslt Default Result}}{\*\bkmkend Text1}
  5611.  
  5612.             Note that the \datafield destination requires the \* prefix.
  5613.  
  5614.           5.2.13.Index Entries
  5615.  
  5616.             The \ xe control word introduces an index entry. Index entries in
  5617.             RTF are destinations. An index entry has the following syntax:
  5618.  
  5619.             <idx>             '{' \ xe (\xef? & \ bxe? & \ ixe?) <char>+
  5620.                               (<txe> | <rxe>)? '}'
  5621.  
  5622.             <txe>             '{' \ txe <char>+ '}'
  5623.  
  5624.             <rxe>             '{' \ rxe #PCDATA '}'
  5625.  
  5626.  
  5627.  
  5628.             If the text of the index entry is not formatted as hidden text
  5629.             with the \ v control word, the text is put into the document as
  5630.             well as into the index. For more information on the \ v control
  5631.             word, see "Character Formatting Properties" on page 32 of this
  5632.             Application Note. Similarly, the text of the \ txe
  5633.             subdestination, described later in this section, becomes part of
  5634.             the document if it is not formatted as hidden text.
  5635.  
  5636.  
  5637.  
  5638.  
  5639.                          Microsoft Product Support Services
  5640.  
  5641.  
  5642.  
  5643.  
  5644.                                Rich Text Format (RTF) Specification   page 95
  5645.  
  5646.             The following control words may also be used.
  5647.  
  5648.             Control word      Meaning
  5649.  
  5650.             --------------    ----------------------------------------------
  5651.  
  5652.             \ xefN            Allows multiple indexes within the same
  5653.                               document. N is an integer that corresponds to
  5654.                               the ASCII value of a letter between A and Z.
  5655.  
  5656.             \ bxe             Formats the page number or cross-reference in
  5657.                               bold.
  5658.  
  5659.             \ ixe             Formats the page number or cross-reference in
  5660.                               italic.
  5661.  
  5662.             \ txe Text        Text argument to be used instead of a page
  5663.                               number. This is a destination control word.
  5664.  
  5665.             \ rxe             Text argument is a bookmark for the range of
  5666.             BookmarkName      page numbers. This is a destination control
  5667.                               word.
  5668.  
  5669.  
  5670.  
  5671.           5.2.14.Table of Contents Entries
  5672.  
  5673.             The \ tc control word introduces a table of contents entry, which
  5674.             can be used to build the actual table of contents. The \tcn
  5675.             control word marks a table of contents entry that will not have a
  5676.             page number associated with it; this is used in place of \ tc for
  5677.             such entries. Table of contents entries are destinations, and
  5678.             they have the following syntax:
  5679.  
  5680.             <toc>             '{' \ tc | \tcn ( \ tcf? & \ tcl?) <char>+ '}'
  5681.  
  5682.  
  5683.  
  5684.             As with index entries, text that is not formatted as hidden with
  5685.             the \ v character-formatting control word is put into the
  5686.             document. The following control words can also be used in this
  5687.             destination.
  5688.  
  5689.             Control word      Meaning
  5690.  
  5691.             --------------    ----------------------------------------------
  5692.  
  5693.             \ tcfN            Type of table being compiled; N is mapped by
  5694.                               existing Microsoft software to a letter between
  5695.                               A and Z (the default is 67, which maps to C,
  5696.                               used for tables of contents).
  5697.  
  5698.  
  5699.                          Microsoft Product Support Services
  5700.  
  5701.  
  5702.  
  5703.  
  5704.                                Rich Text Format (RTF) Specification   page 96
  5705.  
  5706.             Control word      Meaning
  5707.  
  5708.             --------------    ----------------------------------------------
  5709.  
  5710.             \ tclN            Level number (the default is 1).
  5711.  
  5712.  
  5713.  
  5714.           5.2.15.Bidirectional Language Support
  5715.  
  5716.             RTF supports bidirectional writing orders for languages such as
  5717.             Arabic. The controls are described below (as well as in the
  5718.             appropriate sections throughout this Application Note). Also
  5719.             refer to the associated character properties defined in
  5720.             ``Associated Character Properties'' on page 35 of this
  5721.             Application Note.
  5722.  
  5723.             All the control words relating to bidirectional language support
  5724.             are repeated here for convenience.
  5725.  
  5726.             Control word      Meaning
  5727.  
  5728.             --------------    ----------------------------------------------
  5729.  
  5730.             \ rtlch           The character data following this control word
  5731.                               will be treated as a right-to-left run.
  5732.  
  5733.             \ ltrch           The character data following this control word
  5734.                               will be treated as a left-to-right run (the
  5735.                               default).
  5736.  
  5737.             \ rtlmark         The following characters should be displayed
  5738.                               from right to left.
  5739.  
  5740.             \ ltrmark         The following characters should be displayed
  5741.                               from left to right.
  5742.  
  5743.             \ rtlpar          Text in this paragraph will be displayed with
  5744.                               right-to-left precedence
  5745.  
  5746.             \ ltrpar          Text in this paragraph will be displayed with
  5747.                               left-to-right precedence. This is the default.
  5748.  
  5749.             \ rtlrow          Cells in this table row will have right-to-left
  5750.                               precedence.
  5751.  
  5752.             \ ltrrow          Cells in this table row will have left-to-right
  5753.                               precedence. This is the default.
  5754.  
  5755.             \ rtlsect         This section will thread columns from right to
  5756.                               left.
  5757.  
  5758.  
  5759.                          Microsoft Product Support Services
  5760.  
  5761.  
  5762.  
  5763.  
  5764.                                Rich Text Format (RTF) Specification   page 97
  5765.  
  5766.             Control word      Meaning
  5767.  
  5768.             --------------    ----------------------------------------------
  5769.  
  5770.             \ ltrsect         This section will thread columns from left to
  5771.                               right. This is the default.
  5772.  
  5773.             \ rtldoc          Text in this document will be displayed from
  5774.                               right to left unless overridden by a more
  5775.                               specific control.
  5776.  
  5777.             \ ltrdoc          Text in this document will be displayed from
  5778.                               left to right unless overridden by a more
  5779.                               specific control. This is the default.
  5780.  
  5781.             \ zwj             Zero-width joiner. This is used for ligating
  5782.                               characters.
  5783.  
  5784.             \ zwnj            Zero-width nonjoiner. This is used for
  5785.                               unligating characters.
  5786.  
  5787.  
  5788.  
  5789.        6.   Index of RTF Control Words
  5790.  
  5791.             The following table contains a list of all RTF control words, the
  5792.             name of the section where it may be found, and a brief
  5793.             description of the type of control word. The types are described
  5794.             in the following table.
  5795.  
  5796.             Type              Description
  5797.  
  5798.             --------------    ----------------------------------------------
  5799.  
  5800.             Flag              The control word ignores any parameter.
  5801.  
  5802.             Destination       This control word starts a group or
  5803.                               destination. It ignores any parameter.
  5804.  
  5805.             Symbol            This control word represents a special
  5806.                               character.
  5807.  
  5808.             Toggle            This control word distinguishes between the ON
  5809.                               and OFF states for the given property.  The
  5810.                               control word with no parameter or a non-zero
  5811.                               parameter is used to turn on the property,
  5812.                               while the control word with a zero parameter is
  5813.                               used to turn it off.
  5814.  
  5815.             Value             This control word requires a parameter.
  5816.  
  5817.  
  5818.  
  5819.                          Microsoft Product Support Services
  5820.  
  5821.  
  5822.  
  5823.  
  5824.                                Rich Text Format (RTF) Specification   page 98
  5825.  
  5826.                Note:  In the following comprehensive table, the names of
  5827.                       all control words that are new to Microsoft Word
  5828.                       version 6.0 are followed by an asterisk (*).
  5829.  
  5830.  
  5831.  
  5832.             Control word       Described in Section              Type
  5833.  
  5834.             ----------------   -------------------------------   -----------
  5835.  
  5836.             \ '                Special Characters                Symbol
  5837.  
  5838.             \ *                Special Characters                Symbol
  5839.  
  5840.             \ -                Special Characters                Symbol
  5841.  
  5842.             \ :                Special Characters                Symbol
  5843.  
  5844.             \ \                Special Characters                Symbol
  5845.  
  5846.             \ _                Special Characters                Symbol
  5847.  
  5848.             \ {                Special Characters                Symbol
  5849.  
  5850.             \ |                Special Characters                Symbol
  5851.  
  5852.             \ }                Special Characters                Symbol
  5853.  
  5854.             \ ~                Special Characters                Symbol
  5855.  
  5856.             \ ab               Associated Character Properties   Toggle
  5857.  
  5858.             \ absh             Positioned Objects and Frames     Value
  5859.  
  5860.             \ absw             Positioned Objects and Frames     Value
  5861.  
  5862.             \ acaps            Associated Character Properties   Toggle
  5863.  
  5864.             \ acf              Associated Character Properties   Value
  5865.  
  5866.             \ additive *       Style Sheet                       Flag
  5867.  
  5868.             \ adn              Associated Character Properties   Value
  5869.  
  5870.             \ aenddoc *        Document Formatting Properties    Flag
  5871.  
  5872.             \ aendnotes *      Document Formatting Properties    Flag
  5873.  
  5874.             \ aexpnd           Associated Character Properties   Value
  5875.  
  5876.             \ af               Associated Character Properties   Value
  5877.  
  5878.  
  5879.                          Microsoft Product Support Services
  5880.  
  5881.  
  5882.  
  5883.  
  5884.                                Rich Text Format (RTF) Specification   page 99
  5885.  
  5886.             Control word       Described in Section              Type
  5887.  
  5888.             ----------------   -------------------------------   -----------
  5889.  
  5890.             \ afs              Associated Character Properties   Value
  5891.  
  5892.             \ aftnbj *         Document Formatting Properties    Flag
  5893.  
  5894.             \ aftncn *         Document Formatting Properties    Destination
  5895.  
  5896.             \ aftnnalc *       Document Formatting Properties    Flag
  5897.  
  5898.             \ aftnnar *        Document Formatting Properties    Flag
  5899.  
  5900.             \ aftnnauc *       Document Formatting Properties    Flag
  5901.  
  5902.             \ aftnnchi *       Document Formatting Properties    Flag
  5903.  
  5904.             \ aftnnrlc *       Document Formatting Properties    Flag
  5905.  
  5906.             \ aftnnruc *       Document Formatting Properties    Flag
  5907.  
  5908.             \ aftnrestart *    Document Formatting Properties    Flag
  5909.  
  5910.             \ aftnrstcont *    Document Formatting Properties    Flag
  5911.  
  5912.             \ aftnsep *        Document Formatting Properties    Destination
  5913.  
  5914.             \ aftnsepc *       Document Formatting Properties    Destination
  5915.  
  5916.             \ aftnstart *      Document Formatting Properties    Value
  5917.  
  5918.             \ aftntj *         Document Formatting Properties    Flag
  5919.  
  5920.             \ ai               Associated Character Properties   Toggle
  5921.  
  5922.             \ alang            Associated Character Properties   Value
  5923.  
  5924.             \ allprot *        Document Formatting Properties    Flag
  5925.  
  5926.             \ alt              Style Sheet                       Flag
  5927.  
  5928.             \ annotation       Annotations                       Destination
  5929.  
  5930.             \ annotprot *      Document Formatting Properties    Flag
  5931.  
  5932.             \ ansi             Character Set                     Flag
  5933.  
  5934.             \ aoutl            Associated Character Properties   Toggle
  5935.  
  5936.             \ ascaps           Associated Character Properties   Toggle
  5937.  
  5938.  
  5939.                          Microsoft Product Support Services
  5940.  
  5941.  
  5942.  
  5943.  
  5944.                                Rich Text Format (RTF) Specification  page 100
  5945.  
  5946.             Control word       Described in Section              Type
  5947.  
  5948.             ----------------   -------------------------------   -----------
  5949.  
  5950.             \ ashad            Associated Character Properties   Toggle
  5951.  
  5952.             \ astrike          Associated Character Properties   Toggle
  5953.  
  5954.             \ atnauthor *      Annotations                       Destination
  5955.  
  5956.             \ atnicn           Annotations                       Destination
  5957.  
  5958.             \ atnid            Annotations                       Destination
  5959.  
  5960.             \ atnref *         Annotations                       Destination
  5961.  
  5962.             \ atntime          Annotations                       Destination
  5963.  
  5964.             \ atrfend *        Annotations                       Destination
  5965.  
  5966.             \ atrfstart *      Annotations                       Destination
  5967.  
  5968.             \ aul              Associated Character Properties   Toggle
  5969.  
  5970.             \ auld             Associated Character Properties   Toggle
  5971.  
  5972.             \ auldb            Associated Character Properties   Toggle
  5973.  
  5974.             \ aulnone          Associated Character Properties   Toggle
  5975.  
  5976.             \ aulw             Associated Character Properties   Toggle
  5977.  
  5978.             \ aup              Associated Character Properties   Value
  5979.  
  5980.             \ author           Information Group                 Destination
  5981.  
  5982.             \ b                Character Formatting Properties   Toggle
  5983.  
  5984.             \ bgbdiag          Paragraph Shading                 Flag
  5985.  
  5986.             \ bgcross          Paragraph Shading                 Flag
  5987.  
  5988.             \ bgdcross         Paragraph Shading                 Flag
  5989.  
  5990.             \ bgdkbdiag        Paragraph Shading                 Flag
  5991.  
  5992.             \ bgdkcross        Paragraph Shading                 Flag
  5993.  
  5994.             \ bgdkdcross       Paragraph Shading                 Flag
  5995.  
  5996.             \ bgdkfdiag        Paragraph Shading                 Flag
  5997.  
  5998.  
  5999.                          Microsoft Product Support Services
  6000.  
  6001.  
  6002.  
  6003.  
  6004.                                Rich Text Format (RTF) Specification  page 101
  6005.  
  6006.             Control word       Described in Section              Type
  6007.  
  6008.             ----------------   -------------------------------   -----------
  6009.  
  6010.             \ bgdkhoriz        Paragraph Shading                 Flag
  6011.  
  6012.             \ bgdkvert         Paragraph Shading                 Flag
  6013.  
  6014.             \ bgfdiag          Paragraph Shading                 Flag
  6015.  
  6016.             \ bghoriz          Paragraph Shading                 Flag
  6017.  
  6018.             \ bgvert           Paragraph Shading                 Flag
  6019.  
  6020.             \ bin              Pictures                          Value
  6021.  
  6022.             \ binfsxn          Section Formatting Properties     Value
  6023.  
  6024.             \ binsxn           Section Formatting Properties     Value
  6025.  
  6026.             \ bkmkcolf         Bookmarks                         Value
  6027.  
  6028.             \ bkmkcoll         Bookmarks                         Value
  6029.  
  6030.             \ bkmkend          Bookmarks                         Destination
  6031.  
  6032.             \ bkmkpub          Macintosh Edition Manager         Flag
  6033.                                Publisher Objects
  6034.  
  6035.             \ bkmkstart        Bookmarks                         Destination
  6036.  
  6037.             \ blue             Color Table                       Value
  6038.  
  6039.             \ box              Paragraph Borders                 Flag
  6040.  
  6041.             \ brdrb            Paragraph Borders                 Flag
  6042.  
  6043.             \ brdrbar          Paragraph Borders                 Flag
  6044.  
  6045.             \ brdrbtw          Paragraph Borders                 Flag
  6046.  
  6047.             \ brdrcf           Paragraph Borders                 Value
  6048.  
  6049.             \ brdrdash *       Paragraph Borders                 Flag
  6050.  
  6051.             \ brdrdb           Paragraph Borders                 Flag
  6052.  
  6053.             \ brdrdot          Paragraph Borders                 Flag
  6054.  
  6055.             \ brdrhair         Paragraph Borders                 Flag
  6056.  
  6057.  
  6058.  
  6059.                          Microsoft Product Support Services
  6060.  
  6061.  
  6062.  
  6063.  
  6064.                                Rich Text Format (RTF) Specification  page 102
  6065.  
  6066.             Control word       Described in Section              Type
  6067.  
  6068.             ----------------   -------------------------------   -----------
  6069.  
  6070.             \ brdrl            Paragraph Borders                 Flag
  6071.  
  6072.             \ brdrr            Paragraph Borders                 Flag
  6073.  
  6074.             \ brdrs            Paragraph Borders                 Flag
  6075.  
  6076.             \ brdrsh           Paragraph Borders                 Flag
  6077.  
  6078.             \ brdrt            Paragraph Borders                 Flag
  6079.  
  6080.             \ brdrth           Paragraph Borders                 Flag
  6081.  
  6082.             \ brdrw            Paragraph Borders                 Value
  6083.  
  6084.             \ brkfrm *         Document Formatting Properties    Flag
  6085.  
  6086.             \ brsp             Paragraph Borders                 Value
  6087.  
  6088.             \ bullet           Special Characters                Symbol
  6089.  
  6090.             \ buptim           Information Group                 Destination
  6091.  
  6092.             \ bxe              Index Entries                     Flag
  6093.  
  6094.             \ caps             Character Formatting Properties   Toggle
  6095.  
  6096.             \ cb               Character Formatting Properties   Value
  6097.  
  6098.             \ cbpat            Paragraph Shading                 Value
  6099.  
  6100.             \ cchs *           Character Formatting Properties   Value
  6101.  
  6102.             \ cell             Special Characters                Symbol
  6103.  
  6104.             \ cellx            Table Definitions                 Value
  6105.  
  6106.             \ cf               Character Formatting Properties   Value
  6107.  
  6108.             \ cfpat            Paragraph Shading                 Value
  6109.  
  6110.             \ chatn            Special Characters                Symbol
  6111.  
  6112.             \ chdate           Special Characters                Symbol
  6113.  
  6114.             \ chdpa            Special Characters                Symbol
  6115.  
  6116.             \ chdpl            Special Characters                Symbol
  6117.  
  6118.  
  6119.                          Microsoft Product Support Services
  6120.  
  6121.  
  6122.  
  6123.  
  6124.                                Rich Text Format (RTF) Specification  page 103
  6125.  
  6126.             Control word       Described in Section              Type
  6127.  
  6128.             ----------------   -------------------------------   -----------
  6129.  
  6130.             \ chftn            Special Characters                Symbol
  6131.  
  6132.             \ chftnsep         Special Characters                Symbol
  6133.  
  6134.             \ chftnsepc        Special Characters                Symbol
  6135.  
  6136.             \ chpgn            Special Characters                Symbol
  6137.  
  6138.             \ chtime           Special Characters                Symbol
  6139.  
  6140.             \ clbgbdiag        Table Definitions                 Flag
  6141.  
  6142.             \ clbgcross        Table Definitions                 Flag
  6143.  
  6144.             \ clbgdcross       Table Definitions                 Flag
  6145.  
  6146.             \ clbgdkbdiag      Table Definitions                 Flag
  6147.  
  6148.             \ clbgdkcross      Table Definitions                 Flag
  6149.  
  6150.             \ clbgdkdcross     Table Definitions                 Flag
  6151.  
  6152.             \ clbgdkfdiag      Table Definitions                 Flag
  6153.  
  6154.             \ clbgdkhor        Table Definitions                 Flag
  6155.  
  6156.             \ clbgdkvert       Table Definitions                 Flag
  6157.  
  6158.             \ clbgfdiag        Table Definitions                 Flag
  6159.  
  6160.             \ clbghoriz        Table Definitions                 Flag
  6161.  
  6162.             \ clbgvert         Table Definitions                 Flag
  6163.  
  6164.             \ clbrdrb          Table Definitions                 Flag
  6165.  
  6166.             \ clbrdrl          Table Definitions                 Flag
  6167.  
  6168.             \ clbrdrr          Table Definitions                 Flag
  6169.  
  6170.             \ clbrdrt          Table Definitions                 Flag
  6171.  
  6172.             \ clcbpat          Table Definitions                 Value
  6173.  
  6174.             \ clcfpat          Table Definitions                 Value
  6175.  
  6176.             \ clmgf            Table Definitions                 Flag
  6177.  
  6178.  
  6179.                          Microsoft Product Support Services
  6180.  
  6181.  
  6182.  
  6183.  
  6184.                                Rich Text Format (RTF) Specification  page 104
  6185.  
  6186.             Control word       Described in Section              Type
  6187.  
  6188.             ----------------   -------------------------------   -----------
  6189.  
  6190.             \ clmrg            Table Definitions                 Flag
  6191.  
  6192.             \ clshdng          Table Definitions                 Value
  6193.  
  6194.             \ colno *          Section Formatting Properties     Value
  6195.  
  6196.             \ colortbl         Color Table                       Destination
  6197.  
  6198.             \ cols             Section Formatting Properties     Value
  6199.  
  6200.             \ colsr *          Section Formatting Properties     Value
  6201.  
  6202.             \ colsx            Section Formatting Properties     Value
  6203.  
  6204.             \ column           Special Characters                Symbol
  6205.  
  6206.             \ colw *           Section Formatting Properties     Value
  6207.  
  6208.             \ comment          Information Group                 Destination
  6209.  
  6210.             \ cpg              Code Page Support                 Value
  6211.  
  6212.             \ creatim          Information Group                 Destination
  6213.  
  6214.             \ cs               Character Formatting Properties   Value
  6215.  
  6216.             \ ctrl             Style Sheet                       Flag
  6217.  
  6218.             \ cvmme *          Document Formatting Properties    Flag
  6219.  
  6220.             \ datafield *      Fields                            Destination
  6221.  
  6222.             \ deff             Font Table                        Value
  6223.  
  6224.             \ defformat        Document Formatting Properties    Flag
  6225.  
  6226.             \ deflang          Document Formatting Properties    Value
  6227.  
  6228.             \ deftab           Document Formatting Properties    Value
  6229.  
  6230.             \ deleted          Character Formatting Properties   Toggle
  6231.  
  6232.             \ dfrmtxtx         Positioned Objects and Frames     Value
  6233.  
  6234.             \ dfrmtxty         Positioned Objects and Frames     Value
  6235.  
  6236.             \ dibitmap         Pictures                          Value
  6237.  
  6238.  
  6239.                          Microsoft Product Support Services
  6240.  
  6241.  
  6242.  
  6243.  
  6244.                                Rich Text Format (RTF) Specification  page 105
  6245.  
  6246.             Control word       Described in Section              Type
  6247.  
  6248.             ----------------   -------------------------------   -----------
  6249.  
  6250.             \ dn               Character Formatting Properties   Value
  6251.  
  6252.             \ do *             Drawing Objects                   Destination
  6253.  
  6254.             \ dobxcolumn *     Drawing Objects                   Flag
  6255.  
  6256.             \ dobxmargin *     Drawing Objects                   Flag
  6257.  
  6258.             \ dobxpage *       Drawing Objects                   Flag
  6259.  
  6260.             \ dobymargin *     Drawing Objects                   Flag
  6261.  
  6262.             \ dobypage *       Drawing Objects                   Flag
  6263.  
  6264.             \ dobypara *       Drawing Objects                   Flag
  6265.  
  6266.             \ doccomm          Information Group                 Destination
  6267.  
  6268.             \ doctemp          Document Formatting Properties    Flag
  6269.  
  6270.             \ dodhgt  *        Drawing Objects                   Value
  6271.  
  6272.             \ dolock *         Drawing Objects                   Flag
  6273.  
  6274.             \ dpaendhol *      Drawing Objects                   Flag
  6275.  
  6276.             \ dpaendl  *       Drawing Objects                   Value
  6277.  
  6278.             \ dpaendsol *      Drawing Objects                   Flag
  6279.  
  6280.             \ dpaendw  *       Drawing Objects                   Value
  6281.  
  6282.             \ dparc  *         Drawing Objects                   Flag
  6283.  
  6284.             \ dparcflipx *     Drawing Objects                   Flag
  6285.  
  6286.             \ dparcflipy *     Drawing Objects                   Flag
  6287.  
  6288.             \ dpastarthol *    Drawing Objects                   Flag
  6289.  
  6290.             \ dpastartl  *     Drawing Objects                   Value
  6291.  
  6292.             \ dpastartsol *    Drawing Objects                   Flag
  6293.  
  6294.             \ dpastartw  *     Drawing Objects                   Value
  6295.  
  6296.             \ dpcallout *      Drawing Objects                   Flag
  6297.  
  6298.  
  6299.                          Microsoft Product Support Services
  6300.  
  6301.  
  6302.  
  6303.  
  6304.                                Rich Text Format (RTF) Specification  page 106
  6305.  
  6306.             Control word       Described in Section              Type
  6307.  
  6308.             ----------------   -------------------------------   -----------
  6309.  
  6310.             \ dpcoa  *         Drawing Objects                   Value
  6311.  
  6312.             \ dpcoaccent *     Drawing Objects                   Flag
  6313.  
  6314.             \ dpcobestfit *    Drawing Objects                   Flag
  6315.  
  6316.             \ dpcoborder *     Drawing Objects                   Flag
  6317.  
  6318.             \ dpcodabs *       Drawing Objects                   Value
  6319.  
  6320.             \ dpcodbottom *    Drawing Objects                   Flag
  6321.  
  6322.             \ dpcodcenter *    Drawing Objects                   Flag
  6323.  
  6324.             \ dpcodtop *       Drawing Objects                   Flag
  6325.  
  6326.             \ dpcolength  *    Drawing Objects                   Value
  6327.  
  6328.             \ dpcominusx *     Drawing Objects                   Flag
  6329.  
  6330.             \ dpcominusy *     Drawing Objects                   Flag
  6331.  
  6332.             \ dpcooffset  *    Drawing Objects                   Value
  6333.  
  6334.             \ dpcosmarta *     Drawing Objects                   Flag
  6335.  
  6336.             \ dpcotdouble *    Drawing Objects                   Flag
  6337.  
  6338.             \ dpcotright *     Drawing Objects                   Flag
  6339.  
  6340.             \ dpcotsingle *    Drawing Objects                   Flag
  6341.  
  6342.             \ dpcottriple *    Drawing Objects                   Flag
  6343.  
  6344.             \ dpcount  *       Drawing Objects                   Value
  6345.  
  6346.             \ dpellipse *      Drawing Objects                   Flag
  6347.  
  6348.             \ dpendgroup *     Drawing Objects                   Flag
  6349.  
  6350.             \ dpfillbgcb  *    Drawing Objects                   Value
  6351.  
  6352.             \ dpfillbgcg  *    Drawing Objects                   Value
  6353.  
  6354.             \ dpfillbgcr  *    Drawing Objects                   Value
  6355.  
  6356.             \ dpfillbggray  *  Drawing Objects                   Value
  6357.  
  6358.  
  6359.                          Microsoft Product Support Services
  6360.  
  6361.  
  6362.  
  6363.  
  6364.                                Rich Text Format (RTF) Specification  page 107
  6365.  
  6366.             Control word       Described in Section              Type
  6367.  
  6368.             ----------------   -------------------------------   -----------
  6369.  
  6370.             \ dpfillbgpal *    Drawing Objects                   Flag
  6371.  
  6372.             \ dpfillfgcb  *    Drawing Objects                   Value
  6373.  
  6374.             \ dpfillfgcg  *    Drawing Objects                   Value
  6375.  
  6376.             \ dpfillfgcr  *    Drawing Objects                   Value
  6377.  
  6378.             \ dpfillfggray  *  Drawing Objects                   Value
  6379.  
  6380.             \ dpfillfgpal *    Drawing Objects                   Flag
  6381.  
  6382.             \ dpfillpat  *     Drawing Objects                   Value
  6383.  
  6384.             \ dpgroup  *       Drawing Objects                   Flag
  6385.  
  6386.             \ dpline  *        Drawing Objects                   Flag
  6387.  
  6388.             \ dplinecob  *     Drawing Objects                   Value
  6389.  
  6390.             \ dplinecog  *     Drawing Objects                   Value
  6391.  
  6392.             \ dplinecor  *     Drawing Objects                   Value
  6393.  
  6394.             \ dplinedado *     Drawing Objects                   Flag
  6395.  
  6396.             \ dplinedadodo  *  Drawing Objects                   Flag
  6397.  
  6398.             \ dplinedash  *    Drawing Objects                   Flag
  6399.  
  6400.             \ dplinedot  *     Drawing Objects                   Flag
  6401.  
  6402.             \ dplinegray  *    Drawing Objects                   Value
  6403.  
  6404.             \ dplinehollow  *  Drawing Objects                   Flag
  6405.  
  6406.             \ dplinepal *      Drawing Objects                   Flag
  6407.  
  6408.             \ dplinesolid  *   Drawing Objects                   Flag
  6409.  
  6410.             \ dplinew  *       Drawing Objects                   Value
  6411.  
  6412.             \ dppolycount  *   Drawing Objects                   Value
  6413.  
  6414.             \ dppolygon  *     Drawing Objects                   Flag
  6415.  
  6416.             \ dppolyline  *    Drawing Objects                   Flag
  6417.  
  6418.  
  6419.                          Microsoft Product Support Services
  6420.  
  6421.  
  6422.  
  6423.  
  6424.                                Rich Text Format (RTF) Specification  page 108
  6425.  
  6426.             Control word       Described in Section              Type
  6427.  
  6428.             ----------------   -------------------------------   -----------
  6429.  
  6430.             \ dpptx  *         Drawing Objects                   Value
  6431.  
  6432.             \ dppty  *         Drawing Objects                   Value
  6433.  
  6434.             \ dprect  *        Drawing Objects                   Flag
  6435.  
  6436.             \ dproundr *       Drawing Objects                   Flag
  6437.  
  6438.             \ dpshadow  *      Drawing Objects                   Flag
  6439.  
  6440.             \ dpshadx  *       Drawing Objects                   Value
  6441.  
  6442.             \ dpshady  *       Drawing Objects                   Value
  6443.  
  6444.             \ dptxbx  *        Drawing Objects                   Flag
  6445.  
  6446.             \ dptxbxmar  *     Drawing Objects                   Value
  6447.  
  6448.             \ dptxbxtext  *    Drawing Objects                   Destination
  6449.  
  6450.             \ dpx  *           Drawing Objects                   Value
  6451.  
  6452.             \ dpxsize  *       Drawing Objects                   Value
  6453.  
  6454.             \ dpy  *           Drawing Objects                   Value
  6455.  
  6456.             \ dpysize  *       Drawing Objects                   Value
  6457.  
  6458.             \ dropcapli  *     Positioned Objects and Frames     Value
  6459.  
  6460.             \ dropcapt  *      Positioned Objects and Frames     Value
  6461.  
  6462.             \ ds               Section Formatting Properties     Value
  6463.  
  6464.             \ dxfrtext         Positioned Objects and Frames     Value
  6465.  
  6466.             \ dy               Information Group                 Value
  6467.  
  6468.             \ edmins           Information Group                 Value
  6469.  
  6470.             \ emdash           Special Characters                Symbol
  6471.  
  6472.             \ emspace *        Special Characters                Symbol
  6473.  
  6474.             \ endash           Special Characters                Symbol
  6475.  
  6476.             \ enddoc           Document Formatting Properties    Flag
  6477.  
  6478.  
  6479.                          Microsoft Product Support Services
  6480.  
  6481.  
  6482.  
  6483.  
  6484.                                Rich Text Format (RTF) Specification  page 109
  6485.  
  6486.             Control word       Described in Section              Type
  6487.  
  6488.             ----------------   -------------------------------   -----------
  6489.  
  6490.             \ endnhere         Section Formatting Properties     Flag
  6491.  
  6492.             \ endnotes         Document Formatting Properties    Flag
  6493.  
  6494.             \ enspace *        Special Characters                Symbol
  6495.  
  6496.             \ expnd            Character Formatting Properties   Value
  6497.  
  6498.             \ expndtw *        Character Formatting Properties   Value
  6499.  
  6500.             \ f                Character Formatting Properties   Value
  6501.  
  6502.             \ facingp          Document Formatting Properties    Flag
  6503.  
  6504.             \ falt *           Font Table                        Destination
  6505.  
  6506.             \ fbidi            Font Table                        Flag
  6507.  
  6508.             \ fcharset  *      Font Table                        Value
  6509.  
  6510.             \ fdecor           Font Table                        Flag
  6511.  
  6512.             \ fet *            Document Formatting Properties    Value
  6513.  
  6514.             \ fi               Paragraph Formatting Properties   Value
  6515.  
  6516.             \ fid *            File Table                        Value
  6517.  
  6518.             \ field            Fields                            Destination
  6519.  
  6520.             \ file *           File Table                        Destination
  6521.  
  6522.             \ filetbl *        File Table                        Destination
  6523.  
  6524.             \ fldalt *         Document Formatting Properties    Flag
  6525.  
  6526.             \ flddirty         Fields                            Flag
  6527.  
  6528.             \ fldedit          Fields                            Flag
  6529.  
  6530.             \ fldinst          Fields                            Destination
  6531.  
  6532.             \ fldlock          Fields                            Flag
  6533.  
  6534.             \ fldpriv          Fields                            Flag
  6535.  
  6536.             \ fldrslt          Fields                            Destination
  6537.  
  6538.  
  6539.                          Microsoft Product Support Services
  6540.  
  6541.  
  6542.  
  6543.  
  6544.                                Rich Text Format (RTF) Specification  page 110
  6545.  
  6546.             Control word       Described in Section              Type
  6547.  
  6548.             ----------------   -------------------------------   -----------
  6549.  
  6550.             \ fmodern          Font Table                        Flag
  6551.  
  6552.             \ fn               Style Sheet                       Value
  6553.  
  6554.             \ fnetwork *       File Table                        Flag
  6555.  
  6556.             \ fnil             Font Table                        Flag
  6557.  
  6558.             \ fontemb          Font Table                        Destination
  6559.  
  6560.             \ fontfile         Font Table                        Destination
  6561.  
  6562.             \ fonttbl          Font Table                        Destination
  6563.  
  6564.             \ footer           Headers and Footers               Destination
  6565.  
  6566.             \ footerf          Headers and Footers               Destination
  6567.  
  6568.             \ footerl          Headers and Footers               Destination
  6569.  
  6570.             \ footerr          Headers and Footers               Destination
  6571.  
  6572.             \ footery          Section Formatting Properties     Value
  6573.  
  6574.             \ footnote         Footnotes                         Destination
  6575.  
  6576.             \ formdisp *       Document Formatting Properties    Flag
  6577.  
  6578.             \ formprot *       Document Formatting Properties    Flag
  6579.  
  6580.             \ formshade *      Document Formatting Properties    Flag
  6581.  
  6582.             \ fosnum *         File Table                        Value
  6583.  
  6584.             \ fprq  *          Font Table                        Value
  6585.  
  6586.             \ fracwidth        Document Formatting Properties    Flag
  6587.  
  6588.             \ frelative *      File Table                        Value
  6589.  
  6590.             \ froman           Font Table                        Flag
  6591.  
  6592.             \ fs               Character Formatting Properties   Value
  6593.  
  6594.             \ fscript          Font Table                        Flag
  6595.  
  6596.             \ fswiss           Font Table                        Flag
  6597.  
  6598.  
  6599.                          Microsoft Product Support Services
  6600.  
  6601.  
  6602.  
  6603.  
  6604.                                Rich Text Format (RTF) Specification  page 111
  6605.  
  6606.             Control word       Described in Section              Type
  6607.  
  6608.             ----------------   -------------------------------   -----------
  6609.  
  6610.             \ ftech            Font Table                        Flag
  6611.  
  6612.             \ ftnalt *         Document Formatting Properties    Flag
  6613.  
  6614.             \ ftnbj            Document Formatting Properties    Flag
  6615.  
  6616.             \ ftncn            Document Formatting Properties    Destination
  6617.  
  6618.             \ ftnil            Font Table                        Flag
  6619.  
  6620.             \ ftnnalc *        Document Formatting Properties    Flag
  6621.  
  6622.             \ ftnnar *         Document Formatting Properties    Flag
  6623.  
  6624.             \ ftnnauc *        Document Formatting Properties    Flag
  6625.  
  6626.             \ ftnnchi *        Document Formatting Properties    Flag
  6627.  
  6628.             \ ftnnrlc *        Document Formatting Properties    Flag
  6629.  
  6630.             \ ftnnruc *        Document Formatting Properties    Flag
  6631.  
  6632.             \ ftnrestart       Document Formatting Properties    Flag
  6633.  
  6634.             \ ftnrstcont *     Document Formatting Properties    Flag
  6635.  
  6636.             \ ftnrstpg *       Document Formatting Properties    Flag
  6637.  
  6638.             \ ftnsep           Document Formatting Properties    Destination
  6639.  
  6640.             \ ftnsepc          Document Formatting Properties    Destination
  6641.  
  6642.             \ ftnstart         Document Formatting Properties    Value
  6643.  
  6644.             \ ftntj            Document Formatting Properties    Flag
  6645.  
  6646.             \ fttruetype       Font Table                        Flag
  6647.  
  6648.             \ fvaliddos *      File Table                        Flag
  6649.  
  6650.             \ fvalidhpfs *     File Table                        Flag
  6651.  
  6652.             \ fvalidmac *      File Table                        Flag
  6653.  
  6654.             \ fvalidntfs *     File Table                        Flag
  6655.  
  6656.             \ green            Color Table                       Value
  6657.  
  6658.  
  6659.                          Microsoft Product Support Services
  6660.  
  6661.  
  6662.  
  6663.  
  6664.                                Rich Text Format (RTF) Specification  page 112
  6665.  
  6666.             Control word       Described in Section              Type
  6667.  
  6668.             ----------------   -------------------------------   -----------
  6669.  
  6670.             \ gutter           Document Formatting Properties    Value
  6671.  
  6672.             \ guttersxn        Section Formatting Properties     Value
  6673.  
  6674.             \ header           Headers and Footers               Destination
  6675.  
  6676.             \ headerf          Headers and Footers               Destination
  6677.  
  6678.             \ headerl          Headers and Footers               Destination
  6679.  
  6680.             \ headerr          Headers and Footers               Destination
  6681.  
  6682.             \ headery          Section Formatting Properties     Value
  6683.  
  6684.             \ hr               Information Group                 Value
  6685.  
  6686.             \ hyphauto *       Document Formatting Properties    Toggle
  6687.  
  6688.             \ hyphcaps *       Document Formatting Properties    Toggle
  6689.  
  6690.             \ hyphconsec *     Document Formatting Properties    Value
  6691.  
  6692.             \ hyphhotz         Document Formatting Properties    Value
  6693.  
  6694.             \ hyphpar *        Paragraph Formatting Properties   Toggle
  6695.  
  6696.             \ i                Character Formatting Properties   Toggle
  6697.  
  6698.             \ id               Information Group                 Value
  6699.  
  6700.             \ info             Information Group                 Destination
  6701.  
  6702.             \ intbl            Paragraph Formatting Properties   Flag
  6703.  
  6704.             \ ixe              Index Entries                     Flag
  6705.  
  6706.             \ keep             Paragraph Formatting Properties   Flag
  6707.  
  6708.             \ keepn            Paragraph Formatting Properties   Flag
  6709.  
  6710.             \ kerning *        Character Formatting Properties   Value
  6711.  
  6712.             \ keycode          Style Sheet                       Destination
  6713.  
  6714.             \ keywords         Information Group                 Destination
  6715.  
  6716.             \ landscape        Document Formatting Properties    Flag
  6717.  
  6718.  
  6719.                          Microsoft Product Support Services
  6720.  
  6721.  
  6722.  
  6723.  
  6724.                                Rich Text Format (RTF) Specification  page 113
  6725.  
  6726.             Control word       Described in Section              Type
  6727.  
  6728.             ----------------   -------------------------------   -----------
  6729.  
  6730.             \ lang             Character Formatting Properties   Value
  6731.  
  6732.             \ ldblquote        Special Characters                Symbol
  6733.  
  6734.             \ level            Paragraph Formatting Properties   Value
  6735.  
  6736.             \ li               Paragraph Formatting Properties   Value
  6737.  
  6738.             \ line             Special Characters                Symbol
  6739.  
  6740.             \ linebetcol       Section Formatting Properties     Flag
  6741.  
  6742.             \ linecont         Section Formatting Properties     Flag
  6743.  
  6744.             \ linemod          Section Formatting Properties     Value
  6745.  
  6746.             \ lineppage        Section Formatting Properties     Flag
  6747.  
  6748.             \ linerestart      Section Formatting Properties     Flag
  6749.  
  6750.             \ linestart        Document Formatting Properties    Value
  6751.  
  6752.             \ linestarts       Section Formatting Properties     Value
  6753.  
  6754.             \ linex            Section Formatting Properties     Value
  6755.  
  6756.             \ linkself         Objects                           Flag
  6757.  
  6758.             \ linkstyles *     Document Formatting Properties    Flag
  6759.  
  6760.             \ lndscpsxn        Section Formatting Properties     Flag
  6761.  
  6762.             \ lquote           Special Characters                Symbol
  6763.  
  6764.             \ ltrch            Character Formatting Properties   Flag
  6765.  
  6766.             \ ltrdoc           Document Formatting Properties    Flag
  6767.  
  6768.             \ ltrmark          Special Characters                Symbol
  6769.  
  6770.             \ ltrpar           Paragraph Formatting Properties   Flag
  6771.  
  6772.             \ ltrrow           Table Definitions                 Flag
  6773.  
  6774.             \ ltrsect          Section Formatting Properties     Flag
  6775.  
  6776.             \ mac              Character Set                     Flag
  6777.  
  6778.  
  6779.                          Microsoft Product Support Services
  6780.  
  6781.  
  6782.  
  6783.  
  6784.                                Rich Text Format (RTF) Specification  page 114
  6785.  
  6786.             Control word       Described in Section              Type
  6787.  
  6788.             ----------------   -------------------------------   -----------
  6789.  
  6790.             \ macpict          Pictures                          Flag
  6791.  
  6792.             \ makebackup       Document Formatting Properties    Flag
  6793.  
  6794.             \ margb            Document Formatting Properties    Value
  6795.  
  6796.             \ margbsxn         Section Formatting Properties     Value
  6797.  
  6798.             \ margl            Document Formatting Properties    Value
  6799.  
  6800.             \ marglsxn         Section Formatting Properties     Value
  6801.  
  6802.             \ margmirror       Document Formatting Properties    Flag
  6803.  
  6804.             \ margr            Document Formatting Properties    Value
  6805.  
  6806.             \ margrsxn         Section Formatting Properties     Value
  6807.  
  6808.             \ margt            Document Formatting Properties    Value
  6809.  
  6810.             \ margtsxn         Section Formatting Properties     Value
  6811.  
  6812.             \ min              Information Group                 Value
  6813.  
  6814.             \ mo               Information Group                 Value
  6815.  
  6816.             \ nextfile         Document Formatting Properties    Destination
  6817.  
  6818.             \ nocolbal *       Document Formatting Properties    Flag
  6819.  
  6820.             \ noextrasprl *    Document Formatting Properties    Flag
  6821.  
  6822.             \ nofchars         Information Group                 Value
  6823.  
  6824.             \ nofpages         Information Group                 Value
  6825.  
  6826.             \ nofwords         Information Group                 Value
  6827.  
  6828.             \ noline           Paragraph Formatting Properties   Flag
  6829.  
  6830.             \ nosupersub *     Character Formatting Properties   Flag
  6831.  
  6832.             \ notabind *       Document Formatting Properties    Flag
  6833.  
  6834.             \ nowidctlpar *    Paragraph Formatting Properties   Flag
  6835.  
  6836.             \ nowrap           Positioned Objects and Frames     Flag
  6837.  
  6838.  
  6839.                          Microsoft Product Support Services
  6840.  
  6841.  
  6842.  
  6843.  
  6844.                                Rich Text Format (RTF) Specification  page 115
  6845.  
  6846.             Control word       Described in Section              Type
  6847.  
  6848.             ----------------   -------------------------------   -----------
  6849.  
  6850.             \ objalias         Objects                           Destination
  6851.  
  6852.             \ objalign         Objects                           Value
  6853.  
  6854.             \ objautlink       Objects                           Flag
  6855.  
  6856.             \ objclass         Objects                           Destination
  6857.  
  6858.             \ objcropb         Objects                           Value
  6859.  
  6860.             \ objcropl         Objects                           Value
  6861.  
  6862.             \ objcropr         Objects                           Value
  6863.  
  6864.             \ objcropt         Objects                           Value
  6865.  
  6866.             \ objdata          Objects                           Destination
  6867.  
  6868.             \ object           Objects                           Destination
  6869.  
  6870.             \ objemb           Objects                           Flag
  6871.  
  6872.             \ objh             Objects                           Value
  6873.  
  6874.             \ objicemb         Objects                           Flag
  6875.  
  6876.             \ objlink          Objects                           Flag
  6877.  
  6878.             \ objlock          Objects                           Flag
  6879.  
  6880.             \ objname          Objects                           Destination
  6881.  
  6882.             \ objpub           Objects                           Flag
  6883.  
  6884.             \ objscalex        Objects                           Value
  6885.  
  6886.             \ objscaley        Objects                           Value
  6887.  
  6888.             \ objsect          Objects                           Destination
  6889.  
  6890.             \ objsetsize       Objects                           Flag
  6891.  
  6892.             \ objsub           Objects                           Flag
  6893.  
  6894.             \ objtime          Objects                           Destination
  6895.  
  6896.             \ objtransy        Objects                           Value
  6897.  
  6898.  
  6899.                          Microsoft Product Support Services
  6900.  
  6901.  
  6902.  
  6903.  
  6904.                                Rich Text Format (RTF) Specification  page 116
  6905.  
  6906.             Control word       Described in Section              Type
  6907.  
  6908.             ----------------   -------------------------------   -----------
  6909.  
  6910.             \ objupdate *      Objects                           Flag
  6911.  
  6912.             \ objw             Objects                           Value
  6913.  
  6914.             \ operator         Information Group                 Destination
  6915.  
  6916.             \ otblrul *        Document Formatting Properties    Flag
  6917.  
  6918.             \ outl             Character Formatting Properties   Toggle
  6919.  
  6920.             \ page             Special Characters                Symbol
  6921.  
  6922.             \ pagebb           Paragraph Formatting Properties   Flag
  6923.  
  6924.             \ paperh           Document Formatting Properties    Value
  6925.  
  6926.             \ paperw           Document Formatting Properties    Value
  6927.  
  6928.             \ par              Special Characters                Symbol
  6929.  
  6930.             \ pard             Paragraph Formatting Properties   Flag
  6931.  
  6932.             \ pc               Character Set                     Flag
  6933.  
  6934.             \ pca              Character Set                     Flag
  6935.  
  6936.             \ pghsxn           Section Formatting Properties     Value
  6937.  
  6938.             \ pgncont          Section Formatting Properties     Flag
  6939.  
  6940.             \ pgndec           Section Formatting Properties     Flag
  6941.  
  6942.             \ pgnhn  *         Section Formatting Properties     Value
  6943.  
  6944.             \ pgnhnsc *        Section Formatting Properties     Flag
  6945.  
  6946.             \ pgnhnsh *        Section Formatting Properties     Flag
  6947.  
  6948.             \ pgnhnsm *        Section Formatting Properties     Flag
  6949.  
  6950.             \ pgnhnsn *        Section Formatting Properties     Flag
  6951.  
  6952.             \ pgnhnsp *        Section Formatting Properties     Flag
  6953.  
  6954.             \ pgnlcltr         Section Formatting Properties     Flag
  6955.  
  6956.             \ pgnlcrm          Section Formatting Properties     Flag
  6957.  
  6958.  
  6959.                          Microsoft Product Support Services
  6960.  
  6961.  
  6962.  
  6963.  
  6964.                                Rich Text Format (RTF) Specification  page 117
  6965.  
  6966.             Control word       Described in Section              Type
  6967.  
  6968.             ----------------   -------------------------------   -----------
  6969.  
  6970.             \ pgnrestart       Section Formatting Properties     Flag
  6971.  
  6972.             \ pgnstart         Document Formatting Properties    Value
  6973.  
  6974.             \ pgnstarts        Section Formatting Properties     Value
  6975.  
  6976.             \ pgnucltr         Section Formatting Properties     Flag
  6977.  
  6978.             \ pgnucrm          Section Formatting Properties     Flag
  6979.  
  6980.             \ pgnx             Section Formatting Properties     Value
  6981.  
  6982.             \ pgny             Section Formatting Properties     Value
  6983.  
  6984.             \ pgwsxn           Section Formatting Properties     Value
  6985.  
  6986.             \ phcol            Positioned Objects and Frames     Flag
  6987.  
  6988.             \ phmrg            Positioned Objects and Frames     Flag
  6989.  
  6990.             \ phpg             Positioned Objects and Frames     Flag
  6991.  
  6992.             \ picbmp *         Pictures                          Flag
  6993.  
  6994.             \ picbpp *         Pictures                          Value
  6995.  
  6996.             \ piccropb         Pictures                          Value
  6997.  
  6998.             \ piccropl         Pictures                          Value
  6999.  
  7000.             \ piccropr         Pictures                          Value
  7001.  
  7002.             \ piccropt         Pictures                          Value
  7003.  
  7004.             \ pich             Pictures                          Value
  7005.  
  7006.             \ pichgoal         Pictures                          Value
  7007.  
  7008.             \ picscaled        Pictures                          Flag
  7009.  
  7010.             \ picscalex        Pictures                          Value
  7011.  
  7012.             \ picscaley        Pictures                          Value
  7013.  
  7014.             \ pict             Pictures                          Destination
  7015.  
  7016.             \ picw             Pictures                          Value
  7017.  
  7018.  
  7019.                          Microsoft Product Support Services
  7020.  
  7021.  
  7022.  
  7023.  
  7024.                                Rich Text Format (RTF) Specification  page 118
  7025.  
  7026.             Control word       Described in Section              Type
  7027.  
  7028.             ----------------   -------------------------------   -----------
  7029.  
  7030.             \ picwgoal         Pictures                          Value
  7031.  
  7032.             \ plain            Character Formatting Properties   Flag
  7033.  
  7034.             \ pmmetafile       Pictures                          Value
  7035.  
  7036.             \ pn *             Bullets and Numbering             Destination
  7037.  
  7038.             \ pnacross *       Bullets and Numbering             Flag
  7039.  
  7040.             \ pnb *            Bullets and Numbering             Toggle
  7041.  
  7042.             \ pncaps *         Bullets and Numbering             Toggle
  7043.  
  7044.             \ pncard *         Bullets and Numbering             Flag
  7045.  
  7046.             \ pncf *           Bullets and Numbering             Value
  7047.  
  7048.             \ pndec *          Bullets and Numbering             Flag
  7049.  
  7050.             \ pnf *            Bullets and Numbering             Value
  7051.  
  7052.             \ pnfs *           Bullets and Numbering             Value
  7053.  
  7054.             \ pnhang *         Bullets and Numbering             Flag
  7055.  
  7056.             \ pni *            Bullets and Numbering             Toggle
  7057.  
  7058.             \ pnindent *       Bullets and Numbering             Value
  7059.  
  7060.             \ pnlcltr *        Bullets and Numbering             Flag
  7061.  
  7062.             \ pnlcrm *         Bullets and Numbering             Flag
  7063.  
  7064.             \ pnlvl *          Bullets and Numbering             Value
  7065.  
  7066.             \ pnlvlblt *       Bullets and Numbering             Flag
  7067.  
  7068.             \ pnlvlbody *      Bullets and Numbering             Flag
  7069.  
  7070.             \ pnlvlcont *      Bullets and Numbering             Flag
  7071.  
  7072.             \ pnnumonce *      Bullets and Numbering             Flag
  7073.  
  7074.             \ pnord *          Bullets and Numbering             Flag
  7075.  
  7076.             \ pnordt *         Bullets and Numbering             Flag
  7077.  
  7078.  
  7079.                          Microsoft Product Support Services
  7080.  
  7081.  
  7082.  
  7083.  
  7084.                                Rich Text Format (RTF) Specification  page 119
  7085.  
  7086.             Control word       Described in Section              Type
  7087.  
  7088.             ----------------   -------------------------------   -----------
  7089.  
  7090.             \ pnprev *         Bullets and Numbering             Flag
  7091.  
  7092.             \ pnqc *           Bullets and Numbering             Flag
  7093.  
  7094.             \ pnql *           Bullets and Numbering             Flag
  7095.  
  7096.             \ pnqr *           Bullets and Numbering             Flag
  7097.  
  7098.             \ pnrestart *      Bullets and Numbering             Flag
  7099.  
  7100.             \ pnscaps *        Bullets and Numbering             Toggle
  7101.  
  7102.             \ pnseclvl *       Bullets and Numbering             Destination
  7103.  
  7104.             \ pnsp *           Bullets and Numbering             Value
  7105.  
  7106.             \ pnstart *        Bullets and Numbering             Value
  7107.  
  7108.             \ pnstrike *       Bullets and Numbering             Toggle
  7109.  
  7110.             \ pntext *         Bullets and Numbering             Destination
  7111.  
  7112.             \ pntxta *         Bullets and Numbering             Destination
  7113.  
  7114.             \ pntxtb *         Bullets and Numbering             Destination
  7115.  
  7116.             \ pnucltr *        Bullets and Numbering             Flag
  7117.  
  7118.             \ pnucrm *         Bullets and Numbering             Flag
  7119.  
  7120.             \ pnul *           Bullets and Numbering             Toggle
  7121.  
  7122.             \ pnuld *          Bullets and Numbering             Flag
  7123.  
  7124.             \ pnuldb *         Bullets and Numbering             Flag
  7125.  
  7126.             \ pnulnone *       Bullets and Numbering             Flag
  7127.  
  7128.             \ pnulw *          Bullets and Numbering             Flag
  7129.  
  7130.             \ posnegx  *       Positioned Objects and Frames     Value
  7131.  
  7132.             \ posnegy  *       Positioned Objects and Frames     Value
  7133.  
  7134.             \ posx             Positioned Objects and Frames     Value
  7135.  
  7136.             \ posxc            Positioned Objects and Frames     Flag
  7137.  
  7138.  
  7139.                          Microsoft Product Support Services
  7140.  
  7141.  
  7142.  
  7143.  
  7144.                                Rich Text Format (RTF) Specification  page 120
  7145.  
  7146.             Control word       Described in Section              Type
  7147.  
  7148.             ----------------   -------------------------------   -----------
  7149.  
  7150.             \ posxi            Positioned Objects and Frames     Flag
  7151.  
  7152.             \ posxl            Positioned Objects and Frames     Flag
  7153.  
  7154.             \ posxo            Positioned Objects and Frames     Flag
  7155.  
  7156.             \ posxr            Positioned Objects and Frames     Flag
  7157.  
  7158.             \ posy             Positioned Objects and Frames     Value
  7159.  
  7160.             \ posyb            Positioned Objects and Frames     Flag
  7161.  
  7162.             \ posyc            Positioned Objects and Frames     Flag
  7163.  
  7164.             \ posyil           Positioned Objects and Frames     Flag
  7165.  
  7166.             \ posyt            Positioned Objects and Frames     Flag
  7167.  
  7168.             \ prcolbl *        Document Formatting Properties    Flag
  7169.  
  7170.             \ printdata *      Document Formatting Properties    Flag
  7171.  
  7172.             \ printim          Information Group                 Destination
  7173.  
  7174.             \ psover           Document Formatting Properties    Flag
  7175.  
  7176.             \ psz *            Document Formatting Properties    Value
  7177.  
  7178.             \ pubauto          Macintosh Edition Manager         Flag
  7179.                                Publisher Objects
  7180.  
  7181.             \ pvmrg            Positioned Objects and Frames     Flag
  7182.  
  7183.             \ pvpara           Positioned Objects and Frames     Flag
  7184.  
  7185.             \ pvpg             Positioned Objects and Frames     Flag
  7186.  
  7187.             \ qc               Paragraph Formatting Properties   Flag
  7188.  
  7189.             \ qj               Paragraph Formatting Properties   Flag
  7190.  
  7191.             \ ql               Paragraph Formatting Properties   Flag
  7192.  
  7193.             \ qr               Paragraph Formatting Properties   Flag
  7194.  
  7195.             \ rdblquote        Special Characters                Symbol
  7196.  
  7197.  
  7198.  
  7199.                          Microsoft Product Support Services
  7200.  
  7201.  
  7202.  
  7203.  
  7204.                                Rich Text Format (RTF) Specification  page 121
  7205.  
  7206.             Control word       Described in Section              Type
  7207.  
  7208.             ----------------   -------------------------------   -----------
  7209.  
  7210.             \ red              Color Table                       Value
  7211.  
  7212.             \ result           Objects                           Destination
  7213.  
  7214.             \ revauth *        Character Formatting Properties   Value
  7215.  
  7216.             \ revbar           Document Formatting Properties    Value
  7217.  
  7218.             \ revdttm *        Character Formatting Properties   Value
  7219.  
  7220.             \ revised          Character Formatting Properties   Toggle
  7221.  
  7222.             \ revisions        Document Formatting Properties    Flag
  7223.  
  7224.             \ revprop          Document Formatting Properties    Value
  7225.  
  7226.             \ revprot *        Document Formatting Properties    Flag
  7227.  
  7228.             \ revtbl *         Revision Marks                    Destination
  7229.  
  7230.             \ revtim           Information Group                 Destination
  7231.  
  7232.             \ ri               Paragraph Formatting Properties   Value
  7233.  
  7234.             \ row              Special Characters                Symbol
  7235.  
  7236.             \ rquote           Special Characters                Symbol
  7237.  
  7238.             \ rsltbmp          Objects                           Flag
  7239.  
  7240.             \ rsltmerge        Objects                           Flag
  7241.  
  7242.             \ rsltpict         Objects                           Flag
  7243.  
  7244.             \ rsltrtf          Objects                           Flag
  7245.  
  7246.             \ rslttxt          Objects                           Flag
  7247.  
  7248.             \ rtf              RTF Version                       Destination
  7249.  
  7250.             \ rtlch            Character Formatting Properties   Flag
  7251.  
  7252.             \ rtldoc           Document Formatting Properties    Flag
  7253.  
  7254.             \ rtlmark          Bidirectional Language Support    Symbol
  7255.                                and Special Characters
  7256.  
  7257.  
  7258.  
  7259.                          Microsoft Product Support Services
  7260.  
  7261.  
  7262.  
  7263.  
  7264.                                Rich Text Format (RTF) Specification  page 122
  7265.  
  7266.             Control word       Described in Section              Type
  7267.  
  7268.             ----------------   -------------------------------   -----------
  7269.  
  7270.             \ rtlpar           Paragraph Formatting Properties   Flag
  7271.  
  7272.             \ rtlrow           Table Definitions                 Flag
  7273.  
  7274.             \ rtlsect          Section Formatting Properties     Flag
  7275.  
  7276.             \ rxe              Index Entries                     Destination
  7277.  
  7278.             \ s                Paragraph Formatting Properties   Value
  7279.  
  7280.             \ sa               Paragraph Formatting Properties   Value
  7281.  
  7282.             \ sb               Paragraph Formatting Properties   Value
  7283.  
  7284.             \ sbasedon         Style Sheet                       Value
  7285.  
  7286.             \ sbkcol           Section Formatting Properties     Flag
  7287.  
  7288.             \ sbkeven          Section Formatting Properties     Flag
  7289.  
  7290.             \ sbknone          Section Formatting Properties     Flag
  7291.  
  7292.             \ sbkodd           Section Formatting Properties     Flag
  7293.  
  7294.             \ sbkpage          Section Formatting Properties     Flag
  7295.  
  7296.             \ sbys             Paragraph Formatting Properties   Flag
  7297.  
  7298.             \ scaps            Character Formatting Properties   Toggle
  7299.  
  7300.             \ sec              Information Group                 Value
  7301.  
  7302.             \ sect             Special Characters                Symbol
  7303.  
  7304.             \ sectd            Section Formatting Properties     Flag
  7305.  
  7306.             \ sectnum          Special Characters                Symbol
  7307.  
  7308.             \ sectunlocked *   Section Formatting Properties     Flag
  7309.  
  7310.             \ shad             Character Formatting Properties   Toggle
  7311.  
  7312.             \ shading          Paragraph Shading                 Value
  7313.  
  7314.             \ shift            Style Sheet                       Flag
  7315.  
  7316.             \ sl               Paragraph Formatting Properties   Value
  7317.  
  7318.  
  7319.                          Microsoft Product Support Services
  7320.  
  7321.  
  7322.  
  7323.  
  7324.                                Rich Text Format (RTF) Specification  page 123
  7325.  
  7326.             Control word       Described in Section              Type
  7327.  
  7328.             ----------------   -------------------------------   -----------
  7329.  
  7330.             \ slmult *         Paragraph Formatting Properties   Value
  7331.  
  7332.             \ snext            Style Sheet                       Value
  7333.  
  7334.             \ softcol *        Special Characters                Flag
  7335.  
  7336.             \ softlheight *    Special Characters                Value
  7337.  
  7338.             \ softline *       Special Characters                Flag
  7339.  
  7340.             \ softpage *       Special Characters                Flag
  7341.  
  7342.             \ sprsspbf *       Document Formatting Properties    Flag
  7343.  
  7344.             \ sprstsp *        Document Formatting Properties    Flag
  7345.  
  7346.             \ strike           Character Formatting Properties   Toggle
  7347.  
  7348.             \ stylesheet       Style Sheet                       Destination
  7349.  
  7350.             \ sub *            Character Formatting Properties   Flag
  7351.  
  7352.             \ subdocument *    Paragraph Formatting Properties   Value
  7353.  
  7354.             \ subject          Information Group                 Destination
  7355.  
  7356.             \ super *          Character Formatting Properties   Flag
  7357.  
  7358.             \ swpbdr *         Document Formatting Properties    Flag
  7359.  
  7360.             \ tab              Special Characters                Symbol
  7361.  
  7362.             \ tb               Tabs                              Value
  7363.  
  7364.             \ tc               Table of Contents Entries         Destination
  7365.  
  7366.             \ tcf              Table of Contents Entries         Value
  7367.  
  7368.             \ tcl              Table of Contents Entries         Value
  7369.  
  7370.             \ tcn *            Table of Contents Entries         Flag
  7371.  
  7372.             \ template         Document Formatting Properties    Destination
  7373.  
  7374.             \ title            Information Group                 Destination
  7375.  
  7376.             \ titlepg          Section Formatting Properties     Flag
  7377.  
  7378.  
  7379.                          Microsoft Product Support Services
  7380.  
  7381.  
  7382.  
  7383.  
  7384.                                Rich Text Format (RTF) Specification  page 124
  7385.  
  7386.             Control word       Described in Section              Type
  7387.  
  7388.             ----------------   -------------------------------   -----------
  7389.  
  7390.             \ tldot            Tabs                              Flag
  7391.  
  7392.             \ tleq             Tabs                              Flag
  7393.  
  7394.             \ tlhyph           Tabs                              Flag
  7395.  
  7396.             \ tlth             Tabs                              Flag
  7397.  
  7398.             \ tlul             Tabs                              Flag
  7399.  
  7400.             \ tqc              Tabs                              Flag
  7401.  
  7402.             \ tqdec            Tabs                              Flag
  7403.  
  7404.             \ tqr              Tabs                              Flag
  7405.  
  7406.             \ transmf *        Document Formatting Properties    Flag
  7407.  
  7408.             \ trbrdrb *        Table Definitions                 Flag
  7409.  
  7410.             \ trbrdrh *        Table Definitions                 Flag
  7411.  
  7412.             \ trbrdrl *        Table Definitions                 Flag
  7413.  
  7414.             \ trbrdrr *        Table Definitions                 Flag
  7415.  
  7416.             \ trbrdrt *        Table Definitions                 Flag
  7417.  
  7418.             \ trbrdrv *        Table Definitions                 Flag
  7419.  
  7420.             \ trgaph           Table Definitions                 Value
  7421.  
  7422.             \ trhdr *          Table Definitions                 Flag
  7423.  
  7424.             \ trkeep *         Table Definitions                 Flag
  7425.  
  7426.             \ trleft           Table Definitions                 Value
  7427.  
  7428.             \ trowd            Table Definitions                 Flag
  7429.  
  7430.             \ trqc             Table Definitions                 Flag
  7431.  
  7432.             \ trql             Table Definitions                 Flag
  7433.  
  7434.             \ trqr             Table Definitions                 Flag
  7435.  
  7436.             \ trrh             Table Definitions                 Value
  7437.  
  7438.  
  7439.                          Microsoft Product Support Services
  7440.  
  7441.  
  7442.  
  7443.  
  7444.                                Rich Text Format (RTF) Specification  page 125
  7445.  
  7446.             Control word       Described in Section              Type
  7447.  
  7448.             ----------------   -------------------------------   -----------
  7449.  
  7450.             \ tx               Tabs                              Value
  7451.  
  7452.             \ txe              Index Entries                     Destination
  7453.  
  7454.             \ ul               Character Formatting Properties   Toggle
  7455.  
  7456.             \ uld              Character Formatting Properties   Flag
  7457.  
  7458.             \ uldb             Character Formatting Properties   Flag
  7459.  
  7460.             \ ulnone           Character Formatting Properties   Flag
  7461.  
  7462.             \ ulw              Character Formatting Properties   Flag
  7463.  
  7464.             \ up               Character Formatting Properties   Value
  7465.  
  7466.             \ v                Character Formatting Properties   Toggle
  7467.  
  7468.             \ vern             Information Group                 Value
  7469.  
  7470.             \ version          Information Group                 Value
  7471.  
  7472.             \ vertalb          Section Formatting Properties     Flag
  7473.  
  7474.             \ vertalc          Section Formatting Properties     Flag
  7475.  
  7476.             \ vertalj          Section Formatting Properties     Flag
  7477.  
  7478.             \ vertalt          Section Formatting Properties     Flag
  7479.  
  7480.             \ wbitmap          Pictures                          Value
  7481.  
  7482.             \ wbmbitspixel     Pictures                          Value
  7483.  
  7484.             \ wbmplanes        Pictures                          Value
  7485.  
  7486.             \ wbmwidthbytes    Pictures                          Value
  7487.  
  7488.             \ widowctrl        Document Formatting Properties    Flag
  7489.  
  7490.             \ wmetafile        Pictures                          Value
  7491.  
  7492.             \ wraptrsp *       Document Formatting Properties    Flag
  7493.  
  7494.             \ xe               Index Entries                     Destination
  7495.  
  7496.             \ xef *            Index Entries                     Value
  7497.  
  7498.  
  7499.                          Microsoft Product Support Services
  7500.  
  7501.  
  7502.  
  7503.  
  7504.                                Rich Text Format (RTF) Specification  page 126
  7505.  
  7506.             Control word       Described in Section              Type
  7507.  
  7508.             ----------------   -------------------------------   -----------
  7509.  
  7510.             \ yr               Information Group                 Value
  7511.  
  7512.             \ zwj              Special Characters                Symbol
  7513.  
  7514.             \ zwnj             Special Characters                Symbol
  7515.  
  7516.  
  7517.  
  7518.  
  7519.  
  7520.  
  7521.  
  7522.  
  7523.  
  7524.  
  7525.  
  7526.  
  7527.  
  7528.  
  7529.  
  7530.  
  7531.  
  7532.  
  7533.  
  7534.  
  7535.  
  7536.  
  7537.  
  7538.  
  7539.  
  7540.  
  7541.  
  7542.  
  7543.  
  7544.  
  7545.  
  7546.  
  7547.  
  7548.  
  7549.  
  7550.  
  7551.  
  7552.  
  7553.  
  7554.  
  7555.  
  7556.  
  7557.  
  7558.  
  7559.                          Microsoft Product Support Services
  7560.  
  7561.  
  7562.