os/textandloc/textrendering/texthandling/testdata/RT1.PML
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 <G>
     2 <P>
     3 This is the first piece of "PML" code used to test the Rich Text
     4 component of the Editable Text hierarchy.
     5 <P>
     6 First off, each paragraph is specified with a different paragraph
     7 format attribute.
     8 <P LEFTMARGIN=1440>
     9 The idea is that using this tool we can quickly and easily build up
    10 large complex rich text documents with lots of complex formatting. 
    11 This paragraph, for example, has its left margin set to 1".
    12 <P RIGHTMARGIN=1440>
    13 ...whilst this paragraph has a right margin of 1" also.  However, we
    14 are currently in the process of making each paragraph inherit
    15 attributes from the preceeding one, so this paragraph may also have
    16 the one inch left margin, though currently it may not.
    17 <P INDENT=2880>
    18 This next paragraph should be long enough to word wrap to enable the
    19 viewer to observe the attribute set here.  This paragraph has a first
    20 line indent set to 2".  The appearance should be that the first line
    21 is indented further than the following lines, a sort of hanging
    22 indent if you like.
    23 <P LINESPACING=720>
    24 Now we move onto line spacing.  The line spacing for this paragraph
    25 has been set to one half inch.  (This is stores in its twips platinum
    26 bar value of 720 twips.  One twip is a twentieth of a point, and
    27 there are seventy-two points to the inch.  Therefore, 20*72=1440.
    28 <P LINESPACINGCONTROL=EXACTLY LINESPACING=360>
    29 This paragraph sets the line spacing control to 'exactly' 360 twips,
    30 or one quarter of an inch. Here's some rubbish to fill a couple of
    31 lines---->jfdjkf kfj kl jlsdkfjdlsfjwoifj iojf lkfj ldkfjdslkfj sl;kj
    32 fklsjlfjk fjkj flkdfj slfk klf jlskjlkdj flkdjflskjf lk fjlkdfj
    33 lskfslk lksd fjkls fjklsdj flsfjskdfldsj fksdj fklj j fls fs ks lfks
    34 jlskd jflsdkfjlsdkfjklsdjfklsdj fsldfjlsfjslfj lsfjlsj flsdfj
    35 lsfjlsdfjlsdjflsdjflsdfjlsdkfjsldkfjlsdjflsdkjflsdkjflksdjflsdkfjlsdfj
    36 lsdsdlk l.  Hope this worked !!!!!
    37 <P KEEPTOGETHER KEEPWITHNEXT>
    38 This paragraph has the keep together flag set, and the keep with next
    39 flag also set.
    40 <P STARTNEWPAGE WIDOWORPHAN>
    41 ...whilst this paragraph is formatted to start on a new page and has
    42 widow/orphan control enabled.
    43 <P SPACEBEFORE=123>
    44 And there you have it......
    45 <P SPACEAFTER=3432>
    46 ...the last paragraph. THE END.
    47