Sophie

Sophie

distrib > PLD > ra > i686 > by-pkgid > 83995d227afd57ca93ac588166f02607 > files > 27

psiconv-devel-0.8.3-1.i686.rpm

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Layout Codes</TITLE>
</HEAD>
<HEAD>
  <META NAME="GENERATOR" CONTENT="psiconv-0.8.3">
<BODY>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Layout Codes"></FONT></P>
<P ALIGN=left><FONT SIZE=5 COLOR=#000000 FACE="Arial, Sans-Serif">Layout Codes</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">There 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.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Paragraph Layout List"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Paragraph Layout List</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">A Paragraph Layout List is a <A HREF="Basic_Elements.html#LListB">LListB</A> of <A HREF="Layout_Codes.html#Paragraph Layout Codes">Paragraph Layout Codes</A>. Paragraph Layout Codes are almost always found in this form.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Paragraph Layout Codes"><A NAME="Paragraph Layout Code"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Paragraph Layout Codes</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">As 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.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U>Type Size Data  Description</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">01  3B  <A HREF="Basic_Structures.html#Color">Color</A> Background color</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">02  L , <A HREF="Basic_Structures.html#Length">Length</A> Indent left</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">03  L  <A HREF="Basic_Structures.html#Length">Length</A> Indent right</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">04  L  <A HREF="Basic_Structures.html#Length">Length</A> (Un)indent first line (length relative to indent left setting)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">05  B     Hor. justify left (00), centre (01), right (02) or full (03)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">06  B     Vert. justify top (00) centre (01) or bottom (02) </FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">07  L  <A HREF="Basic_Structures.html#Size">Size</A>  Interline distance</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">08  B     Interline distance is minimum (00) or exact (01)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">09  L  <A HREF="Basic_Structures.html#Size">Size</A>  Line distance before paragraph start</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">0A  L  <A HREF="Basic_Structures.html#Size">Size</A>  Line distance after paragraph end</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">0B  B     Line distance options: Keep on one page on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">0C  B     Line distance options: Keep together with on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">0D  B     Line distance options: On next page on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">0E  B     Protection vs. single lines on pages disable (01) or enable (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">0F  B     Wrap data to fill sheet cell limits on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">10  L  <A HREF="Basic_Structures.html#Length">Length</A>  Distance of borders from text</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">11  9B  <A HREF="Layout_Codes.html#Border">Border</A> Top border</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">12  9B  <A HREF="Layout_Codes.html#Border">Border</A> Bottom border</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">13  9B  <A HREF="Layout_Codes.html#Border">Border</A> Left border</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">14  9B  <A HREF="Layout_Codes.html#Border">Border</A> Right border</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">15  *  <A HREF="Layout_Codes.html#Bullet">Bullet</A> Bullets</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">16  L  <A HREF="Basic_Structures.html#Length">Length</A> Set standard (left) tabs interval</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">17  5B  <A HREF="Layout_Codes.html#Tab">Tab</A>  Set extra tab</FONT><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">Some 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). Combined with bulltes, things are slightly different (see there).</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">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.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">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.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Borders"><A NAME="Border"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Borders</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">The four possible borders are specified separately, through initial type bytes 11 to 14. The border structure is shown below.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U> Offset Data Description</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0000 B   Type (see below)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0001 L   Thickness (always 01 for types 02 to 06)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0005 <A HREF="Basic_Structures.html#Color">Color</A> Color of border</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0008 B   Unknown (always 00 or 01 ?)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0009</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">The border type can have the following values:</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U> Border Type  Description</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  00    None</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  01    Solid single line</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  02    Solid double line</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  03    Dotted line</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  04    Dashed line</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  05    Dotsdashed line</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">  06    Dotdotdashed line</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">The thickness can only be defined for solid lines. It is expressed in units of 1/14 point (1/20 decimal), just like <A HREF="Basic_Structures.html#Sizes">Sizes</A> and <A HREF="Basic_Structures.html#Lengths">Lengths</A>. The three Unknown bytes may be another color code, or something completely different. The function of the final byte is also unclear.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Bullets"><A NAME="Bullet"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Bullets</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">A Bullet description is a <A HREF="Basic_Elements.html#BListB">BListB</A>. The complete structure is given below, including the initial length byte excluding the initial type byte 15.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U> Offset Data  Description</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0000 B   Size of the remainder of this section in bytes</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0001 <A HREF="Basic_Structures.html#Size">Size</A>  Font size of bullet in points</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0005 B   Character used for bullet in <A HREF="ASCII_Codes.html#ASCII">ASCII</A></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0006 B   Indent after bullet on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0007 <A HREF="Basic_Structures.html#Color">Color</A> Color of bullet</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0008  <A HREF="Fonts.html#Font">Font</A>  Font from which the bullet is taken (always Swiss?)</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">The combination of indents and bullets is somewhat involved. If Indent After Bullet is off, everything works as expected. If it is on, the bullet is located at the minmum of first line indent and left indent; the text (including the first line) is located at the maximum of first line indent and left indent.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Tabs"><A NAME="Tab"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Tabs</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">In 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.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U> Offset Data  Description</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0000 <A HREF="Basic_Structures.html#Length">Length</A> Location of the tab, relative to the left margin</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0004 B   Tab type (see below)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 0005</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">There 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.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U> Tab type  Kind</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 1    Left</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 2    Centre</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"> 3    Right</FONT><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Character Layout List"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Character Layout List</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">A Character Layout List is a <A HREF="Basic_Elements.html#LListB">LListB</A> of <A HREF="Layout_Codes.html#Character Layout Codes">Character Layout Codes</A>. Character Layout Codes are almost always found in this form.</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><A NAME="Character Layout Codes"><A NAME="Character Layout Code"></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><U>Character Layout Codes</U></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">As 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.</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U><BR></B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace"><B><U>Type Size Data  Description</B></U></FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">18  B     Set ??? on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">19  3B  <A HREF="Basic_Structures.html#Color">Color</A> Set text color</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">1A  3B  <A HREF="Basic_Structures.html#Color">Color</A> Set ??? color (background?)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">1B  B     Set ??? on (01) or off (00). Displayed with black background.</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">1C  L  <A HREF="Basic_Structures.html#Size">Size</A>  Change character point size</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">1D  B     Italic on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">1E  B     Bold on (01) or off (00</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">1F  B     Superscript (01) or subscipt (02) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">20  B     Underline on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">21  B     Strikethrough on (01) or off (00)</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">22  *  <A HREF="Fonts.html#Font">Font</A>  Change character font</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">23  B     Unknown</FONT></P>
<P ALIGN=left><FONT SIZE=1 COLOR=#000000 FACE="Courier New, Monospace">24  B     Unknown (5MX only): always 00 ?</FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
<P ALIGN=left><FONT SIZE=3 COLOR=#000000 FACE="Times New Roman, Serif">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.</FONT></P>
<P ALIGN=left><FONT SIZE=2 COLOR=#000000 FACE="Times New Roman, Serif"><BR></FONT></P>
</BODY>
</HTML>