BabelDOC 0.6.3__tar.gz → 0.7.0__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.
- {babeldoc-0.6.3 → babeldoc-0.7.0}/PKG-INFO +41 -41
- {babeldoc-0.6.3 → babeldoc-0.7.0}/README.md +6 -6
- babeldoc-0.7.0/babeldoc/__init__.py +1 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/const.py +1 -1
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/doclayout.py +25 -10
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout.py +28 -10
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout6.py +135 -103
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout8.py +32 -28
- babeldoc-0.7.0/babeldoc/format/pdf/document_il/backend/pdf_creater.py +700 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.py +18 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/extract_char.py +2 -4
- babeldoc-0.7.0/babeldoc/format/pdf/document_il/utils/layout_helper.py +15 -0
- babeldoc-0.7.0/babeldoc/format/pdf/document_il/utils/mupdf_helper.py +77 -0
- babeldoc-0.7.0/babeldoc/format/pdf/document_il/utils/raster_geometry.py +256 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/high_level.py +414 -317
- babeldoc-0.7.0/babeldoc/format/pdf/parser_errors.py +14 -0
- babeldoc-0.7.0/babeldoc/format/pdf/parser_resource.py +50 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/translation_config.py +46 -3
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/glossary.py +38 -9
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/main.py +31 -3
- babeldoc-0.7.0/babeldoc/rust_callback_bridge.py +78 -0
- babeldoc-0.7.0/babeldoc/rust_debug_service.py +122 -0
- babeldoc-0.7.0/babeldoc/rust_layout_service.py +242 -0
- babeldoc-0.7.0/babeldoc/rust_parser_service.py +101 -0
- babeldoc-0.7.0/babeldoc/rust_run_context.py +126 -0
- babeldoc-0.7.0/babeldoc/rust_scan_service.py +103 -0
- babeldoc-0.7.0/babeldoc/rust_translation_service.py +128 -0
- babeldoc-0.7.0/babeldoc/rust_writer_service.py +135 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/generate_font_metadata.py +2 -7
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/italic_recognize_tool.py +2 -9
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/translator/translator.py +6 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/pyproject.toml +28 -6
- babeldoc-0.7.0/rust/Cargo.lock +1135 -0
- babeldoc-0.7.0/rust/Cargo.toml +17 -0
- babeldoc-0.7.0/rust/font_core/Cargo.lock +190 -0
- babeldoc-0.7.0/rust/font_core/Cargo.toml +16 -0
- babeldoc-0.7.0/rust/font_core/src/bin/font_core_probe.rs +196 -0
- babeldoc-0.7.0/rust/font_core/src/lib.rs +720 -0
- babeldoc-0.7.0/rust/font_core/src/missing_widths.bin +0 -0
- babeldoc-0.7.0/rust/font_core/src/pdf_font_flags.rs +150 -0
- babeldoc-0.7.0/rust/il_types/Cargo.toml +9 -0
- babeldoc-0.7.0/rust/il_types/build.rs +23 -0
- babeldoc-0.7.0/rust/il_types/src/lib.rs +256 -0
- babeldoc-0.7.0/rust/il_types/src/python_value.rs +217 -0
- babeldoc-0.7.0/rust/ir_core/Cargo.toml +14 -0
- babeldoc-0.7.0/rust/ir_core/build.rs +26 -0
- babeldoc-0.7.0/rust/ir_core/src/compact.rs +268 -0
- babeldoc-0.7.0/rust/ir_core/src/compact_values.rs +153 -0
- babeldoc-0.7.0/rust/ir_core/src/lib.rs +1205 -0
- babeldoc-0.7.0/rust/p2_bridge/Cargo.toml +32 -0
- babeldoc-0.7.0/rust/p2_bridge/build.rs +30 -0
- babeldoc-0.7.0/rust/p2_bridge/src/callbacks/mod.rs +285 -0
- babeldoc-0.7.0/rust/p2_bridge/src/callbacks/progress.rs +403 -0
- babeldoc-0.7.0/rust/p2_bridge/src/font_mapper.rs +143 -0
- babeldoc-0.7.0/rust/p2_bridge/src/formula_patterns.rs +97 -0
- babeldoc-0.7.0/rust/p2_bridge/src/layout_parser.rs +185 -0
- babeldoc-0.7.0/rust/p2_bridge/src/lib.rs +134 -0
- babeldoc-0.7.0/rust/p2_bridge/src/llm_only_translation.rs +952 -0
- babeldoc-0.7.0/rust/p2_bridge/src/logging.rs +363 -0
- babeldoc-0.7.0/rust/p2_bridge/src/m_transfer.rs +1080 -0
- babeldoc-0.7.0/rust/p2_bridge/src/ordinary_translation.rs +2017 -0
- babeldoc-0.7.0/rust/p2_bridge/src/parser.rs +362 -0
- babeldoc-0.7.0/rust/p2_bridge/src/priority_gate.rs +121 -0
- babeldoc-0.7.0/rust/p2_bridge/src/production_stages.rs +265 -0
- babeldoc-0.7.0/rust/p2_bridge/src/python_value.rs +144 -0
- babeldoc-0.7.0/rust/p2_bridge/src/run_context.rs +53 -0
- babeldoc-0.7.0/rust/p2_bridge/src/scan_detection.rs +292 -0
- babeldoc-0.7.0/rust/p2_bridge/src/shared_context.rs +250 -0
- babeldoc-0.7.0/rust/p2_bridge/src/stage_error.rs +53 -0
- babeldoc-0.7.0/rust/p2_bridge/src/term_extractor.rs +426 -0
- babeldoc-0.7.0/rust/p2_bridge/src/translation.rs +79 -0
- babeldoc-0.7.0/rust/p2_bridge/src/translation_service.rs +71 -0
- babeldoc-0.7.0/rust/p2_bridge/src/writer.rs +553 -0
- babeldoc-0.7.0/rust/p2_stages/Cargo.toml +17 -0
- babeldoc-0.7.0/rust/p2_stages/src/font_mapper.rs +160 -0
- babeldoc-0.7.0/rust/p2_stages/src/lib.rs +92 -0
- babeldoc-0.7.0/rust/p2_stages/src/runtime/config.rs +1 -0
- babeldoc-0.7.0/rust/p2_stages/src/runtime/context.rs +90 -0
- babeldoc-0.7.0/rust/p2_stages/src/runtime/mod.rs +9 -0
- babeldoc-0.7.0/rust/p2_stages/src/runtime/run_state.rs +1 -0
- babeldoc-0.7.0/rust/p2_stages/src/runtime/shared_context.rs +234 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/formula_helper.rs +342 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/formula_patterns.rs +4 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/layout_helper.rs +1056 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/mod.rs +3 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/style.rs +54 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/unicode.rs +158 -0
- babeldoc-0.7.0/rust/p2_stages/src/shared/unicode_data.rs +8232 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/add_debug_information.rs +263 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/cid_char.rs +68 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/detect_scanned_file.rs +233 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/layout_parser.rs +624 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/mod.rs +10 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/paragraph_finder.rs +995 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/paragraph_finder_inputs.rs +42 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/styles_and_formulas.rs +1190 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/styles_and_formulas_config.rs +89 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/tree_metrics.rs +111 -0
- babeldoc-0.7.0/rust/p2_stages/src/stages/typesetting.rs +1708 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/automatic_term_extractor.rs +397 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/glossary.rs +257 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/llm_only.rs +793 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/mod.rs +7 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/ordinary_translation.rs +800 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/paragraph_helpers.rs +192 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/python_semantics.rs +683 -0
- babeldoc-0.7.0/rust/p2_stages/src/translation/token_count.rs +20 -0
- babeldoc-0.7.0/rust/parser_core/.gitignore +5 -0
- babeldoc-0.7.0/rust/parser_core/Cargo.toml +23 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/LICENSE-ADOBE-AFM.txt +10 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/LICENSE-ADOBE-CMAPS.txt +28 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/LICENSE-ADOBE-GLYPHLIST.txt +29 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/base14.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78ms-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78ms-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/83pv-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/83pv-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90ms-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90ms-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90msp-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90msp-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90pv-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90pv-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5pc-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5pc-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS1-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS1-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS2-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS2-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETHK-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETHK-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETen-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETen-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETenms-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETenms-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK2K-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK2K-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBKp-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBKp-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBTpc-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBTpc-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBpc-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBpc-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdla-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdla-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdlb-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdlb-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKgccs-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKgccs-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm314-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm314-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm471-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm471-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKscs-B5-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKscs-B5-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hankaku-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hankaku-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hiragana-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hiragana-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-Johab-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-Johab-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-HW-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-HW-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCpc-EUC-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCpc-EUC-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Katakana-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Katakana-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/NWP-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/NWP-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/RKSJ-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/RKSJ-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Roman-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Roman-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UCS2-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UCS2-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF16-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF16-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF8-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF8-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UCS2-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UCS2-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF16-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF16-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF8-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF8-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-HW-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-HW-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF16-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF16-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF8-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF8-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF16-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF16-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF8-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF8-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX0213-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX0213-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX02132004-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX02132004-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UCS2-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UCS2-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF16-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF16-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF32-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF32-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF8-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF8-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/WP-Symbol-H.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/WP-Symbol-V.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-CNS1.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-GB1.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-Japan1.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-Korea1.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/font_tables.zst +0 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/fontmetrics.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/glyphlist.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/latin_enc.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/type1_encoding.json +1 -0
- babeldoc-0.7.0/rust/parser_core/assets/font_runtime/win_core.json +1 -0
- babeldoc-0.7.0/rust/parser_core/examples/object_numbers.rs +16 -0
- babeldoc-0.7.0/rust/parser_core/examples/probe_prepared_font.rs +16 -0
- babeldoc-0.7.0/rust/parser_core/src/expansion.rs +247 -0
- babeldoc-0.7.0/rust/parser_core/src/font_cmap_data.rs +229 -0
- babeldoc-0.7.0/rust/parser_core/src/fonts/maps.rs +173 -0
- babeldoc-0.7.0/rust/parser_core/src/fonts.rs +2860 -0
- babeldoc-0.7.0/rust/parser_core/src/lib.rs +1571 -0
- babeldoc-0.7.0/rust/parser_core/src/object_numbers.rs +425 -0
- babeldoc-0.7.0/rust/parser_core/src/page_access.rs +374 -0
- babeldoc-0.7.0/rust/parser_core/src/page_rank.rs +152 -0
- babeldoc-0.7.0/rust/parser_core/src/pool.rs +68 -0
- babeldoc-0.7.0/rust/parser_core/src/projection.rs +1400 -0
- babeldoc-0.7.0/rust/parser_core/src/tokens.rs +734 -0
- babeldoc-0.7.0/rust/parser_core/src/type3.rs +508 -0
- babeldoc-0.7.0/rust/parser_core/src/valid_categories.rs +710 -0
- babeldoc-0.7.0/rust/parser_core/src/valid_text.rs +82 -0
- babeldoc-0.7.0/rust/parser_core/tools/build_font_asset_bundle.py +61 -0
- babeldoc-0.7.0/rust/rtree_compat/Cargo.toml +7 -0
- babeldoc-0.7.0/rust/rtree_compat/src/lib.rs +408 -0
- babeldoc-0.7.0/rust/vendor/lopdf/.editorconfig +12 -0
- babeldoc-0.7.0/rust/vendor/lopdf/.gitattributes +9 -0
- babeldoc-0.7.0/rust/vendor/lopdf/.gitignore +10 -0
- babeldoc-0.7.0/rust/vendor/lopdf/BABELDOC_PATCH.md +12 -0
- babeldoc-0.7.0/rust/vendor/lopdf/CHANGELOG.md +1750 -0
- babeldoc-0.7.0/rust/vendor/lopdf/Cargo.toml +465 -0
- babeldoc-0.7.0/rust/vendor/lopdf/Cargo.toml.orig +107 -0
- babeldoc-0.7.0/rust/vendor/lopdf/LICENSE +21 -0
- babeldoc-0.7.0/rust/vendor/lopdf/README.md +862 -0
- babeldoc-0.7.0/rust/vendor/lopdf/rustfmt.toml +6 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/bookmarks.rs +156 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/cmap_section.rs +28 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/common_data_structures/mod.rs +106 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/content.rs +46 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/creator.rs +431 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/datetime.rs +381 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/destinations.rs +83 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/document.rs +976 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/cmap.rs +281 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/differences.rs +48 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/glyphnames.rs +3803 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/mappings.rs +1820 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/mod.rs +248 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/algorithms.rs +1577 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/crypt_filters.rs +275 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/pkcs5.rs +49 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/rc4.rs +66 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/encryption.rs +1048 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/error.rs +172 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/filters/mod.rs +1 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/filters/png.rs +170 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/font.rs +188 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/incremental_document.rs +132 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/lib.rs +62 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/load_options.rs +95 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/object.rs +1866 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/object_stream.rs +460 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/outlines.rs +168 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/parser/cmap_parser.rs +1163 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/parser/mod.rs +1385 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/parser_aux.rs +949 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/processor.rs +308 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/reader.rs +2313 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/reader_resource_v3_tests.rs +290 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/resource.rs +315 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/save_options.rs +83 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/stream_content.rs +130 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/toc.rs +222 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/writer.rs +834 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/xobject.rs +259 -0
- babeldoc-0.7.0/rust/vendor/lopdf/src/xref.rs +314 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/annotation.rs +100 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/brotli_decode.rs +92 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/catalog_compression_integration_test.rs +88 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/decompression_bomb.rs +318 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/decryption.rs +1604 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/document_load_performance.rs +40 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/encrypted_object_stream_test.rs +185 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/extract_test.rs +211 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/font_test.rs +35 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/incremental_document.rs +495 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/linearized_objstm_test.rs +131 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/load_options_test.rs +216 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/metadata_test.rs +335 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/modify.rs +168 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_comprehensive_test.rs +532 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_edge_cases_test.rs +186 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_methods_test.rs +482 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_performance_test.rs +166 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/page_content.rs +45 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/resource_compat_v2.rs +252 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/save_options_xref_streams_test.rs +128 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/simple_object_stream_test.rs +168 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/stream_length_recovery.rs +306 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/trailer_reference_compression_test.rs +360 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/unicode.rs +147 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/utils.rs +37 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/xref_reconstruction.rs +382 -0
- babeldoc-0.7.0/rust/vendor/lopdf/tests/xref_stream_bounds.rs +231 -0
- babeldoc-0.7.0/rust/writer_core/Cargo.toml +12 -0
- babeldoc-0.7.0/rust/writer_core/src/codecs.rs +81 -0
- babeldoc-0.7.0/rust/writer_core/src/content.rs +935 -0
- babeldoc-0.7.0/rust/writer_core/src/fonts.rs +597 -0
- babeldoc-0.7.0/rust/writer_core/src/lib.rs +55 -0
- babeldoc-0.7.0/rust/writer_core/src/pdf.rs +401 -0
- babeldoc-0.7.0/rust/writer_core/src/retry.rs +48 -0
- babeldoc-0.7.0/scripts/generate_il_rust.py +229 -0
- babeldoc-0.7.0/scripts/il_rust_m.py +867 -0
- babeldoc-0.7.0/scripts/il_rust_m_declarations.py +125 -0
- babeldoc-0.6.3/.github/ISSUE_TEMPLATE/bug_report.yaml +0 -108
- babeldoc-0.6.3/.github/ISSUE_TEMPLATE/feature_request.yaml +0 -60
- babeldoc-0.6.3/.github/PULL_REQUEST_TEMPLATE/pr_form.yml +0 -92
- babeldoc-0.6.3/.github/PULL_REQUEST_TEMPLATE.md +0 -65
- babeldoc-0.6.3/.github/dependabot.yml +0 -21
- babeldoc-0.6.3/.github/labels.yml +0 -66
- babeldoc-0.6.3/.github/release-drafter.yml +0 -42
- babeldoc-0.6.3/.github/workflows/checks.yml +0 -55
- babeldoc-0.6.3/.github/workflows/codeql.yml +0 -92
- babeldoc-0.6.3/.github/workflows/docs.yml +0 -34
- babeldoc-0.6.3/.github/workflows/labeler.yml +0 -36
- babeldoc-0.6.3/.github/workflows/lint.yml +0 -17
- babeldoc-0.6.3/.github/workflows/pr-lint.yml +0 -46
- babeldoc-0.6.3/.github/workflows/publish-to-pypi.yml +0 -177
- babeldoc-0.6.3/.gitignore +0 -52
- babeldoc-0.6.3/.pre-commit-config.yaml +0 -12
- babeldoc-0.6.3/babeldoc/__init__.py +0 -1
- babeldoc-0.6.3/babeldoc/format/pdf/awlt_char.py +0 -76
- babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/base14.py +0 -3336
- babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/type3.py +0 -159
- babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/utils.py +0 -22
- babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/win_core.py +0 -2618
- babeldoc-0.6.3/babeldoc/format/pdf/converter.py +0 -453
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/backend/pdf_creater.py +0 -1750
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/frontend/il_creater.py +0 -1450
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/frontend/il_creater_active.py +0 -1624
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/frontend/inline_image_params.py +0 -54
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/add_debug_information.py +0 -180
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/automatic_term_extractor.py +0 -419
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/detect_scanned_file.py +0 -174
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/il_translator.py +0 -1278
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/il_translator_llm_only.py +0 -998
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/layout_parser.py +0 -211
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/paragraph_finder.py +0 -1053
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/remove_descent.py +0 -168
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/styles_and_formulas.py +0 -1276
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/table_parser.py +0 -166
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/typesetting.py +0 -1672
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/layout_helper.py +0 -1013
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/matrix_helper.py +0 -335
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/mupdf_helper.py +0 -42
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/paragraph_helper.py +0 -94
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/spatial_analyzer.py +0 -158
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/style_helper.py +0 -94
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/type3_font_metrics.py +0 -55
- babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/zstd_helper.py +0 -21
- babeldoc-0.6.3/babeldoc/format/pdf/legacy_parse.py +0 -142
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/__init__.py +0 -1
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_direct_font_backend.py +0 -605
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_font_backend.py +0 -23
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_font_resource_runtime.py +0 -43
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_font_runtime.py +0 -116
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_object_backend.py +0 -14
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_object_projection.py +0 -191
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_parse_runtime.py +0 -27
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_value_access.py +0 -59
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/base_operations.py +0 -107
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/bridge_types.py +0 -154
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/compat/__init__.py +0 -1
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/font_spec_primitives.py +0 -45
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/font_types.py +0 -29
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/glyphs.py +0 -204
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/interpreter.py +0 -854
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/native_page_execution_session.py +0 -49
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/native_page_interpreter.py +0 -68
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/native_parse.py +0 -166
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/object_model.py +0 -37
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/object_parser.py +0 -135
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_api.py +0 -31
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_content_access.py +0 -27
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_content_execution.py +0 -23
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_execution_session.py +0 -53
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_interpreter.py +0 -13
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pdf_token_serializer.py +0 -202
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page.py +0 -79
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page_access.py +0 -42
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page_debug_access.py +0 -36
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page_execution.py +0 -31
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_resource_builder.py +0 -226
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_candidate_parse.py +0 -36
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_object_access.py +0 -161
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_page_execution_session.py +0 -7
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_page_view_access.py +0 -73
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_prepared_page_access.py +0 -38
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/raw_page_view.py +0 -27
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/resolved_object_access.py +0 -65
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/resource_runtime_types.py +0 -13
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/resources.py +0 -131
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/__init__.py +0 -1
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/_cmap_manifest_data.py +0 -603
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cid_cmap_runtime.py +0 -125
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cmap_secure_loader.py +0 -61
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cmap_types_runtime.py +0 -155
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cmapdb_runtime.py +0 -86
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78ms-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78ms-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/83pv-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/83pv-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90ms-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90ms-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90msp-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90msp-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90pv-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90pv-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5pc-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5pc-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS1-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS1-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS2-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS2-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETHK-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETHK-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETen-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETen-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETenms-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETenms-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK2K-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK2K-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBKp-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBKp-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBTpc-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBTpc-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBpc-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBpc-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdla-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdla-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdlb-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdlb-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKgccs-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKgccs-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm314-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm314-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm471-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm471-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKscs-B5-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKscs-B5-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hankaku-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hankaku-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hiragana-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hiragana-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-Johab-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-Johab-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-HW-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-HW-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCpc-EUC-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCpc-EUC-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Katakana-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Katakana-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/NWP-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/NWP-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/README.txt +0 -79
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/RKSJ-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/RKSJ-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Roman-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Roman-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UCS2-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UCS2-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF16-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF16-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF8-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF8-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UCS2-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UCS2-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF16-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF16-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF8-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF8-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-HW-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-HW-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF16-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF16-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF8-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF8-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF16-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF16-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF8-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF8-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX0213-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX0213-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX02132004-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX02132004-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UCS2-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UCS2-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF16-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF16-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF32-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF32-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF8-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF8-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/WP-Symbol-H.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/WP-Symbol-V.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-CNS1.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-GB1.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-Japan1.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-Korea1.pickle.gz +0 -0
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/fontmetrics.py +0 -4464
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/glyphlist.py +0 -4370
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/latin_enc.py +0 -244
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/exceptions_runtime.py +0 -18
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_data_runtime.py +0 -109
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_encoding_runtime.py +0 -117
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_unicode_maps.py +0 -21
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_widths.py +0 -55
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/object_primitives_runtime.py +0 -106
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/object_stream_runtime.py +0 -30
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/ps_primitives_runtime.py +0 -65
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/runtime_settings.py +0 -1
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/to_unicode_parser_runtime.py +0 -176
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/sinks/legacy_ir.py +0 -400
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/sinks/native_text.py +0 -259
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/state.py +0 -215
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/text_positioning.py +0 -104
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/tokenizer.py +0 -701
- babeldoc-0.6.3/babeldoc/format/pdf/new_parser/xobject_content_execution.py +0 -137
- babeldoc-0.6.3/babeldoc/format/pdf/parse_only.py +0 -120
- babeldoc-0.6.3/babeldoc/format/pdf/parse_shared.py +0 -63
- babeldoc-0.6.3/babeldoc/format/pdf/pdfinterp.py +0 -582
- babeldoc-0.6.3/babeldoc/pdfminer/LICENSE +0 -22
- babeldoc-0.6.3/babeldoc/pdfminer/__init__.py +0 -11
- babeldoc-0.6.3/babeldoc/pdfminer/_saslprep.py +0 -101
- babeldoc-0.6.3/babeldoc/pdfminer/arcfour.py +0 -35
- babeldoc-0.6.3/babeldoc/pdfminer/ascii85.py +0 -48
- babeldoc-0.6.3/babeldoc/pdfminer/casting.py +0 -92
- babeldoc-0.6.3/babeldoc/pdfminer/ccitt.py +0 -609
- babeldoc-0.6.3/babeldoc/pdfminer/cmapdb.py +0 -470
- babeldoc-0.6.3/babeldoc/pdfminer/converter.py +0 -1062
- babeldoc-0.6.3/babeldoc/pdfminer/data_structures.py +0 -55
- babeldoc-0.6.3/babeldoc/pdfminer/encodingdb.py +0 -127
- babeldoc-0.6.3/babeldoc/pdfminer/fontmetrics.py +0 -4464
- babeldoc-0.6.3/babeldoc/pdfminer/glyphlist.py +0 -4365
- babeldoc-0.6.3/babeldoc/pdfminer/high_level.py +0 -233
- babeldoc-0.6.3/babeldoc/pdfminer/image.py +0 -294
- babeldoc-0.6.3/babeldoc/pdfminer/jbig2.py +0 -377
- babeldoc-0.6.3/babeldoc/pdfminer/latin_enc.py +0 -244
- babeldoc-0.6.3/babeldoc/pdfminer/layout.py +0 -979
- babeldoc-0.6.3/babeldoc/pdfminer/lzw.py +0 -116
- babeldoc-0.6.3/babeldoc/pdfminer/pdfcolor.py +0 -36
- babeldoc-0.6.3/babeldoc/pdfminer/pdfdevice.py +0 -326
- babeldoc-0.6.3/babeldoc/pdfminer/pdfdocument.py +0 -1072
- babeldoc-0.6.3/babeldoc/pdfminer/pdfexceptions.py +0 -33
- babeldoc-0.6.3/babeldoc/pdfminer/pdffont.py +0 -1160
- babeldoc-0.6.3/babeldoc/pdfminer/pdfinterp.py +0 -1279
- babeldoc-0.6.3/babeldoc/pdfminer/pdfpage.py +0 -232
- babeldoc-0.6.3/babeldoc/pdfminer/pdfparser.py +0 -173
- babeldoc-0.6.3/babeldoc/pdfminer/pdftypes.py +0 -394
- babeldoc-0.6.3/babeldoc/pdfminer/psexceptions.py +0 -18
- babeldoc-0.6.3/babeldoc/pdfminer/psparser.py +0 -659
- babeldoc-0.6.3/babeldoc/pdfminer/py.typed +0 -0
- babeldoc-0.6.3/babeldoc/pdfminer/runlength.py +0 -36
- babeldoc-0.6.3/babeldoc/pdfminer/settings.py +0 -1
- babeldoc-0.6.3/babeldoc/pdfminer/utils.py +0 -799
- babeldoc-0.6.3/docs/CODE_OF_CONDUCT.md +0 -128
- babeldoc-0.6.3/docs/CONTRIBUTING.md +0 -211
- babeldoc-0.6.3/docs/CONTRIBUTOR_REWARD.md +0 -92
- babeldoc-0.6.3/docs/ImplementationDetails/AsyncTranslate/AsyncTranslate.md +0 -180
- babeldoc-0.6.3/docs/ImplementationDetails/ILTranslator/ILTranslator.md +0 -105
- babeldoc-0.6.3/docs/ImplementationDetails/PDFCreation/PDFCreation.md +0 -144
- babeldoc-0.6.3/docs/ImplementationDetails/PDFParsing/PDFParsing.md +0 -143
- babeldoc-0.6.3/docs/ImplementationDetails/ParagraphFinding/ParagraphFinding.md +0 -75
- babeldoc-0.6.3/docs/ImplementationDetails/README.md +0 -35
- babeldoc-0.6.3/docs/ImplementationDetails/StylesAndFormulas/StylesAndFormulas.md +0 -93
- babeldoc-0.6.3/docs/ImplementationDetails/Typesetting/Typesetting.md +0 -113
- babeldoc-0.6.3/docs/README.md +0 -8
- babeldoc-0.6.3/docs/deploy.sh +0 -47
- babeldoc-0.6.3/docs/example/demo_glossary.csv +0 -4
- babeldoc-0.6.3/docs/images/babeldoc-banner.png +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-big-logo-darkmode-with-transparent-background.png +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-big-logo-darkmode-with-transparent-background.svg +0 -16
- babeldoc-0.6.3/docs/images/babeldoc-big-logo-with-transparent-background.png +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-big-logo-with-transparent-background.svg +0 -16
- babeldoc-0.6.3/docs/images/babeldoc-big-logo.png +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-contributor_reward_example.png +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-preview.gif +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-small-logo-with-transparent-background.png +0 -0
- babeldoc-0.6.3/docs/images/babeldoc-small-logo-with-transparent-background.svg +0 -15
- babeldoc-0.6.3/docs/images/babeldoc-small-logo.png +0 -0
- babeldoc-0.6.3/docs/index.md +0 -2
- babeldoc-0.6.3/docs/intro-to-pdf-object.md +0 -148
- babeldoc-0.6.3/docs/release-notes/v0.6.0.md +0 -45
- babeldoc-0.6.3/docs/release-notes/v0.6.1.md +0 -39
- babeldoc-0.6.3/docs/release-notes/v0.6.2.md +0 -16
- babeldoc-0.6.3/docs/release-notes/v0.6.3.md +0 -80
- babeldoc-0.6.3/docs/requirements.txt +0 -4
- babeldoc-0.6.3/docs/supported_languages.md +0 -171
- babeldoc-0.6.3/mkdocs.yml +0 -156
- {babeldoc-0.6.3 → babeldoc-0.7.0}/LICENSE +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/assets/assets.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/assets/embedding_assets_metadata.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/asynchronize/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/babeldoc_exception/BabelDOCException.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/babeldoc_exception/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/README.md +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/base_doclayout.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout2.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout3.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout4.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout5.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout7.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/table_detection/rapidocr.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/babelpdf/cidfont.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/babelpdf/cmap.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/babelpdf/encoding.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/backend/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/frontend/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/frontend/il_creater_active_support.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.rnc +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.rng +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.xsd +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/midend/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/fontmap.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/formular_helper.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/xml_converter.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/result_merger.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/split_manager.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/progress_monitor.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/__main__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/babeldoc_adapter.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/protocol.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/runner.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/server.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/state.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/translator.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/watermark_transform.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/workroot.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/generate_cmap_metadata.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/italic_assistance.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/translator/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/translator/cache.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/__init__.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/atomic_integer.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/memory.py +0 -0
- {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/priority_thread_pool_executor.py +0 -0
|
@@ -1,58 +1,57 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: BabelDOC
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Yet Another Document Translator
|
|
5
|
-
Project-URL: Homepage, https://github.com/funstory-ai/BabelDOC
|
|
6
|
-
Project-URL: Issues, https://github.com/funstory-ai/BabelDOC/issues
|
|
7
|
-
Author-email: awwaawwa <aw@funstory.ai>
|
|
8
|
-
Maintainer-email: awwaawwa <aw@funstory.ai>
|
|
9
|
-
License-Expression: AGPL-3.0
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Keywords: PDF
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
3
|
+
Version: 0.7.0
|
|
13
4
|
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
|
|
15
|
-
Requires-Dist: bitstring>=4.3.0
|
|
16
|
-
Requires-Dist: chardet>=5.2.0
|
|
17
|
-
Requires-Dist: charset-normalizer>=2.0.0
|
|
5
|
+
Classifier: Operating System :: OS Independent
|
|
18
6
|
Requires-Dist: configargparse>=1.7
|
|
19
|
-
Requires-Dist: cryptography>=46.0.7
|
|
20
|
-
Requires-Dist: freetype-py>=2.5.1
|
|
21
7
|
Requires-Dist: httpx[socks]>=0.27.0
|
|
22
8
|
Requires-Dist: huggingface-hub>=0.27.0
|
|
23
|
-
Requires-Dist: hyperscan>=0.7.13
|
|
24
|
-
Requires-Dist: levenshtein>=0.27.1
|
|
25
|
-
Requires-Dist: msgpack>=1.1.0
|
|
26
9
|
Requires-Dist: numpy>=2.0.2
|
|
27
10
|
Requires-Dist: onnx>=1.21.0
|
|
28
|
-
Requires-Dist: onnxruntime
|
|
29
|
-
Requires-Dist: onnxruntime>=1.16.1;
|
|
11
|
+
Requires-Dist: onnxruntime>=1.16.1,<1.24 ; python_full_version < '3.11'
|
|
12
|
+
Requires-Dist: onnxruntime>=1.16.1 ; python_full_version >= '3.11'
|
|
30
13
|
Requires-Dist: openai>=1.59.3
|
|
31
|
-
Requires-Dist: opencv-python-headless>=4.10.0.84
|
|
32
14
|
Requires-Dist: orjson>=3.10.14
|
|
15
|
+
Requires-Dist: charset-normalizer>=2.0.0
|
|
16
|
+
Requires-Dist: cryptography>=46.0.7
|
|
33
17
|
Requires-Dist: peewee>=3.17.8
|
|
34
18
|
Requires-Dist: psutil>=7.0.0
|
|
19
|
+
Requires-Dist: pymupdf>=1.26.7,<2
|
|
20
|
+
Requires-Dist: rich>=13.9.4
|
|
21
|
+
Requires-Dist: toml>=0.10.2
|
|
22
|
+
Requires-Dist: tqdm>=4.67.1
|
|
23
|
+
Requires-Dist: xsdata[cli,lxml,soap]>=24.12
|
|
24
|
+
Requires-Dist: msgpack>=1.1.0
|
|
35
25
|
Requires-Dist: pydantic>=2.10.6
|
|
36
|
-
Requires-Dist:
|
|
26
|
+
Requires-Dist: tenacity>=9.0.0
|
|
27
|
+
Requires-Dist: scikit-image>=0.25.2
|
|
28
|
+
Requires-Dist: freetype-py>=2.5.1
|
|
29
|
+
Requires-Dist: tiktoken>=0.9.0
|
|
30
|
+
Requires-Dist: levenshtein>=0.27.1
|
|
31
|
+
Requires-Dist: opencv-python-headless>=4.10.0.84
|
|
37
32
|
Requires-Dist: pyzstd>=0.17.0
|
|
38
|
-
Requires-Dist:
|
|
33
|
+
Requires-Dist: hyperscan>=0.7.13
|
|
39
34
|
Requires-Dist: rtree>=1.4.0
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist: scikit-learn>=1.7.1
|
|
35
|
+
Requires-Dist: chardet>=5.2.0
|
|
42
36
|
Requires-Dist: scipy>=1.15.3
|
|
43
|
-
Requires-Dist: tenacity>=9.0.0
|
|
44
|
-
Requires-Dist: tiktoken>=0.9.0
|
|
45
|
-
Requires-Dist: toml>=0.10.2
|
|
46
|
-
Requires-Dist: tqdm>=4.67.1
|
|
47
37
|
Requires-Dist: uharfbuzz>=0.50.2
|
|
48
|
-
Requires-Dist:
|
|
38
|
+
Requires-Dist: scikit-learn>=1.7.1
|
|
39
|
+
Requires-Dist: onnxruntime-gpu>=1.16.1 ; extra == 'cuda'
|
|
40
|
+
Requires-Dist: onnxruntime-directml>=1.16.1 ; extra == 'directml'
|
|
41
|
+
Requires-Dist: memray>=1.17.1 ; extra == 'memray'
|
|
49
42
|
Provides-Extra: cuda
|
|
50
|
-
Requires-Dist: onnxruntime-gpu>=1.16.1; extra == 'cuda'
|
|
51
43
|
Provides-Extra: directml
|
|
52
|
-
Requires-Dist: onnxruntime-directml>=1.16.1; extra == 'directml'
|
|
53
44
|
Provides-Extra: memray
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
License-File: LICENSE
|
|
46
|
+
Summary: Yet Another Document Translator
|
|
47
|
+
Keywords: PDF
|
|
48
|
+
Author-email: awwaawwa <aw@funstory.ai>
|
|
49
|
+
Maintainer-email: awwaawwa <aw@funstory.ai>
|
|
50
|
+
License-Expression: AGPL-3.0
|
|
51
|
+
Requires-Python: >=3.10, <3.14
|
|
52
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
53
|
+
Project-URL: Homepage, https://github.com/funstory-ai/BabelDOC
|
|
54
|
+
Project-URL: Issues, https://github.com/funstory-ai/BabelDOC/issues
|
|
56
55
|
|
|
57
56
|
<div align="center">
|
|
58
57
|
|
|
@@ -204,9 +203,9 @@ uv run babeldoc --files example.pdf --files example2.pdf --openai --openai-model
|
|
|
204
203
|
- `--disable-rich-text-translate`: Disable rich text translation (may help improve compatibility with some PDFs)
|
|
205
204
|
- `--enhance-compatibility`: Enable all compatibility enhancement options (equivalent to --skip-clean --dual-translate-first --disable-rich-text-translate)
|
|
206
205
|
- `--use-alternating-pages-dual`: Use alternating pages mode for dual PDF. When enabled, original and translated pages are arranged in alternate order. When disabled (default), original and translated pages are shown side by side on the same page.
|
|
207
|
-
- `--watermark-output-mode`:
|
|
206
|
+
- `--watermark-output-mode`: [DEPRECATED] Watermarks are no longer added; this option still controls output file names and count.
|
|
208
207
|
- `--max-pages-per-part`: Maximum number of pages per part for split translation. If not set, no splitting will be performed.
|
|
209
|
-
- `--no-watermark`: [DEPRECATED]
|
|
208
|
+
- `--no-watermark`: [DEPRECATED] Watermarks are no longer added; this option still affects output file names and count.
|
|
210
209
|
- `--translate-table-text`: Translate table text (experimental, default: False)
|
|
211
210
|
- `--formular-font-pattern`: Font pattern to identify formula text (default: None)
|
|
212
211
|
- `--formular-char-pattern`: Character pattern to identify formula text (default: None)
|
|
@@ -333,10 +332,10 @@ skip-clean = false
|
|
|
333
332
|
dual-translate-first = false
|
|
334
333
|
disable-rich-text-translate = false
|
|
335
334
|
use-alternating-pages-dual = false
|
|
336
|
-
watermark-output-mode = "watermarked" #
|
|
335
|
+
watermark-output-mode = "watermarked" # DEPRECATED: No watermark is added; this still controls output file names and count.
|
|
337
336
|
max-pages-per-part = 50 # Automatically split the document for translation and merge it back.
|
|
338
337
|
only_include_translated_page = false # Only include translated pages in the output PDF. Effective only when `pages` is used.
|
|
339
|
-
# no-watermark = false # DEPRECATED:
|
|
338
|
+
# no-watermark = false # DEPRECATED: No watermark is added; this still affects output file names and count.
|
|
340
339
|
skip-scanned-detection = false # Skip scanned document detection for faster processing
|
|
341
340
|
auto_extract_glossary = true # Set to false to disable automatic term extraction
|
|
342
341
|
formular_font_pattern = "" # Font pattern for formula text
|
|
@@ -379,7 +378,7 @@ report-interval = 0.5
|
|
|
379
378
|
|
|
380
379
|
## Python API
|
|
381
380
|
|
|
382
|
-
The current recommended way to call BabelDOC in Python is to call the `high_level.do_translate_async_stream` function of [pdf2zh next](https://
|
|
381
|
+
The current recommended way to call BabelDOC in Python is to call the `high_level.do_translate_async_stream` function of [pdf2zh next](https://pdf2zh-next.com/).
|
|
383
382
|
|
|
384
383
|
> [!WARNING]
|
|
385
384
|
> **All APIs of BabelDOC should be considered as internal APIs, and any direct use of BabelDOC is not supported.**
|
|
@@ -439,7 +438,7 @@ This project uses a combination of [Semantic Versioning](https://semver.org/) an
|
|
|
439
438
|
|
|
440
439
|
> [!NOTE]
|
|
441
440
|
>
|
|
442
|
-
> The API compatibility here mainly refers to the compatibility with [pdf2zh_next](https://
|
|
441
|
+
> The API compatibility here mainly refers to the compatibility with [pdf2zh_next](https://pdf2zh-next.com/).
|
|
443
442
|
|
|
444
443
|
|
|
445
444
|
- MAJOR: Incremented by 1 when API incompatible changes are made or when proud improvements are implemented.
|
|
@@ -500,3 +499,4 @@ step by step.
|
|
|
500
499
|
> * If the document is identified as heavily scanned (e.g., >80% scanned pages) AND `auto_enable_ocr_workaround` is `true` (i.e., `translation_config.auto_enable_ocr_workaround` is true), the system will then attempt to set both `ocr_workaround` to `true` and `skip_scanned_detection` to `true`.
|
|
501
500
|
>
|
|
502
501
|
> This means that `--auto-enable-ocr-workaround` effectively gives the system control to enable OCR processing for scanned documents, potentially overriding manual settings for `--ocr-workaround` and `--skip_scanned_detection` based on its detection results. If the document is *not* detected as heavily scanned, then the initial `false` values for `ocr_workaround` and `skip_scanned_detection` (forced by `--auto-enable-ocr-workaround` at the `TranslationConfig` initialization stage) will remain in effect unless changed by other logic.
|
|
502
|
+
|
|
@@ -148,9 +148,9 @@ uv run babeldoc --files example.pdf --files example2.pdf --openai --openai-model
|
|
|
148
148
|
- `--disable-rich-text-translate`: Disable rich text translation (may help improve compatibility with some PDFs)
|
|
149
149
|
- `--enhance-compatibility`: Enable all compatibility enhancement options (equivalent to --skip-clean --dual-translate-first --disable-rich-text-translate)
|
|
150
150
|
- `--use-alternating-pages-dual`: Use alternating pages mode for dual PDF. When enabled, original and translated pages are arranged in alternate order. When disabled (default), original and translated pages are shown side by side on the same page.
|
|
151
|
-
- `--watermark-output-mode`:
|
|
151
|
+
- `--watermark-output-mode`: [DEPRECATED] Watermarks are no longer added; this option still controls output file names and count.
|
|
152
152
|
- `--max-pages-per-part`: Maximum number of pages per part for split translation. If not set, no splitting will be performed.
|
|
153
|
-
- `--no-watermark`: [DEPRECATED]
|
|
153
|
+
- `--no-watermark`: [DEPRECATED] Watermarks are no longer added; this option still affects output file names and count.
|
|
154
154
|
- `--translate-table-text`: Translate table text (experimental, default: False)
|
|
155
155
|
- `--formular-font-pattern`: Font pattern to identify formula text (default: None)
|
|
156
156
|
- `--formular-char-pattern`: Character pattern to identify formula text (default: None)
|
|
@@ -277,10 +277,10 @@ skip-clean = false
|
|
|
277
277
|
dual-translate-first = false
|
|
278
278
|
disable-rich-text-translate = false
|
|
279
279
|
use-alternating-pages-dual = false
|
|
280
|
-
watermark-output-mode = "watermarked" #
|
|
280
|
+
watermark-output-mode = "watermarked" # DEPRECATED: No watermark is added; this still controls output file names and count.
|
|
281
281
|
max-pages-per-part = 50 # Automatically split the document for translation and merge it back.
|
|
282
282
|
only_include_translated_page = false # Only include translated pages in the output PDF. Effective only when `pages` is used.
|
|
283
|
-
# no-watermark = false # DEPRECATED:
|
|
283
|
+
# no-watermark = false # DEPRECATED: No watermark is added; this still affects output file names and count.
|
|
284
284
|
skip-scanned-detection = false # Skip scanned document detection for faster processing
|
|
285
285
|
auto_extract_glossary = true # Set to false to disable automatic term extraction
|
|
286
286
|
formular_font_pattern = "" # Font pattern for formula text
|
|
@@ -323,7 +323,7 @@ report-interval = 0.5
|
|
|
323
323
|
|
|
324
324
|
## Python API
|
|
325
325
|
|
|
326
|
-
The current recommended way to call BabelDOC in Python is to call the `high_level.do_translate_async_stream` function of [pdf2zh next](https://
|
|
326
|
+
The current recommended way to call BabelDOC in Python is to call the `high_level.do_translate_async_stream` function of [pdf2zh next](https://pdf2zh-next.com/).
|
|
327
327
|
|
|
328
328
|
> [!WARNING]
|
|
329
329
|
> **All APIs of BabelDOC should be considered as internal APIs, and any direct use of BabelDOC is not supported.**
|
|
@@ -383,7 +383,7 @@ This project uses a combination of [Semantic Versioning](https://semver.org/) an
|
|
|
383
383
|
|
|
384
384
|
> [!NOTE]
|
|
385
385
|
>
|
|
386
|
-
> The API compatibility here mainly refers to the compatibility with [pdf2zh_next](https://
|
|
386
|
+
> The API compatibility here mainly refers to the compatibility with [pdf2zh_next](https://pdf2zh-next.com/).
|
|
387
387
|
|
|
388
388
|
|
|
389
389
|
- MAJOR: Incremented by 1 when API incompatible changes are made or when proud improvements are implemented.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.7.0"
|
|
@@ -10,7 +10,8 @@ import numpy as np
|
|
|
10
10
|
|
|
11
11
|
from babeldoc.docvision.base_doclayout import DocLayoutModel
|
|
12
12
|
from babeldoc.docvision.base_doclayout import YoloResult
|
|
13
|
-
from babeldoc.format.pdf.document_il.utils.
|
|
13
|
+
from babeldoc.format.pdf.document_il.utils.raster_geometry import RasterGeometry
|
|
14
|
+
from babeldoc.format.pdf.document_il.utils.raster_geometry import with_target_long_edge
|
|
14
15
|
|
|
15
16
|
try:
|
|
16
17
|
import onnx
|
|
@@ -178,7 +179,14 @@ class OnnxModel(DocLayoutModel):
|
|
|
178
179
|
boxes[..., :4] = (boxes[..., :4] - [pad_x, pad_y, pad_x, pad_y]) / gain
|
|
179
180
|
return boxes
|
|
180
181
|
|
|
181
|
-
def predict(
|
|
182
|
+
def predict(
|
|
183
|
+
self,
|
|
184
|
+
image,
|
|
185
|
+
imgsz=800,
|
|
186
|
+
batch_size=16,
|
|
187
|
+
geometry: RasterGeometry | None = None,
|
|
188
|
+
**kwargs,
|
|
189
|
+
):
|
|
182
190
|
"""
|
|
183
191
|
Predict the layout of document pages.
|
|
184
192
|
|
|
@@ -237,6 +245,13 @@ class OnnxModel(DocLayoutModel):
|
|
|
237
245
|
preds[..., :4],
|
|
238
246
|
orig_shapes[j],
|
|
239
247
|
)
|
|
248
|
+
if geometry is not None:
|
|
249
|
+
preds[..., [0, 2]] = geometry.px_len_to_pt(
|
|
250
|
+
preds[..., [0, 2]], "x"
|
|
251
|
+
)
|
|
252
|
+
preds[..., [1, 3]] = geometry.px_len_to_pt(
|
|
253
|
+
preds[..., [1, 3]], "y"
|
|
254
|
+
)
|
|
240
255
|
results.append(YoloResult(boxes_data=preds, names=self._names))
|
|
241
256
|
|
|
242
257
|
return results
|
|
@@ -253,14 +268,14 @@ class OnnxModel(DocLayoutModel):
|
|
|
253
268
|
for page in pages:
|
|
254
269
|
translate_config.raise_if_cancelled()
|
|
255
270
|
with self.lock:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
predict_result = self.predict(image)[0]
|
|
271
|
+
geometry = with_target_long_edge(
|
|
272
|
+
mupdf_doc[page.page_number],
|
|
273
|
+
72,
|
|
274
|
+
self._FIXED_IMGSZ,
|
|
275
|
+
normalize_rotation=True,
|
|
276
|
+
)
|
|
277
|
+
image = geometry.image[:, :, ::-1]
|
|
278
|
+
predict_result = self.predict(image, geometry=geometry)[0]
|
|
264
279
|
save_debug_image(
|
|
265
280
|
image,
|
|
266
281
|
predict_result,
|
|
@@ -17,7 +17,8 @@ import babeldoc
|
|
|
17
17
|
from babeldoc.docvision.base_doclayout import DocLayoutModel
|
|
18
18
|
from babeldoc.docvision.base_doclayout import YoloBox
|
|
19
19
|
from babeldoc.docvision.base_doclayout import YoloResult
|
|
20
|
-
from babeldoc.format.pdf.document_il.utils.
|
|
20
|
+
from babeldoc.format.pdf.document_il.utils.raster_geometry import RasterGeometry
|
|
21
|
+
from babeldoc.format.pdf.document_il.utils.raster_geometry import with_target_long_edge
|
|
21
22
|
|
|
22
23
|
logger = logging.getLogger(__name__)
|
|
23
24
|
|
|
@@ -209,6 +210,7 @@ class RpcDocLayoutModel(DocLayoutModel):
|
|
|
209
210
|
host: str = None,
|
|
210
211
|
result_container: ResultContainer | None = None,
|
|
211
212
|
imgsz: int = 1024,
|
|
213
|
+
geometry: RasterGeometry | None = None,
|
|
212
214
|
) -> ResultContainer:
|
|
213
215
|
"""Predict the layout of document pages using RPC service."""
|
|
214
216
|
if result_container is None:
|
|
@@ -232,6 +234,10 @@ class RpcDocLayoutModel(DocLayoutModel):
|
|
|
232
234
|
)
|
|
233
235
|
for x in pred["boxes"]
|
|
234
236
|
]
|
|
237
|
+
if geometry is not None:
|
|
238
|
+
for box in boxes:
|
|
239
|
+
box.xyxy[[0, 2]] = geometry.px_len_to_pt(box.xyxy[[0, 2]], "x")
|
|
240
|
+
box.xyxy[[1, 3]] = geometry.px_len_to_pt(box.xyxy[[1, 3]], "y")
|
|
235
241
|
result_container.result = YoloResult(
|
|
236
242
|
boxes=boxes,
|
|
237
243
|
names={int(k): v for k, v in pred["names"].items()},
|
|
@@ -244,11 +250,17 @@ class RpcDocLayoutModel(DocLayoutModel):
|
|
|
244
250
|
if isinstance(image, np.ndarray) and len(image.shape) == 3:
|
|
245
251
|
image = [image]
|
|
246
252
|
|
|
253
|
+
geometry = kwargs.get("geometry")
|
|
247
254
|
result_containers = [ResultContainer() for _ in image]
|
|
248
255
|
predict_thread = ThreadPoolExecutor(max_workers=len(image))
|
|
249
256
|
for img, result_container in zip(image, result_containers, strict=True):
|
|
250
257
|
predict_thread.submit(
|
|
251
|
-
self.predict_image,
|
|
258
|
+
self.predict_image,
|
|
259
|
+
img,
|
|
260
|
+
self.host,
|
|
261
|
+
result_container,
|
|
262
|
+
800,
|
|
263
|
+
geometry,
|
|
252
264
|
)
|
|
253
265
|
predict_thread.shutdown(wait=True)
|
|
254
266
|
result = [result_container.result for result_container in result_containers]
|
|
@@ -259,14 +271,20 @@ class RpcDocLayoutModel(DocLayoutModel):
|
|
|
259
271
|
):
|
|
260
272
|
translate_config.raise_if_cancelled()
|
|
261
273
|
with self.lock:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
predict_result = self.predict_image(
|
|
274
|
+
geometry = with_target_long_edge(
|
|
275
|
+
mupdf_doc[page.page_number],
|
|
276
|
+
72,
|
|
277
|
+
800,
|
|
278
|
+
normalize_rotation=True,
|
|
279
|
+
)
|
|
280
|
+
image = geometry.image[:, :, ::-1]
|
|
281
|
+
predict_result = self.predict_image(
|
|
282
|
+
image,
|
|
283
|
+
self.host,
|
|
284
|
+
None,
|
|
285
|
+
800,
|
|
286
|
+
geometry,
|
|
287
|
+
)
|
|
270
288
|
save_debug_image(image, predict_result, page.page_number + 1)
|
|
271
289
|
return page, predict_result
|
|
272
290
|
|