python-docx-oss 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/HISTORY.md +15 -0
- {python_docx_oss-0.5.0/src/python_docx_oss.egg-info → python_docx_oss-0.5.1}/PKG-INFO +35 -26
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/README.md +34 -25
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/inspection.rst +3 -2
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/index.rst +6 -3
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/_scratch/test_out.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/__init__.py +1 -1
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/table.py +10 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/text.py +8 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/reader.py +2 -4
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/constants.py +4 -0
- python_docx_oss-0.5.1/src/docx/opc/phys_pkg.py +274 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/simpletypes.py +23 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/table.py +8 -8
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/parfmt.py +16 -2
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/parfmt.py +4 -4
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1/src/python_docx_oss.egg-info}/PKG-INFO +35 -26
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/python_docx_oss.egg-info/SOURCES.txt +2 -0
- python_docx_oss-0.5.1/tests/integration/test_strict_roundtrip.py +186 -0
- python_docx_oss-0.5.1/tests/opc/test_phys_pkg.py +362 -0
- python_docx_oss-0.5.1/tests/oxml/test_simpletypes.py +30 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_enum.py +16 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_table.py +6 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_parfmt.py +4 -0
- python_docx_oss-0.5.0/src/docx/opc/phys_pkg.py +0 -119
- python_docx_oss-0.5.0/tests/opc/test_phys_pkg.py +0 -182
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/LICENSE +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/MANIFEST.in +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/Makefile +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_static/.gitignore +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_static/img/comment-parts.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_static/img/example-docx-01.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_static/img/hdrftr-01.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_static/img/hdrftr-02.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_static/img/oss.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_templates/layout.html +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_templates/sidebarlinks.html +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_themes/armstrong/LICENSE +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_themes/armstrong/layout.html +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_themes/armstrong/rtd-themes.conf +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_themes/armstrong/static/rtd.css_t +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_themes/armstrong/theme.conf +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/_themes/armstrong/theme.conf.orig +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/comments.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/dml.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/document.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/MsoColorType.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/MsoThemeColorIndex.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdAlignParagraph.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdBuiltinStyle.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdCellVerticalAlignment.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdColorIndex.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdLineSpacing.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdOrientation.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdRowAlignment.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdRowHeightRule.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdSectionStart.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdStyleType.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdTabAlignment.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdTabLeader.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdTableDirection.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/WdUnderline.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/enum/index.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/sanitize.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/section.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/settings.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/shape.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/shared.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/style.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/table.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/text.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/api/transforms.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/conf.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/comments.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/coreprops.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/header.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/numbering.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/sections.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/settings.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/shapes/index.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/shapes/picture.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/shapes/shapes-inline-size.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/shapes/shapes-inline.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/styles/character-style.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/styles/index.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/styles/latent-styles.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/styles/paragraph-style.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/styles/style.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/styles/styles.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/table/cell-merge.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/table/index.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/table/table-cell.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/table/table-props.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/table/table-row.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/breaks.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/font-color.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/font-highlight-color.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/font.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/hyperlink.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/index.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/paragraph-format.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/run-content.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/tab-stops.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/features/text/underline.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/index.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/schema/ct_body.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/schema/ct_document.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/analysis/schema/ct_p.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/dev/upstream-maintenance.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/requirements.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/api-concepts.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/comments.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/compatibility.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/custom-properties.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/custom-xml.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/documents.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/hdrftr.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/inspection.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/install.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/quickstart.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/sanitization.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/sections.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/shapes.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/styles-understanding.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/styles-using.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/tables.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/text.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/docs/user/transformations.rst +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/api-open-document.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/blk-add-paragraph.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/blk-add-table.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/blk-iter-inner-content.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/cmt-mutations.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/cmt-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-access-collections.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-access-sections.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-comment.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-heading.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-page-break.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-paragraph.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-picture.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-section.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-add-table.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-comments.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-coreprops.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-customprops.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-settings.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/doc-styles.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/environment.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/hdr-header-footer.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/hlk-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/img-characterize-image.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/num-access-numbering-part.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-access-inner-content.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-access-parfmt.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-add-run.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-alignment-prop.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-clear-paragraph.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-insert-paragraph.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-set-text.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/par-style-prop.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/pbk-split-para.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-access-font.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-access-inner-content.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-add-content.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-add-picture.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-char-style.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-clear-run.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/run-enum-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sct-section.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/shp-inline-shape-access.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/shp-inline-shape-size.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/api.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/block.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/coreprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/customprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/font.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/hdrftr.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/helpers.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/hyperlink.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/image.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/numbering.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/pagebreak.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/paragraph.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/parfmt.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/settings.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/shape.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/shared.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/table.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/tabstops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/blk-containing-table.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/blk-paras-and-tables.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/comments-rich-para.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/court-exif.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-access-sections.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-add-section.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-coreprops.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-customprops-legacy.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-customprops.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-default.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-no-coreprops.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-no-customprops.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-odd-even-hdrs.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/doc-word-default-blank.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/fnt-color.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/hdr-header-footer.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/jfif-300-dpi.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/jpeg420exif.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/lena.bmp +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/lena.gif +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/lena.tif +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/lena_std.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/monty-truth.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/mountain.bmp +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/num-having-numbering-part.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/par-alignment.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/par-hlink-frags.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/par-hyperlinks.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/par-known-paragraphs.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/par-known-styles.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/par-rendered-page-breaks.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/python-icon.jpeg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/run-char-style.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/run-enumerated-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sample.tif +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sct-first-page-hdrftr.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sct-inner-content.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sct-section-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/set-no-settings-part.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/shp-inline-shape-access.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sty-behav-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sty-having-no-styles-part.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sty-having-styles-part.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/sty-known-styles.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tab-stops.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-2x2-table.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-cell-access.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-cell-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-col-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-having-applied-style.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-having-tables.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-on-off-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/tbl-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/test.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/txt-font-highlight-color.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/test_files/txt-font-props.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/steps/text.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-access-font.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-access-latent-styles.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-access-parfmt.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-add-style.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-delete-style.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-latent-add-del.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-latent-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/sty-style-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tab-access-tabs.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tab-tabstop-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-add-row-or-col.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-cell-access.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-cell-add-table.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-cell-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-cell-text.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-col-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-item-access.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-merge-cells.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-row-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/tbl-style.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/txt-add-break.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/txt-font-color.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/txt-font-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/features/txt-parfmt-props.feature +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/pyproject.toml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/requirements-dev.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/requirements-docs.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/requirements-test.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/requirements.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/setup.cfg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/api.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/blkcntnr.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/dml/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/dml/color.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/drawing/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/base.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/dml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/shape.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/enum/style.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/exceptions.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/bmp.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/constants.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/emf.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/exceptions.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/gif.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/helpers.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/image.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/jpeg.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/png.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/svg.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/image/tiff.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/_structural_xml_tags.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/features.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/fingerprint.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/result.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/inspection/source.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/coreprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/customprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/exceptions.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/oxml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/package.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/packuri.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/part.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/parts/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/parts/coreprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/parts/customprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/pkgreader.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/pkgwriter.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/rel.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/shared.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/opc/spec.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/coreprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/customprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/dml/CT_ExtensionList.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/drawing.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/exceptions.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/ns.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/numbering.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/parser.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/settings.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/shape.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/shared.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/font.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/hyperlink.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/pagebreak.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/paragraph.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/text/run.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/oxml/xmlchemy.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/package.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/customxml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/hdrftr.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/image.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/numbering.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/settings.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/story.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/parts/styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/py.typed +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/sanitize/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/sanitize/cleaner.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/sanitize/result.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/settings.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/shape.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/shared.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/styles/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/styles/latent.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/styles/style.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/styles/styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/table.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-comments.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/[Content_Types].xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/_rels/.rels +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/customXml/_rels/item1.xml.rels +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/customXml/item1.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/customXml/itemProps1.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/docProps/app.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/docProps/core.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/docProps/thumbnail.jpeg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/_rels/document.xml.rels +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/document.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/fontTable.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/numbering.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/settings.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/styles.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/stylesWithEffects.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/theme/theme1.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-docx-template/word/webSettings.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-footer.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-header.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-numbering.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-settings.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default-styles.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/templates/default.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/font.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/hyperlink.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/pagebreak.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/paragraph.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/run.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/text/tabstops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/transforms/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/transforms/hyperlinks.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/transforms/normalize.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/transforms/package.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/transforms/repair.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/transforms/result.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/docx/types.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/python_docx_oss.egg-info/dependency_links.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/python_docx_oss.egg-info/requires.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/src/python_docx_oss.egg-info/top_level.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/conftest.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/dml/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/dml/test_color.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/README.md +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/comments/word-comments-rich.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/customxml/generate_fixture.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/customxml/multiple-custom-xml-parts.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/documents/word-blank.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/drawing/word-floating-picture.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/fonts/word-east-asian-fonts.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/fixtures/images/word-svg-image.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_bmp.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_emf.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_gif.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_helpers.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_image.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_jpeg.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_png.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_svg.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/image/test_tiff.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/inspection/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/inspection/helpers.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/inspection/test_fingerprint.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/inspection/test_inspect.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/integration/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/integration/customxml/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/integration/customxml/test_custom_xml_roundtrip.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/integration/test_word_roundtrip.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/parts/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/parts/test_coreprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/parts/test_customprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_coreprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_customprops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_oxml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_package.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_packuri.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_part.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_pkgreader.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_pkgwriter.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/test_rel.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/unitdata/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/unitdata/rels.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/opc/unitdata/types.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/parts/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/parts/test_document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/parts/unitdata/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/parts/unitdata/document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_ns.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_table.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/test_xmlchemy.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/text/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/text/test_hyperlink.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/text/test_run.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/dml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/numbering.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/shared.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/table.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/oxml/unitdata/text.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_customxml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_hdrftr.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_image.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_numbering.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_settings.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_story.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/parts/test_styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/styles/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/styles/test_latent.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/styles/test_style.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/styles/test_styles.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_api.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_blkcntnr.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_comments.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_document.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_drawing.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/150-dpi.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/300-dpi.TIF +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/300-dpi.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/300-dpi.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/72-dpi.tiff +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/CVS_LOGO.WMF +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/blk-inner-content.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/exif-420-dpi.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/[Content_Types].xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/_rels/.rels +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/customXml/_rels/item1.xml.rels +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/customXml/item1.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/customXml/itemProps1.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/docProps/app.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/docProps/core.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/docProps/thumbnail.jpeg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/_rels/document.xml.rels +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/document.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/fontTable.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/numbering.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/settings.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/styles.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/stylesWithEffects.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/theme/theme1.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/expanded_docx/word/webSettings.xml +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/having-images.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/jfif-iguana.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/jpeg_without_app0_and_app1.jpg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/little-endian.tif +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/monty-truth.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/python-icon.jpeg +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/python-icon.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/python-powered.png +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/python.bmp +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/sct-inner-content.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/snippets/add-row-col.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/snippets/inline.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/snippets/new-tbl.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/snippets/tbl-cells.txt +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/sonic.emf +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/sonic.gif +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_files/test.docx +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_package.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_sanitize.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_section.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_settings.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_shape.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/test_shared.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_font.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_hyperlink.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_pagebreak.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_paragraph.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_run.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/text/test_tabstops.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/transforms/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/transforms/helpers.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/transforms/test_normalize.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/transforms/test_repair.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/unitdata.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/unitutil/__init__.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/unitutil/cxml.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/unitutil/file.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tests/unitutil/mock.py +0 -0
- {python_docx_oss-0.5.0 → python_docx_oss-0.5.1}/tox.ini +0 -0
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
## Release History
|
|
2
2
|
|
|
3
|
+
**0.5.1 (2026-11-05)**
|
|
4
|
+
|
|
5
|
+
- Added transparent physical package normalization to open and read ISO/IEC 29500
|
|
6
|
+
Strict Open XML documents without altering original content, user text, target
|
|
7
|
+
references, or Custom XML parts.
|
|
8
|
+
- Mapped Strict DrawingML picture namespaces and normalized conformance markers
|
|
9
|
+
to Transitional on physical package reads.
|
|
10
|
+
- Added support for universal measurement and percentage strings (e.g. `231.60pt`,
|
|
11
|
+
`25%`) in table cell widths via `ST_MeasurementOrPercent`.
|
|
12
|
+
- Added support for reading paragraph logical indentation (`w:start` and `w:end`)
|
|
13
|
+
with automatic fallback to `w:left` and `w:right`, and cleared conflicting logical
|
|
14
|
+
indents on write.
|
|
15
|
+
- Supported logical alignment values (`start` and `end`) in paragraph and table
|
|
16
|
+
alignment enumerations.
|
|
17
|
+
|
|
3
18
|
**0.5.0 (2026-11-02)**
|
|
4
19
|
|
|
5
20
|
- Rejected DTDs and entity expansion in XML tree serialization.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-docx-oss
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Create, read, and update Microsoft Word .docx files.
|
|
5
5
|
Author: Ethan St Lee
|
|
6
6
|
License-Expression: MIT
|
|
@@ -51,24 +51,24 @@ Packaging Convention (OPC) workflows.
|
|
|
51
51
|
|
|
52
52
|
Use it when an application needs more than basic paragraphs and tables: custom document
|
|
53
53
|
metadata, application-owned XML, vector images, floating pictures, East Asian fonts,
|
|
54
|
-
or low-level package and relationship access.
|
|
54
|
+
package inspection, configurable fingerprints, repair, or low-level package and relationship access.
|
|
55
55
|
|
|
56
56
|
## Capability Matrix
|
|
57
57
|
|
|
58
58
|
| Capability | Status | Primary API |
|
|
59
59
|
| --- | --- | --- |
|
|
60
|
-
| Documents, paragraphs, tables, styles, sections, headers, and footers | Stable | `Document()` and document object APIs |
|
|
61
|
-
| Custom document properties | Stable | `document.custom_properties` |
|
|
62
|
-
| Custom XML lifecycle | Stable | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
63
|
-
| SVG and EMF images | Stable | `add_picture()` |
|
|
64
|
-
| Inline and floating pictures | Stable | `add_picture()`, `add_float_picture()` |
|
|
65
|
-
| Latin and East Asian font controls | Stable | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
66
|
-
| Low-level OPC parts and relationships | Stable | `document.part.package`, `part.rels` |
|
|
67
|
-
| In-memory read, export, and independent copies | Stable | `Document()`, `to_bytes()`, `copy()` |
|
|
68
|
-
| Document sanitization |
|
|
69
|
-
| Read-only package inspection and
|
|
70
|
-
| Configurable package-content fingerprints |
|
|
71
|
-
| Explicit empty Custom XML repair and hyperlink normalization |
|
|
60
|
+
| [Documents, paragraphs, tables, styles, sections, headers, and footers](docs/user/quickstart.rst) | Stable | `Document()` and document object APIs |
|
|
61
|
+
| [Custom document properties](docs/user/custom-properties.rst) | Stable | `document.custom_properties` |
|
|
62
|
+
| [Custom XML lifecycle](docs/user/custom-xml.rst) | Stable | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
63
|
+
| [SVG and EMF images](docs/user/shapes.rst) | Stable | `add_picture()` |
|
|
64
|
+
| [Inline and floating pictures](docs/user/shapes.rst) | Stable | `add_picture()`, `add_float_picture()` |
|
|
65
|
+
| [Latin and East Asian font controls](docs/user/text.rst) | Stable | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
66
|
+
| [Low-level OPC parts and relationships](docs/user/api-concepts.rst) | Stable | `document.part.package`, `part.rels` |
|
|
67
|
+
| [In-memory read, export, and independent copies](docs/user/documents.rst) | Stable | `Document()`, `to_bytes()`, `copy()` |
|
|
68
|
+
| [Document sanitization](docs/user/sanitization.rst) | Stable | `document.sanitize()` |
|
|
69
|
+
| [Read-only package inspection and streaming feature scanning](docs/user/inspection.rst) | Stable | `inspect()`, `ScanEvent` |
|
|
70
|
+
| [Configurable package-content fingerprints](docs/user/inspection.rst#content-fingerprints) | Stable | `fingerprint()`, `FingerprintPolicy`, `serialize_xml` |
|
|
71
|
+
| [Explicit empty Custom XML repair and hyperlink normalization](docs/user/transformations.rst) | Stable | `repair()`, `normalize()` |
|
|
72
72
|
| Package and semantic diff | Planned | — |
|
|
73
73
|
|
|
74
74
|
## Installation
|
|
@@ -121,7 +121,8 @@ document.save("output.docx")
|
|
|
121
121
|
|
|
122
122
|
### Package inspection and fingerprints
|
|
123
123
|
|
|
124
|
-
Inspect damaged documents before opening them,
|
|
124
|
+
Inspect damaged documents before opening them, and compute reproducible content fingerprints
|
|
125
|
+
without loading media payloads:
|
|
125
126
|
|
|
126
127
|
```python
|
|
127
128
|
from docx import FingerprintPolicy, fingerprint, inspect
|
|
@@ -133,10 +134,12 @@ for finding in report.findings:
|
|
|
133
134
|
digest = fingerprint("input.docx", policy=FingerprintPolicy(exclude_parts=("docProps/*",)))
|
|
134
135
|
```
|
|
135
136
|
|
|
136
|
-
These APIs leave inputs unchanged and restore seekable stream positions
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
These APIs leave inputs unchanged and restore seekable stream positions without loading
|
|
138
|
+
media payloads. `inspect()` supports structural inventory, damage detection, and streaming
|
|
139
|
+
story XML queries with caller-defined predicates. `fingerprint()` normalizes structural
|
|
140
|
+
indentation (C14N 2.0 / fingerprint v3) and supports selective exclusions. See
|
|
141
|
+
[Package inspection and fingerprints](docs/user/inspection.rst) for finding codes, streaming
|
|
142
|
+
queries, and policy rules.
|
|
140
143
|
|
|
141
144
|
### Explicit repair and normalization
|
|
142
145
|
|
|
@@ -150,8 +153,9 @@ if repaired.report.succeeded:
|
|
|
150
153
|
output_bytes = normalized.content
|
|
151
154
|
```
|
|
152
155
|
|
|
153
|
-
Operations are disabled by default
|
|
154
|
-
|
|
156
|
+
Operations are disabled by default and transactional: validation failures return the
|
|
157
|
+
original bytes. Hyperlink normalization converts field codes into native `w:hyperlink`
|
|
158
|
+
elements while preserving text box boundaries and proofing markers. See
|
|
155
159
|
[Repair and normalization](docs/user/transformations.rst) for supported structures,
|
|
156
160
|
selection callbacks, and preservation rules.
|
|
157
161
|
|
|
@@ -216,6 +220,9 @@ available through `Document.add_float_picture()` and `Run.add_float_picture()`.
|
|
|
216
220
|
- [API reference](docs/index.rst#api-documentation)
|
|
217
221
|
- [Custom properties](docs/user/custom-properties.rst)
|
|
218
222
|
- [Custom XML](docs/user/custom-xml.rst)
|
|
223
|
+
- [Package inspection and fingerprints](docs/user/inspection.rst)
|
|
224
|
+
- [Package repair and normalization](docs/user/transformations.rst)
|
|
225
|
+
- [Package sanitization](docs/user/sanitization.rst)
|
|
219
226
|
- [python-docx compatibility](docs/user/compatibility.rst)
|
|
220
227
|
- [Upstream maintenance](docs/dev/upstream-maintenance.rst)
|
|
221
228
|
- [Release history](HISTORY.md)
|
|
@@ -232,15 +239,17 @@ For local development:
|
|
|
232
239
|
```bash
|
|
233
240
|
uv sync
|
|
234
241
|
uv run pytest
|
|
235
|
-
uv run
|
|
236
|
-
uv run
|
|
242
|
+
uv run behave
|
|
243
|
+
uv run ruff check tests/integration tests/fixtures/customxml/generate_fixture.py
|
|
244
|
+
uv run pyright tests/integration tests/fixtures/customxml/generate_fixture.py
|
|
237
245
|
```
|
|
238
246
|
|
|
239
247
|
## Project Status
|
|
240
248
|
|
|
241
|
-
|
|
242
|
-
sanitization,
|
|
243
|
-
|
|
249
|
+
With version 0.5.0, the independent SDK baseline, in-memory workflows, package
|
|
250
|
+
sanitization, streaming inspection, content fingerprinting (v3), and explicit package
|
|
251
|
+
repairs are stabilized. Upcoming milestones focus on package and semantic diffing,
|
|
252
|
+
composition, and schema-guided validation.
|
|
244
253
|
|
|
245
254
|
## Credits
|
|
246
255
|
|
|
@@ -22,24 +22,24 @@ Packaging Convention (OPC) workflows.
|
|
|
22
22
|
|
|
23
23
|
Use it when an application needs more than basic paragraphs and tables: custom document
|
|
24
24
|
metadata, application-owned XML, vector images, floating pictures, East Asian fonts,
|
|
25
|
-
or low-level package and relationship access.
|
|
25
|
+
package inspection, configurable fingerprints, repair, or low-level package and relationship access.
|
|
26
26
|
|
|
27
27
|
## Capability Matrix
|
|
28
28
|
|
|
29
29
|
| Capability | Status | Primary API |
|
|
30
30
|
| --- | --- | --- |
|
|
31
|
-
| Documents, paragraphs, tables, styles, sections, headers, and footers | Stable | `Document()` and document object APIs |
|
|
32
|
-
| Custom document properties | Stable | `document.custom_properties` |
|
|
33
|
-
| Custom XML lifecycle | Stable | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
34
|
-
| SVG and EMF images | Stable | `add_picture()` |
|
|
35
|
-
| Inline and floating pictures | Stable | `add_picture()`, `add_float_picture()` |
|
|
36
|
-
| Latin and East Asian font controls | Stable | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
37
|
-
| Low-level OPC parts and relationships | Stable | `document.part.package`, `part.rels` |
|
|
38
|
-
| In-memory read, export, and independent copies | Stable | `Document()`, `to_bytes()`, `copy()` |
|
|
39
|
-
| Document sanitization |
|
|
40
|
-
| Read-only package inspection and
|
|
41
|
-
| Configurable package-content fingerprints |
|
|
42
|
-
| Explicit empty Custom XML repair and hyperlink normalization |
|
|
31
|
+
| [Documents, paragraphs, tables, styles, sections, headers, and footers](docs/user/quickstart.rst) | Stable | `Document()` and document object APIs |
|
|
32
|
+
| [Custom document properties](docs/user/custom-properties.rst) | Stable | `document.custom_properties` |
|
|
33
|
+
| [Custom XML lifecycle](docs/user/custom-xml.rst) | Stable | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
34
|
+
| [SVG and EMF images](docs/user/shapes.rst) | Stable | `add_picture()` |
|
|
35
|
+
| [Inline and floating pictures](docs/user/shapes.rst) | Stable | `add_picture()`, `add_float_picture()` |
|
|
36
|
+
| [Latin and East Asian font controls](docs/user/text.rst) | Stable | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
37
|
+
| [Low-level OPC parts and relationships](docs/user/api-concepts.rst) | Stable | `document.part.package`, `part.rels` |
|
|
38
|
+
| [In-memory read, export, and independent copies](docs/user/documents.rst) | Stable | `Document()`, `to_bytes()`, `copy()` |
|
|
39
|
+
| [Document sanitization](docs/user/sanitization.rst) | Stable | `document.sanitize()` |
|
|
40
|
+
| [Read-only package inspection and streaming feature scanning](docs/user/inspection.rst) | Stable | `inspect()`, `ScanEvent` |
|
|
41
|
+
| [Configurable package-content fingerprints](docs/user/inspection.rst#content-fingerprints) | Stable | `fingerprint()`, `FingerprintPolicy`, `serialize_xml` |
|
|
42
|
+
| [Explicit empty Custom XML repair and hyperlink normalization](docs/user/transformations.rst) | Stable | `repair()`, `normalize()` |
|
|
43
43
|
| Package and semantic diff | Planned | — |
|
|
44
44
|
|
|
45
45
|
## Installation
|
|
@@ -92,7 +92,8 @@ document.save("output.docx")
|
|
|
92
92
|
|
|
93
93
|
### Package inspection and fingerprints
|
|
94
94
|
|
|
95
|
-
Inspect damaged documents before opening them,
|
|
95
|
+
Inspect damaged documents before opening them, and compute reproducible content fingerprints
|
|
96
|
+
without loading media payloads:
|
|
96
97
|
|
|
97
98
|
```python
|
|
98
99
|
from docx import FingerprintPolicy, fingerprint, inspect
|
|
@@ -104,10 +105,12 @@ for finding in report.findings:
|
|
|
104
105
|
digest = fingerprint("input.docx", policy=FingerprintPolicy(exclude_parts=("docProps/*",)))
|
|
105
106
|
```
|
|
106
107
|
|
|
107
|
-
These APIs leave inputs unchanged and restore seekable stream positions
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
These APIs leave inputs unchanged and restore seekable stream positions without loading
|
|
109
|
+
media payloads. `inspect()` supports structural inventory, damage detection, and streaming
|
|
110
|
+
story XML queries with caller-defined predicates. `fingerprint()` normalizes structural
|
|
111
|
+
indentation (C14N 2.0 / fingerprint v3) and supports selective exclusions. See
|
|
112
|
+
[Package inspection and fingerprints](docs/user/inspection.rst) for finding codes, streaming
|
|
113
|
+
queries, and policy rules.
|
|
111
114
|
|
|
112
115
|
### Explicit repair and normalization
|
|
113
116
|
|
|
@@ -121,8 +124,9 @@ if repaired.report.succeeded:
|
|
|
121
124
|
output_bytes = normalized.content
|
|
122
125
|
```
|
|
123
126
|
|
|
124
|
-
Operations are disabled by default
|
|
125
|
-
|
|
127
|
+
Operations are disabled by default and transactional: validation failures return the
|
|
128
|
+
original bytes. Hyperlink normalization converts field codes into native `w:hyperlink`
|
|
129
|
+
elements while preserving text box boundaries and proofing markers. See
|
|
126
130
|
[Repair and normalization](docs/user/transformations.rst) for supported structures,
|
|
127
131
|
selection callbacks, and preservation rules.
|
|
128
132
|
|
|
@@ -187,6 +191,9 @@ available through `Document.add_float_picture()` and `Run.add_float_picture()`.
|
|
|
187
191
|
- [API reference](docs/index.rst#api-documentation)
|
|
188
192
|
- [Custom properties](docs/user/custom-properties.rst)
|
|
189
193
|
- [Custom XML](docs/user/custom-xml.rst)
|
|
194
|
+
- [Package inspection and fingerprints](docs/user/inspection.rst)
|
|
195
|
+
- [Package repair and normalization](docs/user/transformations.rst)
|
|
196
|
+
- [Package sanitization](docs/user/sanitization.rst)
|
|
190
197
|
- [python-docx compatibility](docs/user/compatibility.rst)
|
|
191
198
|
- [Upstream maintenance](docs/dev/upstream-maintenance.rst)
|
|
192
199
|
- [Release history](HISTORY.md)
|
|
@@ -203,15 +210,17 @@ For local development:
|
|
|
203
210
|
```bash
|
|
204
211
|
uv sync
|
|
205
212
|
uv run pytest
|
|
206
|
-
uv run
|
|
207
|
-
uv run
|
|
213
|
+
uv run behave
|
|
214
|
+
uv run ruff check tests/integration tests/fixtures/customxml/generate_fixture.py
|
|
215
|
+
uv run pyright tests/integration tests/fixtures/customxml/generate_fixture.py
|
|
208
216
|
```
|
|
209
217
|
|
|
210
218
|
## Project Status
|
|
211
219
|
|
|
212
|
-
|
|
213
|
-
sanitization,
|
|
214
|
-
|
|
220
|
+
With version 0.5.0, the independent SDK baseline, in-memory workflows, package
|
|
221
|
+
sanitization, streaming inspection, content fingerprinting (v3), and explicit package
|
|
222
|
+
repairs are stabilized. Upcoming milestones focus on package and semantic diffing,
|
|
223
|
+
composition, and schema-guided validation.
|
|
215
224
|
|
|
216
225
|
## Credits
|
|
217
226
|
|
|
@@ -4,8 +4,9 @@ Package inspection and fingerprinting
|
|
|
4
4
|
============================================
|
|
5
5
|
|
|
6
6
|
.. automodule:: docx.inspection
|
|
7
|
-
:members: inspect, fingerprint, FingerprintPolicy,
|
|
8
|
-
PackageInventory, PartInventory, RelationshipInventory,
|
|
7
|
+
:members: inspect, fingerprint, FingerprintPolicy, FingerprintItem, serialize_xml,
|
|
8
|
+
PackageInspection, PackageInventory, PartInventory, RelationshipInventory,
|
|
9
|
+
Finding, ScanEvent
|
|
9
10
|
|
|
10
11
|
See :ref:`package_inspection` for finding codes, exclusions, scan scope, and
|
|
11
12
|
resource guarantees.
|
|
@@ -21,10 +21,13 @@ supports capabilities needed by more demanding document workflows:
|
|
|
21
21
|
* floating images with position and text wrapping;
|
|
22
22
|
* SVG and EMF vector images;
|
|
23
23
|
* separate Latin and East Asian font settings;
|
|
24
|
-
* document custom properties;
|
|
25
|
-
* multiple Custom XML parts that survive a load/save round trip;
|
|
24
|
+
* document custom properties;
|
|
25
|
+
* multiple Custom XML parts that survive a load/save round trip;
|
|
26
26
|
* explicit package-level sanitization of metadata, comments, web extensions,
|
|
27
|
-
and formatting revision history
|
|
27
|
+
and formatting revision history;
|
|
28
|
+
* read-only package inspection and streaming story scanning;
|
|
29
|
+
* configurable package-content fingerprints with structural whitespace normalization; and
|
|
30
|
+
* transactional empty Custom XML repair and hyperlink normalization.
|
|
28
31
|
|
|
29
32
|
Here is a small example:
|
|
30
33
|
|
|
Binary file
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"""Enumerations related to tables in WordprocessingML files."""
|
|
2
2
|
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
3
5
|
from docx.enum.base import BaseEnum, BaseXmlEnum
|
|
4
6
|
|
|
5
7
|
|
|
@@ -106,6 +108,14 @@ class WD_TABLE_ALIGNMENT(BaseXmlEnum):
|
|
|
106
108
|
RIGHT = (2, "right", "Right-aligned.")
|
|
107
109
|
"""Right-aligned."""
|
|
108
110
|
|
|
111
|
+
@classmethod
|
|
112
|
+
def from_xml(cls, xml_value: str | None) -> WD_TABLE_ALIGNMENT:
|
|
113
|
+
if xml_value == "start":
|
|
114
|
+
return cls.LEFT
|
|
115
|
+
if xml_value == "end":
|
|
116
|
+
return cls.RIGHT
|
|
117
|
+
return super().from_xml(xml_value)
|
|
118
|
+
|
|
109
119
|
|
|
110
120
|
class WD_TABLE_DIRECTION(BaseEnum):
|
|
111
121
|
"""Specifies the direction in which an application orders cells in the specified
|
|
@@ -63,6 +63,14 @@ class WD_PARAGRAPH_ALIGNMENT(BaseXmlEnum):
|
|
|
63
63
|
)
|
|
64
64
|
"""Justified according to Thai formatting layout."""
|
|
65
65
|
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_xml(cls, xml_value: str | None) -> WD_PARAGRAPH_ALIGNMENT:
|
|
68
|
+
if xml_value == "start":
|
|
69
|
+
return cls.LEFT
|
|
70
|
+
if xml_value == "end":
|
|
71
|
+
return cls.RIGHT
|
|
72
|
+
return super().from_xml(xml_value)
|
|
73
|
+
|
|
66
74
|
|
|
67
75
|
WD_ALIGN_PARAGRAPH = WD_PARAGRAPH_ALIGNMENT
|
|
68
76
|
|
|
@@ -19,13 +19,11 @@ from docx.inspection.result import (
|
|
|
19
19
|
RelationshipInventory,
|
|
20
20
|
)
|
|
21
21
|
from docx.inspection.source import PackageSource, open_source
|
|
22
|
+
from docx.opc.constants import STRICT_REL_BASE, TRANSITIONAL_REL_BASE
|
|
22
23
|
|
|
23
24
|
CT_NS = "http://schemas.openxmlformats.org/package/2006/content-types"
|
|
24
25
|
REL_NS = "http://schemas.openxmlformats.org/package/2006/relationships"
|
|
25
|
-
OFFICE_REL_BASES = (
|
|
26
|
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/",
|
|
27
|
-
"http://purl.oclc.org/ooxml/officeDocument/relationships/",
|
|
28
|
-
)
|
|
26
|
+
OFFICE_REL_BASES = (TRANSITIONAL_REL_BASE, STRICT_REL_BASE)
|
|
29
27
|
PACKAGE_ERRORS = (
|
|
30
28
|
BadZipFile,
|
|
31
29
|
EOFError,
|
|
@@ -305,3 +305,7 @@ class RELATIONSHIP_TYPE:
|
|
|
305
305
|
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheetSource"
|
|
306
306
|
)
|
|
307
307
|
XML_MAPS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/xmlMaps"
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
TRANSITIONAL_REL_BASE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/"
|
|
311
|
+
STRICT_REL_BASE = "http://purl.oclc.org/ooxml/officeDocument/relationships/"
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"""Provides a general interface to a `physical` OPC package, such as a zip file."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import re
|
|
5
|
+
from html import unescape
|
|
6
|
+
from xml.sax.saxutils import escape
|
|
7
|
+
from zipfile import ZIP_DEFLATED, ZipFile, is_zipfile
|
|
8
|
+
|
|
9
|
+
from lxml import etree
|
|
10
|
+
|
|
11
|
+
from docx.opc.exceptions import PackageNotFoundError
|
|
12
|
+
from docx.opc.packuri import CONTENT_TYPES_URI, PackURI
|
|
13
|
+
|
|
14
|
+
_STRICT_TO_TRANSITIONAL_MAPPINGS = (
|
|
15
|
+
# Hyphenated differences in Transitional relationships and parts:
|
|
16
|
+
(
|
|
17
|
+
"http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties",
|
|
18
|
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",
|
|
19
|
+
),
|
|
20
|
+
(
|
|
21
|
+
"http://purl.oclc.org/ooxml/officeDocument/relationships/customProperties",
|
|
22
|
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",
|
|
23
|
+
),
|
|
24
|
+
(
|
|
25
|
+
"http://purl.oclc.org/ooxml/officeDocument/extendedProperties",
|
|
26
|
+
"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
27
|
+
),
|
|
28
|
+
(
|
|
29
|
+
"http://purl.oclc.org/ooxml/officeDocument/customProperties",
|
|
30
|
+
"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",
|
|
31
|
+
),
|
|
32
|
+
# General officeDocument rule (covers relationships, math, customXml, etc.):
|
|
33
|
+
(
|
|
34
|
+
"http://purl.oclc.org/ooxml/officeDocument/",
|
|
35
|
+
"http://schemas.openxmlformats.org/officeDocument/2006/",
|
|
36
|
+
),
|
|
37
|
+
# Domain packages:
|
|
38
|
+
(
|
|
39
|
+
"http://purl.oclc.org/ooxml/wordprocessingml/",
|
|
40
|
+
"http://schemas.openxmlformats.org/wordprocessingml/2006/",
|
|
41
|
+
),
|
|
42
|
+
(
|
|
43
|
+
"http://purl.oclc.org/ooxml/drawingml/",
|
|
44
|
+
"http://schemas.openxmlformats.org/drawingml/2006/",
|
|
45
|
+
),
|
|
46
|
+
(
|
|
47
|
+
"http://purl.oclc.org/ooxml/spreadsheetml/",
|
|
48
|
+
"http://schemas.openxmlformats.org/spreadsheetml/2006/",
|
|
49
|
+
),
|
|
50
|
+
(
|
|
51
|
+
"http://purl.oclc.org/ooxml/presentationml/",
|
|
52
|
+
"http://schemas.openxmlformats.org/presentationml/2006/",
|
|
53
|
+
),
|
|
54
|
+
(
|
|
55
|
+
"http://purl.oclc.org/ooxml/schemaLibrary/",
|
|
56
|
+
"http://schemas.openxmlformats.org/schemaLibrary/2006/",
|
|
57
|
+
),
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _transitional_uri(uri: str) -> str:
|
|
62
|
+
for strict_base, transitional_base in _STRICT_TO_TRANSITIONAL_MAPPINGS:
|
|
63
|
+
if uri.startswith(strict_base):
|
|
64
|
+
return transitional_base + uri[len(strict_base) :]
|
|
65
|
+
return uri
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# Match whole XML tokens so apparent tags inside comments, CDATA, and PIs stay opaque.
|
|
69
|
+
_XML_TOKEN = re.compile(
|
|
70
|
+
r"<!--.*?-->|<!\[CDATA\[.*?\]\]>|<\?.*?\?>|</?[^\s<>/]+(?:[^<>\"']|\"[^\"]*\"|'[^']*')*>",
|
|
71
|
+
re.DOTALL,
|
|
72
|
+
)
|
|
73
|
+
_XML_ATTRIBUTE = re.compile(r"([^\s=<>/]+)(\s*=\s*)([\"'])(.*?)\3", re.DOTALL)
|
|
74
|
+
_XML_NAME = re.compile(r"</?([^\s/>]+)")
|
|
75
|
+
_WML_NS = "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
76
|
+
_DRAWING_NS = "http://schemas.openxmlformats.org/drawingml/2006/main"
|
|
77
|
+
_REL_NS = "http://schemas.openxmlformats.org/package/2006/relationships"
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _normalize_strict_blob(pack_uri: PackURI, blob: bytes) -> bytes:
|
|
81
|
+
"""Normalize selected XML attributes without rebuilding or reserializing the tree.
|
|
82
|
+
|
|
83
|
+
Namespace scopes identify semantic attributes regardless of prefix. Text,
|
|
84
|
+
comments, CDATA, unrelated attributes, and original formatting are preserved.
|
|
85
|
+
Malformed or DTD-bearing opaque parts are passed through unchanged.
|
|
86
|
+
"""
|
|
87
|
+
if not pack_uri.membername.endswith((".xml", ".rels")):
|
|
88
|
+
return blob
|
|
89
|
+
if b"http://purl.oclc.org/ooxml/" not in blob.replace(b"\x00", b""):
|
|
90
|
+
return blob
|
|
91
|
+
try:
|
|
92
|
+
root = etree.fromstring(blob, etree.XMLParser(resolve_entities=False))
|
|
93
|
+
if root.getroottree().docinfo.doctype:
|
|
94
|
+
return blob
|
|
95
|
+
if blob.startswith((b"\xff\xfe", b"<\x00")):
|
|
96
|
+
encoding = "utf-16-le"
|
|
97
|
+
elif blob.startswith((b"\xfe\xff", b"\x00<")):
|
|
98
|
+
encoding = "utf-16-be"
|
|
99
|
+
else:
|
|
100
|
+
encoding = "utf-8"
|
|
101
|
+
xml = blob.decode(encoding)
|
|
102
|
+
except (etree.XMLSyntaxError, UnicodeError, ValueError):
|
|
103
|
+
return blob
|
|
104
|
+
|
|
105
|
+
scopes: list[dict[str, str]] = [{}]
|
|
106
|
+
|
|
107
|
+
def convert_tag(match: re.Match[str]) -> str:
|
|
108
|
+
tag = match.group()
|
|
109
|
+
if tag.startswith(("<!", "<?")):
|
|
110
|
+
return tag
|
|
111
|
+
if tag.startswith("</"):
|
|
112
|
+
scopes.pop()
|
|
113
|
+
return tag
|
|
114
|
+
scope = scopes[-1]
|
|
115
|
+
if "xmlns" in tag:
|
|
116
|
+
scope = scope.copy()
|
|
117
|
+
for attr in _XML_ATTRIBUTE.finditer(tag):
|
|
118
|
+
name, _, _, value = attr.groups()
|
|
119
|
+
if name == "xmlns" or name.startswith("xmlns:"):
|
|
120
|
+
scope[name.partition(":")[2]] = unescape(value)
|
|
121
|
+
if not tag.endswith("/>"):
|
|
122
|
+
scopes.append(scope)
|
|
123
|
+
if "http://purl.oclc.org/ooxml/" not in tag and "conformance" not in tag:
|
|
124
|
+
return tag
|
|
125
|
+
name_match = _XML_NAME.match(tag)
|
|
126
|
+
assert name_match is not None
|
|
127
|
+
prefix, separator, local = name_match[1].rpartition(":")
|
|
128
|
+
element_ns = _transitional_uri(scope.get(prefix if separator else "", ""))
|
|
129
|
+
|
|
130
|
+
def convert_attribute(attr: re.Match[str]) -> str:
|
|
131
|
+
name, equals, quote, value = attr.groups()
|
|
132
|
+
decoded = unescape(value)
|
|
133
|
+
converted = decoded
|
|
134
|
+
if (
|
|
135
|
+
name == "xmlns"
|
|
136
|
+
or name.startswith("xmlns:")
|
|
137
|
+
or (element_ns == _REL_NS and local == "Relationship" and name == "Type")
|
|
138
|
+
or (element_ns == _DRAWING_NS and local == "graphicData" and name == "uri")
|
|
139
|
+
):
|
|
140
|
+
converted = _transitional_uri(decoded)
|
|
141
|
+
elif ":" in name:
|
|
142
|
+
prefix, _, attr_local = name.partition(":")
|
|
143
|
+
if (
|
|
144
|
+
_transitional_uri(scope.get(prefix, "")) == _WML_NS
|
|
145
|
+
and attr_local == "conformance"
|
|
146
|
+
and decoded == "strict"
|
|
147
|
+
):
|
|
148
|
+
converted = "transitional"
|
|
149
|
+
if converted == decoded:
|
|
150
|
+
return attr.group()
|
|
151
|
+
return (
|
|
152
|
+
name
|
|
153
|
+
+ equals
|
|
154
|
+
+ quote
|
|
155
|
+
+ escape(converted, {quote: """ if quote == '"' else "'"})
|
|
156
|
+
+ quote
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
return _XML_ATTRIBUTE.sub(convert_attribute, tag)
|
|
160
|
+
|
|
161
|
+
normalized = _XML_TOKEN.sub(convert_tag, xml)
|
|
162
|
+
return blob if normalized == xml else normalized.encode(encoding)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class PhysPkgReader:
|
|
166
|
+
"""Factory for physical package reader objects."""
|
|
167
|
+
|
|
168
|
+
def __new__(cls, pkg_file):
|
|
169
|
+
# if `pkg_file` is a string, treat it as a path
|
|
170
|
+
if isinstance(pkg_file, str):
|
|
171
|
+
if os.path.isdir(pkg_file):
|
|
172
|
+
reader_cls = _DirPkgReader
|
|
173
|
+
elif is_zipfile(pkg_file):
|
|
174
|
+
reader_cls = _ZipPkgReader
|
|
175
|
+
else:
|
|
176
|
+
raise PackageNotFoundError("Package not found at '%s'" % pkg_file)
|
|
177
|
+
else: # assume it's a stream and pass it to Zip reader to sort out
|
|
178
|
+
reader_cls = _ZipPkgReader
|
|
179
|
+
|
|
180
|
+
return super(PhysPkgReader, cls).__new__(reader_cls)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class PhysPkgWriter:
|
|
184
|
+
"""Factory for physical package writer objects."""
|
|
185
|
+
|
|
186
|
+
def __new__(cls, pkg_file):
|
|
187
|
+
return super(PhysPkgWriter, cls).__new__(_ZipPkgWriter)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class _DirPkgReader(PhysPkgReader):
|
|
191
|
+
"""Implements |PhysPkgReader| interface for an OPC package extracted into a
|
|
192
|
+
directory."""
|
|
193
|
+
|
|
194
|
+
def __init__(self, path):
|
|
195
|
+
"""`path` is the path to a directory containing an expanded package."""
|
|
196
|
+
super(_DirPkgReader, self).__init__()
|
|
197
|
+
self._path = os.path.abspath(path)
|
|
198
|
+
|
|
199
|
+
def blob_for(self, pack_uri):
|
|
200
|
+
"""Return contents of file corresponding to `pack_uri` in package directory."""
|
|
201
|
+
path = os.path.join(self._path, pack_uri.membername)
|
|
202
|
+
with open(path, "rb") as f:
|
|
203
|
+
blob = f.read()
|
|
204
|
+
return _normalize_strict_blob(pack_uri, blob)
|
|
205
|
+
|
|
206
|
+
def close(self):
|
|
207
|
+
"""Provides interface consistency with |ZipFileSystem|, but does nothing, a
|
|
208
|
+
directory file system doesn't need closing."""
|
|
209
|
+
pass
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def content_types_xml(self):
|
|
213
|
+
"""Return the `[Content_Types].xml` blob from the package."""
|
|
214
|
+
return self.blob_for(CONTENT_TYPES_URI)
|
|
215
|
+
|
|
216
|
+
def rels_xml_for(self, source_uri):
|
|
217
|
+
"""Return rels item XML for source with `source_uri`, or None if the item has no
|
|
218
|
+
rels item."""
|
|
219
|
+
try:
|
|
220
|
+
rels_xml = self.blob_for(source_uri.rels_uri)
|
|
221
|
+
except IOError:
|
|
222
|
+
rels_xml = None
|
|
223
|
+
return rels_xml
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class _ZipPkgReader(PhysPkgReader):
|
|
227
|
+
"""Implements |PhysPkgReader| interface for a zip file OPC package."""
|
|
228
|
+
|
|
229
|
+
def __init__(self, pkg_file):
|
|
230
|
+
super(_ZipPkgReader, self).__init__()
|
|
231
|
+
self._zipf = ZipFile(pkg_file, "r")
|
|
232
|
+
|
|
233
|
+
def blob_for(self, pack_uri):
|
|
234
|
+
"""Return blob corresponding to `pack_uri`.
|
|
235
|
+
|
|
236
|
+
Raises |ValueError| if no matching member is present in zip archive.
|
|
237
|
+
"""
|
|
238
|
+
return _normalize_strict_blob(pack_uri, self._zipf.read(pack_uri.membername))
|
|
239
|
+
|
|
240
|
+
def close(self):
|
|
241
|
+
"""Close the zip archive, releasing any resources it is using."""
|
|
242
|
+
self._zipf.close()
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def content_types_xml(self):
|
|
246
|
+
"""Return the `[Content_Types].xml` blob from the zip package."""
|
|
247
|
+
return self.blob_for(CONTENT_TYPES_URI)
|
|
248
|
+
|
|
249
|
+
def rels_xml_for(self, source_uri):
|
|
250
|
+
"""Return rels item XML for source with `source_uri` or None if no rels item is
|
|
251
|
+
present."""
|
|
252
|
+
try:
|
|
253
|
+
rels_xml = self.blob_for(source_uri.rels_uri)
|
|
254
|
+
except KeyError:
|
|
255
|
+
rels_xml = None
|
|
256
|
+
return rels_xml
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class _ZipPkgWriter(PhysPkgWriter):
|
|
260
|
+
"""Implements |PhysPkgWriter| interface for a zip file OPC package."""
|
|
261
|
+
|
|
262
|
+
def __init__(self, pkg_file):
|
|
263
|
+
super(_ZipPkgWriter, self).__init__()
|
|
264
|
+
self._zipf = ZipFile(pkg_file, "w", compression=ZIP_DEFLATED)
|
|
265
|
+
|
|
266
|
+
def close(self):
|
|
267
|
+
"""Close the zip archive, flushing any pending physical writes and releasing any
|
|
268
|
+
resources it's using."""
|
|
269
|
+
self._zipf.close()
|
|
270
|
+
|
|
271
|
+
def write(self, pack_uri, blob):
|
|
272
|
+
"""Write `blob` to this zip package with the membername corresponding to
|
|
273
|
+
`pack_uri`."""
|
|
274
|
+
self._zipf.writestr(pack_uri.membername, blob)
|