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