When 0, the height is sufficient for all the text in the line; when positive, the height is guaranteed to be at least the specified height; when negative, the absolute value of the height is used, regardless of the height of the text in the line.
Table row header. This row should appear at the top of every page the current table appears on. Table row keep together. This row cannot be split by a page break. This property is assumed to be off unless the control word is present. N is the shading of a table cell in hundredths of a percent. This control should be included in RTF along with cell border information. Reset font character formatting properties to a default value defined by the application for example, bold, underline and italic are disabled; font size is reset to 12 pt.
The associated font character formatting properties described in the section "Associated Font character Properties" on page 37 of this Application Note are also reset. Animated text properties. Character scaling value. The N argument is a value representing a percentage the default is Expansion or compression of the space between characters in quarter-points; a negative value compresses the default is 0. Expansion or compression of the space between characters in twips; a negative value compresses.
Point size in half-points above which to kern character pairs. The character data following this control word will be treated as a left-to-right run the default. If a character style is specified, style properties must be specified with the character run. N refers to an entry in the style table.
Indicates any characters not belonging to the default document character set and tells which character set they do belong to. Macintosh character sets are represented by values greater than Applies a language to a character. N is a number corresponding to a language. Character shading. The N argument is a value representing the shading of the text in hundredths of a percent.
N is the color of the background pattern, specified as an index into the document's color table. Note This keyword is used to indicate formatting revisions, such as bold, italic, and so on. The content of the N th group in the revision table is considered to be the author of that deletion. Language ID for the associated font. This uses the same language ID codes described on page 35 of this Application Note.
Associated font is continuous underline. Light Gray. Nonbreaking space equal to width of character "m" in current font. Nonbreaking space equal to width of character "n" in current font. Formula character. Used by Word 5. A hexadecimal value, based on the specified character set may be used to identify 8-bit values. A group that defines a document variable name and its value. This keyword is for compatibility with other readers.
The N argument identifies the metafile type. The N values are described on page 43 of this Application Note. Source of the picture is a Windows metafile. The N argument identifies the metafile type the default is 1. Source of the picture is a Windows device-independent bitmap. The N argument identifies the bitmap type must equal 0. Source of the picture is a Windows device-dependent bitmap. Number of adjacent color bits on each plane needed to define a pixel the default is 1.
Possible values are 1 monochrome , 4 16 colors , 8 colors and 24 RGB. Specifies the number of bytes in each raster line. This value must be an even number because the Windows graphics device interface GDI assumes that the bit values of a bitmap form an array of integer two-byte values.
The N argument is a long integer. Desired height of the picture in twips. Horizontal scaling value. Vertical scaling value. Scales the picture to fit within the specified frame. Indicates there are shape properties applied to an inline picture. Top cropping value in twips. A positive value crops toward the center of the picture; a negative value crops away from the center, adding a space border around picture the default is 0. Bottom cropping value in twips. Left cropping value in twips. Right cropping value in twips.
Specifies the bits per pixel in a metafile bitmap. The valid range is , with 1, 4, 8, and 24 being recognized. The picture is in binary format. The numeric parameter N is the number of bytes that follow. Unlike all other controls, this control word takes a bit parameter. N represents units per inch on a picture only certain image types need or output this.
An object type of OLE embedded object. Forces an update to the object before displaying it. The text argument is the object class to use for this object; ignore the class specified in the object data. N is the original object height in twips, assuming the object has a graphical representation. N is the original object width in twips, assuming the object has a graphical representation. N is the distance in twips from the left edge of the objects that should be aligned on a tab stop.
This is needed to place Equation Editor equations correctly in line. N is the distance in twips the objects should be moved vertically with respect to the baseline. This is needed to place Math Type equations correctly in line. This subdestination contains the alias record for the publisher object for the Macintosh Edition Manager.
This subdestination contains the section record for the publisher object for the Macintosh Edition Manager. It contains the last update of the result of the object. The data of the result destination should be standard RTF so that RTF readers that don't understand objects or the type of object represented can use the current result in the object's place to maintain appearance.
Object attachment placeholder. Used in the RTF stream when Word is started as a mail editor and the message contains attachments. The control word tells where in the text stream the attachment should be placed. It does not define the actual attachment. The publisher object updates all Macintosh Edition Manager subscribers of this object automatically whenever it is edited. Indicates a drawing object is to be inserted at this point in the character stream.
Angle of callout's diagonal line is restricted to one of the following: 0, 30, 45, 60, or If this control word is absent, the callout has an arbitrary angle, indicated by the coordinates of its primitives. Offset of callout. This is the distance between the end of the polyline and the edge of the text box. Auto-attached callout. Polyline will attach to either the top or bottom of the text box depending on the relative quadrant.
X-coordinate of the current vertex only for lines and polylines. The coordinate order for a point must be x, y. Y-coordinate of the current vertex only for lines and polylines.
This indicates that the end point of the arc is to the right of the start point. Arcs are drawn counter-clockwise. This indicates that the end point of the arc is below the start point. Length of end arrow, relative to pen width: 1 Small 2 Medium 3 Large. Width of end arrow, relative to pen width: 1 Small 2 Medium 3 Large. Length of start arrow, relative to pen width: 1 Small 2 Medium 3 Large.
Width of start arrow, relative to pen width: 1 Small 2 Medium 3 Large. Light trellis lines. The value N is a measurement in twips. Specifies position of shape from the left of the anchor. Specifies position of shape from top of the anchor. Specifies position of shape from bottom of the anchor. Specifies position of shape from right of the anchor. A number that is unique to each shape. This keyword is primarily used for linked text boxes. Describes z-order of shape. It starts at 0 for the back most shape and proceed to N for the top most shape.
The shapes that appear inside of the header document will have a separate z-order as compared to the z-order of the shapes in the main document. For instance the back-most shape in the header will have z-order number 0, and the back-most main-document shape will also have z-order number 0. Describes the type of wrap for the shape. Describes relative z-ordering. Text for a shape. Specifies a group shape. The order of the shapes inside a group is from bottom to top in z-order. Specifies the document background.
This is a destination keyword. Alignment on curve: 0 Stretch each line of text to fit width 1 Center text on width 2 Left justify 3 Right justify 4 Spread letters out to fit width 5 Spread words out to fit width. False if these properties are ignored. If an font is available use it; otherwise, rotate individual characters 90 degrees counter-clockwise. Adjust the spacing between characters rather than the character advance by the gtextSpacingratio.
When laying out the characters, consider the glyph bounding box rather than the nominal font character bounds. When laying out characters, measure distances along the x-axis rather than along the path. Flags for linked to file pictures: 0 No links default 10 Link to file; save with document 14 Link to file; do not save picture with document. First adjust value from an adjust handle.
The interpretation varies with the shape type. So copying the source code would be a matter of printing and re-typing. So, before I upset Microsoft again by republishing their hard work in an edited form, here are some interesting details about this document. Okay… so docx is a lot smaller than a. By horrible, I mean the navigation is just every possible link to location in the left hand side with no levels what-so-ever. OOo made a PDF with pull out navigation tree that mimicked the contents of the document.
RTF actually zips quite nicely. Most modern PDFs should be Flate compressed, the same as a zip, though how thoroughly is up to the creator.
Also of interest, I have discovered that if I unzip a. Most struggle with the tables. Some, most notably AbiWord, struggle with the sheer size of the document. Jarte reads the whole file, but stops counting the pages when they reach 59, and only saves that many pages. The Math functions are very new in Rich Text, and most either ignore them, or turn them into WMF objects inserted into the document.
Saving from MSO to an odt file removes them all together, replacing them with the plain text of the variables and little or no math symbols. The main editing I did is in OOo, my favourite of all. From what I can see, OOos Math injection works out in such a way as you could almost execute it, though you might have to strip a few fluffy formatie bits out here and there that will make no difference to the function of the formula at all, just make it look neater.
It would never run, as code, but the presentation description is quite exact, giving exact measurements in twips and the like. In OOo, the best means of doing this according to the help seems to be to align to some edge or other, and pad with one of two relative width white space items, or a phantom object.
Except knowing and setting exactly how many twips might be between one glyph and another. Some features Microsoft considers part of the Math, which OOo treats as object decoration. Boxes around formula, for example. Once a formula is composed in OOo, it is a graphical object on the page, just like a graph or a photo. So maybe all the talk about not having millions of ways to do the same basic thing any more in Office was all just smoke and mirrors after all.
Once I had made the alterations necessary to make the formula work in OOo correctly, and display as they did plus or minus the odd twip I had already put considerable effort into making a maintainable odt file. So, I went ahead and saved the source for the example RFT reader to a folder and zipped it up, applied a common font to the code because it was irregular and all over the place from various edits and took the liberty of applying standard schintilla syntax highlighting to it.
I re-aligned some of the comments here and there too. Between fixing the empty half columns and broken tables, messing with formula and this that and the other the page numbers were now skewed, and as I say the TOC was no longer linked to page numbers via functions though you can see it was at some time so I re-built the Contents page using OOos locked contents object, and configured it to maintain the same formatting as Microsoft had used. Then I moved on to creating a clean PDF from all this.
Even so, the time taken to load is a great improvement, and the size decrease is not inconsiderable. These act as the building blocks for representation of RTF data as understandable text and character encoding. These represent specially formatted command used to mark characters for display and can not be longer than 32 letters. A control word is defined by:. Each control word is case sensitive and starts with a backslash.
A Control Symbol represents a special occurrence that has specific meaning depending upon its contents. Each group specifies the text affected by the group and the different attributes of that text. Header tables must appear in this order if they exist. The RTF file can include groups for fonts, styles, screen color, pictures, footnotes, comments annotations , headers and footers, summary information, fields, bookmarks, document-, section-, paragraph- and character-formatting properties, mathematics, images, and objects.
If the font, file, style, color, revision mark, and summary-information groups and document-formatting properties are included in the file, they must appear in the RTF header, which precedes the RTF body.
If the content of any group is not used, the group can be omitted. Any group that uses the properties defined in another group must appear after the group that defines those properties. For example, colour and font properties must precede the style group.
The way to declare a character set is with one of these commands:.
0コメント