1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/textrendering/texthandling/testdata/RT1.PML Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,47 @@
1.4 +<G>
1.5 +<P>
1.6 +This is the first piece of "PML" code used to test the Rich Text
1.7 +component of the Editable Text hierarchy.
1.8 +<P>
1.9 +First off, each paragraph is specified with a different paragraph
1.10 +format attribute.
1.11 +<P LEFTMARGIN=1440>
1.12 +The idea is that using this tool we can quickly and easily build up
1.13 +large complex rich text documents with lots of complex formatting.
1.14 +This paragraph, for example, has its left margin set to 1".
1.15 +<P RIGHTMARGIN=1440>
1.16 +...whilst this paragraph has a right margin of 1" also. However, we
1.17 +are currently in the process of making each paragraph inherit
1.18 +attributes from the preceeding one, so this paragraph may also have
1.19 +the one inch left margin, though currently it may not.
1.20 +<P INDENT=2880>
1.21 +This next paragraph should be long enough to word wrap to enable the
1.22 +viewer to observe the attribute set here. This paragraph has a first
1.23 +line indent set to 2". The appearance should be that the first line
1.24 +is indented further than the following lines, a sort of hanging
1.25 +indent if you like.
1.26 +<P LINESPACING=720>
1.27 +Now we move onto line spacing. The line spacing for this paragraph
1.28 +has been set to one half inch. (This is stores in its twips platinum
1.29 +bar value of 720 twips. One twip is a twentieth of a point, and
1.30 +there are seventy-two points to the inch. Therefore, 20*72=1440.
1.31 +<P LINESPACINGCONTROL=EXACTLY LINESPACING=360>
1.32 +This paragraph sets the line spacing control to 'exactly' 360 twips,
1.33 +or one quarter of an inch. Here's some rubbish to fill a couple of
1.34 +lines---->jfdjkf kfj kl jlsdkfjdlsfjwoifj iojf lkfj ldkfjdslkfj sl;kj
1.35 +fklsjlfjk fjkj flkdfj slfk klf jlskjlkdj flkdjflskjf lk fjlkdfj
1.36 +lskfslk lksd fjkls fjklsdj flsfjskdfldsj fksdj fklj j fls fs ks lfks
1.37 +jlskd jflsdkfjlsdkfjklsdjfklsdj fsldfjlsfjslfj lsfjlsj flsdfj
1.38 +lsfjlsdfjlsdjflsdjflsdfjlsdkfjsldkfjlsdjflsdkjflsdkjflksdjflsdkfjlsdfj
1.39 +lsdsdlk l. Hope this worked !!!!!
1.40 +<P KEEPTOGETHER KEEPWITHNEXT>
1.41 +This paragraph has the keep together flag set, and the keep with next
1.42 +flag also set.
1.43 +<P STARTNEWPAGE WIDOWORPHAN>
1.44 +...whilst this paragraph is formatted to start on a new page and has
1.45 +widow/orphan control enabled.
1.46 +<P SPACEBEFORE=123>
1.47 +And there you have it......
1.48 +<P SPACEAFTER=3432>
1.49 +...the last paragraph. THE END.
1.50 +