<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?> 
<!DOCTYPE document SYSTEM "rml_1_0.dtd"> 
<document filename="test_022_paras_oas.pdf"> 


<template pageSize="(595, 842)" leftMargin="72" showBoundary="1">
<pageTemplate id="main">
	<pageGraphics>
		<setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 23: Oas</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
	</pageGraphics>
	<frame id="second" x1="35" y1="45" width="525" height="590"/>
	</pageTemplate>
	<pageTemplate id="main2">
	<pageGraphics>
		<setFont name="Helvetica-Bold" size="18"/>
		    <drawString x="35" y="783">RML Example 23: Oas</drawString>
			<image file="logo_no_bar.png" preserveAspectRatio="1" x="488" y="749" width="72" height="72"/>
    		<image file="strapline.png" preserveAspectRatio="1" x="35" y="0" width="525" />
	</pageGraphics>
	<frame  id="second" x1="35" y1="45" width="525" height="685" overlapAttachedSpace="1"/>
	</pageTemplate>
</template>

<stylesheet>
	<initialize>
	<alias id="style.normal" value="style.Normal"/>
	</initialize>

	<paraStyle name="h1"
	fontName="Courier-Bold"
	fontSize="12"
	spaceBefore = "0.5 cm"
	/>
	
	<paraStyle name="style1"
	fontName="Courier"
	fontSize="10"
	/>

	<paraStyle name="style2"
	parent="style1"
	leftIndent = "1in"
	/>

	<paraStyle name="style3"
	parent="style1"
	rightIndent = "1in"
	/>

	<paraStyle name="style4"
	parent="style1"
	spaceBefore = "2cm"
	/>

	<paraStyle name="style5"
	parent="style1"
	spaceAfter = "2cm"
	/>

	<paraStyle name="style6"
	parent="style1"
	firstLineIndent = "2cm"
	/>

	<paraStyle name="style7"
	parent="style1"
	leading = "15"
	/>
	<!-- NB Leading isn't just the space between lines - it is
	expressed as the height of the line PLUS the space between
	lines. This leading of 15 is equal to a space of 5 pts between
	lines.-->

	<paraStyle name="style8"
	parent="style1"
	bulletFontName = "ZapfDingbats"
	bulletFontSize = "5"
	/>

	<paraStyle name="style9"
	parent="style8"
	bulletFontSize = "10"
	bulletIndent = "20"
	/>

	<paraStyle name="style10"
	parent="style9"
	bulletIndent = "20"
	leftIndent = "35"
	/>

	<paraStyle name="style11"
	parent="style1"
	alignment = "left"
	/>

	<paraStyle name="style12"
	parent="style1"
	alignment = "right"
	/>

	<paraStyle name="style13"
	parent="style1"
	alignment = "center"
	/>

	<paraStyle name="style14"
	parent="style1"
	alignment = "justify"
	/>

	<paraStyle name="style15"
	parent="style10"
	bulletFontSize = "5"
	alignment = "left"
	/>

	<paraStyle name="style16"
	parent="style10"
	bulletFontSize = "5"
	alignment = "right"
	/>

	<paraStyle name="style17"
	parent="style10"
	bulletFontSize = "5"
	alignment = "center"
	/>

	<paraStyle name="style18"
	parent="style10"
	bulletFontSize = "5"
	alignment = "justify"
	/>

	<paraStyle name="style20"
	parent="style1"
	textColor = "red"
	spaceBefore="1cm"
	spaceAfter="2cm"
	/>
	
	<paraStyle name="style21"
	parent="style1"
	textColor = "green"
	spaceBefore="1cm"
	spaceAfter="2cm"
	/>

	<paraStyle name="style22"
	parent="style1"
	textColor = "blue"
	spaceBefore="1cm"
	spaceAfter="2cm"
	/>


    <!-- Colours by Hex value -->
    <!-- NB THIS CURRENTLY DOESN'T WORK! -->
    <!--
    <paraStyle name="style23"
	parent="style1"
	textColor = "#FF0000"
	/>
	
	<paraStyle name="style24"
	parent="style1"
	textColor = "#00FF00"
	/>

	<paraStyle name="style25"
	parent="style1"
	textColor = "#0000FF"
	/>
	-->


    <!-- Colours by RGB value -->
    <!-- NB THIS CURRENTLY DOESN'T WORK! -->
    <!--
    <paraStyle name="style26"
	parent="style1"
	textColor = "1,0,0"
	/>
	
	<paraStyle name="style27"
	parent="style1"
	textColor = "0,1,0"
	/>

	<paraStyle name="style28"
	parent="style1"
	textColor = "0,0,1"
	/>
	-->

	<paraStyle name="bugReport"
	parent="h1"
	spaceBefore = "0"
	textColor = "red"
	/>

	<paraStyle name="styleB"
	fontName="Courier"
	fontSize="10"
	borderWidth="1"
	borderColor="red"
	borderRadius="5"
	borderPadding="3"
	/>
	<paraStyle name="styleB1"
	fontName="Courier"
	fontSize="10"
	borderWidth="1"
	borderColor="blue"
	borderRadius="0"
	borderPadding="0"
	/>
	<paraStyle name="intro"  fontName="Helvetica" fontSize="12" leading="12" spaceAfter="12"/>
		
