Microsoft® MS®-DOS, Windows®, Windows NT®, and Apple Macintosh Applications Version: RTF Version 1.5 Microsoft Technical Support Subject: Rich Text Format (RTF) Specification and Application Note Sample RTF Reader Program 4/97− GC0165 Contents: 157 Pages, 1 Disk Introduction................................................................................................................................................... 2 RTF Syntax ...................................................................................................................................................3 Conventions of an RTF Reader .....................................................................................................................4 Formal Syntax ...............................................................................................................................................6 Contents of an RTF File ................................................................................................................................6 Header ...................................................................................................................................................6 RTF Version ....................................................................................................................................7 Character Set.................................................................................................................................. 7 Unicode RTF ..................................................................................................................................7 Font Table ......................................................................................................................................9 File Table .....................................................................................................................................12 Color Table................................................................................................................................... 12 Style Sheet ...................................................................................................................................13 List Table...................................................................................................................................... 15 Track Changes (Revision Marks) ....................................................................................................18 Document Area ....................................................................................................................................18 Information Group......................................................................................................................... 19 Document Formatting Properties ..................................................................................................21 Section Text .................................................................................................................................26 Paragraph Text .............................................................................................................................31 Character Text ..............................................................................................................................44 Document Variables .....................................................................................................................53 Bookmarks .....................................................................................................................................54 Pictures......................................................................................................................................... 54 Objects .........................................................................................................................................58 Drawing Objects............................................................................................................................ 60 Word 97 RTF for Drawing Objects (Shapes) ..................................................................................66 Footnotes ......................................................................................................................................84 Comments (Annotations) ...............................................................................................................85 Fields ............................................................................................................................................86 Form Fields ...................................................................................................................................87 Index Entries .................................................................................................................................88 Table of Contents Entries.............................................................................................................. 88 Bidirectional Language Support................................................................................................... 89 Appendix A: Sample RTF Reader Application............................................................................................ 90 How to Write an RTF Reader ................................................................................................................90 A Sample RTF Reader Implementation ...............................................................................................90 Microsoft Technical Support Rich Text Format (RTF) Specification and Sample RTF Reader Program Page 2 Rtfdecl.h and Rtfreadr.c................................................................................................................ 91 Rtftype.h .......................................................................................................................................91 Rtfactn.c .......................................................................................................................................93 Notes on Implementing Other RTF Features ........................................................................................94 Tabs and Other Control Sequences Terminating in a Fixed Control............................................. 94 Borders and Other Control Sequences Beginning with a Fixed Control ........................................94 Other Problem Areas in RTF ................................................................................................................94 Style Sheets.................................................................................................................................. 94 Property Changes.......................................................................................................................... 94 Fields ............................................................................................................................................95 Tables........................................................................................................................................... 95 Appendix A-1: Listings.......................................................................................................................... 96 Rtfdecl.h .......................................................................................................................................96 Rtftype.h .......................................................................................................................................97 Rtfreadr.c ....................................................................................................................................100 Makefile ......................................................................................................................................114 Appendix B: Word (Asian Versions) Text Format........................................................................................ 115 RTF-J .................................................................................................................................................115 Escaped Expressions ..........................................................................................................................115 Character Set .....................................................................................................................................116 Character Mapping ............................................................................................................................116 Font Family ........................................................................................................................................116 Composite Fonts (Associated Fonts for International Runs) .........................................................116 New Control Words Created by Word 6J ......................................................................................118 New Control Words Created by Asian Versions of Word 97 ..........................................................121 Appendix C: Index of RTF Control Words ..................................................................................................124 INTRODUCTION The Rich Text Format (RTF) Specification is a method of encoding formatted text and graphics for easy transfer between applications. Currently, users depend on special translation software to move word- processing documents
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages157 Page
-
File Size-