docvortex 0.4.18__tar.gz → 0.4.20__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.18/src/docvortex.egg-info → docvortex-0.4.20}/PKG-INFO +1 -1
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/sdk-0.4.md +24 -1
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_script_geometry.py +88 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/scripts.py +15 -1
- docvortex-0.4.20/src/docvortex/export/_images.py +134 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/export/files.py +18 -16
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/export/middle.py +5 -60
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/version.py +1 -1
- {docvortex-0.4.18 → docvortex-0.4.20/src/docvortex.egg-info}/PKG-INFO +1 -1
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex.egg-info/SOURCES.txt +5 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_reviewed_history.json +1 -1
- docvortex-0.4.20/tests/fixtures/pdf_numeric_citations_review.json +33 -0
- docvortex-0.4.20/tests/test_export_image_names.py +152 -0
- docvortex-0.4.20/tests/test_pdf_numeric_citations.py +187 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_public_export_api.py +1 -1
- docvortex-0.4.20/tests/unittest/pdfs/numeric_citations_introduction.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_middle_json_export.py +17 -17
- {docvortex-0.4.18 → docvortex-0.4.20}/LICENSE.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/MANIFEST.in +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/README.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/README.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/demo.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/README.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/docx_01.doc +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/docx_01.docx +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/pptx_01.ppt +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/pptx_01.pptx +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/rtf_01.rtf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/xlsx_01.xls +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/office_docs/xlsx_01.xlsx +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/2407.00079v4_origi-10.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/IEBM_A_2667169_O-5.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/caibao1.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/demo1.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/demo2.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/demo3.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/demo4.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/demo6.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/mixed_elements_pages_03_06.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/mixed_elements_pages_07_10.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/mixed_elements_pages_11_15.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/mixed_elements_pages_39_40.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs/small_ocr.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/207.pdf" +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/2072.pdf" +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/2073.pdf" +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/demo/pdfs//344/270/255/346/226/207/350/256/272/346/226/2074.pdf" +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/HTML_PROTOCOL.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/JSON_PROTOCOL.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/METADATA.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/PDF_FONTS.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/RENDER_OWNERSHIP.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/USAGE.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/flash-manual-annotations-2026-09-15.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/flash-round2-annotations-2026-09-15.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/flash-rule-generalization-2026-09-15.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/flash-spatial-layout-followup-2026-09-16.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/flash-spatial-layout-round3-2026-09-16.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/docs/flash-title-coverage-2026-09-16.md +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/pyproject.toml +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/schemas/middle-2.0.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/schemas/model-2.0.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/setup.cfg +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/hyperlink.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/image.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/markup/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/markup/anchors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/markup/formula.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/markup/projector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/markup/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/mathml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/names.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/_shared/xycut.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/csv.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/constants.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/errors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/package.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/properties.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/epub/xhtml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/anchors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/constants.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/document.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/errors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/resources.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/html/selector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/assembly.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/constants.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/errors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/images.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/package.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/path.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/reading_order.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/resources.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/scene.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/ofd/vector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/bookmarks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/doc_converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/fib.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/fields.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/formatting.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/images.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/lists.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/parser.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/pieces.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/records.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/sprm.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/doc/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/context.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/docx_converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/equationxml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/fields.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/formatting_types.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/main.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/numbering.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/office_xml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/package_normalizer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/resources.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/docx/tables.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/image.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/latex_dict.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/mtef.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/mtef_v5.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/omml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/equation/ooxml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/errors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/image.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/legacy/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/legacy/binary.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/legacy/officeart.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/legacy/ole.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/limits.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/chart.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/constants.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/converters.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/errors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/package.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/odf/text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ooxml_chart.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/opc.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ppt/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ppt/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ppt/parser.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ppt/ppt_converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ppt/records.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/ppt/style_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/context.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/lists.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/main.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/package_normalizer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/pptx_converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/resources.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/shapes.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/text_styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/pptx/titles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rich_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/lexer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/math.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/rtf/parser.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/spreadsheet/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/spreadsheet/html.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/spreadsheet/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/spreadsheet/projector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/spreadsheet/region_discovery.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/streams.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/chart.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/embedded_chart.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/number_format.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/parser.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/records.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/strings.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xls/xls_converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xlsx/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xlsx/main.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xlsx/ooxml_ole.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xlsx/package_normalizer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/office/xlsx/xlsx_converter.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/candidate.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/engine.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/rule_band.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/sparse_common.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/sparse_hybrid.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/sparse_multiline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/text_grid.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_table_recovery/vector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/annotation_bands.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/auxiliary_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/char_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/code_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/formulas.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/graphics.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/index_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/common.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/detection.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/matching.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/materialize.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/inline/types.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/layout_evidence.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/line_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/line_merging.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/native_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/spatial_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_constants.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_detection.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_filled_grid.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_materialization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_rows.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_rules.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/table_text_styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/tables.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/assembly.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/common.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/continuity.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/footnotes.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/merging.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_assembly/rows.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/text_roles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/body_profile.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/common.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/compact_titles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/document_profile.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/lane_titles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/page_titles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/prototype.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/title_analysis/structural.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/titles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/typography.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/visual_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/pdf.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/assets/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/assets/images.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/assets/store.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/cli.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/html/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/html/contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/html/materializer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/html/parser.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/html/resources.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/codecs/json.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/inline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/links.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/markup/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/markup/anchors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/markup/formula.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/markup/projector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/markup/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/mathml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/normalization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/spans.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/content.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/document.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/html.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/rules.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/table/structure.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/content/tree.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/detection.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/filetypes.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/page_range.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/_document.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/classify.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/constants.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/font_runtime.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/images.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/native_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/native_contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/native_coordinates.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/native_lifecycle.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/native_objects.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/native_text_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/pdfium.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/raster.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/text/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/text/_contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/text/dedup.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/text/extract.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/text/geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/text/groups.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/pdf/visuals.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/properties.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/document/source.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/errors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/export/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/export/bundle.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_coordinates.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_hyperlink.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_image.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_image_operations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_image_payload.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_svg_raster.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/image_encoding.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/language.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/type_identity.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/foundation/xml_names.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/options.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/content.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/document.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/lists.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/page_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/pages.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/paragraphs.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/postprocess/visual.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/public_api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/common/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/common/context.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/common/html_table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/common/index.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/common/list_items.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/common/planner.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/assets.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/inline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/math.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/docx/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/epub/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/epub/assets.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/epub/package.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/epub/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/html/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/html/inline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/html/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/html/sanitizer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/html/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/latex/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/latex/assets.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/latex/inline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/latex/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/latex/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/assets.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/escaping.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/inline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/markdown/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/assets.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/diagnostics.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/font_plan.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/formula.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/formula_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/inline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/original.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/pagination.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/paragraph.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/table_content.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/table_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/pdf/title_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/structured_content/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/_internal/structured_content/renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/contracts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/docx.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/epub.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/fragments.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/html.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/latex.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/markdown.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/pdf.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/render/structured_content.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/epub/docvortex.css +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/fonts/DroidSansFallbackFull.ttf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/fonts/NOTICE +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/fonts/manifest.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/html/docvortex.css +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/html/docvortex.min.css +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/resources/unicode/EquivalentUnifiedIdeograph-17.0.0.txt +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/result.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/schema.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/visualization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex.egg-info/dependency_links.txt +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex.egg-info/entry_points.txt +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex.egg-info/requires.txt +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex.egg-info/top_level.txt +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/benchmarks/flash_pdf.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/benchmarks/native_pdf_table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/benchmarks/pdf_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/benchmarks/pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/evaluate_native_pdf_table_manifest.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_layout_block_expectations.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_layout_geometry_manifest.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_layout_semantic_expectations.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_manual_annotations.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_manual_review_decisions.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_round2_annotations.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_round2_review_decisions.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_round3_annotations.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_round3_followup_review_decisions.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_round3_review_decisions.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_rule_generalization_review_decisions.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/flash_title_coverage_review_decisions.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/generate_synthetic_pdf_fixtures.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/native_pdf_table_cross_page_manifest.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/native_pdf_table_demo_manifest.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/native_pdf_table_script_truth.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/pdf_char_dedup.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/pdf_mixed_font_script_line.json +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/fixtures/rtf/semantic.rtf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_architecture.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_benchmark_entrypoint.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_brand_protocol.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_cli_logging.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_complete_pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_converter_lifecycle.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_document_envelope.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_document_metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_format_matrix.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_geometry_api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_history_geometry_tools.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_html_namespace.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_mixed_font_script_reference.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_analysis_api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_cpu_evidence.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_font_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_font_runtime.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_model_text_normalization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_output_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_render_pool.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_source_row_merging.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_pdf_symbol_normalization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_public_image_api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_public_pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_refactor_raster.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_refactor_rendering.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_refactor_resources.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_release_ci_gate.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_render_ownership.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_renderer_branding.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_shared_boundaries.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_system_font_pdf_pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/test_validated_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_docx_equationxml_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_epub_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_flash_pdf_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_image_mtef_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_legacy_doc_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_legacy_ppt_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_legacy_xls_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_metafile_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_mtef_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_mtef_v5_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_native_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_odf_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_ofd_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_office_image_mtef_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_ooxml_mtef_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/_span_test_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/connexin.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/fornax.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/frames_v1.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/frames_v2.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/k2_treap.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/mmlu_redux.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/nash_review.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/annotated/nougat.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/bloom_form_labels.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/journal_dual_caption.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/journal_layout_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/math_display_formulas.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/mixed_text_layout_sample.pdf.xor +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_layout/quantum_appendix_layout.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/flash_table_annotations_synthetic.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/metabolic_pathway_page_3.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_cjk_layout_synthetic.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/annual_report_fundraising_projects_table.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/annual_report_management_roles_table.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/annual_report_research_projects_table.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/conference_schedule_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/engineering_process_restrictions_table.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/fund_asset_and_transaction_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/fund_manager_profile_table.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/manufacturing_facilities_cross_page_table.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/pollutant_discharge_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/procurement_contract_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/procurement_document_blank_page_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/native_pdf_tables/quarterly_report_financial_tables.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/pdfs/test.pdf +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_backend_architecture.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_backend_block_object_regressions.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_docx_assets.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_docx_complex_fields.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_docx_math.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_docx_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_docx_special_char_tables.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_docx_table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_emfplus_integration.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_epub_backlinks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_epub_quoted_note_types.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_epub_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_bbox_grid_comparison.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_csv.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_docx_equationxml.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_epub.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_html.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_image_mtef.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_legacy_chart_data.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_legacy_doc.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_legacy_doc_mtef.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_legacy_ppt.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_legacy_xls.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_legacy_xls_ppt_mtef.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_manual_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_markup_anchors.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_model.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_mtef_v5.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_odf.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_ofd.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_office_image_mtef.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_office_metafile.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_office_models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_office_mtef_v5.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_office_package_normalizers.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_office_title_types.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_ooxml_mtef.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_auxiliary_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_char_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_code_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_document_profile.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_equation_images.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_extractor.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_formulas.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_graphics.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_index_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_layout_repairs.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_line_metadata.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_native_text.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_reviewed_history.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_samples.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_scripts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_semantics.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_short_tails.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_tables.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_text_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_text_visibility.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_titles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_pdf_visual_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_round2_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_round3_annotations.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_rtf.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_rule_generalization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_shared_helpers.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_spatial_evidence.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_flash_spreadsheet_projector.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_guess_suffix_ole2.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_html_css_build.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_html_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_html_security.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_hybrid_script_source_pdfs.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_latex_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_markdown_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_middle_json_block_models.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_middle_json_validator.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_model_json.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_native_pdf_table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_native_pdf_table_demo_manifest.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_native_pdf_table_manifest.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_native_pdf_table_pipeline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_native_pdf_table_scripts.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_native_table_performance_equivalence.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_ofd_assembly.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_ofd_vector_tables.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_office_demo_exports.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_office_demo_pages.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_office_parser_regressions.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_cjk_style.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_cjk_wrapping.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_classify.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_demo_links.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_diagnostic_levels.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_document.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_formula_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_object_clipping.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_original_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_pagination.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_paragraph_cache.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_render_diagnostics.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_structured_tables.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_table_cache.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_table_round2.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_text_dedup.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_text_styles.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_title_font_plan.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_title_space.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_pdf_visualization.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_postprocess_page_blocks.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_postprocess_pages.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_postprocess_paragraphs.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_postprocess_visual.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_render_api.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_render_html_table.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_render_image_renderer.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_render_list_index_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_structured_content_render.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_svg_raster.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_table_merge.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_table_merge_cell_merge.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_text_block_anchor.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_text_boundary_rules.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tests/unittest/test_text_utils.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/__init__.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/build_html_css.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/calibrate_pdf_geometry.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/capture_baseline.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/capture_platform_layout.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/compare_font_platforms.py +0 -0
- {docvortex-0.4.18 → docvortex-0.4.20}/tools/font_geometry.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DocVortex 0.4 公共 SDK 与宿主迁移
|
|
2
2
|
|
|
3
|
-
本文记录 0.4 系列的公共模块边界。MinerU
|
|
3
|
+
本文记录 0.4 系列的公共模块边界。MinerU 的共享图片导出需要 `docvortex>=0.4.19,<1`,文档协议、解析路由、模型回退与渲染语义保持不变。
|
|
4
4
|
|
|
5
5
|
## 公开入口
|
|
6
6
|
|
|
@@ -22,6 +22,29 @@
|
|
|
22
22
|
|
|
23
23
|
跨库调用方可通过 `docvortex.export.materialize_middle(middle_json, assets=None)` 获取图片外置后的文档副本与 `AssetStore`,再通过 `validate_materialized_assets(document, assets)` 验证所有图片引用。直接图片和视觉 HTML 内嵌图片使用安全相对路径,原始图片字节及布局方向扩展保持不变;代码字面量不作为 HTML 素材处理。
|
|
24
24
|
|
|
25
|
+
### 0.4.19 图片命名与宿主回调
|
|
26
|
+
|
|
27
|
+
新物化图片统一沿用 MinerU Gradio 的命名:直接载荷为
|
|
28
|
+
`images/page_{page_idx}_{owner.type}_{owner.index}.{ext}`,其中 owner 是所属
|
|
29
|
+
image/table/chart 父块,独立公式使用 equation。视觉正文内的图片分别使用
|
|
30
|
+
`image_{index}_{ordinal}`、`table_image_{index}_{ordinal}`、`chart_image_{index}_{ordinal}`。
|
|
31
|
+
页号为从 0 开始的原始页索引;序号按每个正文的所有 `<img src=...>` 从 1 计数,外链也占序号。
|
|
32
|
+
扩展名转小写,缺省 jpg;图片字节不重新编码。同名同字节复用,同名异字节追加
|
|
33
|
+
`_duplicate_n`,最多检查 10000 个候选名称;不同语义名称不因字节相同而合并。
|
|
34
|
+
|
|
35
|
+
`materialize_middle` 新增两个可选的仅限关键字参数:
|
|
36
|
+
|
|
37
|
+
- `image_resolver: Callable[[ImagePayloadBlock, int], tuple[bytes, str] | None]`:接收副本中的载荷块和原始页号,返回字节及扩展名;返回 None 时保留载荷,不再触发默认解析。
|
|
38
|
+
- `asset_resolver: Callable[[str], bytes]`:接收经过实体/URL 解码及安全校验的 HTML 图片相对路径,返回字节;扩展名从引用路径取得。仅在明确传入回调时读取宿主资源,回调负责自身根目录限制。
|
|
39
|
+
|
|
40
|
+
不提供回调时保持内嵌图片的严格解析,不自动读文件或裁 PDF;已有相对路径保持原样。
|
|
41
|
+
输入 `assets` 保留为独立副本并参与冲突检查,重复物化不改变路径或字节。
|
|
42
|
+
新命名同步更新直接引用和 HTML src,保留 HTML 的属性、引号及其他正文。
|
|
43
|
+
|
|
44
|
+
此变更会改变新生成的 CLI/API ZIP 及 DocVortex 导出图片名称,消费者应读取文档实际引用,
|
|
45
|
+
不再自行拼接旧的 `*_body_*` 名称。历史结果包仍按已有引用读取,不自动迁移、不生成旧名别名;
|
|
46
|
+
MiddleJson 仍为 2.0,文件写出层的 overwrite 语义不变。
|
|
47
|
+
|
|
25
48
|
调用方负责将该副本及素材写入自己的结果包,不应先省略图片再从源 PDF 重裁。缺失引用、未物化网络图片或同名素材冲突会显式失败。物化不修改输入对象、不读取源 PDF、不下载网络资源;已有外部素材须通过 `AssetStore` 显式提供。
|
|
26
49
|
|
|
27
50
|
## 行为与资源所有权
|
{docvortex-0.4.18 → docvortex-0.4.20}/src/docvortex/analyzers/native/pdf/_script_geometry.py
RENAMED
|
@@ -30,6 +30,7 @@ SCRIPT_COMPONENT_SEED_MAX_POSITION_DISTANCE = 4
|
|
|
30
30
|
SCRIPT_COMPONENT_MIN_OFFSET_RATIO = 0.08
|
|
31
31
|
SCRIPT_COMPONENT_MAX_HEIGHT_RATIO = 1.1
|
|
32
32
|
CONTROL_LINE_BREAK_CHARS = {"\r", "\n"}
|
|
33
|
+
_NUMERIC_SCRIPT_SEPARATORS = frozenset({",", ",", "-", "–", "—"})
|
|
33
34
|
|
|
34
35
|
ScriptRole = Literal["body", "sup", "sub"]
|
|
35
36
|
ScriptMarkRole = Literal["sup", "sub"]
|
|
@@ -675,6 +676,91 @@ def paired_script_roles(
|
|
|
675
676
|
return paired
|
|
676
677
|
|
|
677
678
|
|
|
679
|
+
def _numeric_superscript_indices(
|
|
680
|
+
features: list[ScriptCharFeature],
|
|
681
|
+
roles: list[ScriptRole],
|
|
682
|
+
protected_body_indices: set[int],
|
|
683
|
+
) -> set[int]:
|
|
684
|
+
"""用左侧同一视觉行的稳定正文确认完整数字上标,允许中间有排版空白。"""
|
|
685
|
+
accepted: set[int] = set()
|
|
686
|
+
start = 0
|
|
687
|
+
while start < len(features):
|
|
688
|
+
if not features[start].text.isdecimal():
|
|
689
|
+
start += 1
|
|
690
|
+
continue
|
|
691
|
+
end = start + 1
|
|
692
|
+
while end < len(features) and (features[end].text.isdecimal() or features[end].text in _NUMERIC_SCRIPT_SEPARATORS):
|
|
693
|
+
end += 1
|
|
694
|
+
# 尾随标点属于正文,只有数字之间且共享上标基线的分隔符才随引用提升。
|
|
695
|
+
while end > start and not features[end - 1].text.isdecimal():
|
|
696
|
+
end -= 1
|
|
697
|
+
candidate = features[start:end]
|
|
698
|
+
if any(0 <= neighbor < len(features) and features[neighbor].text in {"/", "⁄"} for neighbor in (start - 1, end)):
|
|
699
|
+
# 不能把分式的分子或分母独立当成引用,否则会制造仅半个指数带上标的结果。
|
|
700
|
+
start = end
|
|
701
|
+
continue
|
|
702
|
+
previous = start - 1
|
|
703
|
+
while previous >= 0 and features[previous].text.isspace():
|
|
704
|
+
if features[previous].text in CONTROL_LINE_BREAK_CHARS:
|
|
705
|
+
break
|
|
706
|
+
previous -= 1
|
|
707
|
+
reference_end = previous + 1
|
|
708
|
+
while previous >= 0 and features[previous].is_valid and roles[previous] == "body":
|
|
709
|
+
if previous in protected_body_indices:
|
|
710
|
+
break
|
|
711
|
+
previous -= 1
|
|
712
|
+
reference = list(range(previous + 1, reference_end))
|
|
713
|
+
start = end
|
|
714
|
+
if not reference or any(
|
|
715
|
+
not item.is_valid or item.index in protected_body_indices or roles[item.index] == "sub" for item in candidate
|
|
716
|
+
):
|
|
717
|
+
continue
|
|
718
|
+
clusters, _ = _cluster_baselines(features, reference)
|
|
719
|
+
body_result = _choose_body_band(features, clusters)
|
|
720
|
+
if body_result is None:
|
|
721
|
+
continue
|
|
722
|
+
band, body_cluster = body_result
|
|
723
|
+
if len(band.member_indices) < 2 or band.tight_height <= 0 or band.loose_height <= 0:
|
|
724
|
+
continue
|
|
725
|
+
edge = features[reference[-1]]
|
|
726
|
+
first = candidate[0]
|
|
727
|
+
assert first.tight_bbox is not None and edge.tight_bbox is not None
|
|
728
|
+
gap = first.tight_bbox[0] - edge.tight_bbox[2]
|
|
729
|
+
if not -0.15 * band.tight_height <= gap <= max(2.5, 1.2 * band.tight_height):
|
|
730
|
+
continue
|
|
731
|
+
digits = [item for item in candidate if item.text.isdecimal()]
|
|
732
|
+
baseline = statistics.median(item.origin[1] for item in digits if item.origin is not None)
|
|
733
|
+
shift = band.baseline - baseline
|
|
734
|
+
if (
|
|
735
|
+
not max(SCRIPT_ORIGIN_MIN_SHIFT_ABSOLUTE, SCRIPT_CONSENSUS_ORIGIN_SHIFT_RATIO * band.tight_height)
|
|
736
|
+
<= shift
|
|
737
|
+
<= (0.8 * band.tight_height)
|
|
738
|
+
):
|
|
739
|
+
continue
|
|
740
|
+
tolerance = max(SCRIPT_BASELINE_ABSOLUTE_TOLERANCE, SCRIPT_BASELINE_LOOSE_HEIGHT_RATIO * band.loose_height)
|
|
741
|
+
if any(item.origin is None or abs(item.origin[1] - baseline) > tolerance for item in candidate):
|
|
742
|
+
continue
|
|
743
|
+
tight_ratio = max(item.tight_height for item in digits) / band.tight_height
|
|
744
|
+
if tight_ratio > SCRIPT_CONSENSUS_TIGHT_HEIGHT_RATIO:
|
|
745
|
+
# 纯小写词的 x-height 可接近缩小数字;强基线位移还须有 loose 缩小证据,不能仅放宽 tight 阈值。
|
|
746
|
+
loose_ratio = max(item.loose_height for item in digits) / band.loose_height
|
|
747
|
+
if not (
|
|
748
|
+
shift >= SCRIPT_STRONG_SHIFT_RATIO * band.tight_height
|
|
749
|
+
and tight_ratio <= SCRIPT_STRONG_MAX_HEIGHT_RATIO
|
|
750
|
+
and loose_ratio <= SCRIPT_CONSENSUS_TIGHT_HEIGHT_RATIO
|
|
751
|
+
):
|
|
752
|
+
continue
|
|
753
|
+
digit_cluster = ScriptBaselineCluster(baseline, tuple(item.index for item in digits))
|
|
754
|
+
if (
|
|
755
|
+
_cluster_tight_center(features, digit_cluster) >= _cluster_tight_center(features, body_cluster) - 0.05
|
|
756
|
+
or _cluster_loose_center(features, digit_cluster) >= _cluster_loose_center(features, body_cluster) - 0.05
|
|
757
|
+
):
|
|
758
|
+
continue
|
|
759
|
+
# 只补样式,不合并组件或移动字符;下一候选也不能把本次提升结果当作正文。
|
|
760
|
+
accepted.update(item.index for item in candidate)
|
|
761
|
+
return accepted
|
|
762
|
+
|
|
763
|
+
|
|
678
764
|
def classify_char_script_roles(
|
|
679
765
|
chars: list[Char],
|
|
680
766
|
*,
|
|
@@ -689,6 +775,8 @@ def classify_char_script_roles(
|
|
|
689
775
|
roles: list[ScriptRole] = ["body"] * len(features)
|
|
690
776
|
for component_indices in split_script_visual_components(features):
|
|
691
777
|
_assign_component(features, component_indices, protected, roles, font_keys)
|
|
778
|
+
for index in _numeric_superscript_indices(features, roles, protected):
|
|
779
|
+
roles[index] = "sup"
|
|
692
780
|
return roles
|
|
693
781
|
|
|
694
782
|
|
|
@@ -7,7 +7,13 @@ import unicodedata
|
|
|
7
7
|
from typing import Any, Literal, Sequence
|
|
8
8
|
|
|
9
9
|
from .....schema import BBox
|
|
10
|
-
from .._script_geometry import
|
|
10
|
+
from .._script_geometry import (
|
|
11
|
+
ScriptRole,
|
|
12
|
+
_numeric_superscript_indices,
|
|
13
|
+
build_script_features,
|
|
14
|
+
classify_char_script_roles,
|
|
15
|
+
paired_script_roles,
|
|
16
|
+
)
|
|
11
17
|
from ..geometry import _rotate_bbox_to_upright
|
|
12
18
|
from .common import _coerce_bbox, _normalize_match_fragment, _ordered_line_chars
|
|
13
19
|
from .types import (
|
|
@@ -411,6 +417,11 @@ def _refine_math_script_tokens(
|
|
|
411
417
|
"""以最左稳定簇保护 base,并对弱单字符和复杂未分段 token 保守拒识。"""
|
|
412
418
|
refined = list(roles)
|
|
413
419
|
citation_indices = _citation_script_indices(chars, refined)
|
|
420
|
+
numeric_indices: set[int] = set()
|
|
421
|
+
if any(role == "sup" and _script_char_text(char).isdecimal() for char, role in zip(chars, roles)):
|
|
422
|
+
# 数字引用的基字符在 token 外;保护双 bbox/origin 已确认的整串,不能重置首位数字。
|
|
423
|
+
candidates = _numeric_superscript_indices(build_script_features(chars, tight_bboxes, origins, set()), roles, set())
|
|
424
|
+
numeric_indices = {index for index in candidates if roles[index] == "sup"}
|
|
414
425
|
complex_unsegmented_token = False
|
|
415
426
|
tokens = _iter_math_script_tokens(chars)
|
|
416
427
|
token_alnum_positions = {
|
|
@@ -443,6 +454,9 @@ def _refine_math_script_tokens(
|
|
|
443
454
|
for token in tokens:
|
|
444
455
|
if any(index in citation_indices for index in token):
|
|
445
456
|
continue
|
|
457
|
+
if all(index in numeric_indices for index in token):
|
|
458
|
+
# 只跳过纯数字引用的 base 重选,后续分式及复杂数学过滤仍按原规则执行。
|
|
459
|
+
continue
|
|
446
460
|
token_key = tuple(token)
|
|
447
461
|
alnum_positions = token_alnum_positions[token_key]
|
|
448
462
|
if not alnum_positions or not any(refined[index] != "body" for index in token):
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"""各导出入口共享的图片命名、冲突分配与引用改写。"""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import html
|
|
6
|
+
import re
|
|
7
|
+
from collections.abc import Callable
|
|
8
|
+
from pathlib import PurePosixPath
|
|
9
|
+
from urllib.parse import unquote
|
|
10
|
+
|
|
11
|
+
from ..assets import AssetStore, parse_image_data_uri_strict, validate_image_sidecar_path
|
|
12
|
+
from ..content.tree import iter_child_blocks
|
|
13
|
+
from ..schema import (
|
|
14
|
+
AlgorithmBodyBlock,
|
|
15
|
+
BlockBase,
|
|
16
|
+
ChartBlock,
|
|
17
|
+
ChartBodyBlock,
|
|
18
|
+
CodeBlock,
|
|
19
|
+
CodeBodyBlock,
|
|
20
|
+
ImageBlock,
|
|
21
|
+
ImageBodyBlock,
|
|
22
|
+
ImagePayloadBlock,
|
|
23
|
+
MiddleJson,
|
|
24
|
+
TableBlock,
|
|
25
|
+
TableBodyBlock,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
_HTML_IMAGE_SOURCE_RE = re.compile(
|
|
29
|
+
r"(?P<prefix><img\b(?:[^>\"']|\"[^\"]*\"|'[^']*')*?\s+src\s*=\s*)"
|
|
30
|
+
r"(?:(?P<quote>[\"'])(?P<quoted>.*?)(?P=quote)|(?P<unquoted>[^\s>]+))",
|
|
31
|
+
re.IGNORECASE | re.DOTALL,
|
|
32
|
+
)
|
|
33
|
+
_IMAGE_EXTENSIONS = frozenset({"jpg", "jpeg", "png", "gif", "webp", "bmp", "tiff", "svg"})
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _register_image(
|
|
37
|
+
assets: AssetStore,
|
|
38
|
+
payload: bytes,
|
|
39
|
+
extension: str,
|
|
40
|
+
*,
|
|
41
|
+
page_idx: int,
|
|
42
|
+
owner: BlockBase,
|
|
43
|
+
ordinal: int | None = None,
|
|
44
|
+
) -> str:
|
|
45
|
+
"""按原始页和视觉父块命名,冲突后缀独立于正文图片序号。"""
|
|
46
|
+
extension = extension.lower().lstrip(".") or "jpg"
|
|
47
|
+
if extension not in _IMAGE_EXTENSIONS:
|
|
48
|
+
raise ValueError(f"Unsupported image extension: {extension}")
|
|
49
|
+
if owner.index is None:
|
|
50
|
+
raise ValueError("Image owner must have a block index")
|
|
51
|
+
kind = str(owner.type)
|
|
52
|
+
if ordinal is not None and kind != "image":
|
|
53
|
+
kind += "_image"
|
|
54
|
+
suffix = f"_{ordinal}" if ordinal is not None else ""
|
|
55
|
+
stem = f"page_{page_idx}_{kind}_{owner.index}{suffix}"
|
|
56
|
+
for attempt in range(10000):
|
|
57
|
+
duplicate = f"_duplicate_{attempt}" if attempt else ""
|
|
58
|
+
path = validate_image_sidecar_path(f"images/{stem}{duplicate}.{extension}")
|
|
59
|
+
if path not in assets or assets[path] == payload:
|
|
60
|
+
assets.add(path, payload)
|
|
61
|
+
return path
|
|
62
|
+
raise ValueError("Too many conflicting image assets")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def _materialize_markup(
|
|
66
|
+
content: str,
|
|
67
|
+
assets: AssetStore,
|
|
68
|
+
*,
|
|
69
|
+
page_idx: int,
|
|
70
|
+
owner: BlockBase,
|
|
71
|
+
asset_resolver: Callable[[str], bytes] | None,
|
|
72
|
+
) -> str:
|
|
73
|
+
"""按所有 img src 的出现顺序编号,仅替换图片引用的值。"""
|
|
74
|
+
ordinal = 0
|
|
75
|
+
|
|
76
|
+
def replace_source(match: re.Match[str]) -> str:
|
|
77
|
+
"""保留外链及原 HTML 属性,外链同样占用正文图片序号。"""
|
|
78
|
+
nonlocal ordinal
|
|
79
|
+
ordinal += 1
|
|
80
|
+
group = "quoted" if match.group("quote") else "unquoted"
|
|
81
|
+
source = html.unescape(match.group(group)).strip()
|
|
82
|
+
if source.startswith("data:"):
|
|
83
|
+
payload, extension = parse_image_data_uri_strict(source)
|
|
84
|
+
elif re.match(r"^[A-Za-z][A-Za-z0-9+.-]*:", source) or asset_resolver is None:
|
|
85
|
+
return match.group(0)
|
|
86
|
+
else:
|
|
87
|
+
safe_path = validate_image_sidecar_path(unquote(source))
|
|
88
|
+
payload = asset_resolver(safe_path)
|
|
89
|
+
extension = PurePosixPath(safe_path).suffix.lstrip(".")
|
|
90
|
+
path = _register_image(assets, payload, extension, page_idx=page_idx, owner=owner, ordinal=ordinal)
|
|
91
|
+
start, end = match.span(group)
|
|
92
|
+
original = match.group(0)
|
|
93
|
+
return original[: start - match.start()] + path + original[end - match.start() :]
|
|
94
|
+
|
|
95
|
+
return _HTML_IMAGE_SOURCE_RE.sub(replace_source, content)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def _materialize_images(
|
|
99
|
+
middle_json: MiddleJson,
|
|
100
|
+
assets: AssetStore | None = None,
|
|
101
|
+
*,
|
|
102
|
+
image_resolver: Callable[[ImagePayloadBlock, int], tuple[bytes, str] | None] | None = None,
|
|
103
|
+
asset_resolver: Callable[[str], bytes] | None = None,
|
|
104
|
+
) -> tuple[MiddleJson, AssetStore]:
|
|
105
|
+
"""复制文档及素材索引,在同一次树遍历中完成命名和引用回填。"""
|
|
106
|
+
document = middle_json.model_copy(deep=True)
|
|
107
|
+
result = assets.copy() if assets is not None else AssetStore()
|
|
108
|
+
for page in document.pages:
|
|
109
|
+
pending = [(block, block) for block in reversed(page.blocks)]
|
|
110
|
+
while pending:
|
|
111
|
+
block, owner = pending.pop()
|
|
112
|
+
if isinstance(block, (CodeBlock, CodeBodyBlock, AlgorithmBodyBlock)):
|
|
113
|
+
continue
|
|
114
|
+
if isinstance(block, (ImageBlock, TableBlock, ChartBlock)):
|
|
115
|
+
owner = block
|
|
116
|
+
if isinstance(block, ImagePayloadBlock):
|
|
117
|
+
resolved = None
|
|
118
|
+
if image_resolver is not None:
|
|
119
|
+
resolved = image_resolver(block, page.page_idx)
|
|
120
|
+
elif block.image_base64 is not None:
|
|
121
|
+
resolved = parse_image_data_uri_strict(block.image_base64)
|
|
122
|
+
if resolved is not None:
|
|
123
|
+
payload, extension = resolved
|
|
124
|
+
block.image_path = _register_image(result, payload, extension, page_idx=page.page_idx, owner=owner)
|
|
125
|
+
block.image_base64 = None
|
|
126
|
+
block.image_url = None
|
|
127
|
+
elif image_resolver is None and block.image_path and block.image_path in result:
|
|
128
|
+
block.image_url = None
|
|
129
|
+
if isinstance(block, (ImageBodyBlock, TableBodyBlock, ChartBodyBlock)):
|
|
130
|
+
block.content = _materialize_markup(
|
|
131
|
+
block.content, result, page_idx=page.page_idx, owner=owner, asset_resolver=asset_resolver
|
|
132
|
+
)
|
|
133
|
+
pending.extend((child, owner) for child in reversed(list(iter_child_blocks(block))))
|
|
134
|
+
return document, result
|
|
@@ -2,30 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from collections.abc import Callable
|
|
5
6
|
from pathlib import Path
|
|
6
7
|
from urllib.parse import urlsplit
|
|
7
8
|
|
|
8
9
|
from ..assets import AssetStore
|
|
9
10
|
from ..content.tree import iter_child_blocks
|
|
10
|
-
from ..schema import MiddleJson
|
|
11
11
|
from ..result import ExportResult, RenderArtifact
|
|
12
|
-
from
|
|
12
|
+
from ..schema import ImagePayloadBlock, MiddleJson
|
|
13
|
+
from ._images import _materialize_images
|
|
14
|
+
from .middle import _commit_export_files, _resolve_export_target, _validate_export_path_relationships
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
def materialize_middle(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return
|
|
17
|
+
def materialize_middle(
|
|
18
|
+
middle_json: MiddleJson,
|
|
19
|
+
assets: AssetStore | None = None,
|
|
20
|
+
*,
|
|
21
|
+
image_resolver: Callable[[ImagePayloadBlock, int], tuple[bytes, str] | None] | None = None,
|
|
22
|
+
asset_resolver: Callable[[str], bytes] | None = None,
|
|
23
|
+
) -> tuple[MiddleJson, AssetStore]:
|
|
24
|
+
"""在副本上按视觉父块外置图片;仅通过显式回调获取宿主文件或裁图。
|
|
25
|
+
|
|
26
|
+
image_resolver 接收载荷块和原始页索引,返回字节与扩展名;返回 None
|
|
27
|
+
表示保留当前载荷,不触发默认解析。asset_resolver 仅接收经过校验的
|
|
28
|
+
HTML 图片相对路径。不提供回调时,只解析内嵌图片并保留已有素材引用。
|
|
29
|
+
"""
|
|
30
|
+
return _materialize_images(middle_json, assets, image_resolver=image_resolver, asset_resolver=asset_resolver)
|
|
29
31
|
|
|
30
32
|
|
|
31
33
|
def validate_materialized_assets(middle_json: MiddleJson, assets: AssetStore) -> None:
|
|
@@ -6,9 +6,9 @@ import os
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from pathlib import Path
|
|
8
8
|
from tempfile import NamedTemporaryFile
|
|
9
|
-
from typing import Any, Sequence
|
|
10
9
|
|
|
11
|
-
from ..schema import
|
|
10
|
+
from ..schema import MiddleJson
|
|
11
|
+
from ._images import _materialize_images
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
@dataclass(frozen=True, slots=True)
|
|
@@ -20,65 +20,10 @@ class MiddleJsonExportResult:
|
|
|
20
20
|
image_paths: tuple[Path, ...]
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
def _iter_page_blocks(blocks: Sequence[BlockBase]) -> list[BlockBase]:
|
|
24
|
-
"""按深度优先顺序展开页面 block 树,供图片外置统一遍历。"""
|
|
25
|
-
result: list[BlockBase] = []
|
|
26
|
-
pending: list[BlockBase] = list(reversed(blocks))
|
|
27
|
-
while pending:
|
|
28
|
-
block = pending.pop()
|
|
29
|
-
result.append(block)
|
|
30
|
-
pending.extend(reversed(_iter_child_blocks(block)))
|
|
31
|
-
return result
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def _register_export_file(files: dict[str, bytes], relative_path: str, payload: bytes) -> None:
|
|
35
|
-
"""登记待写文件,并在同名内容冲突时立即终止导出。"""
|
|
36
|
-
existing = files.get(relative_path)
|
|
37
|
-
if existing is not None and existing != payload:
|
|
38
|
-
raise ValueError(f"Conflicting image payload for path: {relative_path}")
|
|
39
|
-
files[relative_path] = payload
|
|
40
|
-
|
|
41
|
-
|
|
42
23
|
def _prepare_export_copy(middle_json: MiddleJson) -> tuple[MiddleJson, dict[str, bytes]]:
|
|
43
|
-
"""
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
exported = middle_json.model_copy(deep=True)
|
|
47
|
-
image_files: dict[str, bytes] = {}
|
|
48
|
-
for page in exported.pages:
|
|
49
|
-
for block in _iter_page_blocks(page.blocks):
|
|
50
|
-
data_uri = getattr(block, "image_base64", None)
|
|
51
|
-
if data_uri is not None:
|
|
52
|
-
if block.index is None:
|
|
53
|
-
raise ValueError(f"Image carrier requires index: page_idx={page.page_idx}, type={block.type}")
|
|
54
|
-
image_bytes, extension = parse_image_data_uri_strict(data_uri)
|
|
55
|
-
relative_path = f"images/page_{page.page_idx}_{block.type}_{block.index}.{extension}"
|
|
56
|
-
_register_export_file(image_files, relative_path, image_bytes)
|
|
57
|
-
block.image_path = relative_path # type: ignore[attr-defined]
|
|
58
|
-
block.image_base64 = None # type: ignore[attr-defined]
|
|
59
|
-
|
|
60
|
-
content = getattr(block, "content", None)
|
|
61
|
-
if (
|
|
62
|
-
str(block.type) not in {"table_body", "chart_body", "image_body"}
|
|
63
|
-
or not isinstance(content, str)
|
|
64
|
-
or "data:image/" not in content
|
|
65
|
-
):
|
|
66
|
-
continue
|
|
67
|
-
if block.index is None:
|
|
68
|
-
raise ValueError(f"HTML image carrier requires index: page_idx={page.page_idx}, type={block.type}")
|
|
69
|
-
ordinal = 0
|
|
70
|
-
|
|
71
|
-
def _replace_data_uri(match: Any) -> str:
|
|
72
|
-
"""将当前 HTML data URI 登记为 sidecar,并返回确定性相对路径。"""
|
|
73
|
-
nonlocal ordinal
|
|
74
|
-
ordinal += 1
|
|
75
|
-
image_bytes, extension = parse_image_data_uri_strict(match.group(0))
|
|
76
|
-
relative_path = f"images/page_{page.page_idx}_{block.type}_{block.index}_{ordinal}.{extension}"
|
|
77
|
-
_register_export_file(image_files, relative_path, image_bytes)
|
|
78
|
-
return relative_path
|
|
79
|
-
|
|
80
|
-
block.content = INLINE_IMAGE_DATA_URI_RE.sub(_replace_data_uri, content) # type: ignore[assignment]
|
|
81
|
-
return exported, image_files
|
|
24
|
+
"""复用统一物化流程,为原子文件导出提供文档副本及图片字节。"""
|
|
25
|
+
document, assets = _materialize_images(middle_json)
|
|
26
|
+
return document, dict(assets)
|
|
82
27
|
|
|
83
28
|
|
|
84
29
|
def _resolve_export_target(output_root: Path, relative_path: str) -> Path:
|
|
@@ -343,6 +343,7 @@ src/docvortex/document/pdf/text/extract.py
|
|
|
343
343
|
src/docvortex/document/pdf/text/geometry.py
|
|
344
344
|
src/docvortex/document/pdf/text/groups.py
|
|
345
345
|
src/docvortex/export/__init__.py
|
|
346
|
+
src/docvortex/export/_images.py
|
|
346
347
|
src/docvortex/export/bundle.py
|
|
347
348
|
src/docvortex/export/files.py
|
|
348
349
|
src/docvortex/export/middle.py
|
|
@@ -446,6 +447,7 @@ tests/test_complete_pipeline.py
|
|
|
446
447
|
tests/test_converter_lifecycle.py
|
|
447
448
|
tests/test_document_envelope.py
|
|
448
449
|
tests/test_document_metadata.py
|
|
450
|
+
tests/test_export_image_names.py
|
|
449
451
|
tests/test_format_matrix.py
|
|
450
452
|
tests/test_geometry_api.py
|
|
451
453
|
tests/test_history_geometry_tools.py
|
|
@@ -456,6 +458,7 @@ tests/test_pdf_cpu_evidence.py
|
|
|
456
458
|
tests/test_pdf_font_geometry.py
|
|
457
459
|
tests/test_pdf_font_runtime.py
|
|
458
460
|
tests/test_pdf_model_text_normalization.py
|
|
461
|
+
tests/test_pdf_numeric_citations.py
|
|
459
462
|
tests/test_pdf_output_text.py
|
|
460
463
|
tests/test_pdf_render_pool.py
|
|
461
464
|
tests/test_pdf_source_row_merging.py
|
|
@@ -496,6 +499,7 @@ tests/fixtures/native_pdf_table_demo_manifest.json
|
|
|
496
499
|
tests/fixtures/native_pdf_table_script_truth.json
|
|
497
500
|
tests/fixtures/pdf_char_dedup.json
|
|
498
501
|
tests/fixtures/pdf_mixed_font_script_line.json
|
|
502
|
+
tests/fixtures/pdf_numeric_citations_review.json
|
|
499
503
|
tests/fixtures/rtf/semantic.rtf
|
|
500
504
|
tests/unittest/_docx_equationxml_test_utils.py
|
|
501
505
|
tests/unittest/_epub_test_utils.py
|
|
@@ -641,6 +645,7 @@ tests/unittest/test_text_utils.py
|
|
|
641
645
|
tests/unittest/pdfs/flash_table_annotations_synthetic.pdf
|
|
642
646
|
tests/unittest/pdfs/metabolic_pathway_page_3.pdf
|
|
643
647
|
tests/unittest/pdfs/native_cjk_layout_synthetic.pdf
|
|
648
|
+
tests/unittest/pdfs/numeric_citations_introduction.pdf
|
|
644
649
|
tests/unittest/pdfs/test.pdf
|
|
645
650
|
tests/unittest/pdfs/flash_layout/bloom_form_labels.pdf
|
|
646
651
|
tests/unittest/pdfs/flash_layout/journal_dual_caption.pdf
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
"page_index": 2,
|
|
613
|
-
"fingerprint": "
|
|
613
|
+
"fingerprint": "0dfc82cf2795f0ed939b1c77e7c53c59f0788c28c5f1bef1ae4bd4e8fff8b8c7",
|
|
614
614
|
"bbox_fingerprint": "c83743f89e12f6984bd9eb20f37303a668c8df982be11f86c9ae4851e035aafe"
|
|
615
615
|
},
|
|
616
616
|
{
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accepted": [
|
|
3
|
+
{
|
|
4
|
+
"case": "klee-numeric-footnote",
|
|
5
|
+
"source": "demo/pdfs/mixed_elements_pages_07_10.pdf",
|
|
6
|
+
"source_sha256": "89076ee9cce2168ab894ee7e280872f8a3c09053b9dcdeda9c1da76d111adc1e",
|
|
7
|
+
"page": 3,
|
|
8
|
+
"anchor": "symbolic execution tool KLEE 1",
|
|
9
|
+
"before_code_sha256": "be87727e75b972fd5c409c6d6792fb8094443daa5e8a69f8044080d435f261f5",
|
|
10
|
+
"after_code_sha256": "22c18d95daf883ed457012463d5616d209e4c4c6e632815225cc116189f395f5",
|
|
11
|
+
"old_fingerprint": "223f8dc3618805a8688095824d638d00348540403923ffddb74ba95a3a1961df",
|
|
12
|
+
"new_fingerprint": "0dfc82cf2795f0ed939b1c77e7c53c59f0788c28c5f1bef1ae4bd4e8fff8b8c7",
|
|
13
|
+
"decision": "accept_improvement",
|
|
14
|
+
"reason": "原页右栏 KLEE 后的 1 明显抬高且缩小;补为上标,字符、顺序、块型和 bbox 均不变。",
|
|
15
|
+
"baseline_update": "flash_reviewed_history.json: mixed_elements_pages_07_10 page_index=2 fingerprint",
|
|
16
|
+
"evidence": [
|
|
17
|
+
"output/pdf/intro-superscripts-20260920/klee-source.png",
|
|
18
|
+
"output/pdf/intro-superscripts-20260920/klee-public.html",
|
|
19
|
+
"output/pdf/intro-superscripts-20260920/history-final/comparison.html"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"rejected": [
|
|
24
|
+
{
|
|
25
|
+
"source": "mixed_elements_pages_03_06.pdf",
|
|
26
|
+
"pages": [
|
|
27
|
+
2,
|
|
28
|
+
3
|
|
29
|
+
],
|
|
30
|
+
"reason": "拒绝只提升分式指数分子的候选;保留原数学过滤及原基线。"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|