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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 45 Revision 46
17mU 17mU-
2d"Times New RomanN1 2d"Times New RomanN1
3< *Koptekst 2L 3< *Koptekst 2L
4< *Koptekst 3L *OpsomtekenOSwissh3r h3r efdefLd.AQ[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 (0) 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 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 Striped line 05 Dotstriped line 06 Dotdotstriped 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 tab. 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 Description19 3B Color Set text color1A 3B Color Set ??? color1C 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 Strikeout on (01) or off (00)22 * Font Change character fontSome remarks: the use of code 1A is unclear. It is found in the dutch Welcome To The Psion 5 document, but Word seems to ignore it. @"Arial " Courier New"Times New Roman " Courier New "Times New Roman" Courier New"Times New Romanr 0!OG<";41FHBK/2~3 / 9,/2C @   0+%"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 New "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"ys 4< *Koptekst 3L *OpsomtekenOSwissh3r h3r efdefLd.AmR[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 (0) 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 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 Striped line 05 Dotstriped line 06 Dotdotstriped 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 tab. 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 Description19 3B Color Set text color1A 3B Color Set ??? color1C 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 Strikeout on (01) or off (00)22 * Font Change character font24 B Unknown (5MXonly): always 00 ?Some remarks: the use of code 1A is unclear. It is found in the dutch Welcome To The Psion 5 document, but Word seems to ignore it. @"Arial " Courier New"Times New Roman " Courier New "Times New Roman" Courier New"Times New Romans 0!OG<";41FHBK/2~3 / 9,/2C @   0+%"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 New "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"y 

Legend:
Removed from v.45  
changed lines
  Added in v.46

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