removed obsolete issues (many of them fixed with AE)
[docutils.git] / sandbox / aahz / OO / OOtext.py
blob9651a10c631b6f9bba6c86973cde18e126054941
1 # Can't have blank line at beginning of XML
3 styles = '''<?xml version="1.0" encoding="UTF-8"?>
4 <!DOCTYPE office:document-styles PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd">
5 <office:document-styles xmlns:office="http://openoffice.org/2000/office" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" office:version="1.0">
6 <office:font-decls>
7 <style:font-decl style:name="StarSymbol" fo:font-family="StarSymbol" style:font-charset="x-symbol"/>
8 <style:font-decl style:name="Courier" fo:font-family="Courier" style:font-family-generic="modern" style:font-pitch="fixed"/>
9 <style:font-decl style:name="Arial Unicode MS" fo:font-family="&apos;Arial Unicode MS&apos;" style:font-pitch="variable"/>
10 <style:font-decl style:name="Thorndale" fo:font-family="Thorndale" style:font-family-generic="roman" style:font-pitch="variable"/>
11 </office:font-decls>
12 <office:styles>
13 <style:default-style style:family="graphics">
14 <style:properties draw:start-line-spacing-horizontal="0.283cm" draw:start-line-spacing-vertical="0.283cm" draw:end-line-spacing-horizontal="0.283cm" draw:end-line-spacing-vertical="0.283cm" fo:color="#000000" style:font-name="Thorndale" fo:font-size="12pt" fo:language="en" fo:country="US" style:font-name-complex="Arial Unicode MS" style:font-size-complex="12pt" style:language-complex="none" style:country-complex="none" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict">
15 <style:tab-stops/>
16 </style:properties>
17 </style:default-style>
18 <style:default-style style:family="paragraph">
19 <style:properties fo:color="#000000" style:font-name="Thorndale" fo:font-size="12pt" fo:language="en" fo:country="US" style:font-name-complex="Arial Unicode MS" style:font-size-complex="12pt" style:language-complex="none" style:country-complex="none" fo:hyphenate="false" fo:hyphenation-remain-char-count="2" fo:hyphenation-push-char-count="2" fo:hyphenation-ladder-count="no-limit" style:text-autospace="ideograph-alpha" style:punctuation-wrap="hanging" style:line-break="strict" style:tab-stop-distance="2.205cm"/>
20 </style:default-style>
21 <style:style style:name="Standard" style:family="paragraph" style:class="text"/>
22 <style:style style:name=".body" style:family="paragraph" style:parent-style-name="Standard"/>
23 <style:style style:name=".CALLOUT" style:family="paragraph" style:parent-style-name=".body"/>
24 <style:style style:name=".figure" style:family="paragraph" style:parent-style-name=".body"/>
25 <style:style style:name=".quotes" style:family="paragraph" style:parent-style-name=".body">
26 <style:properties fo:margin-left="2cm" fo:margin-right="2cm" fo:text-indent="0cm" style:auto-text-indent="false"/>
27 </style:style>
28 <style:list-style style:name=".bullet"/>
29 <style:style style:name=".ch title" style:family="paragraph" style:parent-style-name=".body">
30 <style:properties style:font-size="24pt" fo:font-size="24pt"/>
31 </style:style>
32 <style:style style:name=".head 1" style:family="paragraph" style:parent-style-name=".body">
33 <style:properties style:font-size="20pt" fo:font-size="20pt"/>
34 </style:style>
35 <style:style style:name=".head 2" style:family="paragraph" style:parent-style-name=".body">
36 <style:properties style:font-size="16pt" fo:font-size="16pt"/>
37 </style:style>
38 <style:style style:name=".code" style:family="paragraph" style:parent-style-name=".body">
39 <style:properties style:font-name="Courier"/>
40 </style:style>
41 <style:style style:name=".code first" style:family="paragraph" style:parent-style-name=".body"/>
42 <style:style style:name=".code last" style:family="paragraph" style:parent-style-name=".body"/>
43 <style:style style:name="Footnote Symbol" style:family="text"/>
44 <style:style style:name="Bullet Symbols" style:family="text">
45 <style:properties style:font-name="StarSymbol" fo:font-size="9pt" style:font-name-complex="StarSymbol" style:font-size-complex="9pt"/>
46 </style:style>
47 <style:style style:name="Footnote anchor" style:family="text">
48 <style:properties style:text-position="super 58%"/>
49 </style:style>
50 <style:style style:name="code" style:family="text">
51 <style:properties style:font-name="Courier"/>
52 </style:style>
53 <style:style style:name="italic" style:family="text">
54 <style:properties fo:font-style="italic"/>
55 </style:style>
56 <text:outline-style>
57 <text:outline-level-style text:level="1" style:num-format=""/>
58 <text:outline-level-style text:level="2" style:num-format=""/>
59 <text:outline-level-style text:level="3" style:num-format=""/>
60 <text:outline-level-style text:level="4" style:num-format=""/>
61 <text:outline-level-style text:level="5" style:num-format=""/>
62 <text:outline-level-style text:level="6" style:num-format=""/>
63 <text:outline-level-style text:level="7" style:num-format=""/>
64 <text:outline-level-style text:level="8" style:num-format=""/>
65 <text:outline-level-style text:level="9" style:num-format=""/>
66 <text:outline-level-style text:level="10" style:num-format=""/>
67 </text:outline-style>
68 <text:footnotes-configuration style:num-format="1" text:start-value="0" text:footnotes-position="page" text:start-numbering-at="document"/>
69 <text:endnotes-configuration style:num-format="i" text:start-value="0"/>
70 <text:linenumbering-configuration text:number-lines="false" text:offset="0.499cm" style:num-format="1" text:number-position="left" text:increment="5"/>
71 </office:styles>
72 <office:automatic-styles>
73 <style:page-master style:name="pm1">
74 <style:properties fo:page-width="20.999cm" fo:page-height="29.699cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="2.54cm" fo:margin-bottom="2.54cm" fo:margin-left="0cm" fo:margin-right="5cm" style:footnote-max-height="0cm">
75 <style:footnote-sep style:width="0.018cm" style:distance-before-sep="0.101cm" style:distance-after-sep="0.101cm" style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
76 </style:properties>
77 <style:header-style/>
78 <style:footer-style/>
79 </style:page-master>
80 <style:page-master style:name="pm2">
81 <style:properties fo:page-width="20.999cm" fo:page-height="29.699cm" style:num-format="1" style:print-orientation="portrait" fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm" style:footnote-max-height="0cm">
82 <style:footnote-sep style:adjustment="left" style:rel-width="25%" style:color="#000000"/>
83 </style:properties>
84 <style:header-style/>
85 <style:footer-style/>
86 </style:page-master>
87 </office:automatic-styles>
88 <office:master-styles>
89 <style:master-page style:name="Standard" style:page-master-name="pm1"/>
90 <style:master-page style:name="Footnote" style:page-master-name="pm2"/>
91 </office:master-styles>
92 </office:document-styles>
93 '''
95 manifest = '''<?xml version="1.0" encoding="UTF-8"?>
96 <!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
97 <manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
98 <manifest:file-entry manifest:media-type="application/vnd.sun.xml.writer" manifest:full-path="/"/>
99 <manifest:file-entry manifest:media-type="" manifest:full-path="Pictures/"/>
101 </manifest:manifest>
104 manifest_format = '<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="%s"/>'
106 content_header = '''<?xml version="1.0" encoding="UTF-8"?>
107 <!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd">
108 <office:document-content xmlns:office="http://openoffice.org/2000/office" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" office:class="text" office:version="1.0">
109 <office:script/>
110 <office:font-decls>
111 <style:font-decl style:name="Courier" fo:font-family="Courier" style:font-family-generic="modern" style:font-pitch="fixed"/>
112 <style:font-decl style:name="Arial Unicode MS" fo:font-family="&apos;Arial Unicode MS&apos;" style:font-pitch="variable"/>
113 <style:font-decl style:name="Thorndale" fo:font-family="Thorndale" style:font-family-generic="roman" style:font-pitch="variable"/>
114 </office:font-decls>
115 <office:automatic-styles/>
116 <office:body>
117 <text:sequence-decls>
118 <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
119 <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
120 <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
121 <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
122 </text:sequence-decls>
125 content_footer = '''</office:body>
126 </office:document-content>