Rich Text Format, or RTF, is the internal markup language used by Microsoft Word and understood by dozens of other word processors. RTF is a universal file format that pervades practically every desktop. Because RTF is text, it's much easier to generate and process than binary .doc files. Any programmer working with word processing documents needs to learn enough RTF to get around, whether it's to format text for Word (or almost any other word processor), to make global changes to an existing document, or to convert Word files to (or from) another format. RTF Pocket Guide is a concise and easy-to-use tutorial and quick-reference for anyone who occasionally ends up mired in RTF files. As the first published book to cover the RTF format in any detail, this small pocket guide explains the syntax of RTF with examples throughout, including special sections on Unicode RTF and MSHelp RTF, and several full programs that demonstrate how to work in RTF effectively. Most word processors produce RTF documents consisting of arcane and redundant markup. This book is the first step to finding order in the disorder of RTF.
Sean M. Burke is an active member in the Perl community and one of CPAN's most prolific module authors. He has been a columnist for The Perl Journal since 1998, and is an authority on markup languages. Trained as a linguist, he also develops tools for software internationalization and native language preservation. Sean is also the author of O'Reilly's Perl & LWP.
Part I: RTF Tutorial Why RTF? This Book's Approach RTF "Hello, World!" Overview of Simple RTF Basic RTF Syntax Paragraphs Character Formatting Document Structure Incidental Features Styles Tables Part II: Creating MS Windows Help Files Help-RTF Basics Hyperlinks and Popups More Topic Information Images Help-RTF's Peculiarities Learning More Part III: Example Programs A Datebook Generator A Directory Lister An Origami CD Case Maker An RTF Metadata Extractor Remarks on Parsing Part IV: Reference Tables ASCII-RTF Character Chart RTF Language Codes Converting to Twips Index