/[public]/psiconv/trunk/formats/psion/Layout_Codes.psi
ViewVC logotype

Contents of /psiconv/trunk/formats/psion/Layout_Codes.psi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (show annotations)
Wed Jan 10 16:56:25 2001 UTC (23 years, 3 months ago) by frodo
File MIME type: application/octet-stream
File size: 8302 byte(s)
(Frodo) Make sure the Psion docs are up-to-date

1 7mþŸU= »”
2 dÈ"Times New RomanN123O*Koptekst 1L ð
3 < *Koptekst 2Lð ð
4 < *Koptekst 3L *OpsomtekenO³•Swissÿÿÿÿh3r h3r ÐР \cefd\cDefLdý‚.ÆA)W[Layout Codes]Layout CodesThere are two kinds of layout codes: those which always modify a whole pragraph, and those which modify one or more characters. They are always kept strictly separate. A layout code consists of a type byte, followed by one or more modifier bytes. All rcognized codes are listed below.[Paragraph Layout List]Paragraph Layout ListA Paragraph Layout List is a «LListB» of «Paragraph Layout Codes». Paragraph Layout Codes are almost always found in this form.[Paragraph Layout Codes][Paragraph Layout Code]Paragraph Layout CodesAs explained above, a Paragraph Layout Code consists of a type byte, telling what kind of layout code this is, followed by a type-dependent amount of data.Type Size Data Description01 3B «Color» Background color02 L , «Length» Indent left03 L «Length» Indent right04 L «Length» (Un)indent first line (length relative to indent left setting)05 B Hor. justify left (00), centre (01), right (02) or full (03)06 B Vert. justify top (00) centre (01) or bottom (02) 07 L «Size» Interline distance08 B Interline distance is minimum (00) or exact (01)09 L «Size» Line distance before paragraph start0A L «Size» Line distance after paragraph end0B B Line distance options: Keep on one page on (01) or off (00)0C B Line distance options: Keep together with on (01) or off (00)0D B Line distance options: On next page on (01) or off (00)0E B Protection vs. single lines on pages disable (01) or enable (00)10 L «Length» Distance of borders from text11 9B «Border» Top border12 9B «Border» Bottom border13 9B «Border» Left border14 9B «Border» Right border15 * «Bullet» Bullets16 L «Length» Set standard (left) tabs interval17 5B «Tab» Set extra tabSome comments. The first line of a paragraph can have a different indentation than the other lines. This indentation length is always relative to the normal indentation, and can be positive (more to the right) or negative (more to the left).Borders can be made to be drawn beyond the standard margins, by specifying the amount of space between them and the text. This is always a positive value.There always standard tab positions; they are placed at regular interfals as specified. These are always left tabs. Additional tabs can also be specified, but these are always in addition to the standard tab positions.[Borders][Border]BordersThe four possible borders are specified separately, through initial type bytes 11 to 14. The border structure is shown below. Offset Data Description 0000 B Type (see below) 0001 L Thickness (always 01 for types 02 to 06) 0005 «Color» Color of border 0008 B Unknown (always 00 or 01 ?) 0009The border type can have the following values: Border Type Description 00 None 01 Solid single line 02 Solid double line 03 Dotted line 04 Dashed line 05 Dotsdashed line 06 Dotdotdashed lineThe thickness can only be defined for solid lines. It is expressed in units of 1/14 point (1/20 decimal), just like «Sizes» and «Lengths». The three Unknown bytes may be another color code, or something completely different. The function of the final byte is also unclear.[Bullets][Bullet]BulletsA Bullet description is a «BListB». The complete structure is given below, including the initial length byte excluding the initial type byte 15. Offset Data Description 0000 B Size of the remainder of this section in bytes 0001 «Size» Font size of bullet in points 0005 B Character used for bullet in «ASCII» 0006 B Indent after bullet on (01) or off (00) 0007 «Color» Color of bullet 0008 «Font» Font from which the bullet is taken (always Swiss?)[Tabs][Tab]TabsIn addition to the default left tabs, which are found at regular intervals, more tabs can be defined. Each additional tab is specified in its own structure. Below this structure is shown, excluding the initial type byte 17. Offset Data Description 0000 «Length» Location of the tab, relative to the left margin 0004 B Tab type (see below) 0005There are three kinds of tabs. They specify the anchoring of the text just after the tab: either the first character, the centre character or the last character. Tab type Kind 1 Left 2 Centre 3 Right[Character Layout List]Character Layout ListA Character Layout List is a «LListB» of «Character Layout Codes». Character Layout Codes are almost always found in this form.[Character Layout Codes][Character Layout Code]Character Layout CodesAs explained above, a Character Layout Code consists of a type byte, telling what kind of layout code this is, followed by a type-dependent amount of data.Type Size Data Description18 B Set ??? on (01) or off(00)19 3B «Color» Set text color1A 3B «Color» Set ??? color (background?)1B B Set ???on (01) or off (00). Displayed with black background.1C L «Size» Change character point size1D B Italic on (01) or off (00)1E B Bold on (01) or off (001F B Superscript (01) or subscipt (02) or off (00)20 B Underline on (01) or off (00)21 B Strikethrough on (01) or off (00)22 * «Font» Change character font23 B Unknown24 B Unknown (5MXonly): always 00 ?Some remarks: several of the above codes are sometimes found in Word documents (especially after a clipboard copy from another program), but seem te be ignored by Word. This is more or less true for codes 18, 1A, 1B, 23 and 24 None of them can be generated directly by a Word user. 
5 @"Arial " Courier Newð"Times New Roman  " Courier New ð"Times New Roman " Courier Newðð"Times New Roman w
6 €0œ!OG=";41FHBK/2ò›Û~3&/
7 ‘9,/2C à@¢ 
8  €0œ&,H+%"8(,%*  ð"Times New Romanð"Times New Roman ð"Times New Romanð"Times New Roman  " Courier New  " Courier New " Courier Newð"Times New Roman ð"Times New Romanð"Times New Roman  " Courier New  " Courier New  " Courier New  " Courier NewO "Times New RomanÁð"Times New Roman "Times New Roman ð"Times New Romanð"Times New Roman ð"Times New Romanð"Times New Roman  " Courier New " Courier New   " Courier New "Times New Roman  ð"Times New Roman  ð"Times New Romanð"Times New Roman ð"Times New Romanð"Times New Roman  " Courier New  " Courier New"Word.app C"yC̉0

Properties

Name Value
svn:mime-type application/octet-stream

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26