
® 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 Contents: 11/97 GC0165 Introduction .................................................................................................................................................................3 RTF Syntax.................................................................................................................................................................3 Conventions of an RTF Reader..................................................................................................................................5 Formal Syntax.............................................................................................................................................................6 Contents of an RTF File .............................................................................................................................................7 Header ................................................................................................................................................................7 RTF Version................................................................................................................................................7 Character Set..............................................................................................................................................7 Unicode RTF...............................................................................................................................................8 Font Table ...................................................................................................................................................9 File Table ..................................................................................................................................................12 Color Table................................................................................................................................................13 Style Sheet................................................................................................................................................14 List Table...................................................................................................................................................15 Track Changes (Revision Marks) .............................................................................................................18 Document Area.................................................................................................................................................19 Information Group .....................................................................................................................................19 Document Formatting Properties..............................................................................................................21 Section Text ..............................................................................................................................................26 Paragraph Text .........................................................................................................................................30 Character Text ..........................................................................................................................................44 Document Variables..................................................................................................................................52 Bookmarks ................................................................................................................................................52 Pictures .....................................................................................................................................................53 Objects ......................................................................................................................................................56 Drawing Objects........................................................................................................................................59 Word 97 RTF for Drawing Objects (Shapes)............................................................................................65 Footnotes ..................................................................................................................................................82 Comments (Annotations) ..........................................................................................................................82 Fields.........................................................................................................................................................83 Form Fields ...............................................................................................................................................84 Index Entries .............................................................................................................................................85 Table of Contents Entries .........................................................................................................................86 Bidirectional Language Support................................................................................................................86 Appendix A: Sample RTF Reader Application .........................................................................................................88 How to Write an RTF Reader ...........................................................................................................................88 A Sample RTF Reader Implementation............................................................................................................88 Rtfdecl.h and Rtfreadr.c ............................................................................................................................89 Rtftype.h....................................................................................................................................................89 Rtfactn.c ....................................................................................................................................................91 Microsoft Technical Support Rich Text Format (RTF) Specification and Sample RTF Reader Program Page 2 Notes on Implementing Other RTF Features ...................................................................................................92 Tabs and Other Control Sequences Terminating in a Fixed Control........................................................92 Borders and Other Control Sequences Beginning with a Fixed Control ..................................................92 Other Problem Areas in RTF ............................................................................................................................92 Style Sheets ..............................................................................................................................................92 Property Changes .....................................................................................................................................92 Fields.........................................................................................................................................................92 Tables .......................................................................................................................................................93 Appendix A-1: Listings ......................................................................................................................................94 Rtfdecl.h ....................................................................................................................................................94 Rtftype.h....................................................................................................................................................95 Rtfreadr.c ..................................................................................................................................................97 Makefile...................................................................................................................................................110 Appendix B: Word (Asian Versions) Text Format...................................................................................................111 RTF-J ..............................................................................................................................................................111 Escaped Expressions .....................................................................................................................................111 Character Set..................................................................................................................................................112 Character Mapping .........................................................................................................................................112 Font Family .....................................................................................................................................................112 Composite Fonts (Associated Fonts for International
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages153 Page
-
File Size-