</stylesheet>


<story>
<storyPlace x="35" y="660" width="525" height="73" origin="page">
<para style="intro">RML (Report Markup Language) is ReportLab's own language for specifying the appearance of a printed page, which is converted into PDF by the utility rml2pdf.</para>
<hr color="white" thickness="8pt"/>
<para style="intro">These RML samples showcase techniques and features for generating various types of ouput and are distributed within our commercial package as test cases. Each should be self explanatory and stand alone.</para>
<illustration height="3" width="525" align="center">
<fill color= "(0,0.99,0.97,0.0)" />
<rect x="0" y = "-12" width="525" height="3" round="1" fill="1" stroke = "Yes" />
</illustration>
</storyPlace>
<setNextTemplate name="main2"/>

<para style="h1">Overlap Attached Space tests (define please!)</para>
<para style="style1">This page tests out a number of attributes of the <b>paraStyle</b> tag.
This paragraph is in a style we have called "style1". It should be a normal paragraph, set in Courier 12 pt.
It should be a normal paragraph, set in Courier (not bold).
It should be a normal paragraph, set in Courier 12 pt.</para>

<para style="h1">Paragraph 2: Indent Left</para>
<para style="style2">This paragraph is in a style we have called "style2". It should be indented on the left. 
It should be indented on the left by 1 inch. 
It should be indented on the left. </para>

<para style="h1">Paragraph 3: Indent Right</para>
<para style="style3">This paragraph is in a style we have called "style3". It should be indented on the right. It should be indented on the right by 1 inch. It should be indented on the right. </para>

<para style="h1">Paragraph 4: Space Before</para>
<para style="style4">This paragraph is in a style we have called "style4". It should be have a space before it.  It should be have a space before it of 2 centimeters. It should be have a space before it.</para>

<para style="h1">Paragraph 5: Space After</para>
<para style="style5">This paragraph is in a style we have called "style5". It should be have a space after it.  It should be have a space after it of 2 centimeters. It should be have a space after it.</para>

<para style="h1">Paragraph 6: First Line Indent</para>
<para style="style6">This paragraph is in a style we have called "style6".It should be have an indented first line.  It should be have an first line indented by 2 centimeters. It should be have an indented first line.</para>
<para style="h1">Paragraph 7: Leading</para>
<para style="style7">This paragraph is in a style we have called "style7". It should be using leading. It should have a gap of 5 points between each line. It should be using leading. It should have a gap of 5 pt between each line. It should be using leading. The gap between lines should be half of the height of a line. This paragraph should look like it has a line spacing of "1.5 lines" </para>

<para style="h1">Paragraphs 8-12: Simple Bullet Points</para>
<para style="style8" bulletText="l"><b>Parastyle name="style8" parent="style1" bulletFontName = "ZapfDingbats" bulletFontSize = "5"</b></para>
<para style="style8" bulletText="l">These paragraphs are in a style we have called "style8"</para>
<para style="style8" bulletText="l">These five lines should have bullet points.</para>
<para style="style8" bulletText="l">The bullet font is ZapfDingbats.</para>
<para style="style8" bulletText="l">The bullet size is 5 points</para>
<para style="style8" bulletText="l">This is a long line to see how multi-line bullets look: These paragraphs are in a style we have called "style8". These four lines should have bullet points. The bullet font is ZapfDingbats. The bullet size is 5 points</para>

<para style="h1">Paragraph 13-18: Indented Bullet Points</para>
<para style="style9" bulletText="*"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "10" bulletIndent = "20"</b></para>
<para style="style9" bulletText="*">These paragraphs are in a style we have called "style9"</para>
<para style="style9" bulletText="*">These five lines should have <i>indented</i> bullet points.</para>
<para style="style9" bulletText="*">Bullet points should look like a pointing hand.</para>
<para style="style9" bulletText="*">Bullet font is still ZapfDingbats, and bullet size is 10 points.</para>
<para style="style9" bulletText="*">The bullet indent is 20 points</para>
<para style="style9" bulletText="*">This is a long line to see how multi-line bullets look: These paragraphs are in a style we have called "style9". These four lines should have <i>indented</i> bullet points. Bullet points should look like a pointing hand. Bullet font is still ZapfDingbats, and bullet size is 10 points. The bullet indent is 20 points</para>

