python-docx-oss 0.5.1__tar.gz → 0.5.2__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.1 → python_docx_oss-0.5.2}/HISTORY.md +10 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/MANIFEST.in +1 -1
- python_docx_oss-0.5.2/PKG-INFO +135 -0
- python_docx_oss-0.5.2/README.md +106 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/transformations.rst +9 -1
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/_scratch/test_out.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/pyproject.toml +0 -2
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/requirements-dev.txt +0 -2
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/__init__.py +1 -1
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/transforms/hyperlinks.py +20 -3
- python_docx_oss-0.5.2/src/python_docx_oss.egg-info/PKG-INFO +135 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/python_docx_oss.egg-info/SOURCES.txt +0 -1
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/transforms/test_normalize.py +110 -0
- python_docx_oss-0.5.1/PKG-INFO +0 -272
- python_docx_oss-0.5.1/README.md +0 -243
- python_docx_oss-0.5.1/src/python_docx_oss.egg-info/PKG-INFO +0 -272
- python_docx_oss-0.5.1/tox.ini +0 -9
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/LICENSE +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/Makefile +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_static/.gitignore +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_static/img/comment-parts.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_static/img/example-docx-01.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_static/img/hdrftr-01.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_static/img/hdrftr-02.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_static/img/oss.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_templates/layout.html +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_templates/sidebarlinks.html +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_themes/armstrong/LICENSE +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_themes/armstrong/layout.html +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_themes/armstrong/rtd-themes.conf +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_themes/armstrong/static/rtd.css_t +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_themes/armstrong/theme.conf +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/_themes/armstrong/theme.conf.orig +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/comments.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/dml.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/document.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/MsoColorType.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/MsoThemeColorIndex.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdAlignParagraph.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdBuiltinStyle.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdCellVerticalAlignment.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdColorIndex.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdLineSpacing.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdOrientation.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdRowAlignment.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdRowHeightRule.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdSectionStart.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdStyleType.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdTabAlignment.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdTabLeader.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdTableDirection.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/WdUnderline.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/enum/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/inspection.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/sanitize.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/section.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/settings.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/shape.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/shared.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/style.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/table.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/text.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/api/transforms.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/conf.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/comments.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/coreprops.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/header.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/numbering.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/sections.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/settings.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/shapes/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/shapes/picture.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/shapes/shapes-inline-size.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/shapes/shapes-inline.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/styles/character-style.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/styles/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/styles/latent-styles.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/styles/paragraph-style.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/styles/style.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/styles/styles.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/table/cell-merge.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/table/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/table/table-cell.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/table/table-props.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/table/table-row.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/breaks.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/font-color.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/font-highlight-color.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/font.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/hyperlink.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/paragraph-format.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/run-content.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/tab-stops.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/features/text/underline.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/schema/ct_body.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/schema/ct_document.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/analysis/schema/ct_p.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/dev/upstream-maintenance.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/index.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/requirements.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/api-concepts.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/comments.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/compatibility.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/custom-properties.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/custom-xml.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/documents.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/hdrftr.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/inspection.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/install.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/quickstart.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/sanitization.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/sections.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/shapes.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/styles-understanding.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/styles-using.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/tables.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/docs/user/text.rst +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/api-open-document.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/blk-add-paragraph.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/blk-add-table.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/blk-iter-inner-content.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/cmt-mutations.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/cmt-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-access-collections.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-access-sections.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-comment.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-heading.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-page-break.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-paragraph.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-picture.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-section.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-add-table.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-comments.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-coreprops.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-customprops.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-settings.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/doc-styles.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/environment.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/hdr-header-footer.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/hlk-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/img-characterize-image.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/num-access-numbering-part.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-access-inner-content.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-access-parfmt.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-add-run.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-alignment-prop.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-clear-paragraph.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-insert-paragraph.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-set-text.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/par-style-prop.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/pbk-split-para.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-access-font.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-access-inner-content.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-add-content.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-add-picture.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-char-style.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-clear-run.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/run-enum-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sct-section.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/shp-inline-shape-access.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/shp-inline-shape-size.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/api.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/block.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/coreprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/customprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/font.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/hdrftr.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/helpers.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/hyperlink.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/image.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/numbering.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/pagebreak.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/paragraph.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/parfmt.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/settings.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/shape.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/shared.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/tabstops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/blk-containing-table.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/blk-paras-and-tables.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/comments-rich-para.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/court-exif.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-access-sections.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-add-section.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-coreprops.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-customprops-legacy.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-customprops.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-default.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-no-coreprops.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-no-customprops.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-odd-even-hdrs.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/doc-word-default-blank.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/fnt-color.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/hdr-header-footer.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/jfif-300-dpi.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/jpeg420exif.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/lena.bmp +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/lena.gif +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/lena.tif +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/lena_std.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/monty-truth.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/mountain.bmp +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/num-having-numbering-part.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/par-alignment.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/par-hlink-frags.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/par-hyperlinks.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/par-known-paragraphs.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/par-known-styles.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/par-rendered-page-breaks.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/python-icon.jpeg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/run-char-style.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/run-enumerated-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sample.tif +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sct-first-page-hdrftr.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sct-inner-content.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sct-section-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/set-no-settings-part.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/shp-inline-shape-access.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sty-behav-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sty-having-no-styles-part.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sty-having-styles-part.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/sty-known-styles.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tab-stops.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-2x2-table.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-cell-access.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-cell-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-col-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-having-applied-style.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-having-tables.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-on-off-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/tbl-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/test.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/txt-font-highlight-color.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/test_files/txt-font-props.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/steps/text.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-access-font.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-access-latent-styles.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-access-parfmt.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-add-style.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-delete-style.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-latent-add-del.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-latent-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/sty-style-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tab-access-tabs.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tab-tabstop-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-add-row-or-col.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-cell-access.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-cell-add-table.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-cell-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-cell-text.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-col-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-item-access.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-merge-cells.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-row-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/tbl-style.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/txt-add-break.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/txt-font-color.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/txt-font-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/features/txt-parfmt-props.feature +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/requirements-docs.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/requirements-test.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/requirements.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/setup.cfg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/api.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/blkcntnr.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/dml/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/dml/color.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/drawing/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/base.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/dml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/shape.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/style.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/enum/text.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/exceptions.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/bmp.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/constants.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/emf.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/exceptions.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/gif.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/helpers.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/image.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/jpeg.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/png.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/svg.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/image/tiff.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/_structural_xml_tags.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/features.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/fingerprint.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/reader.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/result.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/inspection/source.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/constants.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/coreprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/customprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/exceptions.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/oxml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/package.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/packuri.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/part.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/parts/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/parts/coreprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/parts/customprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/phys_pkg.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/pkgreader.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/pkgwriter.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/rel.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/shared.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/opc/spec.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/coreprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/customprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/dml/CT_ExtensionList.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/drawing.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/exceptions.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/ns.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/numbering.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/parser.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/settings.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/shape.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/shared.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/simpletypes.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/font.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/hyperlink.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/pagebreak.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/paragraph.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/parfmt.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/text/run.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/oxml/xmlchemy.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/package.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/customxml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/hdrftr.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/image.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/numbering.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/settings.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/story.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/parts/styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/py.typed +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/sanitize/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/sanitize/cleaner.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/sanitize/result.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/settings.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/shape.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/shared.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/styles/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/styles/latent.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/styles/style.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/styles/styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-comments.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/[Content_Types].xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/_rels/.rels +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/customXml/_rels/item1.xml.rels +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/customXml/item1.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/customXml/itemProps1.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/docProps/app.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/docProps/core.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/docProps/thumbnail.jpeg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/_rels/document.xml.rels +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/document.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/fontTable.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/numbering.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/settings.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/styles.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/stylesWithEffects.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/theme/theme1.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-docx-template/word/webSettings.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-footer.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-header.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-numbering.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-settings.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default-styles.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/templates/default.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/font.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/hyperlink.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/pagebreak.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/paragraph.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/parfmt.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/run.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/text/tabstops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/transforms/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/transforms/normalize.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/transforms/package.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/transforms/repair.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/transforms/result.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/docx/types.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/python_docx_oss.egg-info/dependency_links.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/python_docx_oss.egg-info/requires.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/src/python_docx_oss.egg-info/top_level.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/conftest.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/dml/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/dml/test_color.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/README.md +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/comments/word-comments-rich.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/customxml/generate_fixture.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/customxml/multiple-custom-xml-parts.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/documents/word-blank.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/drawing/word-floating-picture.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/fonts/word-east-asian-fonts.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/fixtures/images/word-svg-image.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_bmp.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_emf.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_gif.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_helpers.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_image.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_jpeg.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_png.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_svg.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/image/test_tiff.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/inspection/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/inspection/helpers.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/inspection/test_fingerprint.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/inspection/test_inspect.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/integration/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/integration/customxml/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/integration/customxml/test_custom_xml_roundtrip.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/integration/test_strict_roundtrip.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/integration/test_word_roundtrip.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/parts/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/parts/test_coreprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/parts/test_customprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_coreprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_customprops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_oxml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_package.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_packuri.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_part.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_phys_pkg.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_pkgreader.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_pkgwriter.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/test_rel.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/unitdata/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/unitdata/rels.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/opc/unitdata/types.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/parts/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/parts/test_document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/parts/unitdata/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/parts/unitdata/document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_ns.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_simpletypes.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/test_xmlchemy.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/text/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/text/test_hyperlink.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/text/test_run.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/dml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/numbering.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/shared.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/oxml/unitdata/text.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_customxml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_hdrftr.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_image.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_numbering.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_settings.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_story.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/parts/test_styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/styles/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/styles/test_latent.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/styles/test_style.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/styles/test_styles.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_api.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_blkcntnr.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_comments.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_document.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_drawing.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_enum.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/150-dpi.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/300-dpi.TIF +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/300-dpi.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/300-dpi.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/72-dpi.tiff +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/CVS_LOGO.WMF +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/blk-inner-content.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/exif-420-dpi.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/[Content_Types].xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/_rels/.rels +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/customXml/_rels/item1.xml.rels +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/customXml/item1.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/customXml/itemProps1.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/docProps/app.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/docProps/core.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/docProps/thumbnail.jpeg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/_rels/document.xml.rels +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/document.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/fontTable.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/numbering.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/settings.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/styles.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/stylesWithEffects.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/theme/theme1.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/expanded_docx/word/webSettings.xml +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/having-images.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/jfif-iguana.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/jpeg_without_app0_and_app1.jpg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/little-endian.tif +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/monty-truth.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/python-icon.jpeg +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/python-icon.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/python-powered.png +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/python.bmp +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/sct-inner-content.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/snippets/add-row-col.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/snippets/inline.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/snippets/new-tbl.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/snippets/tbl-cells.txt +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/sonic.emf +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/sonic.gif +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_files/test.docx +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_package.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_sanitize.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_section.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_settings.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_shape.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_shared.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/test_table.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_font.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_hyperlink.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_pagebreak.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_paragraph.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_parfmt.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_run.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/text/test_tabstops.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/transforms/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/transforms/helpers.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/transforms/test_repair.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/unitdata.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/unitutil/__init__.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/unitutil/cxml.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/unitutil/file.py +0 -0
- {python_docx_oss-0.5.1 → python_docx_oss-0.5.2}/tests/unitutil/mock.py +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## Release History
|
|
2
2
|
|
|
3
|
+
**0.5.2 (2026-11-23)**
|
|
4
|
+
|
|
5
|
+
- Fixed `normalize(..., hyperlink_fields=True)` skipping Word `HYPERLINK` fields
|
|
6
|
+
containing the argument-free `\h` switch. Simple and paragraph-local complex
|
|
7
|
+
fields now convert to `w:hyperlink` with `w:history="false"`, preserving the
|
|
8
|
+
switch's documented behavior and retaining link targets, text, and formatting.
|
|
9
|
+
- Supported bookmark-only fields such as `HYPERLINK \l "_Toc123" \h` without
|
|
10
|
+
creating external hyperlink relationships. Duplicate switches and malformed
|
|
11
|
+
arguments remain unchanged and are reported as skipped.
|
|
12
|
+
|
|
3
13
|
**0.5.1 (2026-11-05)**
|
|
4
14
|
|
|
5
15
|
- Added transparent physical package normalization to open and read ISO/IEC 29500
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-docx-oss
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: Create, read, and update Microsoft Word .docx files.
|
|
5
|
+
Author: Ethan St Lee
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Changelog, https://github.com/lsaint/python-docx-oss/blob/master/HISTORY.md
|
|
8
|
+
Project-URL: Documentation, https://python-docx-oss.readthedocs.io/en/latest/
|
|
9
|
+
Project-URL: Issues, https://github.com/lsaint/python-docx-oss/issues
|
|
10
|
+
Project-URL: Repository, https://github.com/lsaint/python-docx-oss
|
|
11
|
+
Keywords: docx,office,openxml,word
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Office/Business :: Office Suites
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
23
|
+
Requires-Python: >=3.12
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: lxml>=6.1.0
|
|
27
|
+
Requires-Dist: typing_extensions>=4.9.0
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
<p align="center">
|
|
31
|
+
<img src="https://raw.githubusercontent.com/lsaint/python-docx-oss/master/docs/_static/img/oss.png" width="400" alt="python-docx-oss"/>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<strong>A Python SDK for advanced creation and manipulation of Microsoft Word <code>.docx</code> files.</strong>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://pypi.org/project/python-docx-oss/"><img alt="PyPI" src="https://img.shields.io/pypi/v/python-docx-oss"></a>
|
|
40
|
+
<a href="https://pypi.org/project/python-docx-oss/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/python-docx-oss.svg"></a>
|
|
41
|
+
<a href="https://github.com/astral-sh/ruff"><img alt="Code style: Ruff" src="https://img.shields.io/badge/code%20style-ruff-FF6B6B.svg?logo=ruff&logoColor=white"></a>
|
|
42
|
+
<a href="https://github.com/lsaint/python-docx-oss/blob/master/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
## Overview
|
|
46
|
+
|
|
47
|
+
`python-docx-oss` is an independently evolving DOCX SDK built on the proven API
|
|
48
|
+
foundation of [`python-docx`](https://github.com/python-openxml/python-docx). It keeps
|
|
49
|
+
the familiar `docx` programming model while extending it for advanced OOXML and Open
|
|
50
|
+
Packaging Convention (OPC) workflows.
|
|
51
|
+
|
|
52
|
+
Use it when an application needs more than basic paragraphs and tables: custom document
|
|
53
|
+
metadata, application-owned XML, vector images, floating pictures, East Asian fonts,
|
|
54
|
+
package inspection, configurable fingerprints, repair, or low-level package and relationship access.
|
|
55
|
+
|
|
56
|
+
[Documentation](https://python-docx-oss.readthedocs.io/en/latest/) · [API Reference](docs/index.rst#api-documentation) · [Release History](HISTORY.md)
|
|
57
|
+
|
|
58
|
+
## Capability Matrix
|
|
59
|
+
|
|
60
|
+
| Capability | Primary API / Behavior |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| **Major additions** | |
|
|
63
|
+
| [Custom document properties](docs/user/custom-properties.rst) | `document.custom_properties` |
|
|
64
|
+
| [Custom XML lifecycle](docs/user/custom-xml.rst) | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
65
|
+
| [SVG and EMF images](docs/user/shapes.rst) | `add_picture()` |
|
|
66
|
+
| [Floating pictures](docs/user/shapes.rst) | `add_float_picture()` |
|
|
67
|
+
| [Latin and East Asian font controls](docs/user/text.rst) | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
68
|
+
| [Low-level OPC parts and relationships](docs/user/api-concepts.rst) | `document.part.package`, `part.rels` |
|
|
69
|
+
| [In-memory read, export, and independent copies](docs/user/documents.rst) | `Document(bytes)`, `to_bytes()`, `copy()` |
|
|
70
|
+
| [Document sanitization](docs/user/sanitization.rst) | `document.sanitize()` |
|
|
71
|
+
| [Read-only package inspection and streaming feature scanning](docs/user/inspection.rst) | `inspect()`, `ScanEvent` |
|
|
72
|
+
| [Configurable package-content fingerprints](docs/user/inspection.rst#content-fingerprints) | `fingerprint()`, `FingerprintPolicy`, `serialize_xml` |
|
|
73
|
+
| [Explicit empty Custom XML repair and hyperlink normalization](docs/user/transformations.rst) | `repair()`, `normalize()` |
|
|
74
|
+
| **Major fixes and compatibility** | |
|
|
75
|
+
| [Strict Open XML compatibility](HISTORY.md#release-history) | Open Strict documents through `Document()` with transparent package normalization |
|
|
76
|
+
| [Table width and logical layout compatibility](HISTORY.md#release-history) | Read measurement and percentage widths, logical indentation, and `start` / `end` alignment |
|
|
77
|
+
| [lxml text extraction](docs/user/compatibility.rst#preservation-of-lxml-element-text-and-itertext-semantics) | Prevent duplicate `itertext()` output; preserve public `.text` APIs |
|
|
78
|
+
|
|
79
|
+
## Installation
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
python -m pip install python-docx-oss
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The distribution name is `python-docx-oss`, but the Python import namespace remains
|
|
86
|
+
`docx`:
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
from docx import Document
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
> [!WARNING]
|
|
93
|
+
> `python-docx` and `python-docx-oss` provide the same `docx` import namespace. Do not
|
|
94
|
+
> install both distributions in the same Python environment.
|
|
95
|
+
|
|
96
|
+
## Quick Start
|
|
97
|
+
|
|
98
|
+
Prepare a sharing copy with custom metadata, East Asian fonts, and a content fingerprint:
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
from docx import Document, fingerprint
|
|
102
|
+
|
|
103
|
+
internal = Document("internal-report.docx")
|
|
104
|
+
public = internal.copy() # Keep the original unchanged.
|
|
105
|
+
|
|
106
|
+
public.custom_properties["distribution"] = "public" # Set document metadata.
|
|
107
|
+
public.part.add_custom_xml_part('<report xmlns="urn:example:reports" id="Q4"/>')
|
|
108
|
+
public.add_paragraph().add_run("中文内容").font.eastAsia = "Microsoft YaHei"
|
|
109
|
+
|
|
110
|
+
public.sanitize(personal_metadata=True, comments=True) # Remove private info.
|
|
111
|
+
content = public.to_bytes() # Export without temporary files.
|
|
112
|
+
digest = fingerprint(content) # Compute a normalized package-content fingerprint.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Compatibility and Scope
|
|
116
|
+
|
|
117
|
+
- The project maintains broad compatibility with the public `python-docx` API while
|
|
118
|
+
following its own versioning and product roadmap.
|
|
119
|
+
- Compatibility does not extend to every private or internal `python-docx` API. Test
|
|
120
|
+
those integrations before migrating production systems.
|
|
121
|
+
- The SDK focuses exclusively on DOCX. It is not a general XLSX/PPTX Office suite.
|
|
122
|
+
- It edits document structure but does not implement Word's page-layout rendering
|
|
123
|
+
engine.
|
|
124
|
+
- CLI, MCP, web, desktop, and Agent runtimes belong in separate packages that consume
|
|
125
|
+
this SDK.
|
|
126
|
+
|
|
127
|
+
## Why “OSS”?
|
|
128
|
+
|
|
129
|
+
In Brazilian jiu-jitsu, “oss” is a greeting and an expression of respect. It reflects
|
|
130
|
+
the same spirit of discipline and collaboration behind this project.
|
|
131
|
+
|
|
132
|
+
## Support
|
|
133
|
+
|
|
134
|
+
If this project is useful to you, you can support its continued development through
|
|
135
|
+
the [donation page](https://lsaint.github.io/donation/?utm_source=github&utm_medium=readme&utm_campaign=python-docx-oss).
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/lsaint/python-docx-oss/master/docs/_static/img/oss.png" width="400" alt="python-docx-oss"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<strong>A Python SDK for advanced creation and manipulation of Microsoft Word <code>.docx</code> files.</strong>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://pypi.org/project/python-docx-oss/"><img alt="PyPI" src="https://img.shields.io/pypi/v/python-docx-oss"></a>
|
|
11
|
+
<a href="https://pypi.org/project/python-docx-oss/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/python-docx-oss.svg"></a>
|
|
12
|
+
<a href="https://github.com/astral-sh/ruff"><img alt="Code style: Ruff" src="https://img.shields.io/badge/code%20style-ruff-FF6B6B.svg?logo=ruff&logoColor=white"></a>
|
|
13
|
+
<a href="https://github.com/lsaint/python-docx-oss/blob/master/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
`python-docx-oss` is an independently evolving DOCX SDK built on the proven API
|
|
19
|
+
foundation of [`python-docx`](https://github.com/python-openxml/python-docx). It keeps
|
|
20
|
+
the familiar `docx` programming model while extending it for advanced OOXML and Open
|
|
21
|
+
Packaging Convention (OPC) workflows.
|
|
22
|
+
|
|
23
|
+
Use it when an application needs more than basic paragraphs and tables: custom document
|
|
24
|
+
metadata, application-owned XML, vector images, floating pictures, East Asian fonts,
|
|
25
|
+
package inspection, configurable fingerprints, repair, or low-level package and relationship access.
|
|
26
|
+
|
|
27
|
+
[Documentation](https://python-docx-oss.readthedocs.io/en/latest/) · [API Reference](docs/index.rst#api-documentation) · [Release History](HISTORY.md)
|
|
28
|
+
|
|
29
|
+
## Capability Matrix
|
|
30
|
+
|
|
31
|
+
| Capability | Primary API / Behavior |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| **Major additions** | |
|
|
34
|
+
| [Custom document properties](docs/user/custom-properties.rst) | `document.custom_properties` |
|
|
35
|
+
| [Custom XML lifecycle](docs/user/custom-xml.rst) | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
36
|
+
| [SVG and EMF images](docs/user/shapes.rst) | `add_picture()` |
|
|
37
|
+
| [Floating pictures](docs/user/shapes.rst) | `add_float_picture()` |
|
|
38
|
+
| [Latin and East Asian font controls](docs/user/text.rst) | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
39
|
+
| [Low-level OPC parts and relationships](docs/user/api-concepts.rst) | `document.part.package`, `part.rels` |
|
|
40
|
+
| [In-memory read, export, and independent copies](docs/user/documents.rst) | `Document(bytes)`, `to_bytes()`, `copy()` |
|
|
41
|
+
| [Document sanitization](docs/user/sanitization.rst) | `document.sanitize()` |
|
|
42
|
+
| [Read-only package inspection and streaming feature scanning](docs/user/inspection.rst) | `inspect()`, `ScanEvent` |
|
|
43
|
+
| [Configurable package-content fingerprints](docs/user/inspection.rst#content-fingerprints) | `fingerprint()`, `FingerprintPolicy`, `serialize_xml` |
|
|
44
|
+
| [Explicit empty Custom XML repair and hyperlink normalization](docs/user/transformations.rst) | `repair()`, `normalize()` |
|
|
45
|
+
| **Major fixes and compatibility** | |
|
|
46
|
+
| [Strict Open XML compatibility](HISTORY.md#release-history) | Open Strict documents through `Document()` with transparent package normalization |
|
|
47
|
+
| [Table width and logical layout compatibility](HISTORY.md#release-history) | Read measurement and percentage widths, logical indentation, and `start` / `end` alignment |
|
|
48
|
+
| [lxml text extraction](docs/user/compatibility.rst#preservation-of-lxml-element-text-and-itertext-semantics) | Prevent duplicate `itertext()` output; preserve public `.text` APIs |
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
python -m pip install python-docx-oss
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The distribution name is `python-docx-oss`, but the Python import namespace remains
|
|
57
|
+
`docx`:
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from docx import Document
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
> [!WARNING]
|
|
64
|
+
> `python-docx` and `python-docx-oss` provide the same `docx` import namespace. Do not
|
|
65
|
+
> install both distributions in the same Python environment.
|
|
66
|
+
|
|
67
|
+
## Quick Start
|
|
68
|
+
|
|
69
|
+
Prepare a sharing copy with custom metadata, East Asian fonts, and a content fingerprint:
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
from docx import Document, fingerprint
|
|
73
|
+
|
|
74
|
+
internal = Document("internal-report.docx")
|
|
75
|
+
public = internal.copy() # Keep the original unchanged.
|
|
76
|
+
|
|
77
|
+
public.custom_properties["distribution"] = "public" # Set document metadata.
|
|
78
|
+
public.part.add_custom_xml_part('<report xmlns="urn:example:reports" id="Q4"/>')
|
|
79
|
+
public.add_paragraph().add_run("中文内容").font.eastAsia = "Microsoft YaHei"
|
|
80
|
+
|
|
81
|
+
public.sanitize(personal_metadata=True, comments=True) # Remove private info.
|
|
82
|
+
content = public.to_bytes() # Export without temporary files.
|
|
83
|
+
digest = fingerprint(content) # Compute a normalized package-content fingerprint.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Compatibility and Scope
|
|
87
|
+
|
|
88
|
+
- The project maintains broad compatibility with the public `python-docx` API while
|
|
89
|
+
following its own versioning and product roadmap.
|
|
90
|
+
- Compatibility does not extend to every private or internal `python-docx` API. Test
|
|
91
|
+
those integrations before migrating production systems.
|
|
92
|
+
- The SDK focuses exclusively on DOCX. It is not a general XLSX/PPTX Office suite.
|
|
93
|
+
- It edits document structure but does not implement Word's page-layout rendering
|
|
94
|
+
engine.
|
|
95
|
+
- CLI, MCP, web, desktop, and Agent runtimes belong in separate packages that consume
|
|
96
|
+
this SDK.
|
|
97
|
+
|
|
98
|
+
## Why “OSS”?
|
|
99
|
+
|
|
100
|
+
In Brazilian jiu-jitsu, “oss” is a greeting and an expression of respect. It reflects
|
|
101
|
+
the same spirit of discipline and collaboration behind this project.
|
|
102
|
+
|
|
103
|
+
## Support
|
|
104
|
+
|
|
105
|
+
If this project is useful to you, you can support its continued development through
|
|
106
|
+
the [donation page](https://lsaint.github.io/donation/?utm_source=github&utm_medium=readme&utm_campaign=python-docx-oss).
|
|
@@ -86,7 +86,15 @@ markers within the result remain in their original order.
|
|
|
86
86
|
|
|
87
87
|
Supported targets include quoted or unquoted addresses, bookmark-only links,
|
|
88
88
|
and address plus bookmark. Supported switches are ``\l`` (anchor), ``\o``
|
|
89
|
-
(tooltip), ``\t`` (target frame),
|
|
89
|
+
(tooltip), ``\t`` (target frame), ``\h`` (disable visited-link history), and
|
|
90
|
+
``\* MERGEFORMAT``. The Word-specific, argument-free ``\h`` switch is preserved
|
|
91
|
+
as ``w:history="false"`` on the resulting hyperlink. Microsoft documents ``\h``
|
|
92
|
+
as preventing the target from being added to the viewed-hyperlink list in
|
|
93
|
+
`MS-OE376, section 2.1.509 <https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/233c2d46-107d-4881-86bf-c5f61f9c2a60>`_.
|
|
94
|
+
The `Open XML SDK history attribute documentation <https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.hyperlink.history>`_
|
|
95
|
+
defines ``w:history`` as adding the target to that list.
|
|
96
|
+
Bookmark-only links with ``\h`` do not create external hyperlink relationships.
|
|
97
|
+
Unknown switches,
|
|
90
98
|
locked or nested fields, revision markup, mixed delimiter/content runs, and
|
|
91
99
|
bookmark or comment range boundaries are left unchanged and reported. Other
|
|
92
100
|
field types, such as TOC and REF, are untouched.
|
|
Binary file
|
|
@@ -17,6 +17,8 @@ W = "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
|
17
17
|
R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
18
18
|
XML_SPACE = "{http://www.w3.org/XML/1998/namespace}space"
|
|
19
19
|
Selector = Callable[[HyperlinkTarget], bool]
|
|
20
|
+
_ARGUMENT_SWITCHES = frozenset((r"\l", r"\o", r"\t", r"\*"))
|
|
21
|
+
_SUPPORTED_SWITCHES = _ARGUMENT_SWITCHES | {r"\h"}
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
def w(name: str) -> str:
|
|
@@ -29,6 +31,7 @@ class _Instruction:
|
|
|
29
31
|
anchor: str | None
|
|
30
32
|
tooltip: str | None = None
|
|
31
33
|
frame: str | None = None
|
|
34
|
+
has_h_switch: bool = False
|
|
32
35
|
|
|
33
36
|
|
|
34
37
|
def _instruction(text: str) -> _Instruction | None:
|
|
@@ -41,13 +44,19 @@ def _instruction(text: str) -> _Instruction | None:
|
|
|
41
44
|
address = tokens[index][0]
|
|
42
45
|
index += 1
|
|
43
46
|
options: dict[str, str] = {}
|
|
47
|
+
has_h_switch = False
|
|
44
48
|
while index < len(tokens):
|
|
45
49
|
key, quoted = tokens[index]
|
|
46
50
|
key = key.lower()
|
|
47
51
|
index += 1
|
|
52
|
+
if key == "\\h" and not quoted:
|
|
53
|
+
if has_h_switch:
|
|
54
|
+
return None
|
|
55
|
+
has_h_switch = True
|
|
56
|
+
continue
|
|
48
57
|
if (
|
|
49
58
|
quoted
|
|
50
|
-
or key not in
|
|
59
|
+
or key not in _ARGUMENT_SWITCHES
|
|
51
60
|
or index == len(tokens)
|
|
52
61
|
or not tokens[index][1]
|
|
53
62
|
and tokens[index][0].startswith("\\")
|
|
@@ -61,7 +70,13 @@ def _instruction(text: str) -> _Instruction | None:
|
|
|
61
70
|
anchor = options.get("\\l")
|
|
62
71
|
if not address and not anchor:
|
|
63
72
|
return None
|
|
64
|
-
return _Instruction(
|
|
73
|
+
return _Instruction(
|
|
74
|
+
address or None,
|
|
75
|
+
anchor,
|
|
76
|
+
options.get("\\o"),
|
|
77
|
+
options.get("\\t"),
|
|
78
|
+
has_h_switch=has_h_switch,
|
|
79
|
+
)
|
|
65
80
|
|
|
66
81
|
|
|
67
82
|
def _field_tokens(text: str) -> list[tuple[str, bool]] | None:
|
|
@@ -96,7 +111,7 @@ def _field_tokens(text: str) -> list[tuple[str, bool]] | None:
|
|
|
96
111
|
while index < len(text) and not text[index].isspace():
|
|
97
112
|
index += 1
|
|
98
113
|
token = text[start:index]
|
|
99
|
-
if '"' in token or "\\" in token and token.lower() not in
|
|
114
|
+
if '"' in token or "\\" in token and token.lower() not in _SUPPORTED_SWITCHES:
|
|
100
115
|
return None
|
|
101
116
|
tokens.append((token, False))
|
|
102
117
|
return tokens
|
|
@@ -176,6 +191,8 @@ class HyperlinkNormalizer:
|
|
|
176
191
|
):
|
|
177
192
|
if value is not None:
|
|
178
193
|
link.set(w(name), value)
|
|
194
|
+
if instruction.has_h_switch:
|
|
195
|
+
link.set(w("history"), "false")
|
|
179
196
|
return link
|
|
180
197
|
|
|
181
198
|
def _protected(self, element: etree_Element) -> bool:
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-docx-oss
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: Create, read, and update Microsoft Word .docx files.
|
|
5
|
+
Author: Ethan St Lee
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Changelog, https://github.com/lsaint/python-docx-oss/blob/master/HISTORY.md
|
|
8
|
+
Project-URL: Documentation, https://python-docx-oss.readthedocs.io/en/latest/
|
|
9
|
+
Project-URL: Issues, https://github.com/lsaint/python-docx-oss/issues
|
|
10
|
+
Project-URL: Repository, https://github.com/lsaint/python-docx-oss
|
|
11
|
+
Keywords: docx,office,openxml,word
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Office/Business :: Office Suites
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
23
|
+
Requires-Python: >=3.12
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: lxml>=6.1.0
|
|
27
|
+
Requires-Dist: typing_extensions>=4.9.0
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
<p align="center">
|
|
31
|
+
<img src="https://raw.githubusercontent.com/lsaint/python-docx-oss/master/docs/_static/img/oss.png" width="400" alt="python-docx-oss"/>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
<p align="center">
|
|
35
|
+
<strong>A Python SDK for advanced creation and manipulation of Microsoft Word <code>.docx</code> files.</strong>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
<p align="center">
|
|
39
|
+
<a href="https://pypi.org/project/python-docx-oss/"><img alt="PyPI" src="https://img.shields.io/pypi/v/python-docx-oss"></a>
|
|
40
|
+
<a href="https://pypi.org/project/python-docx-oss/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/python-docx-oss.svg"></a>
|
|
41
|
+
<a href="https://github.com/astral-sh/ruff"><img alt="Code style: Ruff" src="https://img.shields.io/badge/code%20style-ruff-FF6B6B.svg?logo=ruff&logoColor=white"></a>
|
|
42
|
+
<a href="https://github.com/lsaint/python-docx-oss/blob/master/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
45
|
+
## Overview
|
|
46
|
+
|
|
47
|
+
`python-docx-oss` is an independently evolving DOCX SDK built on the proven API
|
|
48
|
+
foundation of [`python-docx`](https://github.com/python-openxml/python-docx). It keeps
|
|
49
|
+
the familiar `docx` programming model while extending it for advanced OOXML and Open
|
|
50
|
+
Packaging Convention (OPC) workflows.
|
|
51
|
+
|
|
52
|
+
Use it when an application needs more than basic paragraphs and tables: custom document
|
|
53
|
+
metadata, application-owned XML, vector images, floating pictures, East Asian fonts,
|
|
54
|
+
package inspection, configurable fingerprints, repair, or low-level package and relationship access.
|
|
55
|
+
|
|
56
|
+
[Documentation](https://python-docx-oss.readthedocs.io/en/latest/) · [API Reference](docs/index.rst#api-documentation) · [Release History](HISTORY.md)
|
|
57
|
+
|
|
58
|
+
## Capability Matrix
|
|
59
|
+
|
|
60
|
+
| Capability | Primary API / Behavior |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| **Major additions** | |
|
|
63
|
+
| [Custom document properties](docs/user/custom-properties.rst) | `document.custom_properties` |
|
|
64
|
+
| [Custom XML lifecycle](docs/user/custom-xml.rst) | `add_custom_xml_part()`, `delete_custom_xml_part()` |
|
|
65
|
+
| [SVG and EMF images](docs/user/shapes.rst) | `add_picture()` |
|
|
66
|
+
| [Floating pictures](docs/user/shapes.rst) | `add_float_picture()` |
|
|
67
|
+
| [Latin and East Asian font controls](docs/user/text.rst) | `run.font.name`, `run.font.hAnsi`, `run.font.eastAsia` |
|
|
68
|
+
| [Low-level OPC parts and relationships](docs/user/api-concepts.rst) | `document.part.package`, `part.rels` |
|
|
69
|
+
| [In-memory read, export, and independent copies](docs/user/documents.rst) | `Document(bytes)`, `to_bytes()`, `copy()` |
|
|
70
|
+
| [Document sanitization](docs/user/sanitization.rst) | `document.sanitize()` |
|
|
71
|
+
| [Read-only package inspection and streaming feature scanning](docs/user/inspection.rst) | `inspect()`, `ScanEvent` |
|
|
72
|
+
| [Configurable package-content fingerprints](docs/user/inspection.rst#content-fingerprints) | `fingerprint()`, `FingerprintPolicy`, `serialize_xml` |
|
|
73
|
+
| [Explicit empty Custom XML repair and hyperlink normalization](docs/user/transformations.rst) | `repair()`, `normalize()` |
|
|
74
|
+
| **Major fixes and compatibility** | |
|
|
75
|
+
| [Strict Open XML compatibility](HISTORY.md#release-history) | Open Strict documents through `Document()` with transparent package normalization |
|
|
76
|
+
| [Table width and logical layout compatibility](HISTORY.md#release-history) | Read measurement and percentage widths, logical indentation, and `start` / `end` alignment |
|
|
77
|
+
| [lxml text extraction](docs/user/compatibility.rst#preservation-of-lxml-element-text-and-itertext-semantics) | Prevent duplicate `itertext()` output; preserve public `.text` APIs |
|
|
78
|
+
|
|
79
|
+
## Installation
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
python -m pip install python-docx-oss
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The distribution name is `python-docx-oss`, but the Python import namespace remains
|
|
86
|
+
`docx`:
|
|
87
|
+
|
|
88
|
+
```python
|
|
89
|
+
from docx import Document
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
> [!WARNING]
|
|
93
|
+
> `python-docx` and `python-docx-oss` provide the same `docx` import namespace. Do not
|
|
94
|
+
> install both distributions in the same Python environment.
|
|
95
|
+
|
|
96
|
+
## Quick Start
|
|
97
|
+
|
|
98
|
+
Prepare a sharing copy with custom metadata, East Asian fonts, and a content fingerprint:
|
|
99
|
+
|
|
100
|
+
```python
|
|
101
|
+
from docx import Document, fingerprint
|
|
102
|
+
|
|
103
|
+
internal = Document("internal-report.docx")
|
|
104
|
+
public = internal.copy() # Keep the original unchanged.
|
|
105
|
+
|
|
106
|
+
public.custom_properties["distribution"] = "public" # Set document metadata.
|
|
107
|
+
public.part.add_custom_xml_part('<report xmlns="urn:example:reports" id="Q4"/>')
|
|
108
|
+
public.add_paragraph().add_run("中文内容").font.eastAsia = "Microsoft YaHei"
|
|
109
|
+
|
|
110
|
+
public.sanitize(personal_metadata=True, comments=True) # Remove private info.
|
|
111
|
+
content = public.to_bytes() # Export without temporary files.
|
|
112
|
+
digest = fingerprint(content) # Compute a normalized package-content fingerprint.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Compatibility and Scope
|
|
116
|
+
|
|
117
|
+
- The project maintains broad compatibility with the public `python-docx` API while
|
|
118
|
+
following its own versioning and product roadmap.
|
|
119
|
+
- Compatibility does not extend to every private or internal `python-docx` API. Test
|
|
120
|
+
those integrations before migrating production systems.
|
|
121
|
+
- The SDK focuses exclusively on DOCX. It is not a general XLSX/PPTX Office suite.
|
|
122
|
+
- It edits document structure but does not implement Word's page-layout rendering
|
|
123
|
+
engine.
|
|
124
|
+
- CLI, MCP, web, desktop, and Agent runtimes belong in separate packages that consume
|
|
125
|
+
this SDK.
|
|
126
|
+
|
|
127
|
+
## Why “OSS”?
|
|
128
|
+
|
|
129
|
+
In Brazilian jiu-jitsu, “oss” is a greeting and an expression of respect. It reflects
|
|
130
|
+
the same spirit of discipline and collaboration behind this project.
|
|
131
|
+
|
|
132
|
+
## Support
|
|
133
|
+
|
|
134
|
+
If this project is useful to you, you can support its continued development through
|
|
135
|
+
the [donation page](https://lsaint.github.io/donation/?utm_source=github&utm_medium=readme&utm_campaign=python-docx-oss).
|
|
@@ -76,6 +76,7 @@ class DescribeHyperlinkFieldConversion:
|
|
|
76
76
|
root = _root(result.content)
|
|
77
77
|
links = list(root.iter(f"{{{W}}}hyperlink"))
|
|
78
78
|
assert len(links) == 1
|
|
79
|
+
assert links[0].get(f"{{{W}}}history") is None
|
|
79
80
|
assert not list(root.iter(f"{{{W}}}fldChar"))
|
|
80
81
|
assert not list(root.iter(f"{{{W}}}instrText"))
|
|
81
82
|
runs = links[0].findall(f"{{{W}}}r")
|
|
@@ -164,6 +165,115 @@ class DescribeHyperlinkFieldConversion:
|
|
|
164
165
|
assert link.get(f"{{{W}}}tooltip") == "A tooltip"
|
|
165
166
|
assert link.get(f"{{{W}}}tgtFrame") == "_blank"
|
|
166
167
|
|
|
168
|
+
@pytest.mark.parametrize("simple", [False, True])
|
|
169
|
+
@pytest.mark.parametrize(
|
|
170
|
+
("switches", "anchor", "tooltip", "frame"),
|
|
171
|
+
[
|
|
172
|
+
(r"\h", None, None, None),
|
|
173
|
+
(r"\H", None, None, None),
|
|
174
|
+
(r'\h \l "Chapter1" \o "A tooltip" \t "_blank"', "Chapter1", "A tooltip", "_blank"),
|
|
175
|
+
(r'\l "Chapter1" \h \* MERGEFORMAT', "Chapter1", None, None),
|
|
176
|
+
],
|
|
177
|
+
)
|
|
178
|
+
def it_preserves_the_h_switch_without_changing_target_text_or_formatting(
|
|
179
|
+
self,
|
|
180
|
+
simple: bool,
|
|
181
|
+
switches: str,
|
|
182
|
+
anchor: str | None,
|
|
183
|
+
tooltip: str | None,
|
|
184
|
+
frame: str | None,
|
|
185
|
+
) -> None:
|
|
186
|
+
instruction = f'HYPERLINK "https://example.test/doc" {switches}'
|
|
187
|
+
body = complex_field(instruction)
|
|
188
|
+
if simple:
|
|
189
|
+
body = (
|
|
190
|
+
f"<w:p><w:fldSimple w:instr='{instruction}'>"
|
|
191
|
+
'<w:r><w:rPr><w:b/></w:rPr><w:t xml:space="preserve">Hello </w:t></w:r>'
|
|
192
|
+
"<w:r><w:rPr><w:i/></w:rPr><w:t>world</w:t></w:r>"
|
|
193
|
+
"</w:fldSimple></w:p>"
|
|
194
|
+
)
|
|
195
|
+
result = normalize(package(document_parts(body)), hyperlink_fields=True)
|
|
196
|
+
assert result.report.succeeded
|
|
197
|
+
assert result.report.changed
|
|
198
|
+
assert not result.report.skipped
|
|
199
|
+
root = _root(result.content)
|
|
200
|
+
link = next(root.iter(f"{{{W}}}hyperlink"))
|
|
201
|
+
assert link.get(f"{{{W}}}history") == "false"
|
|
202
|
+
assert link.get(f"{{{W}}}anchor") == anchor
|
|
203
|
+
assert link.get(f"{{{W}}}tooltip") == tooltip
|
|
204
|
+
assert link.get(f"{{{W}}}tgtFrame") == frame
|
|
205
|
+
assert not list(root.iter(f"{{{W}}}instrText"))
|
|
206
|
+
assert not list(root.iter(f"{{{W}}}fldChar"))
|
|
207
|
+
assert not list(root.iter(f"{{{W}}}fldSimple"))
|
|
208
|
+
runs = link.findall(f"{{{W}}}r")
|
|
209
|
+
assert len(runs) == 2
|
|
210
|
+
assert runs[0].find(f"{{{W}}}rPr/{{{W}}}b") is not None
|
|
211
|
+
assert runs[1].find(f"{{{W}}}rPr/{{{W}}}i") is not None
|
|
212
|
+
assert Document(result.content).paragraphs[0].hyperlinks[0].text == "Hello world"
|
|
213
|
+
rels = _root(result.content, "word/_rels/document.xml.rels")
|
|
214
|
+
assert any(
|
|
215
|
+
rel.get("Id") == link.get(f"{{{REL_ATTR}}}id")
|
|
216
|
+
and rel.get("Target") == "https://example.test/doc"
|
|
217
|
+
and rel.get("TargetMode") == "External"
|
|
218
|
+
for rel in rels
|
|
219
|
+
)
|
|
220
|
+
again = normalize(result.content, hyperlink_fields=True)
|
|
221
|
+
assert again.report.succeeded
|
|
222
|
+
assert not again.report.changed
|
|
223
|
+
assert again.content == result.content
|
|
224
|
+
|
|
225
|
+
@pytest.mark.parametrize("simple", [False, True])
|
|
226
|
+
@pytest.mark.parametrize(
|
|
227
|
+
"instruction", [r'HYPERLINK \l "_Toc123" \h', r'HYPERLINK \h \l "_Toc123"']
|
|
228
|
+
)
|
|
229
|
+
def it_converts_anchor_only_h_switch_fields_without_adding_relationships(
|
|
230
|
+
self, simple: bool, instruction: str
|
|
231
|
+
) -> None:
|
|
232
|
+
body = complex_field(instruction)
|
|
233
|
+
if simple:
|
|
234
|
+
body = (
|
|
235
|
+
f"<w:p><w:fldSimple w:instr='{instruction}'>"
|
|
236
|
+
"<w:r><w:t>Hello world</w:t></w:r></w:fldSimple></w:p>"
|
|
237
|
+
)
|
|
238
|
+
content = package(document_parts(body))
|
|
239
|
+
result = normalize(content, hyperlink_fields=True)
|
|
240
|
+
assert result.report.succeeded
|
|
241
|
+
assert result.report.changed
|
|
242
|
+
assert not result.report.skipped
|
|
243
|
+
link = next(_root(result.content).iter(f"{{{W}}}hyperlink"))
|
|
244
|
+
assert link.get(f"{{{W}}}anchor") == "_Toc123"
|
|
245
|
+
assert link.get(f"{{{W}}}history") == "false"
|
|
246
|
+
assert link.get(f"{{{REL_ATTR}}}id") is None
|
|
247
|
+
assert Document(result.content).paragraphs[0].hyperlinks[0].text == "Hello world"
|
|
248
|
+
assert not any(
|
|
249
|
+
change.code == "added_hyperlink_relationship" for change in result.report.changes
|
|
250
|
+
)
|
|
251
|
+
rels_name = "word/_rels/document.xml.rels"
|
|
252
|
+
assert unzip(result.content)[rels_name] == unzip(content)[rels_name]
|
|
253
|
+
again = normalize(result.content, hyperlink_fields=True)
|
|
254
|
+
assert not again.report.changed
|
|
255
|
+
assert again.content == result.content
|
|
256
|
+
|
|
257
|
+
@pytest.mark.parametrize("simple", [False, True])
|
|
258
|
+
@pytest.mark.parametrize(
|
|
259
|
+
"switches",
|
|
260
|
+
[r"\h value", r"\h \h", r"\h \H", r"\h \unknown", r"\o \h"],
|
|
261
|
+
)
|
|
262
|
+
def it_skips_invalid_h_switch_combinations(self, simple: bool, switches: str) -> None:
|
|
263
|
+
instruction = f'HYPERLINK "https://example.test/doc" {switches}'
|
|
264
|
+
body = complex_field(instruction)
|
|
265
|
+
if simple:
|
|
266
|
+
body = (
|
|
267
|
+
f"<w:p><w:fldSimple w:instr='{instruction}'>"
|
|
268
|
+
"<w:r><w:t>label</w:t></w:r></w:fldSimple></w:p>"
|
|
269
|
+
)
|
|
270
|
+
content = package(document_parts(body))
|
|
271
|
+
result = normalize(content, hyperlink_fields=True)
|
|
272
|
+
assert result.report.succeeded
|
|
273
|
+
assert result.report.skipped
|
|
274
|
+
assert not result.report.changed
|
|
275
|
+
assert result.content is content
|
|
276
|
+
|
|
167
277
|
def it_converts_simple_fields(self):
|
|
168
278
|
body = "<w:p><w:fldSimple w:instr='HYPERLINK \"https://example.test\"'><w:r><w:t>label</w:t></w:r></w:fldSimple></w:p>"
|
|
169
279
|
result = normalize(package(document_parts(body)), hyperlink_fields=True)
|