diff options
| author | smerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-07-31 18:52:41 +0000 |
|---|---|---|
| committer | smerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-07-31 18:52:41 +0000 |
| commit | d74b6ceca54f9126baa629f80a984e4eab42c9e5 (patch) | |
| tree | b7e68481fad000393bc4b78a7901fb753a3f1bcc /sandbox/odf2docutils/tests/textSimple | |
| parent | 862e65e74e8749c30589abb3c398971b356f070d (diff) | |
| download | docutils-d74b6ceca54f9126baa629f80a984e4eab42c9e5.tar.gz | |
First usable version. Converts bullet lists and plain text.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7705 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/odf2docutils/tests/textSimple')
28 files changed, 311 insertions, 0 deletions
diff --git a/sandbox/odf2docutils/tests/textSimple/expected/empty.xml b/sandbox/odf2docutils/tests/textSimple/expected/empty.xml new file mode 100644 index 000000000..9984e1a84 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/empty.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><paragraph/></document> diff --git a/sandbox/odf2docutils/tests/textSimple/expected/nestedList.xml b/sandbox/odf2docutils/tests/textSimple/expected/nestedList.xml new file mode 100644 index 000000000..68294d370 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/nestedList.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><bullet_list bullet="*"><list_item><paragraph>First level</paragraph><bullet_list bullet="*"><list_item><paragraph>Second level</paragraph></list_item></bullet_list></list_item><list_item><paragraph>First again</paragraph><bullet_list bullet="*"><list_item><paragraph>Second again</paragraph></list_item><list_item><paragraph>Once more</paragraph><bullet_list bullet="*"><list_item><paragraph>Third level</paragraph><bullet_list bullet="*"><list_item><paragraph>And number four</paragraph></list_item></bullet_list></list_item></bullet_list></list_item><list_item><paragraph>Closing on second level</paragraph></list_item></bullet_list></list_item></bullet_list></document> diff --git a/sandbox/odf2docutils/tests/textSimple/expected/oneLine.xml b/sandbox/odf2docutils/tests/textSimple/expected/oneLine.xml new file mode 100644 index 000000000..098829871 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/oneLine.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><paragraph>One line.</paragraph></document> diff --git a/sandbox/odf2docutils/tests/textSimple/expected/simpleList.xml b/sandbox/odf2docutils/tests/textSimple/expected/simpleList.xml new file mode 100644 index 000000000..d344de0a8 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/simpleList.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><bullet_list bullet="*"><list_item><paragraph>First bullet</paragraph></list_item><list_item><paragraph>Second bullet</paragraph></list_item></bullet_list></document> diff --git a/sandbox/odf2docutils/tests/textSimple/expected/twoParas.xml b/sandbox/odf2docutils/tests/textSimple/expected/twoParas.xml new file mode 100644 index 000000000..bac0ae1aa --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/twoParas.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><paragraph>First paragraph.</paragraph><paragraph>Second paragraph.</paragraph></document> diff --git a/sandbox/odf2docutils/tests/textSimple/expected/wrongNesting.xml b/sandbox/odf2docutils/tests/textSimple/expected/wrongNesting.xml new file mode 100644 index 000000000..b471597f0 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/wrongNesting.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><bullet_list bullet="*"><list_item><paragraph>First level</paragraph><bullet_list bullet="*"><list_item><paragraph>Second level</paragraph></list_item></bullet_list></list_item></bullet_list><bullet_list bullet="*"><list_item><bullet_list bullet="*"><list_item><paragraph>Second but restarted</paragraph></list_item></bullet_list></list_item></bullet_list></document> diff --git a/sandbox/odf2docutils/tests/textSimple/expected/wrongerNesting.xml b/sandbox/odf2docutils/tests/textSimple/expected/wrongerNesting.xml new file mode 100644 index 000000000..95af877ff --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/expected/wrongerNesting.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd"> +<document><bullet_list bullet="*"><list_item><paragraph>First level</paragraph><bullet_list bullet="*"><list_item><paragraph>Second level</paragraph></list_item></bullet_list></list_item></bullet_list><bullet_list bullet="*"><list_item><bullet_list bullet="*"><list_item><paragraph>Second but restarted</paragraph></list_item></bullet_list></list_item><list_item><paragraph>First again</paragraph></list_item></bullet_list></document> diff --git a/sandbox/odf2docutils/tests/textSimple/filterunit.cfg b/sandbox/odf2docutils/tests/textSimple/filterunit.cfg new file mode 100644 index 000000000..f72b79e7e --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/filterunit.cfg @@ -0,0 +1,4 @@ +command = xsltproc +arguments = ../../odf2docutils.xsl $< +inputExtension = .xml +expectedExtension = .xml diff --git a/sandbox/odf2docutils/tests/textSimple/input/empty.xml b/sandbox/odf2docutils/tests/textSimple/input/empty.xml new file mode 100644 index 000000000..9ca1522db --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/empty.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:p text:style-name="Standard"/> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/input/nestedList.xml b/sandbox/odf2docutils/tests/textSimple/input/nestedList.xml new file mode 100644 index 000000000..0fbaadf89 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/nestedList.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="OpenSymbol" svg:font-family="OpenSymbol"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:list xml:id="list19383775571" text:style-name="List_20_1"> + <text:list-item> + <text:p text:style-name="List_20_1">First level</text:p> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_1">Second level</text:p> + </text:list-item> + </text:list> + </text:list-item> + <text:list-item> + <text:p text:style-name="List_20_1">First again</text:p> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_1">Second again</text:p> + </text:list-item> + <text:list-item> + <text:p text:style-name="List_20_1">Once more</text:p> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_1">Third level</text:p> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_1">And number four</text:p> + </text:list-item> + </text:list> + </text:list-item> + </text:list> + </text:list-item> + <text:list-item> + <text:p text:style-name="List_20_1">Closing on second level</text:p> + </text:list-item> + </text:list> + </text:list-item> + </text:list> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/input/oneLine.xml b/sandbox/odf2docutils/tests/textSimple/input/oneLine.xml new file mode 100644 index 000000000..c04e01269 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/oneLine.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:p text:style-name="Standard">One line.</text:p> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/input/simpleList.xml b/sandbox/odf2docutils/tests/textSimple/input/simpleList.xml new file mode 100644 index 000000000..34ba7b17b --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/simpleList.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="OpenSymbol" svg:font-family="OpenSymbol"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:list xml:id="list4010148311" text:style-name="List_20_1"> + <text:list-item> + <text:p text:style-name="List_20_1">First bullet</text:p> + </text:list-item> + <text:list-item> + <text:p text:style-name="List_20_1">Second bullet</text:p> + </text:list-item> + </text:list> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/input/twoParas.xml b/sandbox/odf2docutils/tests/textSimple/input/twoParas.xml new file mode 100644 index 000000000..a8aa16c15 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/twoParas.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:p text:style-name="Standard">First paragraph.</text:p> + <text:p text:style-name="Standard">Second paragraph.</text:p> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/input/wrongNesting.xml b/sandbox/odf2docutils/tests/textSimple/input/wrongNesting.xml new file mode 100644 index 000000000..1515a1068 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/wrongNesting.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="OpenSymbol" svg:font-family="OpenSymbol"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:list xml:id="list15051701711" text:style-name="List_20_1"> + <text:list-item> + <text:p text:style-name="List_20_1">First level</text:p> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_1">Second level</text:p> + </text:list-item> + </text:list> + </text:list-item> + </text:list> + <text:list xml:id="list1273767641" text:style-name="List_20_2"> + <text:list-item> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_2">Second but restarted</text:p> + </text:list-item> + </text:list> + </text:list-item> + </text:list> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/input/wrongerNesting.xml b/sandbox/odf2docutils/tests/textSimple/input/wrongerNesting.xml new file mode 100644 index 000000000..1ad5ad744 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/input/wrongerNesting.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2"> + <office:scripts/> + <office:font-face-decls> + <style:font-face style:name="Lohit Hindi1" svg:font-family="'Lohit Hindi'"/> + <style:font-face style:name="OpenSymbol" svg:font-family="OpenSymbol"/> + <style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> + <style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="swiss" style:font-pitch="variable"/> + <style:font-face style:name="Droid Sans Fallback" svg:font-family="'Droid Sans Fallback'" style:font-family-generic="system" style:font-pitch="variable"/> + <style:font-face style:name="Lohit Hindi" svg:font-family="'Lohit Hindi'" style:font-family-generic="system" style:font-pitch="variable"/> + </office:font-face-decls> + <office:automatic-styles/> + <office:body> + <office:text> + <text:sequence-decls> + <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/> + <text:sequence-decl text:display-outline-level="0" text:name="Table"/> + <text:sequence-decl text:display-outline-level="0" text:name="Text"/> + <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> + </text:sequence-decls> + <text:list xml:id="list15051701711" text:style-name="List_20_1"> + <text:list-item> + <text:p text:style-name="List_20_1">First level</text:p> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_1">Second level</text:p> + </text:list-item> + </text:list> + </text:list-item> + </text:list> + <text:list xml:id="list1273767641" text:style-name="List_20_2"> + <text:list-item> + <text:list> + <text:list-item> + <text:p text:style-name="List_20_2">Second but restarted</text:p> + </text:list-item> + </text:list> + </text:list-item> + <text:list-item> + <text:p text:style-name="List_20_2">First again</text:p> + </text:list-item> + </text:list> + </office:text> + </office:body> +</office:document-content>
\ No newline at end of file diff --git a/sandbox/odf2docutils/tests/textSimple/source/empty.odt b/sandbox/odf2docutils/tests/textSimple/source/empty.odt Binary files differnew file mode 100644 index 000000000..c5ab9815b --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/empty.odt diff --git a/sandbox/odf2docutils/tests/textSimple/source/nestedList.odt b/sandbox/odf2docutils/tests/textSimple/source/nestedList.odt Binary files differnew file mode 100644 index 000000000..af40de513 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/nestedList.odt diff --git a/sandbox/odf2docutils/tests/textSimple/source/oneLine.odt b/sandbox/odf2docutils/tests/textSimple/source/oneLine.odt Binary files differnew file mode 100644 index 000000000..98dbf31de --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/oneLine.odt diff --git a/sandbox/odf2docutils/tests/textSimple/source/simpleList.odt b/sandbox/odf2docutils/tests/textSimple/source/simpleList.odt Binary files differnew file mode 100644 index 000000000..6f09b9ff1 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/simpleList.odt diff --git a/sandbox/odf2docutils/tests/textSimple/source/twoParas.odt b/sandbox/odf2docutils/tests/textSimple/source/twoParas.odt Binary files differnew file mode 100644 index 000000000..c199f9c7f --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/twoParas.odt diff --git a/sandbox/odf2docutils/tests/textSimple/source/wrongNesting.odt b/sandbox/odf2docutils/tests/textSimple/source/wrongNesting.odt Binary files differnew file mode 100644 index 000000000..e5220b153 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/wrongNesting.odt diff --git a/sandbox/odf2docutils/tests/textSimple/source/wrongerNesting.odt b/sandbox/odf2docutils/tests/textSimple/source/wrongerNesting.odt Binary files differnew file mode 100644 index 000000000..3c3651d2e --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/source/wrongerNesting.odt diff --git a/sandbox/odf2docutils/tests/textSimple/target/nestedList.rst b/sandbox/odf2docutils/tests/textSimple/target/nestedList.rst new file mode 100644 index 000000000..49a4f8b3a --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/target/nestedList.rst @@ -0,0 +1,15 @@ +* First level + + * Second level + +* First again + + * Second again + + * Once more + + * Third level + + * And number four + + * Closing on second level diff --git a/sandbox/odf2docutils/tests/textSimple/target/oneLine.rst b/sandbox/odf2docutils/tests/textSimple/target/oneLine.rst new file mode 100644 index 000000000..9557aa1b4 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/target/oneLine.rst @@ -0,0 +1 @@ +One line. diff --git a/sandbox/odf2docutils/tests/textSimple/target/simpleList.rst b/sandbox/odf2docutils/tests/textSimple/target/simpleList.rst new file mode 100644 index 000000000..dd3117054 --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/target/simpleList.rst @@ -0,0 +1,3 @@ +* First bullet + +* Second bullet diff --git a/sandbox/odf2docutils/tests/textSimple/target/twoParas.rst b/sandbox/odf2docutils/tests/textSimple/target/twoParas.rst new file mode 100644 index 000000000..f6c11daeb --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/target/twoParas.rst @@ -0,0 +1,3 @@ +First paragraph. + +Second paragraph. diff --git a/sandbox/odf2docutils/tests/textSimple/target/wrongNesting.rst b/sandbox/odf2docutils/tests/textSimple/target/wrongNesting.rst new file mode 100644 index 000000000..1dcaf247c --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/target/wrongNesting.rst @@ -0,0 +1,5 @@ +* First level + + * Second level + +* * Second but restarted diff --git a/sandbox/odf2docutils/tests/textSimple/target/wrongerNesting.rst b/sandbox/odf2docutils/tests/textSimple/target/wrongerNesting.rst new file mode 100644 index 000000000..3cb905fcf --- /dev/null +++ b/sandbox/odf2docutils/tests/textSimple/target/wrongerNesting.rst @@ -0,0 +1,7 @@ +* First level + + * Second level + +* * Second but restarted + +* First again |
