- 介绍
- RTF 语法
- RTF 查看器约定
- 形式语法
- RTF 文件内容
-
- 头
-
- RTF 版本
- 字符集
- Unicode RTF
- 字体表
- 文件表
- 颜色表
- 样式表
- 列表符号表
- 跟踪改变 (修订标记)
- 文档区域
-
- 信息组
- 文档格式属性
- 章节文本
- 段落文本
- 字符文本
- 文档变量
- 书签
- 图片
- 对象
- 绘图对象
- Word 97-2000 RTF for Drawing Objects (Shapes)
- 脚注
- 注释
- Fields
- Form Fields
- 索引项
- 目录
- 双向语言支持
- 亚洲语言支持
- 附录 A: Sample RTF Reader Application
-
- How to Write an RTF Reader
- A Sample RTF Reader Implementation
- Notes on Implementing Other RTF Features
- Other Problem Areas in RTF
- 附录 B: Index of RTF Control Words
- 附录 C: Control Words Introduced by Other Microsoft Products
-
- Pocket Word
- Exchange (Used in RTF<->HTML Conversions)
介绍
The Rich Text Format (RTF) 规范是一种在应用程序间转换格式化文本和图形简易编码方法。当前,用户依赖特殊的转换软件在MS-DOSTM,MicrosoftTM WindowsTM,OS/2,MacintoshTM和Power MacintoshTM的应用程序之间来转换字处理文档。
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 between different MS-DOSTM, MicrosoftTM WindowsTM, OS/2, MacintoshTM, and Power MacintoshTM applications.
RTF规范提供一种交互的文本和图形格式,可以在不同输出设备,操作环境和操作系统上使用。RTF使用美国国家标准化组织(ANSI),PC-8,Macintosh,或IBM PC的字符集来控制文档的外观和格式,不管文档是显示在屏幕上还是从打印机打印出来。由于RTF规范,不同操作系统、不同软件创建的文档可以在其他的操作系统和程序中被识别出来。Macintoch和Power Macintosh版的Word 6.0(及以后版本)创建的RTF文件提供一种文件类型——“RTF”。
The RTF Specification provides a format for text and graphics interchange that can be used with different output devices, operating environments, and operating systems. RTF uses the American National Standards Institute (ANSI), PC-8, Macintosh, or IBM PC character set to control the representation and formatting of a document, both on the screen and in print. With the RTF Specification, documents created under different operating systems and with different software applications can be transferred between those operating systems and applications. RTF files created in Word 6.0 (and later) for the Macintosh and Power Macintosh have a file type of "RTF."
将一个格式化的文件转换为RTF文件的软件成为编辑器。一个RTF编辑器分离现有文本中原程序的控制信息,并且生成一个包含着原文本和RTF组的新文件。将一个RTF文件转换成一个格式化文件的软件称为查看器。
Software that takes a formatted file and turns it into an RTF file is called a writer. An RTF writer separates the application's control information from the actual text and writes a new file containing the text and the RTF groups associated with that text. Software that translates an RTF file into a formatted file is called a reader.
这里提供了一个RTF查看器的例子(阅读本文档的附录A:RTF查看器程序示例)。它应用此规范而设计出来。希望它对那些有兴趣开发自己RTF查看器的开发者有所帮助。附录A介绍了这个程序的结构和用法。这个RTF查看器不是一个商业产品,Microsoft公司不对RTF查看器代码和RTF规范提供技术及其他形式的支持。关于如何从Microsoft下载中心下载此示例的更多信息,请访问以下Web地址: