![]() |
This article may contain original research. Please improve it by verifying the claims made and adding references. Statements consisting only of original research may be removed. More details may be available on the talk page. (April 2012) |
![]() |
This article's use of external links may not follow Wikipedia's policies or guidelines. Please improve this article by removing excessive or inappropriate external links, and converting useful links where appropriate into footnote references. (August 2011) |
Filename extension | .rtf |
---|---|
Internet media type | text/rtf[1] |
Type code | 'RTF.'[3][4][5] |
Uniform Type Identifier | public.rtf |
Magic number | {\rtf |
Developed by | Microsoft |
Latest release | 1.9.1 / 19 March 2008 |
Type of format | Document file format |
Open format? | No |
The Rich Text Format (often abbreviated RTF) is a proprietary[6][7][8] document file format with published specification developed by Microsoft Corporation since 1987 for Microsoft products and for cross-platform document interchange.[citation needed]
Most word processors are able to read and write some versions of RTF.[9] There are several different revisions of RTF specification and portability of files will depend on what version of RTF is being used.[7][10] RTF specifications are changed and published with major Microsoft Word and Office versions.
It should not be confused with enriched text (mimetype "text/enriched" of RFC 1896) or its predecessor Rich Text (mimetype "text/richtext" of RFC 1341 and 1521); nor with IBM's RFT-DCA (Revisable Format Text-Document Content Architecture) which are completely different specifications.
Contents |
![]() |
This section requires expansion. |
Richard Brodie, Charles Simonyi, and David Luebbert, members of the Microsoft Word development team, developed the original RTF in the middle to late 1980s. Its syntax was influenced by the TeX typesetting language.[citation needed] The first RTF reader and writer shipped in 1987 as part of Microsoft Word 3.0 for Macintosh, which implemented the RTF version 1.0 specification. All subsequent releases of Microsoft Word for the Macintosh and all versions for Windows can read and write files in RTF format.
Microsoft holds the rights to the RTF format[citation needed] and maintains the format. As of March 2008[update], the current version is 1.9.1. According to Microsoft's Office 2010 resource kit documentation, Microsoft is discontinuing enhancements to the RTF specification. Further, some new features in Word 2010 and later versions will not save properly to the RTF format.[11]
Microsoft Corporation anticipates no further updates to the RTF Specification 1.9.1, but is willing to consider editorial and other non-substantive modifications of the RTF Specification during an associated ISO/IEC 29500 balloting period; but it would not make changes which altered normative functions in this RTF Specification.[16]
Rich Text Format (RTF) specifications are changed and published with major Microsoft Word and Office versions.
RTF version | Publication date | Microsoft Word version | MS Word release date | Notes |
---|---|---|---|---|
1.0 | 1987 | Microsoft Word 3 | 1987 | latest revision 6/92;[19][20] the 1992 revision defines support for Microsoft Object Linking and Embedding (OLE) objects and Macintosh Edition Manager subscriber objects; supported inclusion of WMF, PICT, Windows Device-dependent bitmap, Windows Device Independent bitmap and OS/2 Metafile picture types in a RTF file |
1.1 | font embedding - font data may be located inside the file | |||
1.2 | 1993 | [21][22] | ||
1.3 | January 1994 | Microsoft Word 6 | 1993 | 1/94 GC0165; discouraged use of Windows Device-independent bitmaps and Windows Device-dependent bitmaps for device-independence and interoperability. Rather, bitmaps should be embedded within Windows Metafiles[23][24] |
1.4 | September 1995 | Microsoft Word 95/Word 7 | 1995 | |
1.5 | April 1997 | Microsoft Word 97/Word 8 | 1997 | Unicode RTF - supports 16-bit Unicode character encoding scheme; defined inclusion of PNG, JPEG and EMF picture types in hexadecimal (the default) or binary format in a RTF file[13] |
1.6 | May 1999 | Microsoft Word 2000/Word 9 | 1999 | |
1.7 | August 2001 | Microsoft Word 2002/Word 10 | 2001 | 8/2001– Word 2002 RTF Specification[14] |
1.8 | April 2004 | Microsoft Word 2003/Word 11 | 2003 | 10/2003– Word 2003 RTF Specification[4] |
1.9.1 | 19. March 2008 (RTF 1.9 - published in January 2007)[25] |
Microsoft Word 2007/Word 12 | 2006 | use of XML markup - Custom XML Tags, SmartTags, Math elements in an RTF document - following the Office Open XML specification (Ecma-376, Part 4)[15] |
As an example, the following RTF code:
{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard
This is some {\b bold} text.\par
}
is a document which would be rendered like this when read by a program that supports RTF:
This is some bold text.
Braces ({
and }
) define a group; groups can be nested. A backslash (\
) starts an RTF control code. A valid RTF document is a group that starts with the \rtf
control code.
In the example above, the \b
control code invokes boldface type; the example uses a group to limit the scope of the boldface control code. All other text characters will be rendered as plain text. The \par
control code indicates the end of a paragraph.
RTF is an 8-bit format.[26][not in citation given] That would limit it to ASCII,[26][clarification needed] but RTF can encode characters beyond ASCII by escape sequences. The character escapes are of two types: code page escapes and, starting with RTF 1.5, Unicode escapes. In a code page escape, two hexadecimal digits following a backslash and typewriter apostrophe are used for denoting a character taken from a Windows code page. For example, if the code page is set to Windows-1256, the sequence \'c8
will encode the Arabic letter bāʼ (ب).
For a Unicode escape the control word \u
is used, followed by a 16-bit signed decimal integer giving the Unicode UTF-16 code unit number. For the benefit of programs without Unicode support, this must be followed by the nearest representation of this character in the specified code page. For example, \u1576?
would give the Arabic letter bāʼ ب, specifying that older programs which do not have Unicode support should render it as a question mark instead.
The control word \uc0
can be used to indicate that subsequent Unicode escape sequences within the current group do not specify a substitution character.
Until RTF specification version 1.5 release in 1997, RTF has only handled 7-bit characters directly and 8-bit characters encoded as hexadecimal (using \'xx
). RTF control words (since RTF 1.5) generally accept signed 16-bit numbers as arguments. Unicode values greater than 32767 must be expressed as negative numbers.[13] If a Unicode character is outside BMP, it is encoded with a surrogate pair. Support for Unicode was made due to text handling changes in Microsoft Word – Microsoft Word 97 is a partially Unicode-enabled application and it handles text using the 16-bit Unicode character encoding scheme.[13] Microsoft Word 2000 and later versions are Unicode-enabled applications that handle text using the 16-bit Unicode character encoding scheme.[3]
RTF files are usually 7-bit ASCII plain text. RTF consists of control words, control symbols, and groups. RTF files can be easily transmitted between PC based operating systems because they are encoded as a text file with 7-bit graphic ASCII characters. Converters that communicate with Microsoft Word for MS Windows or Macintosh should expect data transfer as 8-bit characters and binary data can contain any 8-bit values.[15]
Unlike most word processing formats, concise RTF code can be made human-readable. When an RTF file is opened in a text editor, without formatting or processing of formatting, the alphanumeric text is legible and the markup language (formatting) elements not too distracting or counter-intuitive. However, the RTF files produced by most programs, such as Microsoft Word (MS Word), will contain such a large number of control codes (for compatibility with older programs) that most files will easily be an order of magnitude larger than the raw text and very difficult to read.[clarification needed][27][28] Formats such as MS Word's .doc
are, in contrast, binary formats with only a few scraps of legible text.
Human-readable XML-based formats are becoming more common, but during RTF's initial release, its level of readability was rare among document formats.
RTF is a data format for expressing text documents. It is not really a markup language, as it was never meant for intuitive and easy typing.[28][29] If some Unicode characters (e.g. letters with diacritics, or CJK characters) are used in an RTF document, they are difficult to read, as they appear only as escape codes, such as \'f1 for ñ or \u21563 for 吻. RTF also supports Microsoft OLE embedded objects and Macintosh Edition Manager subscriber objects (since RTF 1.0) which are not human-readable.
Most word processing software implementations support RTF format importing and exporting (following some version of RTF specification), and/or direct editing, often making it a "common" format between otherwise incompatible word processing software and operating systems. These factors contribute to its interoperability, but it will depend on what version of RTF is being used.[7] There are several consciously designed or accidentally born RTF dialects.[30] Most of applications that read RTF files silently ignore unknown RTF control words.[30]
RTF is the internal markup language used by Microsoft Word.[28] Overall, since 1987, RTF files may be transferred back and forth between many old and new computer systems (and now over the Internet) despite differences between operating systems and their versions. (But there are some compatibility problems, e.g. between RTF 1.0 1987 and later specifications, or between RTF 1.0-1.4 and RTF 1.5+ in use of Unicode characters.)[31][32][33] This makes it a useful format for basic formatted text documents such as instruction manuals, résumés, letters, and modest information documents. These documents at minimum support bold, italic, and underline text formatting. Also typically supported are left-, center-, and right-aligned text. Also, font specification and document margins are supported in RTF documents.
Font and margin defaults, as well as style presets and other functions will vary according to program defaults. There may also be subtle differences perhaps between different versions of the RTF specification implemented in differing programs and program versions. Nevertheless, the RTF format is consistent enough from computer to computer to be considered highly portable and acceptable for cross-platform use. The format supports metadata such as title, author, etc. but not all implementations support this.
Use of Microsoft Object Linking and Embedding (OLE) objects or Macintosh Edition Manager subscriber objects limits the interoperability, because these objects are not widely supported in programs for viewing or editing RTF files (e.g. embedding of other files inside the RTF, such as tables or charts from spreadsheet application).[34][35][36][37][38] If a software that understands an OLE object is not available, the object is usually replaced by a picture (bitmap representation of the object) or not displayed at all.[39][40]
RTF supports inclusion of JPEG, Portable Network Graphics (PNG), Enhanced Metafile (EMF), Windows Metafile (WMF), Apple PICT, Windows Device-dependent bitmap, Windows Device Independent bitmap and OS/2 Metafile picture types in hexadecimal (the default) or binary format in a RTF file. Not all of these picture types are supported in all RTF readers. When a RTF document is opened in software that does not support the picture type of an inserted picture, such picture is not displayed at all.
RTF writers usually convert inserted pictures from an unsupported picture types (e.g. BMP, TIFF, GIF, etc.) to one of supported picture types (PNG, WMF) or they do not include pictures at all.
For better compatibility with Microsoft products, some RTF writers include the same picture in two different picture types in one RTF file:[41]
This method increases the RTF file size rapidly. The RTF specification does not require this method and there are various implementations that include pictures without the WMF copy (e.g. Abiword or Ted).
RTF supports embedding of fonts used in the document, but this feature is not widely supported in software implementations.[42][43][44]
RTF also supports generic font family names used for font substitution: roman (serif), swiss (sans-serif), modern (monospace), script, decorative, technical.[20] This feature is not widely supported for font substitution, e.g. in OpenOffice.org or Abiword.
RTF specification supports annotations (comments in documents) since version 1.0.[20] RTF 1.7 specification defined some new features for annotations: date stamp (there was previously only "time stamp") and parents of annotations.[14]
However, many implementations do not support RTF annotations, e.g. OpenOffice.org (up to version 3.3),[45][46][47] LibreOffice (up to version 3.3.2 no import support; only export[48]), Abiword (up to versions 2.6.x; support added in 2.8),[49][50][51] KWord (up to versions 2.x), Ted or Microsoft Wordpad. When a RTF document with annotations is opened in an application that does not support RTF annotations, they are not displayed at all. Similarly, when a document with annotations is saved as RTF in an application that does not support RTF annotations, annotations are not preserved in the RTF file. (For example, OpenOffice.org 1.x[52]-3.3 or KWord support annotations in some file formats (e.g. in ODF, SXW), but do not support RTF annotations.) Some implementations may hide annotations by default or require some user action to display them - e.g. in Abiword since version 2.8 or in IBM Lotus Symphony (up to version 1.3).
Microsoft products do not support comments within footers, footnotes or headers. Inserting a comment within headers, footers, or footnotes may result in a corrupted RTF document.[15]
RTF specification also supports footnotes (not to be confused with annotations), which are widely supported in RTF implementations (e.g. in OpenOffice.org, Abiword, KWord, Ted, but not in Wordpad).
RTF 1.2 specification defined use of drawing objects such as rectangles, ellipses, lines, arrows, polygons and various other shapes. RTF 1.5 specification introduced many new control words for drawing objects. RTF drawing objects are also called "shapes" since RTF 1.5.[13]
However, RTF drawing objects are not supported in many RTF implementations, such as OpenOffice.org,[53] LibreOffice, KWord, Abiword[54] or IBM Lotus Symphony (up to version 1.3 only some limited support;[55] improved in later versions). When an RTF document with drawing objects is opened in an application that does not support RTF drawing objects, they are not displayed at all. Some implementations will also not display any text inside drawing objects.[56][57] Similarly, when a document with drawing objects is saved as RTF in an application that does not support RTF drawing objects, these are not preserved in the RTF file. (For example, OpenOffice.org supports drawing objects in some file formats (e.g. in ODF, SXW, DOC), but does not support RTF drawing objects.)
Unlike Microsoft Word's DOC format, as well as the newer Office Open XML and OpenDocument formats, RTF does not support macros. For this reason, RTF is recommended over these formats when the spread of computer viruses is a concern. However, having the .RTF extension does not guarantee that a file is safe, since Microsoft Word will open standard DOC files renamed with an RTF extension and run any contained macros as usual. Manual examination of a file in a plain text editor such as Notepad, or use of the file
command in UNIX-like systems, is required to determine whether or not a suspect file is really RTF.[9][58]
Each RTF implementation usually implements only some versions or subsets of the RTF specification.[7] Many of the available RTF converters cannot understand all new features in the latest RTF specifications.[31][59]
The WordPad editor in Microsoft Windows creates RTF files by default. It once defaulted to the Microsoft Word 6.0 file format, but write support for Word documents (.doc) was dropped in a security update. Read support was also dropped in Windows 7. WordPad does not support some RTF features, such as headers and footers.[60] RTF is also the data format for "rich text controls" in MS Windows APIs.[28]
The default text editor for Mac OS X, TextEdit, can also view, edit and save RTF files as well as RTFD files. TextEdit currently (as of July 2009) has limited ability to edit RTF document margins. Much older Mac word processing application programs such as MacWrite and WriteNow were able to view, edit, and save RTF files as well.
The free and open-source word processors AbiWord, OpenOffice.org, KWord, and Bean can view, edit and save RTF files. (Abiword and OpenOffice.org use RTF 1.6 when a new file is saved.) RTF format is also used in Ted word processor. These implementations might be interesting for those who need to learn how to implement RTF support in their project and link it to other application functionality.
The open-source script rtf2xml can partially convert RTF to XML.[61][62]
SIL International’s Toolbox freeware application for developing and publishing dictionaries uses RTF as its most common form of document output. RTF files produced by Toolbox are designed to be used in Microsoft Word, but can also be used by other RTF-aware word processors.
RTF can be used on some ebook readers because of its interoperability,[citation needed][63] simplicity, and low CPU processing requirements, and some devices, including BeBook, work best with this format.
![]() |
This article's Criticism or Controversy section may compromise the article's neutral point of view of the subject. Please integrate the section's contents into the article as a whole, or rewrite the material. (April 2012) |
The Rich Text Format was the standard file format for text-based documents in applications developed for Microsoft Windows. Microsoft did not initially make the RTF specification publicly available, making it difficult for competitors to develop document conversion features in their applications. Because Microsoft's developers had access to the specification, Microsoft's applications had better compatibility with the format. When Microsoft changed the RTF specification, Microsoft's own applications had a lead in time-to-market, because competitors had to redevelop their applications after studying the newer version of the format. Novell alleged that Microsoft's practices were anticompetitive in its antitrust complaint against Microsoft.[64][65] The RTF specifications lack some of the semantic definitions necessary to read, write and modify documents.[66]
|
RTF may refer to:
Rtf1, Paf1/RNA polymerase II complex component, homolog (S. cerevisiae) is a protein that in humans is encoded by the RTF1 gene.
This locus may represent a gene involved in regulation of transcription elongation and chromatin remodeling, based on studies of similar proteins in other organisms. The encoded protein may bind single-stranded DNA.
Model organisms have been used in the study of RTF1 function. A conditional knockout mouse line, called Rtf1tm1a(KOMP)Wtsi was generated as part of the International Knockout Mouse Consortium program — a high-throughput mutagenesis project to generate and distribute animal models of disease to interested scientists.
Male and female animals underwent a standardized phenotypic screen to determine the effects of deletion. Twenty four tests were carried out on mutant mice and three significant abnormalities were observed. No homozygous mutant embryos were identified during gestation, and therefore none survived until weaning. The remaining tests were carried out on heterozygous mutant adult mice; vertebral fusion was observed in male animals.
As long as I remember
Never have I surrendered
Never said die I stand here
One love one goal
And I'll never give up, never give in. oh no!
Cuz we gotta belive
And I will never stop, fighting to win! come on!
Let's make tonight last forever
Cuz all of us know
It's one love oh oh
One love, one goal!
N' share this moment together
And never let go
We're singing
One! - hey!
Love! - hey!
One love one goal!
I've lost far too many
Times but deep inside me
Hides a great destiny
One love one goal
And I'll never give up, never give in. oh no!
Cuz we've gotta push thru