<para style="h1">Paragraph 19-24: Indented Bullet Points with a Left Indent for the Text</para>
<para style="style10" bulletText="*"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "10" bulletIndent = "20" leftIndent = "35"</b></para>
<para style="style10" bulletText="*">These paragraphs are in a style we have called "style10"</para>
<para style="style10" bulletText="*">These four lines should have <i>indented</i> bullet points, with the text indented as well.</para>
<para style="style10" bulletText="*">Bullet points should look like a pointing hand.</para>
<para style="style10" bulletText="*">Bullet font is still ZapfDingbats, and bullet size is 10 points.</para>
<para style="style10" bulletText="*">The bullet indent is 20 points, and the text indent is 35 points</para>
<para style="style10" bulletText="*">This is a long line to see how multi-line bullets look: These paragraphs are in a style we have called "style10". These four lines should have <i>indented</i> bullet points, with the text indented as well. Bullet points should look like a pointing hand. Bullet font is still ZapfDingbats, and bullet size is 10 points.</para>

<para style="h1">Paragraph 25: Left Justified Paragraphs</para>
<para style="style11">This paragraph is in a style we have called "style11". It should be left justified. It has an argument which states 'alignment = "left"'. It should be left justified.  It should be aligned to the left. </para>

<para style="h1">Paragraph 26: Right Justified Paragraphs</para>
<para style="style12">This paragraph is in a style we have called "style12". It should be right justified. It has an argument which states 'alignment = "right"'. It should be right justified.  It should be aligned to the right.</para>

<para style="h1">Paragraph 27: Centered Paragraphs</para>
<para style="style13">This paragraph is in a style we have called "style13".It should be center justified. It has an argument which states 'alignment = "center"'. It should be centered.  It should be aligned to the center.</para>

<para style="h1">Paragraph 28: Justified Paragraphs</para>
<para style="style14">This paragraph is in a style we have called "style14". It should be justified. It has an argument which states 'alignment = "justify"'. It should be justified.</para>

<para style="h1">Paragraphs 29-32: Bullets using left align, right align, centered and justify.</para>
<para style="style15" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" 	alignment = "left"</b></para>
<para style="style15" bulletText="l">This is "style15", bullets with a left alignment. (The bullets in this style are based on "style10")</para>
<para style="style16" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" 	alignment = "right"</b></para>
<para style="style16" bulletText="l">This is "style16", bullets with a right alignment.(The bullets in this style are based on "style10")</para>
<para style="style17" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" 	alignment = "center"</b></para>
<para style="style17" bulletText="l">This is "style17", bullets with a center alignment.(The bullets in this style are based on "style10")</para>
<para style="style18" bulletText="l"><b>bulletFontName = "ZapfDingbats" bulletFontSize = "5" bulletIndent = "20" leftIndent = "35" 	alignment = "justify"</b></para>
<para style="style18" bulletText="l">This is "style18", bullets with a justified paragraph.(The bullets in this style are based on "style10")</para>
<para style="style1">These all look wierd, but most people do not actually use these styles because they look so wrong.</para>

<para style="h1">Paragraph 33-35: Using Colours by Colour Name</para>
<para style="style20">This text should be <b>RED</b></para>
<para style="style21">This text should be <b>GREEN</b></para>
<para style="style22">This text should be <b>BLUE</b></para>

<!-- THESE CURRENTLY DON'T WORK - SEE THE STYLES SECTION -->
<!--
<para style="h1">Paragraph 36-38: Using Colours by Hex Value</para>
<para style="style23">This text should be <b>RED</b></para>
<para style="style24">This text should be <b>GREEN</b></para>
<para style="style25">This text should be <b>BLUE</b></para>

<para style="h1">Paragraph 39-41: Using Colours by RGB Value</para>
<para style="style26">This text should be <b>RED</b></para>
<para style="style27">This text should be <b>GREEN</b></para>
<para style="style28">This text should be <b>BLUE</b></para>
-->

<para style="bugReport">You <b>SHOULD</b> be able to specify colours
by all the means available to reportlab.lib.colors. Currently, you
<b>cannot</b> use RGB or HEX values...</para>

<para style="h1">Last Paragraph: Para Tags and Paragraph Content</para>
<para style="style1">
    This should <i>not</i> have any extra spaces at the start of <b>this</b>
    line (though there should be at the start of the heading). RML should ignore
    additional whitespace, and you should be able to format the actual paragraphs
    as you like. The text in this paragraph starts on a different line to the
    actual "para" tag.
</para>


<para style="h1">Quoting and escaping</para>
<para style="style1">
    This checks for all the possible quotes: &amp;amp; = &amp;, 
    &amp;lt; = &lt;, &amp;gt; = &gt;, &amp;apos; = &apos;, &amp;quot; = &quot;, 
    &amp;pound; = &pound;.
</para>
<para style="style1">
<i>If this is not italic</i>, <b>and this is not bold</b>, even normal angle brackets are broken.
</para>
<para style="styleB">
	This paragraph should be in a bordered box with a red outline and gently curving corners. If it is not I will attack my colleague who suggested this could be done easily.
</para>
<para style="styleB1">
	This paragraph should be in a bordered box with a blue outline and sharp corners and no padding. If it is not I will attack my colleague who suggested this could be done easily.
</para>


</story>

</document>
