From 8c616ca52509e49abfbb2b4013587fe62db2fd17 Mon Sep 17 00:00:00 2001 From: paultremblay Date: Mon, 26 Sep 2011 19:27:15 +0000 Subject: Creating a branch. The new branch will reflect the way to use the xsl stylesheets with the pyton interface. I am now going to put a simpler version of the XSL stylesheets in the trunk. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7131 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- .../python_interface/docutilsToFo/__init__.py | 3 + .../python_interface/docutilsToFo/att_set_dict.py | 590 +++ .../docutilsToFo/docutils_fo_dicts.py | 906 ++++ .../docutilsToFo/make_stylesheet.py | 418 ++ .../python_interface/docutilsToFo/rst2xml_lib.py | 213 + .../docutilsToFo/valid/basic_properties.rng | 3087 +++++++++++++ .../docutilsToFo/valid/datatype.rng | 115 + .../docutilsToFo/valid/docutils.dtd | 618 +++ .../docutilsToFo/valid/docutils.rng | 1503 +++++++ .../docutilsToFo/valid/elements.rng | 1143 +++++ .../python_interface/docutilsToFo/valid/folint.xsl | 3554 +++++++++++++++ .../python_interface/docutilsToFo/valid/main.rng | 474 ++ .../docutilsToFo/valid/properties.rng | 991 +++++ .../docutilsToFo/valid/properties_groups.rng | 1209 +++++ .../docutilsToFo/valid/soextblx.dtd | 309 ++ .../docutilsToFo/valid/soextblx.rng | 518 +++ .../docutilsToFo/xsl_fo/admonitions.xsl | 231 + .../docutilsToFo/xsl_fo/bibliographic_fields.xsl | 575 +++ .../docutilsToFo/xsl_fo/body_directives.xsl | 302 ++ .../docutilsToFo/xsl_fo/body_elements.xsl | 230 + .../docutilsToFo/xsl_fo/bullet_list.xsl | 174 + .../docutilsToFo/xsl_fo/citation.xsl | 31 + .../docutilsToFo/xsl_fo/definition_list.xsl | 141 + .../docutilsToFo/xsl_fo/docutils_to_fo.xsl | 42 + .../docutilsToFo/xsl_fo/enumerated_list.xsl | 148 + .../python_interface/docutilsToFo/xsl_fo/error.xsl | 386 ++ .../docutilsToFo/xsl_fo/field_list.xsl | 90 + .../docutilsToFo/xsl_fo/footnote.xsl | 232 + .../docutilsToFo/xsl_fo/front_matter.xsl | 120 + .../docutilsToFo/xsl_fo/header_footer.xsl | 463 ++ .../docutilsToFo/xsl_fo/image_figure.xsl | 135 + .../docutilsToFo/xsl_fo/inline.xsl | 100 + .../docutilsToFo/xsl_fo/line_block.xsl | 206 + .../python_interface/docutilsToFo/xsl_fo/misc.xsl | 11 + .../docutilsToFo/xsl_fo/option_list.xsl | 261 ++ .../python_interface/docutilsToFo/xsl_fo/page.xsl | 604 +++ .../docutilsToFo/xsl_fo/parameters.xsl | 216 + .../python_interface/docutilsToFo/xsl_fo/root.xsl | 187 + .../docutilsToFo/xsl_fo/section.xsl | 204 + .../python_interface/docutilsToFo/xsl_fo/table.xsl | 211 + .../docutilsToFo/xsl_fo/table_extended.xsl | 4678 ++++++++++++++++++++ .../docutilsToFo/xsl_fo/table_extended2.xsl | 161 + .../docutilsToFo/xsl_fo/table_long.xsl | 445 ++ .../python_interface/docutilsToFo/xsl_fo/toc.xsl | 197 + .../python_interface/docutilsToFo/xsl_fo/util.xsl | 160 + 45 files changed, 26592 insertions(+) create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/__init__.py create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/att_set_dict.py create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/docutils_fo_dicts.py create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/make_stylesheet.py create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/rst2xml_lib.py create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/basic_properties.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/datatype.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.dtd create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/elements.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/folint.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/main.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/properties.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/properties_groups.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.dtd create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.rng create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/admonitions.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bibliographic_fields.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_directives.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_elements.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bullet_list.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/citation.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/definition_list.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/docutils_to_fo.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/enumerated_list.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/error.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/field_list.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/footnote.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/front_matter.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/header_footer.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/image_figure.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/inline.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/line_block.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/misc.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/option_list.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/page.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/parameters.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/root.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/section.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended2.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_long.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/toc.xsl create mode 100644 sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/util.xsl (limited to 'sandbox/paultremblay/python_interface/docutilsToFo') diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/__init__.py b/sandbox/paultremblay/python_interface/docutilsToFo/__init__.py new file mode 100644 index 000000000..b3d0c915b --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/__init__.py @@ -0,0 +1,3 @@ +''' +modules for rtf2xml +''' diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/att_set_dict.py b/sandbox/paultremblay/python_interface/docutilsToFo/att_set_dict.py new file mode 100644 index 000000000..2b39447d9 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/att_set_dict.py @@ -0,0 +1,590 @@ +att_set_dict = {'Some-custom-field': 'block', +'abstract-block': 'block', +'abstract-first-paragraph-block': 'block', +'abstract-paragraph-block': 'block', +'abstract-title-block': 'block', +'address-block': 'block', +'address-value-block': 'block', +'admonition-custom-block': 'block', +'admonition-custorm-title-block': 'block', +'admonition-first-paragraph-block': 'block', +'admonition-paragraph-block': 'block', +'attention-block': 'block', +'attention-title-block': 'block', +'author-block': 'block', +'authors-block': 'block', +'basic-link-inline': 'basic-link', +'bibliographic-fields-block': 'block', +'bibliographic-fields-first-list-item': 'list-item', +'bibliographic-fields-item-body': 'list-item-body', +'bibliographic-fields-item-label-block': 'block', +'bibliographic-fields-list-block': 'list-block', +'bibliographic-fields-list-item': 'list-item', +'bibliographic-fields-list-item-label': 'list-item-label', +'bibliographic-first-fields-block': 'block', +'block-quote-attribution-block': 'block', +'block-quote-first-paragraph-block': 'block', +'block-quote-outer-block': 'block', +'block-quote-paragraph-block': 'block', +'body-flow': 'flow', +'body-footer-block': 'block', +'body-header-block': 'block', +'body-page-sequence': 'page-sequence', +'body-simple-page-master': 'simple-page-master', +'borderless-cell-block': 'block', +'borderless-table': 'table', +'borderless-table-block-container': 'block-container', +'borderless-table-body': 'table-body', +'borderless-table-cell': 'table-cell', +'borderless-table-header': 'table-header', +'borderless-table-header-block': 'block', +'borderless-table-header-cell': 'table-cell', +'borderless-table-header-row': 'table-row', +'borderless-table-row': 'table-row', +'bullet-first-list-item': 'list-item', +'bullet-level2-first-list-item': 'list-item', +'bullet-level2-list-block': 'list-block', +'bullet-level2-list-item': 'list-item', +'bullet-list-block': 'list-block', +'bullet-list-item': 'list-item', +'bullet-list-item-body': 'list-item-body', +'bullet-list-item-body-block': 'block', +'bullet-list-item-label': 'list-item-label', +'bullet-list-item-label-block': 'block', +'caption-block': 'block', +'caution-block': 'block', +'caution-title-block': 'block', +'cell-block': 'block', +'cell1-block': 'block', +'cell10-block': 'block', +'cell11-block': 'block', +'cell12-block': 'block', +'cell13-block': 'block', +'cell14-block': 'block', +'cell15-block': 'block', +'cell16-block': 'block', +'cell17-block': 'block', +'cell18-block': 'block', +'cell19-block': 'block', +'cell2-block': 'block', +'cell20-block': 'block', +'cell21-block': 'block', +'cell22-block': 'block', +'cell23-block': 'block', +'cell24-block': 'block', +'cell25-block': 'block', +'cell26-block': 'block', +'cell27-block': 'block', +'cell28-block': 'block', +'cell29-block': 'block', +'cell3-block': 'block', +'cell30-block': 'block', +'cell4-block': 'block', +'cell5-block': 'block', +'cell6-block': 'block', +'cell7-block': 'block', +'cell8-block': 'block', +'cell9-block': 'block', +'classifier-inline': 'inline', +'contact-block': 'block', +'container-first-paragraph-block': 'block', +'container-outer-block': 'block', +'container-paragraph-block': 'block', +'copyright-block': 'block', +'custom-bib-info1': 'block', +'custom-bib-info10': 'block', +'custom-bib-info2': 'block', +'custom-bib-info3': 'block', +'custom-bib-info4': 'block', +'custom-bib-info5': 'block', +'custom-bib-info6': 'block', +'custom-bib-info7': 'block', +'custom-bib-info8': 'block', +'custom-bib-info9': 'block', +'danger-block': 'block', +'danger-title-block': 'block', +'date-block': 'block', +'dedication-block': 'block', +'dedication-first-paragraph-block': 'block', +'dedication-paragraph-block': 'block', +'dedication-title-block': 'block', +'default-admonition-outer-block': 'block', +'default-admonition-title-block': 'block', +'default-cell': 'table-cell', +'default-flow': 'flow', +'default-footnote-label-inline': 'inline', +'default-page-sequence': 'page-sequence', +'default-section-title-block': 'block', +'default-simple-page-master': 'simple-page-master', +'definition-block': 'block', +'definition-first-paragraph-block': 'block', +'definition-list-block': 'block', +'definition-list-item-block': 'block', +'definition-list-item-first-block': 'block', +'definition-paragraph-block': 'block', +'definition-term-block': 'block', +'definition-term-inline': 'inline', +'document-subtitle-block': 'block', +'document-title-block': 'block', +'document-title-page-block': 'block', +'emphasis-inline': 'inline', +'endnote-block': 'block', +'endnote-first-block': 'block', +'endnotes-block': 'block', +'endnotes-title-block': 'block', +'enumerated-first-list-item': 'list-item', +'enumerated-level2-first-list-item': 'list-item', +'enumerated-level2-list-block': 'list-block', +'enumerated-level2-list-item': 'list-item', +'enumerated-list-block': 'list-block', +'enumerated-list-item': 'list-item', +'enumerated-list-item-body': 'list-item-body', +'enumerated-list-item-body-block': 'block', +'enumerated-list-item-label': 'list-item-label', +'epigraph-attribution-block': 'block', +'epigraph-first-paragraph-block': 'block', +'epigraph-outer-block': 'block', +'epigraph-paragraph-block': 'block', +'error-block': 'block', +'error-title-block': 'block', +'even-footer-block': 'block', +'even-header-block': 'block', +'even-simple-page-master': 'simple-page-master', +'field-body-block': 'block', +'field-first-list-item': 'list-item', +'field-list-block': 'list-block', +'field-list-item': 'list-item', +'field-list-item-body': 'list-item-body', +'field-list-item-label': 'list-item-label', +'field-list-item-label-block': 'block', +'figure-block': 'block', +'figure-caption-block': 'block', +'figure-legend-block': 'block', +'first-footer-block': 'block', +'first-header-block': 'block', +'first-paragraph-block': 'block', +'first-simple-page-master': 'simple-page-master', +'footer-block': 'block', +'footer-region-after': 'region-after', +'footnote': 'footnote', +'footnote-body': 'footnote-body', +'footnote-body-label-inline': 'inline', +'footnote-first-paragraph-block': 'block', +'footnote-item-body': 'list-item-body', +'footnote-item-label': 'list-item-label', +'footnote-label-block': 'block', +'footnote-label-inline': 'inline', +'footnote-list-block': 'list-block', +'footnote-paragraph-block': 'block', +'footnote-separator-block': 'block', +'footnote-separator-flow': 'static-content', +'front-body-simple-page-master': 'simple-page-master', +'front-even-simple-page-master': 'simple-page-master', +'front-first-simple-page-master': 'simple-page-master', +'front-flow': 'flow', +'front-matter-region-body': 'region-body', +'front-odd-simple-page-master': 'simple-page-master', +'front-page-sequence': 'page-sequence', +'front-simple-page-master': 'simple-page-master', +'header-block': 'block', +'header-region-before': 'region-before', +'highlights-first-paragraph-block': 'block', +'highlights-outer-block': 'block', +'highlights-paragraph-block': 'block', +'hint-block': 'block', +'hint-title-block': 'block', +'image-block': 'block', +'important-block': 'block', +'important-title-block': 'block', +'legend-first-paragraph-block': 'block', +'legend-paragraph-block': 'block', +'level1-line-block': 'block', +'level2-line-block': 'block', +'level3-line-block': 'block', +'level4-line-block': 'block', +'level5-line-block': 'block', +'literal-block': 'block', +'literal-inline': 'inline', +'long-caption-block': 'block', +'long-cell-block': 'block', +'long-table': 'table', +'long-table-body': 'table-body', +'long-table-cell': 'table-cell', +'long-table-header': 'table-header', +'long-table-header-block': 'block', +'long-table-header-cell': 'table-cell', +'long-table-header-row': 'table-row', +'long-table-row': 'table-row', +'note-block': 'block', +'note-title-block': 'block', +'odd-footer-block': 'block', +'odd-header-block': 'block', +'odd-simple-page-master': 'simple-page-master', +'option-argument-inline': 'inline', +'option-first-list-item': 'list-item', +'option-group-block': 'block', +'option-inline': 'inline', +'option-list-block': 'list-block', +'option-list-definition-block': 'block', +'option-list-description-block': 'block', +'option-list-first-item-block': 'block', +'option-list-first-paragraph-block': 'block', +'option-list-item': 'list-item', +'option-list-item-block': 'block', +'option-list-item-body': 'list-item-body', +'option-list-item-body-block': 'block', +'option-list-item-label': 'list-item-label', +'option-list-item-label-block': 'block', +'option-list-paragraph-block': 'block', +'organization-block': 'block', +'outer-line-block': 'block', +'paper-size-simple-page-master': 'simple-page-master', +'paragraph-block': 'block', +'paragraph-footer-block': 'block', +'paragraph-header-block': 'block', +'pull-quote-attribution-block': 'block', +'pull-quote-first-paragraph-block': 'block', +'pull-quote-outer-block': 'block', +'pull-quote-paragraph-block': 'block', +'region-body': 'region-body', +'revision-block': 'block', +'rubric-block': 'block', +'sidebar-block': 'block', +'sidebar-first-paragraph-block': 'block', +'sidebar-paragraph-block': 'block', +'sidebar-subtitle-block': 'block', +'sidebar-title-block': 'block', +'simple-page-master': 'simple-page-master', +'stanza-title-block': 'block', +'stanza2-first-line-block': 'block', +'stanza2-line-block': 'block', +'stanza3-first-line-block': 'block', +'stanza3-line-block': 'block', +'stanza4-first-line-block': 'block', +'stanza4-line-block': 'block', +'stanza5-first-line-block': 'block', +'stanza5-line-block': 'block', +'status-block': 'block', +'strong-inline': 'inline', +'table': 'table', +'table-block-container': 'block-container', +'table-body': 'table-body', +'table-cell': 'table-cell', +'table-header': 'table-header', +'table-header-block': 'block', +'table-header-cell': 'table-cell', +'table-row': 'table-row', +'table1': 'table', +'table1-block-container': 'block-container', +'table1-body': 'table-body', +'table1-cell': 'table-cell', +'table1-header': 'table-header', +'table1-header-block': 'block', +'table1-header-cell': 'table-cell', +'table1-header-row': 'table-row', +'table1-row': 'table-row', +'table10': 'table', +'table10-block-container': 'block-container', +'table10-body': 'table-body', +'table10-cell': 'table-cell', +'table10-header': 'table-header', +'table10-header-block': 'block', +'table10-header-cell': 'table-cell', +'table10-header-row': 'table-row', +'table10-row': 'table-row', +'table11': 'table', +'table11-block-container': 'block-container', +'table11-body': 'table-body', +'table11-cell': 'table-cell', +'table11-header': 'table-header', +'table11-header-block': 'block', +'table11-header-cell': 'table-cell', +'table11-header-row': 'table-row', +'table11-row': 'table-row', +'table12': 'table', +'table12-block-container': 'block-container', +'table12-body': 'table-body', +'table12-cell': 'table-cell', +'table12-header': 'table-header', +'table12-header-block': 'block', +'table12-header-cell': 'table-cell', +'table12-header-row': 'table-row', +'table12-row': 'table-row', +'table13': 'table', +'table13-block-container': 'block-container', +'table13-body': 'table-body', +'table13-cell': 'table-cell', +'table13-header': 'table-header', +'table13-header-block': 'block', +'table13-header-cell': 'table-cell', +'table13-header-row': 'table-row', +'table13-row': 'table-row', +'table14': 'table', +'table14-block-container': 'block-container', +'table14-body': 'table-body', +'table14-cell': 'table-cell', +'table14-header': 'table-header', +'table14-header-block': 'block', +'table14-header-cell': 'table-cell', +'table14-header-row': 'table-row', +'table14-row': 'table-row', +'table15': 'table', +'table15-block-container': 'block-container', +'table15-body': 'table-body', +'table15-cell': 'table-cell', +'table15-header': 'table-header', +'table15-header-block': 'block', +'table15-header-cell': 'table-cell', +'table15-header-row': 'table-row', +'table15-row': 'table-row', +'table16': 'table', +'table16-block-container': 'block-container', +'table16-body': 'table-body', +'table16-cell': 'table-cell', +'table16-header': 'table-header', +'table16-header-block': 'block', +'table16-header-cell': 'table-cell', +'table16-header-row': 'table-row', +'table16-row': 'table-row', +'table17': 'table', +'table17-block-container': 'block-container', +'table17-body': 'table-body', +'table17-cell': 'table-cell', +'table17-header': 'table-header', +'table17-header-block': 'block', +'table17-header-cell': 'table-cell', +'table17-header-row': 'table-row', +'table17-row': 'table-row', +'table18': 'table', +'table18-block-container': 'block-container', +'table18-body': 'table-body', +'table18-cell': 'table-cell', +'table18-header': 'table-header', +'table18-header-block': 'block', +'table18-header-cell': 'table-cell', +'table18-header-row': 'table-row', +'table18-row': 'table-row', +'table19': 'table', +'table19-block-container': 'block-container', +'table19-body': 'table-body', +'table19-cell': 'table-cell', +'table19-header': 'table-header', +'table19-header-block': 'block', +'table19-header-cell': 'table-cell', +'table19-header-row': 'table-row', +'table19-row': 'table-row', +'table2': 'table', +'table2-block-container': 'block-container', +'table2-body': 'table-body', +'table2-cell': 'table-cell', +'table2-header': 'table-header', +'table2-header-block': 'block', +'table2-header-cell': 'table-cell', +'table2-header-row': 'table-row', +'table2-row': 'table-row', +'table20': 'table', +'table20-block-container': 'block-container', +'table20-body': 'table-body', +'table20-cell': 'table-cell', +'table20-header': 'table-header', +'table20-header-block': 'block', +'table20-header-cell': 'table-cell', +'table20-header-row': 'table-row', +'table20-row': 'table-row', +'table21': 'table', +'table21-block-container': 'block-container', +'table21-body': 'table-body', +'table21-cell': 'table-cell', +'table21-header': 'table-header', +'table21-header-block': 'block', +'table21-header-cell': 'table-cell', +'table21-header-row': 'table-row', +'table21-row': 'table-row', +'table22': 'table', +'table22-block-container': 'block-container', +'table22-body': 'table-body', +'table22-cell': 'table-cell', +'table22-header': 'table-header', +'table22-header-block': 'block', +'table22-header-cell': 'table-cell', +'table22-header-row': 'table-row', +'table22-row': 'table-row', +'table23': 'table', +'table23-block-container': 'block-container', +'table23-body': 'table-body', +'table23-cell': 'table-cell', +'table23-header': 'table-header', +'table23-header-block': 'block', +'table23-header-cell': 'table-cell', +'table23-header-row': 'table-row', +'table23-row': 'table-row', +'table24': 'table', +'table24-block-container': 'block-container', +'table24-body': 'table-body', +'table24-cell': 'table-cell', +'table24-header': 'table-header', +'table24-header-block': 'block', +'table24-header-cell': 'table-cell', +'table24-header-row': 'table-row', +'table24-row': 'table-row', +'table25': 'table', +'table25-block-container': 'block-container', +'table25-body': 'table-body', +'table25-cell': 'table-cell', +'table25-header': 'table-header', +'table25-header-block': 'block', +'table25-header-cell': 'table-cell', +'table25-header-row': 'table-row', +'table25-row': 'table-row', +'table26': 'table', +'table26-block-container': 'block-container', +'table26-body': 'table-body', +'table26-cell': 'table-cell', +'table26-header': 'table-header', +'table26-header-block': 'block', +'table26-header-cell': 'table-cell', +'table26-header-row': 'table-row', +'table26-row': 'table-row', +'table27': 'table', +'table27-block-container': 'block-container', +'table27-body': 'table-body', +'table27-cell': 'table-cell', +'table27-header': 'table-header', +'table27-header-block': 'block', +'table27-header-cell': 'table-cell', +'table27-header-row': 'table-row', +'table27-row': 'table-row', +'table28': 'table', +'table28-block-container': 'block-container', +'table28-body': 'table-body', +'table28-cell': 'table-cell', +'table28-header': 'table-header', +'table28-header-block': 'block', +'table28-header-cell': 'table-cell', +'table28-header-row': 'table-row', +'table28-row': 'table-row', +'table29': 'table', +'table29-block-container': 'block-container', +'table29-body': 'table-body', +'table29-cell': 'table-cell', +'table29-header': 'table-header', +'table29-header-block': 'block', +'table29-header-cell': 'table-cell', +'table29-header-row': 'table-row', +'table29-row': 'table-row', +'table3': 'table', +'table3-block-container': 'block-container', +'table3-body': 'table-body', +'table3-cell': 'table-cell', +'table3-header': 'table-header', +'table3-header-block': 'block', +'table3-header-cell': 'table-cell', +'table3-header-row': 'table-row', +'table3-row': 'table-row', +'table30': 'table', +'table30-block-container': 'block-container', +'table30-body': 'table-body', +'table30-cell': 'table-cell', +'table30-header': 'table-header', +'table30-header-block': 'block', +'table30-header-cell': 'table-cell', +'table30-header-row': 'table-row', +'table30-row': 'table-row', +'table4': 'table', +'table4-block-container': 'block-container', +'table4-body': 'table-body', +'table4-cell': 'table-cell', +'table4-header': 'table-header', +'table4-header-block': 'block', +'table4-header-cell': 'table-cell', +'table4-header-row': 'table-row', +'table4-row': 'table-row', +'table5': 'table', +'table5-block-container': 'block-container', +'table5-body': 'table-body', +'table5-cell': 'table-cell', +'table5-header': 'table-header', +'table5-header-block': 'block', +'table5-header-cell': 'table-cell', +'table5-header-row': 'table-row', +'table5-row': 'table-row', +'table6': 'table', +'table6-block-container': 'block-container', +'table6-body': 'table-body', +'table6-cell': 'table-cell', +'table6-header': 'table-header', +'table6-header-block': 'block', +'table6-header-cell': 'table-cell', +'table6-header-row': 'table-row', +'table6-row': 'table-row', +'table7': 'table', +'table7-block-container': 'block-container', +'table7-body': 'table-body', +'table7-cell': 'table-cell', +'table7-header': 'table-header', +'table7-header-block': 'block', +'table7-header-cell': 'table-cell', +'table7-header-row': 'table-row', +'table7-row': 'table-row', +'table8': 'table', +'table8-block-container': 'block-container', +'table8-body': 'table-body', +'table8-cell': 'table-cell', +'table8-header': 'table-header', +'table8-header-block': 'block', +'table8-header-cell': 'table-cell', +'table8-header-row': 'table-row', +'table8-row': 'table-row', +'table9': 'table', +'table9-block-container': 'block-container', +'table9-body': 'table-body', +'table9-cell': 'table-cell', +'table9-header': 'table-header', +'table9-header-block': 'block', +'table9-header-cell': 'table-cell', +'table9-header-row': 'table-row', +'table9-row': 'table-row', +'tip-block': 'block', +'tip-title-block': 'block', +'title-level1-block': 'block', +'title-level2-block': 'block', +'title-level3-block': 'block', +'title-level4-block': 'block', +'title-level5-block': 'block', +'title-level6-block': 'block', +'title-level7-block': 'block', +'title-level8-block': 'block', +'title-level9-block': 'block', +'title-number-inline': 'inline', +'title-reference-inline': 'inline', +'toc-block': 'block', +'toc-body-footer-block': 'block', +'toc-body-header-block': 'block', +'toc-body-simple-page-master': 'simple-page-master', +'toc-entry-defaults-block': 'block', +'toc-even-footer-block': 'block', +'toc-even-header-block': 'block', +'toc-even-simple-page-master': 'simple-page-master', +'toc-first-footer-block': 'block', +'toc-first-header-block': 'block', +'toc-first-simple-page-master': 'simple-page-master', +'toc-flow': 'flow', +'toc-level1-block': 'block', +'toc-level2-block': 'block', +'toc-level3-block': 'block', +'toc-level4-block': 'block', +'toc-level5-block': 'block', +'toc-odd-footer-block': 'block', +'toc-odd-header-block': 'block', +'toc-odd-simple-page-master': 'simple-page-master', +'toc-page-sequence': 'page-sequence', +'toc-simple-page-master': 'simple-page-master', +'toc-title-block': 'block', +'topic-block': 'block', +'topic-first-paragraph-block': 'block', +'topic-paragraph-block': 'block', +'topic-title-block': 'block', +'transition-block': 'block', +'version-block': 'block', +'warning-block': 'block', +'warning-title-block': 'block'} diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/docutils_fo_dicts.py b/sandbox/paultremblay/python_interface/docutilsToFo/docutils_fo_dicts.py new file mode 100644 index 000000000..cdd5b29fb --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/docutils_fo_dicts.py @@ -0,0 +1,906 @@ + # -*- coding: UTF8 -*- +from att_set_dict import att_set_dict + + +#=========================================================== +# SHORT CUTS + +short_cut_att_sets = { +'abstract': 'abstract-block', +'abstract-title': 'abstract-title-block', +'abstract-paragraph': 'abstract-paragraph-block', +'address':'address-block', +'author':'author-block', +'authors':'authors-block', +'bibliographic-field':'bibliographic-fields-item-label-block', +'bibliographic-fields': 'bibliographic-fields-list-block', +'bibliographic-fields-text': 'bibliographic-fields-item-body', +'bibliographic-fields-paragraph': 'bibliographic-fields-block', +'body': 'default-flow', +'body-header' : 'body-header-block', +'body-footer' : 'body-footer-block', +'bullet-list': 'bullet-list-block', +'bullet-list-level2' :'bullet-level2-list-block', +'bullet-list-paragraph': 'bullet-list-item-body-block', +'contact':'contact-block', +'copyright':'copyright-block', +'bibliographic-field-custom1': 'custom-bib-info1', +'bibliographic-field-custom2': 'custom-bib-info2', +'bibliographic-field-custom3': 'custom-bib-info3', +'bibliographic-field-custom4': 'custom-bib-info4', +'bibliographic-field-custom5': 'custom-bib-info5', +'bibliographic-field-custom6': 'custom-bib-info6', +'bibliographic-field-custom7': 'custom-bib-info7', +'bibliographic-field-custom8': 'custom-bib-info8', +'bibliographic-field-custom9': 'custom-bib-info9', +'bibliographic-field-custom10': 'custom-bib-info10', +'block-quote' : 'block-quote-outer-block', +'block-quote-paragraph' : 'block-quote-paragraph-block', +'block-quote-attribution' : 'block-quote-attribution-block', +'date':'date-block', +'dedication': 'dedication-block', +'dedication-title': 'dedication-title-block', +'dedication-paragraph': 'dedication-paragraph-block', +'definition-list-classifier': 'classifier-inline', +'definition-list': 'definition-list-block', +'definition-list-paragraph': 'definition-paragraph-block', +'definition-list-definition': 'definition-block', +'definition-term':'definition-term-block', +'document': 'default-page-sequence', +'even-footer': 'even-footer-block', +'even-header': 'even-header-block', +'even-page': 'even-simple-page-master', +'enumerated-list': 'enumerated-list-block', +'enumerated-list-level2': 'enumerated-level2-list-block', +'enumerated-list-paragraph': 'enumerated-list-item-body-block', +'field-name':'field-list-item-label-block', +'field-list': 'field-list-block', +'field-list-paragraph': 'field-body-block', +'field-name':'field-list-item-label-block', +'first-header' : 'first-header-block', +'first-footer' : 'first-footer-block', +'first-page': 'first-simple-page-master', +'first-paragraph': 'first-paragraph-block', +'footer' : 'footer-block', +'footer-paragraph': 'paragraph-footer-block', +'header': 'header-block', +'even-header': 'even-header-block', +'header-paragraph': 'paragraph-header-block', +'heading1':'title-level1-block', +'heading2':'title-level2-block', +'heading3':'title-level3-block', +'heading4':'title-level4-block', +'heading5':'title-level5-block', +'heading6':'title-level6-block', +'heading7':'title-level7-block', +'line-block': 'outer-line-block', +'line-level1': 'level1-line-block', +'line-level2': 'level2-line-block', +'line-level3': 'level3-line-block', +'line-level4': 'level4-line-block', +'line-level5': 'level5-line-block', +'odd-footer': 'odd-footer-block', +'odd-header': 'odd-header-block', +'odd-page': 'odd-simple-page-master', +'option': 'option-inline', +'option-argument': 'option-argument-inline', +'organization':'organization-block', +'page': 'default-simple-page-master', +'paper-size': 'paper-size-simple-page-master', +'paragraph': 'paragraph-block', +'revision':'revision-block', +'stanza-title': 'stanza-title-block', +'status':'status-block', +'subtitle': 'document-subtitle-block', +'table-and-caption' : 'table-block-container', +'title': 'document-title-block', +'title-subtitle': 'document-title-page-block', +'toc': 'toc-block', +'toc-body-footer':'toc-body-footer-block', +'toc-body-header':'toc-body-header-block', +'toc-first-header':'toc-first-header-block', +'toc-first-footer':'toc-first-footer-block', +'toc-odd-header':'toc-odd-header-block', +'toc-even-header':'toc-even-header-block', +'toc-odd-footer':'toc-odd-footer-block', +'toc-even-footer':'toc-even-footer-block', +'toc-title': 'toc-title-block', +'toc-entry1': 'toc-level1-block', +'toc-entry2': 'toc-level2-block', +'toc-entry3': 'toc-level3-block', +'toc-entry4': 'toc-level4-block', +'toc-entry5': 'toc-level5-block', +'toc-default': 'toc-entry-defaults-block', +'transition':'transition-block', +'version':'version-block', +} + +short_cut_att_sets2 = { +('option-list-body','list') :'option-list-item-body', +('option-list-body','definition') :'option-list-description-block', +('option-list','list') :'option-list-block', +('option-list','definition') :'option-list-definition-block', +('options', 'list'): 'option-list-item-label-block', +('options', 'definition'): 'option-group-block', +('option-list-paragraph', 'list'): 'option-list-item-body-block', +('option-list-paragraph', 'definition'): 'option-list-paragraph-block', +} +# =========================================================== + + + + +# ATT LISTS +# ========================================================================== + +accessibility_properties = [ +'source-document', +'role'] +area_alignment_properties = [ +'alignment-adjust', +'alignment-baseline', +'baseline-shift', +'dominant-baseline', +'vertical-align'] +area_properties = [ +] +area_properties_inheritable = [ +'display-align', +'reference-orientation', +'writing-mode'] +area_properties_unheritable = [ +'clip', +'overflow'] +aural_properties_inheritable = [ +'azimuth', +'elevation', +'pitch', +'pitch-range', +'play-during', +'richness', +'speak', +'speak-header', +'speak-numeral', +'speak-punctuation', +'speech-rate', +'stress', +'voice-family', +'volume'] +aural_properties_unheritable = [ +'cue', +'cue-after', +'cue-before', +'pause', +'pause-after', +'pause-before'] +background_properties = [ +'background', +'background-attachment', +'background-color', +'background-image', +'background-position', +'background-position-vertical', +'background-position-horizontal', +'background-repeat', +'rx:background-content-type', +'rx:background-content-height', +'rx:background-content-width', +'rx:background-scaling'] +block_attlist = [ +'text-altitude', +'text-depth'] +block_container_attlist = [ +'absolute-position', +'z-index'] +block_properties = [ +'clear', +'span'] +border_padding_background_properties = [ +] +border_precedence_properties = [ +'border-after-precedence', +'border-before-precedence', +'border-end-precedence', +'border-start-precedence'] +border_properties = [ +'border', +'border-after-color', +'border-after-style', +'border-after-width', +'border-after-width.length', +'border-after-width.conditionality', +'border-before-color', +'border-before-style', +'border-before-width', +'border-before-width.length', +'border-before-width.conditionality', +'border-bottom', +'border-bottom-color', +'border-bottom-style', +'border-bottom-width', +'border-bottom-width.length', +'border-bottom-width.conditionality', +'border-color', +'border-end-color', +'border-end-style', +'border-end-width', +'border-end-width.length', +'border-end-width.conditionality', +'border-left', +'border-left-color', +'border-left-style', +'border-left-width', +'border-left-width.length', +'border-left-width.conditionality', +'border-right', +'border-right-color', +'border-right-style', +'border-right-width', +'border-right-width.length', +'border-right-width.conditionality', +'border-start-color', +'border-start-style', +'border-start-width', +'border-start-width.length', +'border-start-width.conditionality', +'border-style', +'border-top', +'border-top-color', +'border-top-style', +'border-top-width', +'border-top-width.length', +'border-top-width.conditionality', +'border-width'] +box_size_properties = [ +] +character_properties_inheritable = [ +'letter-spacing', +'letter-spacing.minimum', +'letter-spacing.optimum', +'letter-spacing.maximum', +'letter-spacing.precedence', +'letter-spacing.conditionality', +'word-spacing', +'word-spacing.minimum', +'word-spacing.optimum', +'word-spacing.maximum', +'word-spacing.precedence', +'word-spacing.conditionality', +'glyph-orientation-horizontal', +'glyph-orientation-vertical', +'score-spaces', +'text-transform'] +character_properties_unheritable = [ +'text-decoration', +'text-shadow'] +common_block_properties = [ +'id', +'rx:key'] +common_inline_properties = [ +'id', +'rx:key', +'text-altitude', +'text-depth'] +flow_attlist = [ +] +flow_properties = [ +'id', +'rx:key', +'flow-name'] +font_properties = [ +'font', +'font-selection-strategy', +'font-family', +'font-size', +'font-size-adjust', +'font-stretch', +'font-style', +'font-variant', +'font-weight'] +footnote_body_attlist = [ +] +height_properties = [ +'height', +'min-height', +'max-height', +'block-progression-dimension', +'block-progression-dimension.minimum', +'block-progression-dimension.optimum', +'block-progression-dimension.maximum'] +hyphenation_properties_block = [ +'hyphenation-keep', +'hyphenation-ladder-count'] +hyphenation_properties_inline = [ +'country', +'language', +'script', +'xml:lang', +'hyphenate', +'hyphenation-character', +'hyphenation-push-character-count', +'hyphenation-remain-character-count'] +inheritable_properties = [ +] +inheritable_properties_block = [ +'intrusion-displace', +'relative-align'] +inheritable_properties_inline = [ +'color', +'visibility'] +inline_attlist = [ +] +inline_properties = [ +] +keeps_and_breaks_properties_atomic = [ +'break-after', +'break-before', +'page-break-after', +'page-break-before'] +keeps_and_breaks_properties_block_inheritable = [ +'orphans', +'widows'] +keeps_and_breaks_properties_inline_inheritable = [ +'keep-together', +'keep-together.within-line', +'keep-together.within-column', +'keep-together.within-page', +'page-break-inside'] +keeps_properties_atomic = [ +'keep-with-next', +'keep-with-next.within-line', +'keep-with-next.within-column', +'keep-with-next.within-page', +'keep-with-previous', +'keep-with-previous.within-line', +'keep-with-previous.within-column', +'keep-with-previous.within-page'] +leader_properties = [ +'leader-alignment', +'leader-pattern', +'leader-pattern-width', +'leader-length', +'leader-length.minimum', +'leader-length.optimum', +'leader-length.maximum', +'rule-style', +'rule-thickness'] +line_height_properties = [ +'line-height', +'line-height.minimum', +'line-height.optimum', +'line-height.maximum', +'line-height.precedence', +'line-height.conditionality', +'line-height-shift-adjustment'] +line_related_properties = [ +'text-align', +'text-align-last', +'text-indent', +'last-line-end-indent', +'line-stacking-strategy', +'linefeed-treatment', +'white-space', +'white-space-treatment', +'white-space-collapse', +'wrap-option', +'direction'] +list_block_attlist = [ +'clear'] +list_item_attlist = [ +] +list_item_body_attlist = [ +'id', +'rx:key'] +list_item_label_attlist = [ +'id', +'rx:key'] +list_properties = [ +'provisional-distance-between-starts', +'provisional-label-separation'] +margin_properties_CSS = [ +'margin', +'margin-bottom', +'margin-left', +'margin-right', +'margin-top'] +margin_properties_block = [ +'space-after', +'space-after.minimum', +'space-after.optimum', +'space-after.maximum', +'space-after.precedence', +'space-after.conditionality', +'space-before', +'space-before.minimum', +'space-before.optimum', +'space-before.maximum', +'space-before.precedence', +'space-before.conditionality'] +margin_properties_inheritable = [ +'start-indent', +'end-indent'] +margin_properties_inline = [ +'space-start', +'space-start.minimum', +'space-start.optimum', +'space-start.maximum', +'space-start.precedence', +'space-start.conditionality', +'space-end', +'space-end.minimum', +'space-end.optimum', +'space-end.maximum', +'space-end.precedence', +'space-end.conditionality'] +padding_properties = [ +'padding', +'padding-after', +'padding-after.length', +'padding-after.conditionality', +'padding-before', +'padding-before.length', +'padding-before.conditionality', +'padding-bottom', +'padding-bottom.length', +'padding-bottom.conditionality', +'padding-end', +'padding-end.length', +'padding-end.conditionality', +'padding-left', +'padding-left.length', +'padding-left.conditionality', +'padding-right', +'padding-right.length', +'padding-right.conditionality', +'padding-start', +'padding-start.length', +'padding-start.conditionality', +'padding-top', +'padding-top.length', +'padding-top.conditionality'] +page_sequence_attlist = [ +'format', +'letter-value', +'grouping-separator', +'grouping-size', +'id', +'rx:key', +'initial-page-number', +'force-page-count', +'master-reference'] +region_after_attlist = [ +'extent', +'precedence'] +region_before_attlist = [ +'extent', +'precedence'] +region_body_attlist = [ +'column-count', +'column-gap'] +region_properties = [ +'region-name'] +relative_position_properties = [ +'relative-position', +'position'] +row_group_attlist = [ +'id', +'rx:key'] +simple_page_master_attlist = [ +'master-name', +'page-height', +'page-width', +'reference-orientation', +'size', +'writing-mode'] +table_attlist = [ +'clear'] +table_body_attlist = [ +] +table_cell_attlist = [ +'id', +'rx:key', +'column-number', +'ends-row', +'number-columns-spanned', +'number-rows-spanned', +'starts-row'] +table_header_attlist = [ +] +table_properties_inheritable = [ +'border-collapse', +'border-spacing', +'border-separation', +'border-separation.inline-progression-direction', +'border-separation.block-progression-direction', +'caption-side', +'empty-cells'] +table_properties_unheritable = [ +'table-layout', +'table-omit-header-at-break', +'table-omit-footer-at-break', +'rx:table-omit-initial-header'] +table_row_attlist = [ +] +width_properties = [ +'width', +'min-width', +'max-width', +'inline-progression-dimension', +'inline-progression-dimension.minimum', +'inline-progression-dimension.optimum', +'inline-progression-dimension.maximum'] + +area_properties.extend(area_properties_inheritable) +area_properties.extend(area_properties_unheritable) + +inheritable_properties_inline.extend(aural_properties_inheritable) +inheritable_properties_inline.extend(character_properties_inheritable) +inheritable_properties_inline.extend(font_properties) +inheritable_properties_inline.extend(hyphenation_properties_inline) +inheritable_properties_inline.extend(line_height_properties) + +inheritable_properties_block.extend(table_properties_inheritable) +inheritable_properties_block.extend(area_properties_inheritable) +inheritable_properties_block.extend(hyphenation_properties_block) +inheritable_properties_block.extend(margin_properties_inheritable) +inheritable_properties_block.extend(keeps_and_breaks_properties_inline_inheritable) +inheritable_properties_block.extend(keeps_and_breaks_properties_block_inheritable) +inheritable_properties_block.extend(leader_properties) +inheritable_properties_block.extend(line_related_properties) +inheritable_properties_block.extend(list_properties) + +inheritable_properties.extend(inheritable_properties_inline) +inheritable_properties.extend(inheritable_properties_block) + +border_padding_background_properties.extend(border_properties) +border_padding_background_properties.extend(padding_properties) +border_padding_background_properties.extend(background_properties) + +margin_properties_block.extend(margin_properties_CSS) +margin_properties_inline.extend(margin_properties_CSS) + +keeps_and_breaks_properties_atomic.extend(keeps_properties_atomic) + +common_block_properties.extend(accessibility_properties) +common_block_properties.extend(aural_properties_unheritable) +common_block_properties.extend(border_padding_background_properties) +common_block_properties.extend(margin_properties_block) +common_block_properties.extend(inheritable_properties) + +common_inline_properties.extend(accessibility_properties) +common_inline_properties.extend(aural_properties_unheritable) +common_inline_properties.extend(area_alignment_properties) +common_inline_properties.extend(border_padding_background_properties) +common_inline_properties.extend(character_properties_unheritable) +common_inline_properties.extend(keeps_properties_atomic) +common_inline_properties.extend(margin_properties_inline) +common_inline_properties.extend(relative_position_properties) +common_inline_properties.extend(inheritable_properties_inline) + +region_properties.extend(border_padding_background_properties) + +region_properties.extend(area_properties) +flow_properties.extend(inheritable_properties) + +block_properties.extend(common_block_properties) +block_properties.extend(keeps_and_breaks_properties_atomic) +block_properties.extend(relative_position_properties) + +box_size_properties.extend(height_properties) +box_size_properties.extend(width_properties) + +inline_properties.extend(common_inline_properties) +inline_properties.extend(inheritable_properties_block) + +block_attlist.extend(block_properties) +block_attlist.extend(character_properties_unheritable) +block_container_attlist.extend(area_properties_unheritable) +block_container_attlist.extend(block_properties) +block_container_attlist.extend(box_size_properties) +flow_attlist.extend(flow_properties) +footnote_body_attlist.extend(accessibility_properties) +footnote_body_attlist.extend(inheritable_properties) +inline_attlist.extend(height_properties) +inline_attlist.extend(inline_properties) +list_block_attlist.extend(common_block_properties) +list_block_attlist.extend(keeps_and_breaks_properties_atomic) +list_block_attlist.extend(relative_position_properties) +list_item_attlist.extend(common_block_properties) +list_item_attlist.extend(keeps_and_breaks_properties_atomic) +list_item_attlist.extend(relative_position_properties) +list_item_body_attlist.extend(accessibility_properties) +list_item_body_attlist.extend(inheritable_properties) +list_item_label_attlist.extend(accessibility_properties) +list_item_label_attlist.extend(inheritable_properties) +page_sequence_attlist.extend(inheritable_properties) +region_after_attlist.extend(region_properties) +region_before_attlist.extend(region_properties) +region_body_attlist.extend(margin_properties_CSS) +region_body_attlist.extend(region_properties) +row_group_attlist.extend(accessibility_properties) +row_group_attlist.extend(aural_properties_unheritable) +row_group_attlist.extend(background_properties) +row_group_attlist.extend(border_precedence_properties) +row_group_attlist.extend(border_properties) +row_group_attlist.extend(inheritable_properties) +row_group_attlist.extend(relative_position_properties) +simple_page_master_attlist.extend(margin_properties_CSS) +table_attlist.extend(box_size_properties) +table_attlist.extend(common_block_properties) +table_attlist.extend(keeps_and_breaks_properties_atomic) +table_attlist.extend(table_properties_unheritable) +table_body_attlist.extend(keeps_and_breaks_properties_atomic) +table_body_attlist.extend(row_group_attlist) +table_cell_attlist.extend(accessibility_properties) +table_cell_attlist.extend(aural_properties_unheritable) +table_cell_attlist.extend(border_padding_background_properties) +table_cell_attlist.extend(border_precedence_properties) +table_cell_attlist.extend(box_size_properties) +table_cell_attlist.extend(inheritable_properties) +table_cell_attlist.extend(keeps_and_breaks_properties_atomic) +table_header_attlist.extend(row_group_attlist) +table_row_attlist.extend(height_properties) +table_row_attlist.extend(keeps_and_breaks_properties_atomic) +table_row_attlist.extend(row_group_attlist) + +which_list = { +'block': block_attlist, +'block-container': block_container_attlist, +'cell': table_cell_attlist, +'flow': flow_attlist, +'footnote-body': footnote_body_attlist, +'header': table_header_attlist, +'inline': inline_attlist, +# 'item-body': list_item_body_attlist, +'list-item-body': list_item_body_attlist, +'item-label': list_item_label_attlist, +'list-block':list_block_attlist, +'list-item': list_item_attlist, +'page-sequence': page_sequence_attlist, +'region-after': region_after_attlist, +'region-before': region_before_attlist, +'region-body': region_body_attlist, +'simple-page-master': simple_page_master_attlist, +'table': table_attlist, +'table-body': table_body_attlist, +'table-cell': table_cell_attlist, +'table-header' : table_header_attlist, +'table-row': table_row_attlist +} + +custom_atts = { +'bottom-margin' : 'margin-bottom', +'left-margin' : 'margin-left', +'right-margin' : 'margin-right', +'top-margin' : 'margin-top', +'line-spacing':'line-height', +'first-line-indent': 'text-indent', +'left-indent': 'start-indent', +'right-indent': 'end-indent', +'alignment':'text-align', +'keep-on-same-page': 'keep-together.within-page', +'font': 'font-family', # could be problamatic +'space-from-label': 'provisional-distance-between-starts', +'height': 'page-height', +'width': 'page-width', +# 'space-from-option': 'provisional-distance-between-starts', +# 'space-between-items': 'space-before', +} + + +special_att_sets_dict = { + } + +# att att-sets +special_att_att_set_dict = { +('bold', 'font-style'): [('font-weight','bold')], +('italic', 'font-style'): [('font-style','italic')], +('bold-italic', 'font-style'):[('font-weight','bold'), ('font-style','italic')], +('italic-bold', 'font-style'):[('font-weight','bold'), ('font-style','italic')], +('normal', 'font-style'):[('font-weight', 'normal'), ('font-style', 'normal')] +} + +# att-sets atts +special_att_set_att_dict = { +('bibliographic-fields', 'space-from-field'): [('bibliographic-fields-list-block', 'provisional-distance-between-starts')], +('bibliographic-fields', 'space-from-name'): [('bibliographic-fields-list-block', 'provisional-distance-between-starts')], +('bibliographic-fields', 'space-between-items'): [('bibliographic-fields-list-item', 'space-before')], +('body-section' , 'start-page'):[('body-page-sequence', 'initial-page-number')], +('body-section' , 'page-format'):[('body-page-sequence', 'format')], +('bullet-list', 'space-between-items'): [('bullet-list-item', 'space-before')], +('bullet-list', 'space-from-bullet'): [('bullet-list-block', 'provisional-distance-between-starts')], +('bullet-list-level2', 'space-from-bullet'): [('bullet-level2-list-block', 'provisional-distance-between-starts')], +('bullet-list-level2', 'space-between-items'): [('bullet-level2-list-item', 'space-before')], +('definition-list', 'space-between-items'): [('definition-list-item-block', 'space-before')], +('definition-list', 'space-below-term'): [('definition-term-block', 'space-after')], + +('enumerated-list', 'space-between-items'): [('enumerated-list-item', 'space-before')], +('enumerated-list', 'space-from-number'): [('enumerated-list-block', 'provisional-distance-between-starts')], +('enumerated-list-level2', 'space-from-number'): [('bullet-level2-list-block', 'provisional-distance-between-starts')], +('enumerated-list-level2', 'space-between-items'): [('bullet-level2-list-item', 'space-before')], +('header' , 'height'):[('header-region-before', 'extent'),('region-body', 'margin-top')], +('field-list', 'space-from-name'): [('field-list-block', 'provisional-distance-between-starts')], +('field-list', 'space-between-items'): [('field-list-item', 'space-before')], +('footer' , 'height'):[('footer-region-after', 'extent'),('region-body', 'margin-bottom')], +('toc-section' , 'start-page'):[('toc-page-sequence', 'initial-page-number')], +('toc-section' , 'page-format'):[('toc-page-sequence', 'format')], +('table' , 'width'):[('table', 'inline-progression-dimension')], + +} + +# special: only in certain contexts +special_att_set_att_dict2 = { +('option-list', 'space-from-option', 'list'): [('option-list-block', 'provisional-distance-between-starts')], +('option-list', 'space-between-items', 'list'): [('option-list-item', 'space-before')], +('option-list', 'space-between-items', 'definition'): [('option-list-item-block', 'space-before')], +('option-list', 'space-below-option', 'definition'): [('option-group-block', 'space-after')], + } +special_att_value_dict = { +('font-style', 'bold'): [('font-weight','bold')], +('font-style', 'italic'): [('font-style','italic')], +('font-style','bold-italic'):[('font-weight','bold'), ('font-style','italic')], +('font-style','italic-bold' ):[('font-weight','bold'), ('font-style','italic')], +('font-style', 'normal'):[('font-weight', 'normal'), ('font-style', 'normal')], +('page-break-before' , 'True'):[('break-before', 'page')], +('page-break-before' , 'true'):[('break-before', 'page')], +('page-break-before' , 'Yes'):[('break-before', 'page')], +('page-break-before' , 'yes'):[('break-before', 'page')], +('page-break-before' , 'False'):[('break-before', 'auto')], +('page-break-before' , 'ralse'):[('break-before', 'auto')], +('page-break-before' , 'No'):[('break-before', 'auto')], +('page-break-before' , 'no'):[('break-before', 'auto')], +('page-break-after' , 'True'):[('break-after', 'page')], +('page-break-after' , 'true'):[('break-after', 'page')], +('page-break-after' , 'Yes'):[('break-after', 'page')], +('page-break-after' , 'yes'):[('break-after', 'page')], +('page-break-after' , 'False'):[('break-after', 'auto')], +('page-break-after' , 'ralse'):[('break-after', 'auto')], +('page-break-after' , 'No'):[('break-after', 'auto')], +('page-break-after' , 'no'):[('break-after', 'auto')], +('keep-with-next' , 'True'):[('keep-with-next', 'always')], +('keep-with-next' , 'true'):[('keep-with-next', 'always')], +('keep-with-next' , 'Yes'):[('keep-with-next', 'always')], +('keep-with-next' , 'yes'):[('keep-with-next', 'always')], +('keep-with-previous' , 'True'):[('keep-with-previous', 'always')], +('keep-with-previous' , 'true'):[('keep-with-previous', 'always')], +('keep-with-previous' , 'Yes'):[('keep-with-previous', 'always')], +('keep-with-previous' , 'yes'):[('keep-with-previous', 'always')], +('keep-on-same-page' , 'True'):[('keep-together.within-page', 'always')], +('keep-on-same-page' , 'true'):[('keep-together.within-page', 'always')], +('keep-on-same-page' , 'Yes'):[('keep-together.within-page', 'always')], +('keep-on-same-page' , 'yes'):[('keep-together.within-page', 'always')], +('vertical-alignment' , 'bottom'):[('display-align', 'after')], +('vertical-alignment' , 'top'):[('display-align', 'before')], +('vertical-alignment' , 'center'):[('display-align', 'center')], +} + +special_values_dict = { + } + + +# ================================================================== +# PROPERTIES THAT ARE REALLY PARAMS + +prop_as_param_dict = { +'page.page-layout':'page-layout', +'title-subtitle.placement': 'title-pagination', +'bibliographic-fields.placement' : 'bibliographic-pagination', +'dedication.placement': 'dedication-pagination', +'abstract.placement': 'abstract-pagination', +'toc.placement': 'toc-pagination', +'front.order': 'font-order', +'header.suppress-first-page': 'suppress-first-page-header', +'footer.suppress-first-page': 'suppress-first-page-footer', +'bibliographic-fields.author-text': 'author-text', +'bibliographic-fields.authors-text': 'authors-text', +'bibliographic-fields.organization-text': 'organization-text', +'bibliographic-fields.contact-text': 'contact-text', +'bibliographic-fields.status-text': 'status-text', +'bibliographic-fields.copyright-text': 'copyright-text', +'bibliographic-fields.address-text': 'address-text', +'bibliographic-fields.revision-text': 'revision-text', +'bibliographic-fields.date-text': 'date-text', +'bibliographic-fields.format': 'bibliographic-format', +'bibliographic-field-custom1.text': 'custom-bib-info1-name', +'bibliographic-field-custom2.text': 'custom-bib-info2-name', +'bibliographic-field-custom3.text': 'custom-bib-info3-name', +'bibliographic-field-custom4.text': 'custom-bib-info4-name', +'bibliographic-field-custom5.text': 'custom-bib-info5-name', +'bibliographic-field-custom6.text': 'custom-bib-info6-name', +'bibliographic-field-custom7.text': 'custom-bib-info7-name', +'bibliographic-field-custom8.text': 'custom-bib-info8-name', +'bibliographic-field-custom9.text': 'custom-bib-info9-name', +'bibliographic-field-custom10.text': 'custom-bib-info10-name', +'heading1.number-format':'number-section1', +'heading2.number-format':'number-section2', +'heading3.number-format':'number-section3', +'heading4.number-format':'number-section4', +'heading5.number-format':'number-section5', +'heading6.number-format':'number-section6', +'heading7.number-format':'number-section7', +'headings.inherit-sections-number':'inherit-section-num', +'line-block.number': 'number-verse', +'transition.text':'transition-text', +'bullet-list.text': 'bullet-text', +'bullet-list-level2.text': 'bullet-text-level2', +'option-list.format':'option-list-format', +'options-list.separator': 'options-separator', +'document.page-layout': 'page-layout', +'block-quote.attriubution-text' : 'text-before-block-quote-attribution', +'table.column-widths': 'table-cols', +} + + +# ======================================================================== +# DEFAULT PARAMS +param_dict = { +'abstract-pagination' : 'with-front', +'address-text' : 'Address: ', +'attention-title' : 'Attention!', +'author-text' : 'Author: ', +'authors-text' : 'Authors: ', +'bibliographic-pagination' : 'with-toc', +'bullet-text' : '•', +'caution-title' : 'Caution!', +'contact-text' : 'Contact: ', +'copyright-text' : 'Copyright: ', +'danger-title' : '!Danger!', +'date-text' : 'Date: ', +'dedication-pagination' : 'with-front', +'error-title' : 'Error', +'footnote-placement' : 'footnote', +'footnote-style' : 'list', +'front-order' : 'title,bibliographic,dedication,abstract,toc', +'hint-title' : 'Hint', +'important-title' : 'Important', +'inherit-section-num' : 'True', +'internal-link-type' : 'link', +'note-title' : 'Note', +'number-section1' : '1', +'number-section2' : '.1', +'number-section3' : '.1', +'number-section4' : '.1', +'number-section5' : '.1', +'number-section6' : '.1', +'number-section7' : '.1', +'number-section8' : '.1', +'number-section9' : '.1', +'number-verse' : '', +'option-list-format' : 'list', +'options-separator' : ', ', +'organization-text' : 'Organization: ', +'page-layout' : 'simple', +'revision-text' : 'Revision: ', +'space-between-footnotes' : '5pt', +'spacing-footer' : '', +'spacing-header' : '', +'status-text' : 'Status: ', +'strict' : '', +'suppress-first-page-footer' : '', +'suppress-first-page-header' : '', +'table-title-placement' : 'bottom', +'test' : '', +'text-before-block-quote-attribution' : '—', +'text-before-epigraph-attribution' : '—', +'text-before-pull-quote-attribution' : '—', +'tip-title' : 'Tip', +'title-pagination' : 'with-front', +'toc-pagination' : 'with-toc', +'transition-text' : '***', +'version-text' : 'Version: ', +'warning-title' : 'Warning!', +} +param_list = param_dict.keys() + +true_or_false_dict = {'True':'True', 'true':'True', 'yes':'True', 'Yes': 'True', 'False': 'False', + 'false':'False', 'no': 'False', 'No':'False'} +true_dict = {'true':True, 'True':True, 'yes':True, 'Yes':True} +false_dict = {'false':False, 'False':False, 'none': False, 'None':False, 'no': False, 'No':False} +param_dict_test = {'strict':true_or_false_dict, + 'suppress-first-page-header': true_or_false_dict, + 'suppress-first-page-footer': true_or_false_dict, + } + +# Commands List +# ========================================================================= +commands_list = ['xsl-stylesheet'] diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/make_stylesheet.py b/sandbox/paultremblay/python_interface/docutilsToFo/make_stylesheet.py new file mode 100644 index 000000000..ce93742dd --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/make_stylesheet.py @@ -0,0 +1,418 @@ +#! /Library/Frameworks/Python.framework/Versions/2.7/bin/python +# $Id$ +import sys, copy, os, ConfigParser, pprint, types +from docutils_fo_dicts import * +from xml.sax import saxutils +class FOConfigFileException(Exception): + pass + +def dump(object): + pp = pprint.PrettyPrinter(indent=4) + sys.stderr.write(pp.pformat(object)) + sys.stderr.write('\n') + + +class Dump: + def __init__(self): + pass + +class WriteStylesheet: + + def __init__(self, verbose = 0): + self.__verbose = verbose + self.__string = '' + + def __write_start_element(self, name, atts): + pass + + def __write_end_element(self, name): + pass + + def __write_root_start(self): + self.__string += """\n\n""" + pass + + def __write_root_end(self): + self.__string +='' + + def __write_att_sets(self): + self.__string += '\n \n\n' + att_sets = self.__att_sets.keys() + for att_set in att_sets: + self.__string += ' \n' % (att_set) + att_dict = self.__att_sets[att_set] + atts = att_dict.keys() + for att in atts: + self.__string += ' ' % (att) + self.__string += saxutils.escape(att_dict[att]) + self.__string += '\n' + + self.__string += ' \n\n' + + def __write_import(self): + self.__string += """ \n\n""" % (self.__import_ss) + + def __write_params(self): + self.__string += '\n \n\n' + the_keys = self.__params.keys() + the_keys.sort() + for the_key in the_keys: + value = saxutils.escape(self.__params[the_key]) + self.__string += ' %s\n' % (the_key, value) + self.__string += '\n\n' + + def write_stylesheet(self, import_ss, params, att_sets, out=None): + self.__import_ss = import_ss + self.__params = params + self.__att_sets = att_sets + self.__out = out + self.__write_root_start() + self.__write_import() + self.__write_params() + self.__write_att_sets() + self.__write_root_end() + return self.__string + +class PostProcess: + + def __init__(self, params, attribute_sets): + self.__attribute_sets = attribute_sets + self.__params = params + + + # not used + def __test_measure(self, the_string): + """ + test if string is a measure: + 12pt returns 12, pt + 1.5 returns None, None + + """ + accept_units = ['em', 'px', 'in', 'cm', 'mm', 'pt', 'pc'] + try: + float(the_string) + return None, None + except ValueError: + pass + if len(the_string) < 3: + return None, None + unit = the_string[-2:] + if unit not in accept_units: + return None, None + num = the_string[:-2] + try: + num = float(num) + except ValueError: + return None, None + return num, unit + + # not used + def __get_default_font_size(self): + document_att_set = self.__attribute_sets.get('default-page-sequence') + body_att_set = self.__attribute_sets.get('default-flow') + if document_att_set and document_att_set.get('font-size'): + default_font_size = document_att_set.get('font-size') + elif body_att_set and document_att_set.get('font-size'): + default_font_size = body_att_set.get('font-size') + else: + default_font_size = '12pt' + num, unit = self.__test_measure(default_font_size) + if not num: + default_font_size = '12pt' + self.__default_font_size = default_font_size + + def __fix_header_footer(self): + # have to set the param spacing-header to extent, if not already set + #custom-spacing-header-footer + header_att_set = self.__attribute_sets.get('header-region-before') + if header_att_set: + extent = header_att_set.get('extent') + if extent and not self.__params.get('spacing-header'): + # self.__params['spacing-header'] = extent + self.__params['custom-spacing-header-footer'] = 'yes' + + footer_att_set = self.__attribute_sets.get('footer-region-after') + if footer_att_set: + extent = footer_att_set.get('extent') + if extent and not self.__params.get('spacing-footer'): + # self.__params['spacing-footer'] = extent + self.__params['custom-spacing-header-footer'] = 'yes' + + + def __fix_title(self): + doc_tit_att_set = self.__attribute_sets.get('document-title-page-block') + if doc_tit_att_set: + space_before = doc_tit_att_set.get('space-before') + if space_before: + self.__attribute_sets['document-title-page-block']['space-before.conditionality'] = 'retain' + + + def __get_page_layout(self): + odd_page = self.__attribute_sets.get('odd-simple-page-master') + even_page = self.__attribute_sets.get('even-simple-page-master') + first_page = self.__attribute_sets.get('first-simple-page-master') + suppress_first_header = self.__params.get('suppress-first-page-header') + suppress_first_footer = self.__params.get('suppress-first-page-footer') + need_odd_or_even_page = False + if odd_page or even_page: + need_odd_or_even_page = True + need_first_page = False + # if suppress_first_footer or suppress_first_header or first_page: + # need_first_page = True + + if self.__params.get('page-layout'): + page_layout = self.__params.get('page-layout') + elif need_first_page and need_odd_or_even_page: + page_layout = 'first-odd-even' + elif need_first_page: + page_layout = 'first' + elif need_odd_or_even_page: + page_layout = 'odd-even' + else: + page_layout = '' + self.__params['page-layout'] = page_layout + + + + + def post_process(self): + self.__get_default_font_size() + self.__fix_header_footer() + self.__get_page_layout() + self. __fix_title() + return self.__attribute_sets, self.__params + +class ReadConfig: + + def __init__(self, import_ss = None, verbose = 0, config_file = None): + self.__verbose = verbose + if self.__verbose > 4: + sys.stderr.write('modules is "%s"\n' % __file__) + self.__attribute_sets = {} + self.__params = {} + self.__import_ss = import_ss + if not self.__import_ss: + self.__import_ss = os.path.join(os.path.dirname(__file__), 'xsl_fo','docutils_to_fo.xsl') + if os.sep != '/': + self.__correct_path = self.__correct_path(self.__import_ss) + if not os.path.isfile(self.__import_ss): + msg = '"%s" cannot be found\n' % (self.__import_ss) + raise FOConfigFileException(msg) + if self.__verbose > 3: + sys.stderr.write('self.__import_ss (stylesheet to import) is "%s" \n' % self.__import_ss) + self.__config_file = config_file + if self.__verbose > 3 and self.__config_file: + sys.stderr.write('self.__config_file is "%s" \n' % self.__config_file) + + def __correct_path(self, the_path): + """ + make sure the_path is os.path.abs(the_path) and that + the_path really exits or this may not work + + """ + paths = [] + head = None + counter = 1 + while 1: + counter += 1 + if not head: + head = the_path + head, tail = os.path.split(head) + paths.insert(0,tail) + if not tail: + break + if counter > 100: + raise RuntimeError, 'max num recursions (100) reached' + return '/'.join(paths) + + def write_config_file(self, dest=None): + w = WriteStylesheet() + ss_string = w.write_stylesheet(import_ss = self.__import_ss, params = self.__params, + att_sets = self.__attribute_sets) + return ss_string + + + def read_config_files(self): + config = ConfigParser.SafeConfigParser() + config_files = [] + if self.__config_file: + config.read(self.__config_file) + return config + if os.environ.get('HOME'): + config_files.append(os.path.join(os.environ.get('HOME'), '.docutils')) + config_files.append(os.path.join(os.getcwd(), 'docutils.conf')) + for the_path in config_files: + config.read(the_path) + if self.__verbose > 4: + sys.stderr.write('config is: \n' ) + dump(config.items('FO')) + return config + + + def parse_config_files(self): + config = self.read_config_files() + self.__config = config + if not 'FO' in config.sections(): + return + opts = config.items('FO') + opts_dict = {} + for pair_tupple in opts: + first = pair_tupple[0] + second = pair_tupple[1] + fields = first.split('.', 1) + if prop_as_param_dict.get(first): + self.__handle_param(prop_as_param_dict.get(first), second) + elif len(fields) == 2: + self.__handle_attributes(fields[0], fields[1], second) + elif first in param_list: + self.__handle_param(first, second) + elif first in commands_list: + pass + else: + self.__error('"%s" = "%s" not a valid config option\n' % (first, second)) + + def __post_process(self): + post_process_obj = PostProcess(attribute_sets = self.__attribute_sets, params = self.__params) + self.__attribute_sets, self.__params = post_process_obj.post_process() + if self.__verbose > 4: + sys.stderr.write('self.__attribute_sets after post process:\n') + dump(self.__attribute_sets) + sys.stderr.write('self.__params after post process:\n') + dump(self.__params) + sys.stderr.write('\n') + + def __get_shortcut_att_set(self, user_att_set): + format = self.__get_config_option(option = 'option-list.format', default = 'list') + att_set = short_cut_att_sets.get(user_att_set) + if att_set: + return att_set + att_set = short_cut_att_sets2.get((user_att_set, format)) + if att_set: + return att_set + elif att_set == None: + return user_att_set + + def __get_special_set_att(self, user_att_set, user_att): + format = self.__get_config_option(option = 'option-list.format', default = 'list') + spc_att_set_att_list = special_att_set_att_dict.get((user_att_set, user_att)) + if spc_att_set_att_list: + return spc_att_set_att_list + spc_att_set_att_list = special_att_set_att_dict2.get((user_att_set, user_att, format)) + if spc_att_set_att_list: + return spc_att_set_att_list + + + def __handle_attributes(self, user_att_set, user_att, value, check_special = True, s=None): + if special_att_sets_dict.get(user_att_set) and check_special: + self.__handle_special_atts(user_att_set, user_att, value) + return + + # change both att-set and att + spc_att_set_att_list = self.__get_special_set_att(user_att_set, user_att) + if spc_att_set_att_list and check_special: + for new_pair in spc_att_set_att_list: + att_set = new_pair[0] + att = new_pair[1] + self.__add_attribute(att_set, att, value ) + return + att_set = self.__get_shortcut_att_set(user_att_set) + fo_element = att_set_dict.get(att_set) + + spc_att_val_list = special_att_value_dict.get((user_att, value)) + if spc_att_val_list and fo_element: + for new_pair in spc_att_val_list: + att = new_pair[0] + value = new_pair[1] + self.__add_attribute(att_set, att, value ) + return + + elif fo_element: # found a valid att-set + att = custom_atts.get(user_att) + if not att: # valid attriubute, according to FO standards + att = user_att + if att not in which_list.get(fo_element): + self.__error('%s not a valid value for att-set %s' % (user_att, user_att_set)) + else: + self.__add_attribute(att_set, att, value ) + else: + self.__error('%s not a valid attribute-set' % (user_att_set)) + + def __check_value(self, att, value): + special = special_values_dict.get(value) + if special: + if special[0] == att: + return special[1] + else: + return value + else: + return value + + def __add_attribute(self, att_set, att, value): + att_exists = self.__attribute_sets.get(att_set) + if not att_exists: + self.__attribute_sets[att_set] = {} + value = self.__check_value(att, value) + self.__attribute_sets[att_set][att] = value + + def __error(self, msg): + # sys.stderr.write(msg) + # sys.stderr.write('\n') + raise FOConfigFileException(msg) + + def __get_config_option(self, option, section = 'FO', default = None): + try: + option = self.__config.get('FO', 'option-list.format') + return option + except ConfigParser.NoOptionError: + return default + + def __handle_special_atts(self, user_att_set, user_att, value): + # for opt list as list + att_list_dict = {'space-from-option_off':'provisional-distance-between-starts'} + # for opt list as def + att_def_dict = {'':''} + att_def_not_allowed = ['space-from-option_', 'space-from-label_'] + if user_att_set == 'option-list': + format = self.__get_config_option(option = 'option-list.format', default = 'list') + if format == 'list': + changed_att = att_list_dict.get(user_att) + if changed_att: + user_att = changed_att + self.__handle_attributes('option-list', user_att, value, check_special = False) + elif format == 'definition': + if user_att in att_def_not_allowed: + self.__error('%s.%s = %s not a valid attribute property\n' % + (user_att_set, user_att, value)) + self.__handle_attributes('option-list-definition-block', + user_att, value, check_special = False) + else: + self.__error('%s.%s = %s not a valid attribute property\n' % (user_att_set, user_att, value)) + + + def __handle_param(self, param, value): + to_test_dict = param_dict_test.get(param) + if to_test_dict: + correct_value = to_test_dict.get(value) + if correct_value: + self.__params[param] = correct_value + else: + self.__error('%s = %s not a valid command\n' % (param, value)) + else: + self.__params[param] = value + + def make_stylesheet(self): + self.parse_config_files() + self.__post_process() + ss_string = self.write_config_file() + return ss_string + # self.print_att_list() + + +if __name__ == '__main__': + read_config_obj = ReadConfig(import_ss = '/Users/cynthia/tmp/paultremblay/xsl_fo/docutils_to_fo.xsl' ) + ss_string = read_config_obj.main() + print ss_string diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/rst2xml_lib.py b/sandbox/paultremblay/python_interface/docutilsToFo/rst2xml_lib.py new file mode 100644 index 000000000..cb4216ace --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/rst2xml_lib.py @@ -0,0 +1,213 @@ +#!/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python +# $Id$ + +import cStringIO, sys +from lxml import etree +import lxml +import os + + +the_settings_dict = { '_config_files': ['/Users/cynthia/.docutils'], + '_destination': None, + '_disable_config': None, + '_source': 'test.rst', + 'auto_id_prefix': 'id', + 'config': None, + 'datestamp': None, + 'debug': None, + 'docinfo_xform': 1, + 'doctitle_xform': 1, + 'doctype_declaration': 1, + 'dump_internals': None, + 'dump_pseudo_xml': None, + 'dump_settings': None, + 'dump_transforms': None, + 'error_encoding': 'US-ASCII', + 'error_encoding_error_handler': 'backslashreplace', + 'exit_status_level': 5, + 'expose_internals': None, + 'file_insertion_enabled': 1, + 'footnote_backlinks': 1, + 'generator': None, + 'halt_level': 4, + 'id_prefix': '', + 'indents': None, + 'input_encoding': None, + 'input_encoding_error_handler': 'strict', + 'language_code': 'en', + 'newlines': None, + 'output_encoding': 'utf-8', + 'output_encoding_error_handler': 'xmlcharrefreplace', + 'pep_base_url': 'http://www.python.org/dev/peps/', + 'pep_file_url_template': 'pep-%04d', + 'pep_references': None, + 'raw_enabled': 1, + 'report_level': 2, + 'rfc_base_url': 'http://www.faqs.org/rfcs/', + 'rfc_references': None, + 'sectnum_xform': 1, + 'sectsubtitle_xform': 0, + 'source_link': None, + 'source_url': None, + 'strict_visitor': None, + 'strip_classes': None, + 'strip_comments': None, + 'strip_elements_with_classes': None, + 'tab_width': 8, + 'title': 'BOZO', + 'toc_backlinks': 'entry', + 'traceback': None, + 'trim_footnote_reference_space': None, + 'warning_stream': None, + 'xml_declaration': 1} + +def publish_xml_cmdline (in_path = None, in_string = None, out_path = None, settings_overrides=None ): + try: + import locale + locale.setlocale(locale.LC_ALL, '') + except: + pass + + + from docutils.core import default_description, default_usage, publish_file, publish_string + import docutils.core + description = ('Generates Docutils-native XML from standalone ' + 'reStructuredText sources. ' + default_description) + + if not in_path and not in_string: + raise TypeError('publish_xml_cmdlind() must have either "in_path" or "in_string" as parameters') + + + if in_path: + out_string = publish_file(source_path= in_path, destination_path=out_path, + settings_overrides = settings_overrides, writer_name='xml') + + elif in_string: + out_string = publish_string(source= in_string, destination_path=out_path, + settings_overrides = settings_overrides, writer_name='xml') + return out_string + + +def report_xsl_error(transform_error_obj): + for error_obj in transform_error_obj: + sys.stderr.write(error_obj.message) + sys.stderr.write('\n') + if error_obj.line != 0 and error_obj.column != 0: + sys.stderr.write(str(error_obj.line)) + sys.stderr.write(str(error_obj.column)) + #print error_obj.type, 'type' + #print error_obj.type_name, 'type_name' + +def validate_docutils(xml_file): + doc = etree.parse(file(xml_file)) + validate_docutils_rng(doc) + +# validate through xslt stylesheet +def validate_fo_xsl(xml_file): + xsl_ss = os.path.join(os.path.dirname(__file__), 'valid','folint.xsl') + xslt_doc = etree.parse(xsl_ss) + transform = etree.XSLT(xslt_doc) + try: + indoc = etree.parse(xml_file) + except lxml.etree.XMLSyntaxError, msg: + sys.stderr.write('Invalid XML\n') + sys.stderr.write(str(msg)) + sys.stderr.write('\n') + return 1 + try: + outdoc = transform(indoc) + except lxml.etree.XSLTApplyError, error: + msg = 'error converting %s to %s with %s:\n' % (xml_file, out_file, xslt_file) + msg += str(error) + msg += '\n' + report_xsl_error(transform.error_log) + return 1 + report_xsl_error(transform.error_log) + return len(transform.error_log) + +def validate_docutils_rng(xml_obj): + the_rng = os.path.join(os.path.dirname(__file__), 'valid','docutils.rng') + relaxng_doc = etree.parse(file(the_rng)) + relaxng = etree.RelaxNG(relaxng_doc) + is_valid = relaxng.validate(xml_obj) + if not is_valid: + sys.stderr.write('Document not Valid:\n') + report_xsl_error(relaxng.error_log) + return 1 + + + +def validate_docutils_dtd(xml_obj): + the_dtd = os.path.join(os.path.dirname(__file__), 'valid','docutils.dtd') + if not os.path.isfile(the_dtd): + msg = '"%s" cannot be found\n' % (the_dtd) + raise IOError(msg) + + dtd = etree.DTD(file(the_dtd)) + is_valid = dtd.validate(xml_obj) + if not is_valid: + sys.stderr.write('Document not Valid:\n') + report_xsl_error(dtd.error_log) + return 1 + +def transform_lxml(xslt_file, xml_file, valid_docutils = True, + param_dict = {}, out_file = None, verbose = 0, valid_fo = True): + # have to put quotes around string params + temp = {} + the_keys = param_dict.keys() + for the_key in the_keys: + if len(the_key) > 0: + if the_key[0] == '"' and the_key[-1] == '"': + temp[the_key] = param_dict[the_key] + elif the_key[0] == "'" and the_key[-1] == "'": + temp[the_key] = param_dict[the_key] + else: + temp[the_key] = "'%s'" % param_dict[the_key] + param_dict = {} + param_dict.update(temp) + + xslt_doc = etree.parse(xslt_file) + try: + transform = etree.XSLT(xslt_doc) + except lxml.etree.XSLTParseError, error: + sys.stderr.write(str(error) + '\n') + return 1 + try: + indoc = etree.parse(xml_file) + except lxml.etree.XMLSyntaxError, msg: + sys.stderr.write('Invalid XML\n') + sys.stderr.write(str(msg)) + sys.stderr.write('\n') + return 1 + if valid_docutils: + not_valid = validate_docutils_rng(indoc) + if not_valid: + return 1 + elif verbose > 2: + sys.stderr.write('docutils document is valid\n') + try: + outdoc = transform(indoc, **param_dict) + except lxml.etree.XSLTApplyError, error: + msg = 'error converting %s to %s with %s:\n' % (xml_file, out_file, xslt_file) + msg += str(error) + msg += '\n' + report_xsl_error(transform.error_log) + return 1 + report_xsl_error(transform.error_log) + if valid_fo: + not_valid = validate_fo_xsl(cStringIO.StringIO(str(outdoc))) + if not_valid: + return 1 + elif verbose > 2: + sys.stderr.write('FO document is valid\n') + if out_file: + write_obj = open(out_file, 'w') + outdoc.write(write_obj) + write_obj.close() + else: + sys.stdout.write(str(outdoc)) + + +if __name__ == '__main__': + custom = {'title':'Doc Title'} + publish_xml_cmdline('test.rst', 'out.xml', custom) diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/basic_properties.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/basic_properties.rng new file mode 100644 index 000000000..6cb38b8fe --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/basic_properties.rng @@ -0,0 +1,3087 @@ + + + + + + + + none + hidden + dotted + dashed + solid + double + groove + ridge + inset + outset + inherit + + + + + 0 + 90 + 180 + 270 + -90 + -180 + -270 + 0deg + 90deg + 180deg + 270deg + -90deg + -180deg + -270deg + inherit + + + + + auto + always + + + + + + + + absolute + fixed + + + + + + + + auto + inherit + + + + + + + + link + visited + active + hover + focus + + + + + + + + + + + + + + + + auto + baseline + before-edge + text-before-edge + middle + central + after-edge + text-after-edge + top + text-top + bottom + text-bottom + ideographic + alphabetic + hanging + mathematical + inherit + + + + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + scroll + fixed + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + repeat + repeat-x + repeat-y + no-repeat + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uniform + non-uniform + + + + + + + + + + + + + + + + blank + not-blank + any + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + collapse + collapse-with-precedence + separate + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + column + page + even-page + odd-page + inherit + + + + + + + + auto + column + page + even-page + odd-page + inherit + + + + + + + + before + after + start + end + top + bottom + left + right + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + start + end + left + right + both + none + inherit + + + + + + + + + auto + inherit + + + + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ltr + rtl + inherit + + + + + + + + auto + before + center + after + inherit + + + + + + + + auto + use-script + no-change + reset-size + ideographic + alphabetic + hanging + mathematical + central + middle + text-after-edge + text-before-edge + inherit + + + + + + + + + + + + + + + + show + hide + inherit + + + + + + + + + + + + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + before + + + + + + start + end + left + right + none + inside + outside + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + character-by-character + inherit + + + + + + + + + + + + + + + + + + + + + + + + normal + wider + narrower + ultra-condensed + extra-condensed + condensed + semi-condensed + semi-expanded + expanded + extra-expanded + ultra-expanded + inherit + + + + + + + + normal + italic + oblique + backslant + inherit + + + + + + + + normal + small-caps + inherit + + + + + + + + normal + bold + bolder + lighter + inherit + 100 + 200 + 300 + 400 + 500 + 600 + 700 + 800 + 900 + + + + + + + + auto + even + odd + end-on-even + end-on-odd + no-force + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + true + inherit + + + + + + + + + + + auto + column + page + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + none + line + indent + block + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + reference-area + page + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + space + rule + dots + use-content + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + alphabetic + traditional + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + line-height + font-height + max-height + inherit + + + + + + + + ignore + preserve + treat-as-space + treat-as-zero-width-space + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto + paginate + bounded-in-one-dimension + unbounded + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + author + title + subject + keywords + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + odd + even + any + inherit + + + + + + + + true + false + + + + + + + + + + + + + + + + visible + hidden + scroll + auto + error-if-overflow + inherit + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + + + + + + + + + discard + retain + + + + + + + + + + + + + + + + auto + always + avoid + left + right + inherit + + + + + + + + auto + always + avoid + left + right + inherit + + + + + + + + avoid + auto + inherit + + + + + + + + + + + + + + + + first + last + rest + any + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + absolute + fixed + + + + + + + static + relative + inherit + + + + + + + + true + false + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + before + baseline + inherit + + + + + + + + auto + static + relative + inherit + + + + + + + + + auto + perceptual + relative-colorimetric + saturation + absolute-colorimetric + inherit + + + + + + + + + page + page-sequence + document + + + + + + + + + + + first-starting-within-page + first-including-carryover + last-starting-within-page + last-ending-within-page + + + + + + + + + + + + + + + + + + + + + + + + + + + none + dotted + dashed + solid + double + groove + ridge + inherit + + + + + + + + + + + + + + + + uniform + non-uniform + inherit + + + + + + + + auto + integer-pixels + resample-any-method + inherit + + + + + + + + true + false + inherit + + + + + + + + + + + + + + + + replace + new + + + + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + all + inherit + + + + + + + + normal + none + spell-out + inherit + + + + + + + + once + always + inherit + + + + + + + + digits + continuous + inherit + + + + + + + + code + none + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + false + + + + + + + + + + + + + + + + auto + suppress + retain + inherit + + + + + + + + + + + + + + + + auto + fixed + inherit + + + + + + + + true + false + inherit + + + + + + + + true + false + inherit + + + + + + + + + + + + + + + + + + start + center + end + justify + inside + outside + left + right + inherit + + + + + + + + relative + start + center + end + justify + inside + outside + left + right + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + capitalize + uppercase + lowercase + none + inherit + + + + + + + + + + + + + + + + auto + true + false + inherit + + + + + + + + normal + embed + bidi-override + inherit + + + + + + + + + + + + + + + + + + + visible + hidden + collapse + inherit + + + + + + + + + + + + + + + + + + + + + + + + normal + pre + nowrap + inherit + + + + + + + + false + true + inherit + + + + + + + + ignore + preserve + ignore-if-before-linefeed + ignore-if-after-linefeed + ignore-if-surrounding-linefeed + inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + retain + discard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no-wrap + wrap + inherit + + + + + + + + lr-tb + rl-tb + tb-rl + lr + rl + tb + inherit + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/datatype.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/datatype.rng new file mode 100644 index 000000000..86b9f0e57 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/datatype.rng @@ -0,0 +1,115 @@ + + + + + + + + + + + + + [\-+]?(\d*\.?\d+)(cm|mm|in|pt|pc|px|em) + + + + + [\-+]?(\d*\.?\d+)(deg|grad|rad) + + + + + [\-+]?(\d*\.?\d+)% + + + + + .|\r|\n + + + + + + + + + + + + + + + + + + + \w{2,3} + + + + + \w{2,3} + + + + + \w + + + + + + + + + + [\-+]?(\d*\.?\d+)(m?s) + + + + + [\-+]?(\d*\.?\d+)(k?Hz) + + + + + + (([\-+]?(\d*\.?\d+)(cm|mm|in|pt|pc|px|em))|auto) (([\-+]?(\d*\.?\d+)(cm|mm|in|pt|pc|px|em))|auto) (([\-+]?(\d*\.?\d+)(cm|mm|in|pt|pc|px|em))|auto) (([\-+]?(\d*\.?\d+)(cm|mm|in|pt|pc|px|em))|auto) + + + + + + .*\(.*\).* + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.dtd b/sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.dtd new file mode 100644 index 000000000..571c4228e --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.dtd @@ -0,0 +1,618 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%calstblx; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.rng new file mode 100644 index 000000000..ee67f616a --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/docutils.rng @@ -0,0 +1,1503 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + preserve + + + + + + + + left + center + right + + + + + + + + + top + middle + bottom + left + center + right + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + arabic + loweralpha + upperalpha + lowerroman + upperroman + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/elements.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/elements.rng new file mode 100644 index 000000000..ebe0cb87e --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/elements.rng @@ -0,0 +1,1143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/folint.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/valid/folint.xsl new file mode 100644 index 000000000..30e2a1414 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/folint.xsl @@ -0,0 +1,3554 @@ + + + + + + + + + +1 + + + + + + + + + + + Incorrect namespace at top element - should be 'http://www.w3.org/1999/XSL/Format' + + + Incorrect top element - should be 'root' + + + + + + + + + + + + + + + + + Attributes with value of 'inherit' are meaningless on ''. + + + + + + + + + + + Element 'layout-master-set' is required as a child of ''. + + + + + + There can be only one '' element as a child of ''. + + + + + + There can be only one '' element as a child of ''. + + + + + + There should be at least one 'page-sequence' element as a child of ''. + + + + + + Element '' shall precede ''. + + + + + + Element '' shall be placed before the first '' element. + + + + + + Element '' shall be placed before the first '' element. + + + + + + + There can be only one '' element as a child of ''. + + + + + + There can be only one '' element as a child of ''. + + + + + + Element '' should be the first child of ''. + + + + + + Element '' shall be placed before the first '' element. + + + + + + + + + + + + + + + + + Only 'simple-page-master' and 'page-sequence-master' elements are permitted in this context. + + + + + There should be at least one 'simple-page-master' element inside ''. + + + + + + + + + + + + + + + + Only region descriptors are permitted in this context. + + + + + Attribute 'master-name' is required for ''. + + + + + + + + Duplicate identifier: master-name="". + Property 'master-name' should be unique within ''. + + + + + + + Element 'region-body' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + + + + + Incorrect order of region descriptors inside ''. Regions shall be ordered according to the following content model: fo:region-body, fo:region-before?, fo:region-after?, fo:region-start?, fo:region-end? + + + + + + + + + + + + + + + + Attribute 'extent' is required for ''. + + + + + + + + + + + + + + + + + + Duplicate identifier: region-name="". + Property 'region-name' shall be unique within ''. + + + + + + + + + Padding on '' is a RenderX extension. + + + + + + + + Border on '' is a RenderX extension. + + + + + + + + + + + + + + + + + + Attribute 'master-name' is required for ''. + + + + + + + + Duplicate identifier: master-name="". + Property 'master-name' should be unique within ''. + + + + + + Only page sequence specifiers are permitted in this context. + + + + + At least one page sequence specifier is required inside ''. + + + + + + + + + + + + + + + + Attribute 'master-reference' is required for ''. + + + + + + + + + + + + + + Only 'conditional-page-master-reference' elements are permitted in this context. + + + + + At least one 'conditional-page-master-reference' element should be present inside ''. + + + + + + + + + + + + + + + Only 'meta-field' elements are permitted in this context. + + + + + At least one 'meta-field' element should be present inside ''. + + + + + + + + + + + + + + + + Attribute 'name' is required for ''. + + + + + Attribute 'value' is required for ''. + + + + + + + + + + Element 'page-device' is obsolete; use <?xep-postscript-* ?> processing instructions instead. + + + + + + + + + + + + + Only 'color-profile' elements are permitted in this context. + + + + + + + + + + + + + + + Attribute 'color-profile-name' is required for ''. + + + + + Attribute 'src' is required for ''. + + + + + + + + + + + + + + Only 'bookmark' elements are permitted in this context. + + + + + At least one 'bookmark' element should be present inside ''. + + + + + + + + + + + + + + + + + Either 'internal-destination' or 'external-destination' attribute must be present on ''. + + + + + + Only one of 'internal-destination' or 'external-destination' attributes can be present on ''. + + + + + Only 'bookmark-label' and/or nested 'boormark' elements are permitted in this context. + + + + + Element 'bookmark-label' is required inside ''. + + + + + + There should be exactly one '' element inside ''. + + + + + + Element '' should be the first child of ''. + + + + + + + + + + + + + + + Only plain text is permitted in this context. + + + + + + + + + + + + + + Attribute 'master-reference' is required for ''. + + + + + Only 'flow', 'static-content', and 'title' elements are permitted in this context. + + + + + Element 'flow' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be at most one '' element inside ''. + + + + + + Element '' should be the first child of its parent ''. + + + + + + Element '' should be the last child of its parent ''. + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute 'flow-name' is required for ''. + + + + + + + + Duplicate identifier: flow-name="". + Property 'flow-name' should be unique within ''. + + + + + + + + + + + + + + + + + + Element '' must be a direct descendant of 'flow'. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute 'direction' is required for ''. + + + + + + + + + + + + + + + + + Attribute 'character' is required for ''. + + + + + + + + + + + + + + + + + Element '' should be the first child of ''. + + + + + + Element '' cannot be preceded by non-space characters in ''. + + + + + + Only one '' element is permitted in 'xsl:value-of select="name(parent::fo:block)"/>'. + + + + + + + Element '' can only occur inside 'block'. + + + + + + + + + + + + + + + + + + Element '' should be the first child of ''. + + + + + + Element '' cannot be preceded by non-space characters in ''. + + + + + + Only one '' element is permitted in 'xsl:value-of select="name(parent::fo:block-container)"/>'. + + + + + + + Element '' can only occur inside 'block-container'. + + + + + + + + + + + + + + + + Attribute 'src' is required for ''. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute 'ref-id' is required for ''. + + + + + + + + + + + + + + Attribute 'ref-id' is required for ''. + + + + + + + + + + + + + + + Attribute 'value' is required for ''. + + + + + + + + + + + + + + Only 'rx:index-item' elements are permitted in this context + + + + + Element '' must have either 'ref-key' attribute, or 'rx:index-item' descendant elements. + + + + + Element '' can have either 'ref-key' attribute or '' descendant elements, but not both. + + + + + + + + + + + + + + + Attribute 'ref-key' is required for ''. + + + + + + + + + + + + + + + Attribute 'rx:key' is required for ''. + + + + + + + Attribute 'id' is required for ''. + + + + + + + + Two or more '' elements with id=''; 'id' should be unique within the document. + + + + + + + + + Unmatched '' element with id='': no correspondent 'rx:end-index-range' found. + + + + + + + + + + + + + + + + + + Attribute 'ref-id' is required for ''. + + + + + + + + Two or more '' elements with ref-id=''. + + + + + + + Element '' with ref-id='' precedes its matching ''. + + + + + + Unmatched '' element with ref-id='': no correspondent 'rx:begin-index-range' found. + + + + + + + + + + + + + + + + + Only 'table-caption' and 'table' elements are permitted in this context. + + + + + Element 'table' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + Element '' must precede '' inside ''. + + + + + + + + + + + + + + + + + + + + + + + + + + Only 'table-column' elements, row group elements, and markers are permitted in this context. + + + + + At least one 'table-body' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + '' elements should be located before any other element in ''. + + + + + + Element '' should be located before '' in ''. + + + + + + Element '' should be located before '' in ''. + + + + + + '' elements should be located last in ''. + + + + + + + + + + + + + + + + Only 'table-row', 'table-cell', or 'marker' elements are permitted in this context. + + + + + + Empty ''. + + + + + + + '' and '' elements should not be mixed inside '' element. + + + + + + + + + + + + + + + + Only 'table-cell' elements are permitted in this context. + + + + + Element '' should be wrapped in 'table-body', 'table-header', or 'table-footer'. + + + + + + + + + + + + + + + + + + + + + + + + + Only 'list-item' or 'marker' elements are permitted in this context. + + + + + + + + + + + + + + + Element '' shall consist of one 'list-item-label' and one 'list-item-body'. + + + + + Element '' should be a child of 'list-block'. + + + + + + Element 'list-item-label' is required inside ''. + + + + + + Element 'list-item-body' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + Element '' must precede '' inside ''. + + + + + + Start-indent is not specified neither on '' nor on '': list subcomponents will overlap + + + + + + End-indent is not specified neither on '' nor on '': list subcomponents will overlap + + + + + + + + + + + + + + + + + + + + + + + + + + + Element '' shall consist of one 'inline' and one 'footnote-body'. + + + + + Element 'inline' is required inside ''. + + + + + + Element 'footnote-body' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + Element '' must precede '' inside ''. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute 'marker-class-name' is required for ''. + + + + + + + Sibling elements have the same value of 'marker-class-name' attribute (""). + + + + + + + + '' elements should be initial children of their parents. + + + + + + Element '' cannot be preceded by non-space text nodes. + + + + + + Element '' should be a descendant of 'flow'. + + + + + + Element '' cannot be used inside ''. + + + + + + Element '' cannot be used inside ''. + + + + + + Element '' cannot be used inside ''. + + + + + + + + + + + + + + + + Attribute 'retrieve-class-name' is required for ''. + + + + + + Element '' should be a descendant of 'static-content'. + + + + + + + + + + + + + + + Either 'internal-destination' or 'external-destination' attribute must be present on ''. + + + + + + Only one of 'internal-destination' or 'external-destination' attributes can be present on ''. + + + + + + + + + + + + + + + + Only 'multi-case' elements are permitted in this context. + + + + + + + + + + + + + + + Element '' should be a child of 'multi-switch'. + + + + + + + + + + + + + + + + Element '' can be used only inside 'multi-case'. + + + + + + + + + + + + + + + + Element '' shall consist of one or more 'multi-property-set' elements, followed by a 'wrapper'. + + + + + At least one 'multi-property-set' element should be specified in ''. + + + + + + Element 'wrapper' is required inside ''. + + + + + + There can be only one '' element inside ''. + + + + + + Element '' must be located after all '' elements inside ''. + + + + + + + + + + + + + + + + + Attribute 'active-state' is required for ''. + + + + + + Element '' should be a child of 'multi-properties'. + + + + + + + + + + + + + + Only block-level elements are permitted in this context. + + + + Only block-level elements are permitted in this context. + + + + + + + + + + + + Only inline-level elements are permitted in this context. + + + + + + + + + + + + Only block-level or inline-level elements are permitted in this context. + + + + + + + + + + + + + Element '' should be a descendant of 'flow'. + + + + + + Element '' cannot be a descendant of ''. + + + + + + Element '' cannot be a descendant of ''. + + + + + + Element '' cannot be a descendant of ''. + + + + + + Element '' cannot be a descendant of an absolutely positioned + ''. + + + + + + + + + + + + + + + + + Element '' cannot have non-empty text descendants here. + + + + + + + + + + + + + + + Element '' must be empty. + + + + + + + + + + + + + + + + + Element '' cannot be a child of ''. + + + + + + + + + + Element '' belonging to the anonymous namespace cannot occur in an XSL-FO document outside 'instream-foreign-object' elements. + + + + + + + + SVG element '' is located outside 'instream-foreign-object' element. + + + + + + + + + Element '' belongs to an unknown namespace + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Element '' cannot be a descendant of '' through wrapper elements. + + + + + + + + + + + + + Element '' cannot be a descendant of '' through wrapper or inline elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute '' cannot occur at element ''. + + + + + + Attribute '' at element '' belongs to an unknown namespace + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute '' cannot have a value of "". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Attribute '' cannot have a value of "". + + + + + + + + + + + + + + Attribute '' cannot have a value of "": should be either 'inherit' or a URI: ="url(...)". + + + + + + + + + + + + + + + Attribute '' cannot have a value of "": should be 'inherit', 'none', or one or more URIs: source="url(...) [url(...) ...]". + + + + + + + + + + + + auto absolute fixed inherit + + + + + + auto inherit + + + + + + + + + + + below level above higher lower inherit + + + + + + inherit + + + + + + x-low low medium high x-high inherit + + + + + + inherit + + + + + + + + inherit + + + + + + normal none spell-out inherit + + + + + + once always inherit + + + + + + digits continuous inherit + + + + + + code none inherit + + + + + + x-slow slow medium fast x-fast faster slower inherit + + + + + + inherit + + + + + + + silent x-soft soft medium loud x-loud inherit + + + + + + + + scroll fixed inherit + + + + + + + + + + + + + + repeat repeat-x repeat-y no-repeat inherit + + + + + + left center right inherit + + + + + + top center bottom inherit + + + + + + + + none hidden dotted dashed solid double groove ridge inset outset inherit + + + + + + thin medium thick inherit + + + + + + discard retain + + + + + + inherit + + + + + + discard retain + + + + + + + + + + + + auto character-by-character inherit + + + + + + + xx-small x-small small medium large x-large xx-large larger smaller inherit + + + + + + + normal wider narrower ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expanded inherit + + + + + + + none inherit + + + + + + + normal italic oblique backslant inherit + + + + + + + normal small-caps inherit + + + + + + + normal bold bolder lighter inherit + + + + + + + + + + + + + + + + + + + + false true inherit + + + + + + + + + + + inherit + + + + + + + + auto inherit + + + + + + + + + + inherit + + + + + + + discard retain + + + + + + force + + + + + + + inherit + + + + + + + + static relative inherit + + + + + + + auto baseline before-edge text-before-edge middle central after-edge text-after-edge ideographic alphabetic hanging mathematical top bottom text-top text-bottom inherit + + + + + + auto baseline before-edge text-before-edge middle central after-edge text-after-edge ideographic alphabetic hanging mathematical top bottom text-top text-bottom inherit + + + + + + baseline sub super inherit + + + + + + + auto before center after inherit + + + + + + auto use-script no-change reset-size ideographic alphabetic hanging mathematical central middle text-after-edge text-before-edge inherit + + + + + + + + before baseline inherit + + + + + + + + auto inherit + + + + + + + none inherit + + + + + + + inherit + + + + + + + auto scale-to-fit inherit + + + + + + + uniform non-uniform inherit + + + + + + + auto integer-pixels resample-any-method inherit + + + + + + + + + auto column page inherit + + + + + + + + no-limit inherit + + + + + + + + inherit + + + + + + + normal inherit + + + + + + + inherit + + + + + + + + discard retain + + + + + + + + force + + + + + + + + consider-shifts disregard-shifts inherit + + + + + + + + line-height font-height max-height inherit + + + + + + + + ignore preserve treat-as-space treat-as-zero-width-space inherit + + + + + + + + ignore preserve ignore-if-before-linefeed ignore-if-after-linefeed ignore-if-surrounding-linefeed inherit + + + + + + + + + + start center end justify inside outside left right inherit + + + + + + + + + + relative start center end justify inside outside left right inherit + + + + + + + + false true inherit + + + + + + + + no-wrap wrap inherit + + + + + + + + + + + normal inherit + + + + + + discard retain + + + + + + force + + + + + + + auto suppress retain inherit + + + + + + + + + + + + + + + capitalize uppercase lowercase none inherit + + + + + + + auto false true inherit + + + + + + + + + + + auto perceptual relative-colorimetric saturation absolute-colorimetric inherit + + + + + + + + + + start end left right both none inherit + + + + + + + + before start end left right inside outside none inherit + + + + + + Value "" for 'float' attribute is a RenderX extension. + + + + + + + + + + auto none line indent block inherit + + + + + + + + + auto column page even-page odd-page inherit + + + + + + auto always inherit + + + + + + + + inherit + + + + + + + + + + visible hidden scroll error-if-overflow auto inherit + + + + + + + + 0 90 180 270 -90 -180 -270 inherit + + + + + + 0 90 180 270 -90 -180 -270 inherit + + + + + + + Attribute 'span' cannot be used inside ''. + + + + + + none all inherit + + + + + + + + + none reference-area page inherit + + + + + + + + space rule dots use-content inherit + + + + + + + + use-font-metrics inherit + + + + + + + + inherit + + + + + + + + none dotted dashed solid double groove ridge inherit + + + + + + + + inherit + + + + + + + link visited active hover focus + + + + + + + + false true + + + + + + + + + + + + + + + + + + + + + + + true false + + + + + + + + true false + + + + + + replace new + + + + + replace new + + + + + + + show hide + + + + + + + + + + + + + + + first-starting-within-page first-including-carryover last-starting-within-page last-ending-within-page + + + + + + page page-sequence document + + + + + + + + + + + + + + + auto alphabetic traditional + + + + + + + blank not-blank any + + + + + + even odd any + + + + + + first last rest any + + + + + + + + + + + + + + + + + + + + + + + + + + + + auto even odd end-on-even end-on-odd no-force + + + + + + auto auto-odd auto-even + + + + + + + + + + no-limit + + + + + + + auto paginate bounded-in-one-dimension unbounded + + + + + + auto indefinite + + + + + + true false + + + + + + + + + + + force inherit + + + + + + + + collapse collapse-with-precedence separate inherit + + + + + + + + inherit + + + + + + + + + before after start end top bottom left right inherit + + + + + + + + + + + + + + + + show hide inherit + + + + + + true false + + + + + + + + + + + + + + + + + + + + auto fixed inherit + + + + + + true false + + + + + + + + + ltr rtl inherit + + + + + + + inherit + + + + + + + auto inherit + + + + + + use-font-metrics inherit + + + + + + + normal embed bidi-override inherit + + + + + + + + lr-tb rl-tb tb-rl tb-lr lr-alternating-rl-tb lr-inverting-rl-tb lr-bt rl-bt bt-rl bt-lr lr-alternating-rl-bt lr-inverting-rl-bt tb-lr-in-lr-pairs lr rl tb inherit + + + + + + lr-tb rl-tb tb-rl tb-lr lr-alternating-rl-tb lr-inverting-rl-tb lr-bt rl-bt bt-rl bt-lr lr-alternating-rl-bt lr-inverting-rl-bt tb-lr-in-lr-pairs lr rl tb inherit + + + + + + + + + + + + + + Attribute '' cannot have a value of "": if not 'auto', it should be prefixed by either 'namespace:' or 'content-type:'. + + + + + + + + + + + + + + + + inherit + + + + + + + true false inherit + + + + + + + + + + + + + + + visible hidden collapse inherit + + + + + + auto inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + auto always avoid left right inherit + + + + + + + auto avoid inherit + + + + + + + + static relative absolute fixed inherit + + + + + + auto landscape portrait + + + + + + baseline middle sub super text-top text-bottom top bottom inherit + + + + + + + normal pre nowrap inherit + + + + + + + + + + + + + auto scale-to-fit inherit + + + + + + uniform non-uniform inherit + + + + + + + + + + + + + + + + + + + + + + + + + + + false true + + + + + + + + false true + + + + + + + + + [error] + + + + + + + + [warning] + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/main.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/main.rng new file mode 100644 index 000000000..a1db914e1 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/main.rng @@ -0,0 +1,474 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties.rng new file mode 100644 index 000000000..847107996 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties.rng @@ -0,0 +1,991 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties_groups.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties_groups.rng new file mode 100644 index 000000000..606c179b2 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/properties_groups.rng @@ -0,0 +1,1209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.dtd b/sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.dtd new file mode 100644 index 000000000..23bb45892 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.dtd @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.rng b/sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.rng new file mode 100644 index 000000000..881f9006a --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/valid/soextblx.rng @@ -0,0 +1,518 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + top + bottom + topbot + all + sides + none + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + left + right + center + justify + char + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + left + right + center + justify + char + + + + + + + + + + + + + + + + + + + + + + + + + + + top + middle + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + top + middle + bottom + + + + + + + + + + + + + + + + + + + + + + top + middle + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + left + right + center + justify + char + + + + + + + + + + + + + + + top + middle + bottom + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/admonitions.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/admonitions.xsl new file mode 100644 index 000000000..d495da333 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/admonitions.xsl @@ -0,0 +1,231 @@ + + + + + + solid + 1px + 6pt + always + + + + + 10pt + larger + red + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + black + + + + black + + + + black + + + + black + + + + + + + black + + + + 12pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bibliographic_fields.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bibliographic_fields.xsl new file mode 100644 index 000000000..3579c6d2d --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bibliographic_fields.xsl @@ -0,0 +1,575 @@ + + + + + + + + 0mm + 30mm + 12pt + 12pt + + + + + 12pt + + + + 0pt + + + + label-end() + + + + body-start() + + + + bold + + + + + + + + + + + + pre + + + + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + pre + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + 12pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Can only handle 10 custom fields in biblilographic fields entries + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_directives.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_directives.xsl new file mode 100644 index 000000000..b1f3a65b7 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_directives.xsl @@ -0,0 +1,302 @@ + + + + + 12pt + 12pt + + + + bold + 12pt + + + + 12pt + 0pt + + + + + + + 12pt + 12pt + #FFFFF0 + 6pt + 10mm + 40mm + + + + bold + 12pt + + + + bold + 12pt + + + + + 12pt + + + + 0pt + + + + center + larger + red + + + + + 20mm + 20mm + 12pt + 12pt + right + italic + + + + inherit + inherit + 12pt + + + + 0pt + + + + + right + + + + + 20mm + 20mm + 12pt + 12pt + + + + inherit + inherit + 12pt + + + + 0pt + + + + + 20mm + 20mm + 12pt + 12pt + + + + inherit + inherit + 12pt + + + + 0pt + + + + right + + + + + 12pt + 12pt + + + + 12pt + + + + 0pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_elements.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_elements.xsl new file mode 100644 index 000000000..a8744a0f0 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/body_elements.xsl @@ -0,0 +1,230 @@ + + + + + 12pt + + + + + + + monospace + 8 + pre + 12pt + 12pt + + + + + 12pt + 12pt + center + + + + 12pt + 24pt + center + bold + + + + + + + + 12pt + 12pt + 18pt + center + bold + + + + 20mm + 20mm + 12pt + 12pt + + + + + 12pt + + + + 0pt + + + + + right + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bullet_list.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bullet_list.xsl new file mode 100644 index 000000000..2cc943dc4 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/bullet_list.xsl @@ -0,0 +1,174 @@ + + + + + + 5mm + 5mm + 12pt + 12pt + + + + + 12pt + + + + + 0pt + + + + 12pt + + + + + 0pt + + + + + label-end() + + + + + + + + + body-start() + + + + + 12pt + + + + + 15mm + 5mm + 12pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cannot format lists more than 2 levels deep + + + + Processinng stylesheets now quiting + + + Not formatting text + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/citation.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/citation.xsl new file mode 100644 index 000000000..312e9c83d --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/citation.xsl @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/definition_list.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/definition_list.xsl new file mode 100644 index 000000000..75dcd8085 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/definition_list.xsl @@ -0,0 +1,141 @@ + + + + + + + 12pt + 12pt + + + + + 12pt + + + + + 0pt + + + + + bold + + + + + + + + + + italic + + + + + + + 12pt + 30pt + + + + + 0pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + : + + + + + + + + + FATAL: Should not have nested definition lists + Processinng stylesheets now quiting + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/docutils_to_fo.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/docutils_to_fo.xsl new file mode 100644 index 000000000..5fa6e6d78 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/docutils_to_fo.xsl @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/enumerated_list.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/enumerated_list.xsl new file mode 100644 index 000000000..96a2b53c2 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/enumerated_list.xsl @@ -0,0 +1,148 @@ + + + + 5mm + 10mm + 12pt + 12pt + + + + 15mm + 10mm + 12pt + 12pt + + + + + 12pt + + + + 0pt + + + + 12pt + + + + 0pt + + + + label-end() + + + + body-start() + + + + 12pt + + + + + + + + + + + + + + + 1 + + + A + + + a + + + i + + + I + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cannot format lists more than 2 levels deep + + + + Processinng stylesheets now quiting + + + Not formatting text + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/error.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/error.xsl new file mode 100644 index 000000000..e25e2da35 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/error.xsl @@ -0,0 +1,386 @@ + + + + + + + + " + + " not a valid value for param "title-pagination" + Valid values are 'with-front', 'with-body', or 'with-body' + + + + + + + + + " + + " not a valid value for param "bibliographic-pagination" + Valid values are 'with-front', 'with-body', or 'with-body' + + + + + + + + + " + + " not a valid value for param "dedication-pagination" + Valid values are 'with-front', 'with-body', or 'with-body' + + + + + + + + + " + + " not a valid value for param "abstract-pagination" + Valid values are 'with-front', 'with-body', or 'with-body' + + + + + + + + + " + + " not a valid value for param "toc-pagination" + Valid values are 'with-front', 'with-body', or 'with-body' + + + + + + + + + " + + " not a valid value for param "page-layout" + Valid values are 'simple', 'odd-even', 'first', or 'first-odd-even' + + + + + + + + " + + " not a valid value for param "option-list-format" + Valid values are 'list', and 'definition' + + + + + + + + " + + " not a valid value for param "number-verse" + Please use a number + + + + + + + + " + + " not a valid value for param "table-title-placement" + Valid values are 'top', and 'bottom' + + + + + + + + " + + " not a valid value for param "footnote-style" + Valid values are 'list', and 'traditional' + + + + + + + + " + + " not a valid value for param "footnote-placement" + Valid values are 'footnote', and 'endnote' + + + + + + + + " + + " not a valid value for param "internal-link-type" + Valid values are 'link', and 'page', and 'page-link' + + + + + + + + " + + " not a valid value for param "bibliographic-format" + Valid values are 'list', 'normal', or ''. + + + + + + + + + + + + + + + 'title' has not been declared in parameter 'front-order', + yet this element exists. + Please fix. (For example, 'title, bibliographic, dedication, abstract, toc') + + + + + + + + 'bibliographic' has not been declared in parameter 'front-order', + yet this element exists. + Please fix. (For example, 'title, bibliographic, dedication, abstract, toc') + + + + + + + + 'dedication' has not been declared in parameter 'front-order', + yet this element exists. + Please fix. (For example, 'title, bibliographic, dedication, abstract, toc') + + + + + + + + 'abstract' has not been declared in parameter 'front-order', + yet this element exists. + Please fix. (For example, 'title, bibliographic, dedication, abstract, toc') + + + + + + + + 'toc' has not been declared in parameter 'front-order', + yet this element exists. + Please fix. (For example, 'title, bibliographic, dedication, abstract, toc') + + + + + + + + + + True + + + + + + + + + + + + + + + " + + " not a valid area for parameter 'front-order' + Valid values are 'title', 'bibliographic', 'dedication', + 'abstract', and 'toc' + + + + + + + + + + + + + + + + + + + + + / + + + + + + + / + + + + + + + + + + + + + + => + + + + + + + siblings: + + + + + + + + + + + + + + + + + [ + + + =" + + " + + ] + + + + + + + + + + + no match for + + + + + + Processing XSLT Stylesheets now quiting + + + + + Not processing text in this element. + + + + + + + + Error when converting to XML: + + + + + + + + + + + + + + Processing stylesheets now quitting. + + + + + + + + + + + + + + + Not processing text for this element. + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/field_list.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/field_list.xsl new file mode 100644 index 000000000..1e2afaf28 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/field_list.xsl @@ -0,0 +1,90 @@ + + + + + + 0mm + 30mm + 12pt + 12pt + + + + + 12pt + + + + 0pt + + + + label-end() + + + + body-start() + + + + + 12pt + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/footnote.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/footnote.xsl new file mode 100644 index 000000000..8182ede17 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/footnote.xsl @@ -0,0 +1,232 @@ + + + + + + + + + + normal + normal + + + + + super + 8pt + + + + + + + + + + + + + + 0pt + 18pt + + + + + label-end() + + + + + + + + + body-start() + + + + + + + + + 5pt + + + + + 0pt + + + + + + + page + + + + + 5pt + + + + + 0pt + + + + + + 18pt + bold + 18pt + center + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/front_matter.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/front_matter.xsl new file mode 100644 index 000000000..3e8f33547 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/front_matter.xsl @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + center + bold + 12pt + + + + + center + bold + + + + + italic + 12pt + + + + 0pt + + + + + 12pt + + + + 0pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/header_footer.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/header_footer.xsl new file mode 100644 index 000000000..4819e09da --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/header_footer.xsl @@ -0,0 +1,463 @@ + + + + + + 12pt + center + retain + + + + + + + + + + + + + + + + 12pt + center + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 12pt + center + retain + + + + 12pt + center + + + + 12pt + center + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/image_figure.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/image_figure.xsl new file mode 100644 index 000000000..8426daa09 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/image_figure.xsl @@ -0,0 +1,135 @@ + + + + + + + + + + + 12pt + 12pt + bold + smaller + center + + + + 12pt + 12pt + + + + 12pt + + + + 0pt + + + + + + + + + left + + + + + + + + url(' + + ') + + + + + % + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/inline.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/inline.xsl new file mode 100644 index 000000000..e4bcbda3a --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/inline.xsl @@ -0,0 +1,100 @@ + + + + + + italic + + + + bold + + + + + underline + blue + + + + monospace + 8 + pre + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/line_block.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/line_block.xsl new file mode 100644 index 000000000..af0f73282 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/line_block.xsl @@ -0,0 +1,206 @@ + + + + + + 12pt + 12pt + + + + + + 10mm + + + + 20mm + + + + 30mm + + + + 40mm + + + + 50mm + + + + center + 12 + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cannot process line_blocks more than 5 levels deep. + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cannot process line_blocks more than 5 levels deep. + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/misc.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/misc.xsl new file mode 100644 index 000000000..7ba46bba1 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/misc.xsl @@ -0,0 +1,11 @@ + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/option_list.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/option_list.xsl new file mode 100644 index 000000000..e85fc074d --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/option_list.xsl @@ -0,0 +1,261 @@ + + + + + + 0mm + 50mm + 12pt + 12pt + + + + + 12pt + + + + + 0pt + + + + + label-end() + + + + + + + + + body-start() + + + + + + + + + + monospace + + + + + monospace + italic + + + + + + + + + 12pt + 12pt + + + + + 8pt + + + + + 0pt + + + + + always + + + + + + 16pt + 8pt + + + + + + + 0pt + + + + 0pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/page.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/page.xsl new file mode 100644 index 000000000..64f8d0d1e --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/page.xsl @@ -0,0 +1,604 @@ + + + + + + + + + + 8.5in + 11in + + + + + 1.0in + 1.0in + 1.0in + 1.0in + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .75in + + + + + .75in + + + + + + + + + + + + + .75in + .75in + + + + + + + value of $page-sequence-type=" + + " + value of $page-layout=" + + " + value of $layout-page=" + + " + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0in + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0in + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/parameters.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/parameters.xsl new file mode 100644 index 000000000..758bdc4db --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/parameters.xsl @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + +with-front + + +with-front + + +with-front + + +with-front + + + +with-toc + + + +title,bibliographic,dedication,abstract,toc + +list + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Author: +Authors: +Organization: +Contact: +Status: +Copyright: +Address: +Version: +Revision: +Date: + + + + + + + + + + + + + + +Attention! +Caution! +!Danger! +Error +Hint +Important +Note +Tip +Warning! + + +*** + + +1 +.1 +.1 +.1 +.1 +.1 +.1 +.1 +.1 + + +True + + + + + + + +° + + +list + + +, + + + + + + + + + + + +bottom + + +footnote + + +list + + + +5pt + + + +link + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/root.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/root.xsl new file mode 100644 index 000000000..0a847d2a1 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/root.xsl @@ -0,0 +1,187 @@ + + + + + + + + + + + no-force + + + + + i + 1 + no-force + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + value of $front-order = " + + " + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + False + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/section.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/section.xsl new file mode 100644 index 000000000..895b33db7 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/section.xsl @@ -0,0 +1,204 @@ + + + + + 12pt + 12pt + always + + + + bold + 16 + + + + bold + 14 + italic + + + + bold + 14 + + + + bold + 12 + italic + + + + bold + 10 + + + + bold + 10 + + + + bold + 10 + + + + bold + 10 + + + + bold + 10 + + + + + 12pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Can't handle sections more than 9 deep. + Processing XSLT quitting. + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table.xsl new file mode 100644 index 000000000..204627e4d --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table.xsl @@ -0,0 +1,211 @@ + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + bold + + + + solid black 1px + 1em + collapse + + + + solid black 2px + + + + + + + + + + always + + + + + + + + + + center + 6pt + 6pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended.xsl new file mode 100644 index 000000000..18ac12762 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended.xsl @@ -0,0 +1,4678 @@ + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended2.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended2.xsl new file mode 100644 index 000000000..8546d3c0a --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_extended2.xsl @@ -0,0 +1,161 @@ + + + + + + + 12pt + 12pt + + + + fixed + 100% + + + + + + + + + + 1em + collapse + + + + + + + + + + always + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_long.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_long.xsl new file mode 100644 index 000000000..5053a0db8 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/table_long.xsl @@ -0,0 +1,445 @@ + + + + + + fixed + 100% + + + + + + + always + + + + + + + + + + + + + always + + + + + + + + + + + center + 6pt + 26pt + retain + retain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + too large a number for long table + + + Table has + + rows. Can have no more than + + rows on first page. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/toc.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/toc.xsl new file mode 100644 index 000000000..60187565b --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/toc.xsl @@ -0,0 +1,197 @@ + + + + + + + + center + bold + 14pt + + + + 3pt + justify + + + + + + + 10mm + + + + 20mm + + + + 30mm + + + + 40mm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Can't format paragraphs in TOC deeper than 5 + + + + Terminating + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + diff --git a/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/util.xsl b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/util.xsl new file mode 100644 index 000000000..22a008823 --- /dev/null +++ b/sandbox/paultremblay/python_interface/docutilsToFo/xsl_fo/util.xsl @@ -0,0 +1,160 @@ + + + + + + True + + + True + + + True + + + True + + + True + + + + + + True + True + True + True + True + False + + + + + True + True + True + True + True + False + + + + + front-toc-body + + + front-body + + + toc-body + + + body + + + + Stylsheet error: no page sequence found + + + + + + + + + + + + first + + + first + + + + + first-odd-even + + + first-odd-even + + + first + + + + + + + first-odd-even + + + first-odd-even + + + first + + + + + odd-even + + + odd-even + + + odd-even + + + odd-even + + + simple + + + + + + + + + + + + + + + + + + + + + " + + " + not a valid boolean value for + + + + + + + + + + + + + + + + + + + -- cgit v1.2.1