docvortex 0.4.22__tar.gz → 0.4.23__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.
- {docvortex-0.4.22/src/docvortex.egg-info → docvortex-0.4.23}/PKG-INFO +12 -10
- {docvortex-0.4.22 → docvortex-0.4.23}/README.md +11 -9
- {docvortex-0.4.22 → docvortex-0.4.23}/schemas/middle-2.0.json +1 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/schemas/model-2.0.json +1 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/converter.py +4 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/selector.py +31 -0
- docvortex-0.4.23/src/docvortex/analyzers/native/mhtml/__init__.py +3 -0
- docvortex-0.4.23/src/docvortex/analyzers/native/mhtml/converter.py +73 -0
- docvortex-0.4.23/src/docvortex/analyzers/native/mhtml/resources.py +80 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/api.py +9 -1
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/detection.py +10 -1
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/filetypes.py +19 -1
- docvortex-0.4.23/src/docvortex/document/mhtml.py +258 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/metadata.py +5 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/schema.py +1 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/version.py +1 -1
- {docvortex-0.4.22 → docvortex-0.4.23/src/docvortex.egg-info}/PKG-INFO +12 -10
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex.egg-info/SOURCES.txt +6 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_format_matrix.py +23 -2
- docvortex-0.4.23/tests/unittest/_mhtml_test_utils.py +67 -0
- docvortex-0.4.23/tests/unittest/test_flash_mhtml.py +299 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/LICENSE.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/MANIFEST.in +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/README.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/demo.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/README.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/docx_01.doc +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/docx_01.docx +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/pptx_01.ppt +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/pptx_01.pptx +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/rtf_01.rtf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/xlsx_01.xls +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/office_docs/xlsx_01.xlsx +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/2407.00079v4_origi-10.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/IEBM_A_2667169_O-5.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/caibao1.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/demo1.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/demo2.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/demo3.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/demo4.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/demo6.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/mixed_elements_pages_03_06.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/mixed_elements_pages_07_10.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/mixed_elements_pages_11_15.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/mixed_elements_pages_39_40.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs/small_ocr.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/207.pdf" +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/2072.pdf" +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/2073.pdf" +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/2074.pdf" +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/HTML_PROTOCOL.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/JSON_PROTOCOL.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/METADATA.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/PDF_FONTS.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/RENDER_OWNERSHIP.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/USAGE.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/flash-manual-annotations-2026-09-15.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/flash-round2-annotations-2026-09-15.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/flash-rule-generalization-2026-09-15.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/flash-spatial-layout-followup-2026-09-16.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/flash-spatial-layout-round3-2026-09-16.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/flash-title-coverage-2026-09-16.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/docs/sdk-0.4.md +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/pyproject.toml +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/setup.cfg +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/hyperlink.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/image.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/markup/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/markup/anchors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/markup/formula.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/markup/projector.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/markup/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/mathml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/names.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/_shared/xycut.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/csv.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/constants.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/errors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/package.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/properties.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/epub/xhtml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/anchors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/constants.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/document.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/errors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/html/resources.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/assembly.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/constants.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/errors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/images.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/package.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/path.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/reading_order.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/resources.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/scene.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/ofd/vector.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/bookmarks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/doc_converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/fib.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/fields.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/formatting.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/images.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/lists.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/parser.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/pieces.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/records.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/sprm.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/doc/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/context.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/docx_converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/equationxml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/fields.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/formatting_types.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/main.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/numbering.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/office_xml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/package_normalizer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/resources.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/docx/tables.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/image.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/latex_dict.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/mtef.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/mtef_v5.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/omml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/equation/ooxml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/errors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/image.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/legacy/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/legacy/binary.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/legacy/officeart.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/legacy/ole.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/limits.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/chart.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/constants.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/converters.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/errors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/package.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/odf/text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ooxml_chart.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/opc.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ppt/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ppt/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ppt/parser.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ppt/ppt_converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ppt/records.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/ppt/style_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/context.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/lists.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/main.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/package_normalizer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/pptx_converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/resources.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/shapes.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/text_styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/pptx/titles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rich_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/lexer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/math.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/rtf/parser.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/spreadsheet/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/spreadsheet/html.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/spreadsheet/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/spreadsheet/projector.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/spreadsheet/region_discovery.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/streams.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/chart.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/embedded_chart.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/number_format.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/parser.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/records.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/strings.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xls/xls_converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xlsx/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xlsx/main.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xlsx/ooxml_ole.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xlsx/package_normalizer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/office/xlsx/xlsx_converter.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_script_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/candidate.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/engine.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/rule_band.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/sparse_common.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/sparse_hybrid.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/sparse_multiline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/text_grid.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/_table_recovery/vector.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/annotation_bands.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/auxiliary_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/char_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/code_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/formulas.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/graphics.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/index_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/common.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/detection.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/matching.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/materialize.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/scripts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/inline/types.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/layout_evidence.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/line_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/line_merging.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/native_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/spatial_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_constants.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_detection.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_filled_grid.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_materialization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_rows.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_rules.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/table_text_styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/tables.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/assembly.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/common.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/continuity.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/footnotes.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/merging.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_assembly/rows.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/text_roles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/body_profile.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/common.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/compact_titles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/document_profile.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/lane_titles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/page_titles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/prototype.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/title_analysis/structural.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/titles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/typography.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/native/pdf/visual_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/analyzers/pdf.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/assets/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/assets/images.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/assets/store.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/cli.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/html/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/html/contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/html/materializer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/html/parser.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/html/resources.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/codecs/json.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/inline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/links.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/markup/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/markup/anchors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/markup/formula.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/markup/projector.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/markup/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/mathml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/normalization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/spans.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/content.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/document.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/html.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/rules.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/table/structure.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/content/tree.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/page_range.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/_document.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/classify.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/constants.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/font_runtime.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/images.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/native_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/native_contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/native_coordinates.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/native_lifecycle.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/native_objects.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/native_text_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/pdfium.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/raster.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/text/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/text/_contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/text/dedup.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/text/extract.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/text/geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/text/groups.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/pdf/visuals.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/properties.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/document/source.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/errors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/export/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/export/_images.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/export/bundle.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/export/files.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/export/middle.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_coordinates.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_hyperlink.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_image.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_image_operations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_image_payload.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_svg_raster.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/image_encoding.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/language.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/type_identity.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/foundation/xml_names.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/options.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/content.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/document.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/lists.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/page_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/pages.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/paragraphs.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/postprocess/visual.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/public_api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/common/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/common/context.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/common/html_table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/common/index.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/common/list_items.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/common/planner.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/assets.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/inline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/math.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/docx/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/epub/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/epub/assets.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/epub/package.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/epub/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/html/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/html/inline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/html/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/html/sanitizer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/html/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/latex/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/latex/assets.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/latex/inline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/latex/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/latex/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/assets.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/escaping.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/inline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/markdown/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/assets.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/diagnostics.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/font_plan.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/formula.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/formula_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/inline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/original.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/pagination.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/paragraph.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/table_content.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/table_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/pdf/title_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/structured_content/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/_internal/structured_content/renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/contracts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/docx.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/epub.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/fragments.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/html.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/latex.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/markdown.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/pdf.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/render/structured_content.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/epub/docvortex.css +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/fonts/DroidSansFallbackFull.ttf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/fonts/NOTICE +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/fonts/manifest.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/html/docvortex.css +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/html/docvortex.min.css +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/resources/unicode/EquivalentUnifiedIdeograph-17.0.0.txt +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/result.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex/visualization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex.egg-info/dependency_links.txt +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex.egg-info/entry_points.txt +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex.egg-info/requires.txt +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/src/docvortex.egg-info/top_level.txt +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/benchmarks/flash_pdf.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/benchmarks/native_pdf_table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/benchmarks/pdf_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/benchmarks/pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/evaluate_native_pdf_table_manifest.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_layout_block_expectations.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_layout_geometry_manifest.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_layout_semantic_expectations.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_manual_annotations.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_manual_review_decisions.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_reviewed_history.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_round2_annotations.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_round2_review_decisions.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_round3_annotations.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_round3_followup_review_decisions.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_round3_review_decisions.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_rule_generalization_review_decisions.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/flash_title_coverage_review_decisions.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/generate_synthetic_pdf_fixtures.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/native_pdf_table_cross_page_manifest.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/native_pdf_table_demo_manifest.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/native_pdf_table_script_truth.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/pdf_char_dedup.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/pdf_mixed_font_script_line.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/pdf_numeric_citations_review.json +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/fixtures/rtf/semantic.rtf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_architecture.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_benchmark_entrypoint.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_brand_protocol.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_cli_logging.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_complete_pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_converter_lifecycle.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_document_envelope.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_document_metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_export_image_names.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_geometry_api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_history_geometry_tools.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_html_namespace.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_mixed_font_script_reference.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_analysis_api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_cpu_evidence.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_font_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_font_runtime.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_model_text_normalization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_numeric_citations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_output_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_render_pool.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_source_row_merging.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_pdf_symbol_normalization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_public_export_api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_public_image_api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_public_pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_refactor_raster.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_refactor_rendering.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_refactor_resources.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_release_ci_gate.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_render_ownership.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_renderer_branding.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_shared_boundaries.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_system_font_pdf_pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/test_validated_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_docx_equationxml_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_epub_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_flash_pdf_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_image_mtef_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_legacy_doc_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_legacy_ppt_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_legacy_xls_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_metafile_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_mtef_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_mtef_v5_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_native_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_odf_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_ofd_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_office_image_mtef_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_ooxml_mtef_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/_span_test_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/connexin.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/fornax.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/frames_v1.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/frames_v2.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/k2_treap.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/mmlu_redux.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/nash_review.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/annotated/nougat.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/bloom_form_labels.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/journal_dual_caption.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/journal_layout_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/math_display_formulas.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/mixed_text_layout_sample.pdf.xor +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_layout/quantum_appendix_layout.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/flash_table_annotations_synthetic.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/metabolic_pathway_page_3.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_cjk_layout_synthetic.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/annual_report_fundraising_projects_table.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/annual_report_management_roles_table.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/annual_report_research_projects_table.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/conference_schedule_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/engineering_process_restrictions_table.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/fund_asset_and_transaction_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/fund_manager_profile_table.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/manufacturing_facilities_cross_page_table.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/pollutant_discharge_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/procurement_contract_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/procurement_document_blank_page_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/native_pdf_tables/quarterly_report_financial_tables.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/numeric_citations_introduction.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/pdfs/test.pdf +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_backend_architecture.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_backend_block_object_regressions.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_docx_assets.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_docx_complex_fields.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_docx_math.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_docx_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_docx_special_char_tables.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_docx_table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_emfplus_integration.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_epub_backlinks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_epub_quoted_note_types.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_epub_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_bbox_grid_comparison.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_csv.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_docx_equationxml.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_epub.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_html.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_image_mtef.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_legacy_chart_data.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_legacy_doc.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_legacy_doc_mtef.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_legacy_ppt.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_legacy_xls.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_legacy_xls_ppt_mtef.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_manual_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_markup_anchors.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_model.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_mtef_v5.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_odf.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_ofd.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_office_image_mtef.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_office_metafile.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_office_models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_office_mtef_v5.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_office_package_normalizers.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_office_title_types.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_ooxml_mtef.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_auxiliary_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_char_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_code_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_document_profile.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_equation_images.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_extractor.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_formulas.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_graphics.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_index_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_layout_repairs.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_line_metadata.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_native_text.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_reviewed_history.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_samples.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_scripts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_semantics.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_short_tails.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_tables.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_text_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_text_visibility.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_titles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_pdf_visual_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_round2_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_round3_annotations.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_rtf.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_rule_generalization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_shared_helpers.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_spatial_evidence.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_flash_spreadsheet_projector.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_guess_suffix_ole2.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_html_css_build.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_html_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_html_security.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_hybrid_script_source_pdfs.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_latex_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_markdown_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_middle_json_block_models.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_middle_json_export.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_middle_json_validator.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_model_json.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_native_pdf_table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_native_pdf_table_demo_manifest.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_native_pdf_table_manifest.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_native_pdf_table_pipeline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_native_pdf_table_scripts.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_native_table_performance_equivalence.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_ofd_assembly.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_ofd_vector_tables.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_office_demo_exports.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_office_demo_pages.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_office_parser_regressions.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_cjk_objects.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_cjk_style.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_cjk_wrapping.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_classify.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_demo_links.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_diagnostic_levels.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_document.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_formula_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_object_clipping.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_original_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_pagination.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_paragraph_cache.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_render_diagnostics.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_structured_tables.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_table_cache.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_table_round2.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_text_dedup.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_text_styles.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_title_font_plan.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_title_space.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_pdf_visualization.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_postprocess_page_blocks.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_postprocess_pages.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_postprocess_paragraphs.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_postprocess_visual.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_render_api.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_render_html_table.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_render_image_renderer.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_render_list_index_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_structured_content_render.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_svg_raster.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_table_merge.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_table_merge_cell_merge.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_text_block_anchor.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_text_boundary_rules.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tests/unittest/test_text_utils.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/__init__.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/build_html_css.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/calibrate_pdf_geometry.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/capture_baseline.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/capture_platform_layout.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/compare_font_platforms.py +0 -0
- {docvortex-0.4.22 → docvortex-0.4.23}/tools/font_geometry.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docvortex
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.23
|
|
4
4
|
Summary: A fast, multi-format document parsing and conversion engine
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Repository, https://github.com/myhloli/DocVortex
|
|
@@ -127,17 +127,19 @@ use `overwrite=True` in Python or `--overwrite` in the CLI to replace them.
|
|
|
127
127
|
|
|
128
128
|
## Supported formats
|
|
129
129
|
|
|
130
|
-
### Native inputs ·
|
|
130
|
+
### Native inputs · 17 formats
|
|
131
131
|
|
|
132
|
-
| Document family |
|
|
132
|
+
| Document family | File extensions |
|
|
133
133
|
| --- | --- |
|
|
134
|
-
| PDF with native text |
|
|
135
|
-
| Word & rich text |
|
|
136
|
-
| Presentations |
|
|
137
|
-
| Spreadsheets |
|
|
138
|
-
| OpenDocument |
|
|
139
|
-
| E-books
|
|
140
|
-
|
|
|
134
|
+
| PDF with native text | `.pdf` |
|
|
135
|
+
| Word & rich text | `.doc`, `.docx`, `.rtf` |
|
|
136
|
+
| Presentations | `.ppt`, `.pptx` |
|
|
137
|
+
| Spreadsheets | `.xls`, `.xlsx`, `.csv`, `.tsv` |
|
|
138
|
+
| OpenDocument | `.odt`, `.ods`, `.odp` |
|
|
139
|
+
| E-books | `.epub` |
|
|
140
|
+
| Web documents | `.html`, `.htm`, `.shtml` |
|
|
141
|
+
| Web archives | `.mhtml`, `.mht` |
|
|
142
|
+
| Open Fixed-layout Document | `.ofd` |
|
|
141
143
|
|
|
142
144
|
### Outputs · 7 formats
|
|
143
145
|
|
|
@@ -73,17 +73,19 @@ use `overwrite=True` in Python or `--overwrite` in the CLI to replace them.
|
|
|
73
73
|
|
|
74
74
|
## Supported formats
|
|
75
75
|
|
|
76
|
-
### Native inputs ·
|
|
76
|
+
### Native inputs · 17 formats
|
|
77
77
|
|
|
78
|
-
| Document family |
|
|
78
|
+
| Document family | File extensions |
|
|
79
79
|
| --- | --- |
|
|
80
|
-
| PDF with native text |
|
|
81
|
-
| Word & rich text |
|
|
82
|
-
| Presentations |
|
|
83
|
-
| Spreadsheets |
|
|
84
|
-
| OpenDocument |
|
|
85
|
-
| E-books
|
|
86
|
-
|
|
|
80
|
+
| PDF with native text | `.pdf` |
|
|
81
|
+
| Word & rich text | `.doc`, `.docx`, `.rtf` |
|
|
82
|
+
| Presentations | `.ppt`, `.pptx` |
|
|
83
|
+
| Spreadsheets | `.xls`, `.xlsx`, `.csv`, `.tsv` |
|
|
84
|
+
| OpenDocument | `.odt`, `.ods`, `.odp` |
|
|
85
|
+
| E-books | `.epub` |
|
|
86
|
+
| Web documents | `.html`, `.htm`, `.shtml` |
|
|
87
|
+
| Web archives | `.mhtml`, `.mht` |
|
|
88
|
+
| Open Fixed-layout Document | `.ofd` |
|
|
87
89
|
|
|
88
90
|
### Outputs · 7 formats
|
|
89
91
|
|
|
@@ -41,6 +41,10 @@ class HtmlConverter:
|
|
|
41
41
|
raise HtmlResourceLimitError(f"HTML resource limit exceeded: max_html_bytes={MAX_HTML_BYTES}")
|
|
42
42
|
document = parse_html_document(file_bytes, source_context)
|
|
43
43
|
resources = HtmlResourceContext(document.source_context, base_href=document.base_href)
|
|
44
|
+
self._convert_document(document, resources)
|
|
45
|
+
|
|
46
|
+
def _convert_document(self, document: HtmlDocument, resources: HtmlResourceContext) -> None:
|
|
47
|
+
"""复用已解析 DOM 和资源适配器,供 HTML 与网页归档共享正文投影。"""
|
|
44
48
|
wire_result = decode_docvortex_html_wire(document.body, resources)
|
|
45
49
|
if wire_result.blocks is not None:
|
|
46
50
|
blocks = wire_result.blocks
|
|
@@ -331,6 +331,7 @@ def _is_containment_equivalent(first: _ScoredCandidate, second: _ScoredCandidate
|
|
|
331
331
|
|
|
332
332
|
def _soft_prune(root: etree._Element) -> None:
|
|
333
333
|
"""在候选副本中删除确定的导航/表单和高噪声 token 子树。"""
|
|
334
|
+
_prune_article_comments(root)
|
|
334
335
|
metrics_by_element = _collect_soft_prune_metrics(root)
|
|
335
336
|
for element in list(root.iterdescendants()):
|
|
336
337
|
if not isinstance(element.tag, str):
|
|
@@ -349,6 +350,36 @@ def _soft_prune(root: etree._Element) -> None:
|
|
|
349
350
|
_drop_tree_preserve_tail(element)
|
|
350
351
|
|
|
351
352
|
|
|
353
|
+
def _is_comment_region(element: etree._Element) -> bool:
|
|
354
|
+
"""按完整词与驼峰边界识别评论容器,不匹配正文文本或任意子串。"""
|
|
355
|
+
value = f"{element.get('id') or ''} {element.get('class') or ''}"
|
|
356
|
+
value = re.sub(r"([a-z0-9])([A-Z])", r"\1 \2", value).casefold()
|
|
357
|
+
return bool(frozenset(_TOKEN_RE.split(value)) & {"comment", "comments"})
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
def _prune_article_comments(root: etree._Element) -> None:
|
|
361
|
+
"""仅在单篇独立文章明确存在时移除附属评论,保留论坛及讨论型正文。"""
|
|
362
|
+
articles = [
|
|
363
|
+
element
|
|
364
|
+
for element in root.iter()
|
|
365
|
+
if isinstance(element.tag, str)
|
|
366
|
+
and (local_name(element) == "article" or "articlebody" in (element.get("itemprop") or "").casefold().split())
|
|
367
|
+
and not any(_is_comment_region(parent) for parent in (element, *element.iterancestors()))
|
|
368
|
+
and len(_normalized_text(" ".join(element.itertext()))) >= _MIN_TEXT_CHARS
|
|
369
|
+
]
|
|
370
|
+
# 嵌套 articleBody 与 article 属于同一正文;多个独立 article 按论坛处理。
|
|
371
|
+
outer_articles = [element for element in articles if not any(parent in articles for parent in element.iterancestors())]
|
|
372
|
+
if len(outer_articles) != 1:
|
|
373
|
+
return
|
|
374
|
+
article = outer_articles[0]
|
|
375
|
+
for element in list(root.iterdescendants()):
|
|
376
|
+
if not isinstance(element.tag, str) or not _is_comment_region(element):
|
|
377
|
+
continue
|
|
378
|
+
if element is article or element in article.iterancestors():
|
|
379
|
+
continue
|
|
380
|
+
_drop_tree_preserve_tail(element)
|
|
381
|
+
|
|
382
|
+
|
|
352
383
|
def _collect_soft_prune_metrics(root: etree._Element) -> dict[etree._Element, _SoftPruneMetrics]:
|
|
353
384
|
"""单次后序遍历预计算每个元素的完整子树文本、链接和语义对象统计。"""
|
|
354
385
|
elements = [element for element in root.iter() if isinstance(element.tag, str)]
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""把 MHTML 主文档及归档资源投影为现有 HTML 语义块。"""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import BinaryIO
|
|
6
|
+
|
|
7
|
+
from docvortex.document.contracts import HtmlSourceContext
|
|
8
|
+
from docvortex.document.mhtml import MAX_ARCHIVE_BYTES, MhtmlArchive
|
|
9
|
+
from docvortex.result import Diagnostic
|
|
10
|
+
from docvortex.schema import DocumentProperties
|
|
11
|
+
|
|
12
|
+
from ..html.converter import HtmlConverter
|
|
13
|
+
from ..html.document import HtmlDocument, parse_html_document
|
|
14
|
+
from ..html.metadata import read_html_properties
|
|
15
|
+
from .resources import MhtmlResourceContext
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def read_archive_properties(archive: MhtmlArchive) -> tuple[DocumentProperties, list[str]]:
|
|
19
|
+
"""复用 HTML 声明元数据,仅用 MIME Subject 补充缺失标题。"""
|
|
20
|
+
properties, warnings = read_html_properties(archive.html, archive.source_context)
|
|
21
|
+
properties.title = properties.title or archive.subject
|
|
22
|
+
return properties, warnings
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class MhtmlConverter(HtmlConverter):
|
|
26
|
+
"""通过一次解包生成正文、元数据和可选资源诊断。"""
|
|
27
|
+
|
|
28
|
+
def __init__(self) -> None:
|
|
29
|
+
"""初始化与单次转换绑定的元数据及诊断。"""
|
|
30
|
+
super().__init__()
|
|
31
|
+
self.properties = DocumentProperties()
|
|
32
|
+
self.diagnostics: tuple[Diagnostic, ...] = ()
|
|
33
|
+
|
|
34
|
+
def convert(self, file_binary: BinaryIO, *, source_context: HtmlSourceContext | None = None) -> None:
|
|
35
|
+
"""加载主 HTML 后调用共享投影,不合并 iframe 或其他 HTML 附件。"""
|
|
36
|
+
archive = MhtmlArchive(file_binary.read(MAX_ARCHIVE_BYTES + 1), source_context)
|
|
37
|
+
self.properties, warnings = read_archive_properties(archive)
|
|
38
|
+
document = parse_html_document(archive.html, archive.source_context)
|
|
39
|
+
if document.title is None and archive.subject:
|
|
40
|
+
from dataclasses import replace
|
|
41
|
+
|
|
42
|
+
document = replace(document, title=archive.subject)
|
|
43
|
+
resources = MhtmlResourceContext(archive, base_href=document.base_href)
|
|
44
|
+
_restore_picture_sources(document, archive)
|
|
45
|
+
self._convert_document(document, resources)
|
|
46
|
+
self.diagnostics = tuple(Diagnostic("read_metadata_failed", warning) for warning in warnings) + tuple(
|
|
47
|
+
archive.diagnostics
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _restore_picture_sources(document: HtmlDocument, archive: MhtmlArchive) -> None:
|
|
52
|
+
"""当回退图片未归档时采用已保存的 picture/srcset 候选,不发起外部请求。"""
|
|
53
|
+
for image in document.body.iter("img"):
|
|
54
|
+
if (image.get("src") or "").strip().casefold().startswith("data:"):
|
|
55
|
+
continue
|
|
56
|
+
if archive.find(image.get("src") or "", base_href=document.base_href) is not None:
|
|
57
|
+
continue
|
|
58
|
+
picture = next((parent for parent in image.iterancestors() if parent.tag == "picture"), None)
|
|
59
|
+
sources = list(picture.iter("source")) if picture is not None else []
|
|
60
|
+
for source in [*sources, image]:
|
|
61
|
+
# 浏览器归档中的网络候选按逗号分隔;data URI 无需做归档匹配。
|
|
62
|
+
candidates = (source.get("srcset") or "").split(",")
|
|
63
|
+
selected = next(
|
|
64
|
+
(
|
|
65
|
+
fields[0]
|
|
66
|
+
for candidate in candidates
|
|
67
|
+
if (fields := candidate.split()) and archive.find(fields[0], base_href=document.base_href) is not None
|
|
68
|
+
),
|
|
69
|
+
None,
|
|
70
|
+
)
|
|
71
|
+
if selected:
|
|
72
|
+
image.set("src", selected)
|
|
73
|
+
break
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""使用 MIME 内嵌图片和样式的 HTML 资源适配器。"""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from docvortex.content.markup import ResolvedMarkupImage
|
|
6
|
+
from docvortex.document.mhtml import ArchivePart, MhtmlArchive, MhtmlParseError
|
|
7
|
+
from docvortex.foundation._svg_raster import looks_like_svg_payload, serialize_svg_image
|
|
8
|
+
|
|
9
|
+
from ..html.constants import MAX_HTML_IMAGE_BYTES
|
|
10
|
+
from ..html.errors import HtmlResourceLimitError
|
|
11
|
+
from ..html.resources import HtmlResourceContext, _image_data_uri
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class MhtmlResourceContext(HtmlResourceContext):
|
|
15
|
+
"""仅从归档读取资源,复用 HTML 的链接、图片校验和字节预算。"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, archive: MhtmlArchive, *, base_href: str | None = None) -> None:
|
|
18
|
+
"""绑定归档并初始化以 MIME 部件为键的去重缓存。"""
|
|
19
|
+
super().__init__(archive.source_context, base_href=base_href)
|
|
20
|
+
self.archive = archive
|
|
21
|
+
self._archive_images: dict[ArchivePart, str | None] = {}
|
|
22
|
+
self._archive_stylesheets: dict[ArchivePart, str | None] = {}
|
|
23
|
+
|
|
24
|
+
def _payload(self, part: ArchivePart, reference: str) -> bytes | None:
|
|
25
|
+
"""可选部件损坏时记录诊断;资源限额错误仍向调用方传播。"""
|
|
26
|
+
try:
|
|
27
|
+
return self.archive.decode(part)
|
|
28
|
+
except MhtmlParseError:
|
|
29
|
+
self.archive.report("mhtml_resource_invalid", reference)
|
|
30
|
+
return None
|
|
31
|
+
|
|
32
|
+
def resolve_image(self, source: str, *, alt: str = "") -> ResolvedMarkupImage | None:
|
|
33
|
+
"""优先恢复归档图片,缺失时沿用安全外链或替代文本降级。"""
|
|
34
|
+
if not source.strip() or source.strip().casefold().startswith("data:"):
|
|
35
|
+
return super().resolve_image(source, alt=alt)
|
|
36
|
+
part = self.archive.find(source, base_href=self.base_href)
|
|
37
|
+
if part is None:
|
|
38
|
+
self.archive.report("mhtml_resource_missing", source)
|
|
39
|
+
return super().resolve_image(source, alt=alt)
|
|
40
|
+
if part not in self._archive_images:
|
|
41
|
+
payload = self._payload(part, source)
|
|
42
|
+
data_uri = None
|
|
43
|
+
if payload is not None:
|
|
44
|
+
if len(payload) > MAX_HTML_IMAGE_BYTES:
|
|
45
|
+
raise HtmlResourceLimitError(f"MHTML image exceeds max_html_image_bytes={MAX_HTML_IMAGE_BYTES}")
|
|
46
|
+
if looks_like_svg_payload(payload):
|
|
47
|
+
data_uri = serialize_svg_image(payload)
|
|
48
|
+
else:
|
|
49
|
+
data_uri = _image_data_uri(payload)
|
|
50
|
+
if data_uri is not None:
|
|
51
|
+
self._charge_image_bytes(len(payload))
|
|
52
|
+
else:
|
|
53
|
+
self.archive.report("mhtml_resource_invalid", source)
|
|
54
|
+
self._archive_images[part] = data_uri
|
|
55
|
+
if data_uri := self._archive_images[part]:
|
|
56
|
+
return ResolvedMarkupImage(image_base64=data_uri, alt=alt)
|
|
57
|
+
return super().resolve_image(source, alt=alt)
|
|
58
|
+
|
|
59
|
+
def load_stylesheet(self, href: str) -> str | None:
|
|
60
|
+
"""按 HTML 源顺序读取归档 CSS,仅解释现有静态样式子集。"""
|
|
61
|
+
part = self.archive.find(href, base_href=self.base_href)
|
|
62
|
+
if part is None:
|
|
63
|
+
self.archive.report("mhtml_resource_missing", href)
|
|
64
|
+
return None
|
|
65
|
+
if part in self._archive_stylesheets:
|
|
66
|
+
return self._archive_stylesheets[part]
|
|
67
|
+
payload = self._payload(part, href)
|
|
68
|
+
text = None
|
|
69
|
+
if payload is not None:
|
|
70
|
+
if part.message.get_content_type() != "text/css":
|
|
71
|
+
self.archive.report("mhtml_resource_invalid", href)
|
|
72
|
+
else:
|
|
73
|
+
self._charge_stylesheet_bytes(len(payload))
|
|
74
|
+
try:
|
|
75
|
+
text = payload.decode(part.message.get_content_charset() or "utf-8-sig", errors="replace")
|
|
76
|
+
except LookupError:
|
|
77
|
+
self.archive.report("mhtml_resource_invalid", href)
|
|
78
|
+
text = payload.decode("utf-8-sig", errors="replace")
|
|
79
|
+
self._archive_stylesheets[part] = text
|
|
80
|
+
return text
|
|
@@ -50,7 +50,7 @@ def analyze(
|
|
|
50
50
|
try:
|
|
51
51
|
properties = prepared.source_properties
|
|
52
52
|
metadata_diagnostics = tuple(Diagnostic("read_metadata_failed", message) for message in prepared.metadata_warnings)
|
|
53
|
-
if prepared.file_suffix
|
|
53
|
+
if prepared.file_suffix not in {"pdf", "mhtml"}:
|
|
54
54
|
from .errors import DocumentError
|
|
55
55
|
|
|
56
56
|
try:
|
|
@@ -81,6 +81,14 @@ def analyze(
|
|
|
81
81
|
)
|
|
82
82
|
elif prepared.file_suffix == "html":
|
|
83
83
|
pages = models.HtmlModel().predict(BytesIO(prepared.data), source_context=prepared.source_context)
|
|
84
|
+
elif prepared.file_suffix == "mhtml":
|
|
85
|
+
from .analyzers.native.mhtml.converter import MhtmlConverter
|
|
86
|
+
|
|
87
|
+
converter = MhtmlConverter()
|
|
88
|
+
converter.convert(BytesIO(prepared.data), source_context=prepared.source_context)
|
|
89
|
+
pages = converter.pages
|
|
90
|
+
properties = converter.properties
|
|
91
|
+
native_diagnostics = converter.diagnostics
|
|
84
92
|
else:
|
|
85
93
|
model_types: dict[FileSuffix, type[NativeBinaryAnalyzer]] = {
|
|
86
94
|
"csv": models.CsvModel,
|
|
@@ -14,7 +14,7 @@ from typing import TYPE_CHECKING
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
15
15
|
from magika import Magika
|
|
16
16
|
|
|
17
|
-
from .filetypes import CSV_EXTENSIONS, HTML_EXTENSIONS, IMAGE_EXTENSIONS, rtf_header_offset
|
|
17
|
+
from .filetypes import CSV_EXTENSIONS, HTML_EXTENSIONS, IMAGE_EXTENSIONS, has_mhtml_header, rtf_header_offset
|
|
18
18
|
|
|
19
19
|
PDF_SIG_BYTES = b"%PDF"
|
|
20
20
|
OLE2_SIG_BYTES = b"\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1"
|
|
@@ -54,6 +54,7 @@ _STRONG_CONTENT_SUFFIXES = frozenset(
|
|
|
54
54
|
"xlsx",
|
|
55
55
|
"rtf",
|
|
56
56
|
"epub",
|
|
57
|
+
"mhtml",
|
|
57
58
|
"ofd",
|
|
58
59
|
"odt",
|
|
59
60
|
"ods",
|
|
@@ -307,10 +308,13 @@ def _reject_unverified_package_suffix(detected_suffix: str) -> str:
|
|
|
307
308
|
|
|
308
309
|
|
|
309
310
|
def guess_suffix_by_bytes(file_bytes: bytes, file_path: str | None = None) -> str:
|
|
311
|
+
"""优先依据强签名与容器头识别格式,再使用通用识别器。"""
|
|
310
312
|
if file_bytes[: len(PDF_SIG_BYTES)] == PDF_SIG_BYTES:
|
|
311
313
|
return "pdf"
|
|
312
314
|
if rtf_header_offset(file_bytes[:128]) is not None:
|
|
313
315
|
return "rtf"
|
|
316
|
+
if has_mhtml_header(file_bytes):
|
|
317
|
+
return "mhtml"
|
|
314
318
|
|
|
315
319
|
ofd_suffix = _guess_ofd_suffix_by_bytes(file_bytes)
|
|
316
320
|
if ofd_suffix:
|
|
@@ -345,6 +349,7 @@ def guess_suffix_by_bytes(file_bytes: bytes, file_path: str | None = None) -> st
|
|
|
345
349
|
|
|
346
350
|
|
|
347
351
|
def guess_suffix_by_path(file_path: str | Path) -> str:
|
|
352
|
+
"""读取文件签名和有界 MIME 头,保持路径与字节入口一致。"""
|
|
348
353
|
if not isinstance(file_path, Path):
|
|
349
354
|
file_path = Path(file_path)
|
|
350
355
|
|
|
@@ -374,6 +379,10 @@ def guess_suffix_by_path(file_path: str | Path) -> str:
|
|
|
374
379
|
if _has_pdf_signature_by_path(file_path):
|
|
375
380
|
return "pdf"
|
|
376
381
|
|
|
382
|
+
with file_path.open("rb") as source:
|
|
383
|
+
if has_mhtml_header(source.read(65536)):
|
|
384
|
+
return "mhtml"
|
|
385
|
+
|
|
377
386
|
suffix = _magika().identify_path(file_path).prediction.output.label
|
|
378
387
|
if suffix in ["ai", "html"] and file_path.suffix.lower() in [".pdf"]:
|
|
379
388
|
try:
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import re
|
|
4
|
+
from email import policy
|
|
5
|
+
from email.parser import BytesHeaderParser
|
|
4
6
|
from pathlib import Path
|
|
5
7
|
from typing import Final
|
|
6
8
|
|
|
@@ -37,6 +39,7 @@ OFD_EXTENSIONS: frozenset[str] = frozenset({"ofd"})
|
|
|
37
39
|
OFFICE_EXTENSIONS: frozenset[str] = frozenset({"doc", "docx", "ppt", "pptx", "xls", "xlsx", "rtf"}) | ODF_EXTENSIONS
|
|
38
40
|
|
|
39
41
|
HTML_EXTENSIONS: frozenset[str] = frozenset({"html", "htm", "shtml"})
|
|
42
|
+
MHTML_EXTENSIONS: frozenset[str] = frozenset({"mhtml", "mht"})
|
|
40
43
|
|
|
41
44
|
CSV_EXTENSIONS: frozenset[str] = frozenset({"csv", "tsv"})
|
|
42
45
|
|
|
@@ -49,7 +52,7 @@ TIERED_PARSE_EXTENSIONS: frozenset[str] = PDF_EXTENSIONS | IMAGE_EXTENSIONS
|
|
|
49
52
|
PAGE_RANGE_PARSE_EXTENSIONS: frozenset[str] = PDF_EXTENSIONS
|
|
50
53
|
|
|
51
54
|
FLASH_ONLY_PARSE_EXTENSIONS: frozenset[str] = (
|
|
52
|
-
OFFICE_EXTENSIONS | HTML_EXTENSIONS | CSV_EXTENSIONS | EPUB_EXTENSIONS | OFD_EXTENSIONS
|
|
55
|
+
OFFICE_EXTENSIONS | HTML_EXTENSIONS | MHTML_EXTENSIONS | CSV_EXTENSIONS | EPUB_EXTENSIONS | OFD_EXTENSIONS
|
|
53
56
|
)
|
|
54
57
|
|
|
55
58
|
PARSEABLE_EXTENSIONS: frozenset[str] = TIERED_PARSE_EXTENSIONS | FLASH_ONLY_PARSE_EXTENSIONS
|
|
@@ -65,6 +68,7 @@ FILE_TYPE_BY_EXTENSION: dict[str, str] = {
|
|
|
65
68
|
**dict.fromkeys(IMAGE_EXTENSIONS, "image"),
|
|
66
69
|
**{ext: ext for ext in OFFICE_EXTENSIONS},
|
|
67
70
|
**dict.fromkeys(HTML_EXTENSIONS, "html"),
|
|
71
|
+
**dict.fromkeys(MHTML_EXTENSIONS, "mhtml"),
|
|
68
72
|
"csv": "csv",
|
|
69
73
|
"tsv": "tsv",
|
|
70
74
|
**dict.fromkeys(EPUB_EXTENSIONS, "epub"),
|
|
@@ -104,6 +108,8 @@ MIME_TYPE_BY_EXTENSION: dict[str, str] = {
|
|
|
104
108
|
"html": "text/html",
|
|
105
109
|
"htm": "text/html",
|
|
106
110
|
"shtml": "text/html",
|
|
111
|
+
"mhtml": "multipart/related",
|
|
112
|
+
"mht": "multipart/related",
|
|
107
113
|
"png": "image/png",
|
|
108
114
|
"jpg": "image/jpeg",
|
|
109
115
|
"jpeg": "image/jpeg",
|
|
@@ -131,6 +137,18 @@ _RTF_HEADER_RE: Final = re.compile(
|
|
|
131
137
|
)
|
|
132
138
|
|
|
133
139
|
|
|
140
|
+
def has_mhtml_header(file_bytes: bytes) -> bool:
|
|
141
|
+
"""识别有界 MIME 头中的 related 容器,避免仅靠后缀误判普通邮件或 HTML。"""
|
|
142
|
+
prefix = file_bytes[:65536]
|
|
143
|
+
if b"multipart/related" not in prefix.lower():
|
|
144
|
+
return False
|
|
145
|
+
try:
|
|
146
|
+
message = BytesHeaderParser(policy=policy.default).parsebytes(prefix)
|
|
147
|
+
return message.get_content_type() == "multipart/related" and bool(message.get_boundary())
|
|
148
|
+
except ValueError:
|
|
149
|
+
return False
|
|
150
|
+
|
|
151
|
+
|
|
134
152
|
def rtf_header_offset(file_bytes: bytes) -> int | None:
|
|
135
153
|
"""返回 RTF 根组左花括号偏移;不接受带任意前缀的伪装文本。"""
|
|
136
154
|
match = _RTF_HEADER_RE.match(file_bytes)
|