Synopses & Reviews
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.
Synopsis
There are many formats for documents, and few are as difficult to parse as Rich Text Format (RTF), the internal format for Microsoft Word. Unlike structured formats such as XML and SGML, or even the less structured formats such as HTML or Troff, RTF reduces all styles, formats, fonts, etc., to pure presentational commands. It's filled with arcane, redundant, incomprehensible markup. Why use RTF then? Because we have to. Microsoft® Word is a ubiquitous application, and love it or hate it, we're stuck with it. So we frequently find ourselves having to deal with RTF files, either to convert to or from another format, or to make global changes. Additionally, there is little or no printed documentation for RTF. You can't always stop to search for the piece of information you need online--or take the time to wade through irrelevant or even erroneous online information.When you need to get to a solution quickly, the new "RTF Pocket Guide is the book you'll want to have.
About the Author
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.
Table of Contents
Chapter 1: RTF Tutorial; 1.1 Why RTF?; 1.2 This Book's Approach; 1.3 RTF "Hello, World!"; 1.4 Overview of Simple RTF; 1.5 Basic RTF Syntax; 1.6 Paragraphs; 1.7 Character Formatting; 1.8 Document Structure; 1.9 Incidental Features; 1.10 Styles; 1.11 Tables; Chapter 2: Creating MS Windows Help Files; 2.1 Help-RTF Basics; 2.2 Hyperlinks and Popups; 2.3 More Topic Information; 2.4 Images; 2.5 Help-RTF's Peculiarities; 2.6 Learning More; Chapter 3: Example Programs; 3.1 A Datebook Generator; 3.2 A Directory Lister; 3.3 An Origami CD Case Maker; 3.4 An RTF Metadata Extractor; 3.5 Remarks on Parsing; Chapter 4: Reference Tables; 4.1 ASCII-RTF Character Chart; 4.2 RTF Language Codes; 4.3 Converting to Twips;