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.
Files changed (761) hide show
  1. {babeldoc-0.6.3 → babeldoc-0.7.0}/PKG-INFO +41 -41
  2. {babeldoc-0.6.3 → babeldoc-0.7.0}/README.md +6 -6
  3. babeldoc-0.7.0/babeldoc/__init__.py +1 -0
  4. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/const.py +1 -1
  5. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/doclayout.py +25 -10
  6. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout.py +28 -10
  7. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout6.py +135 -103
  8. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout8.py +32 -28
  9. babeldoc-0.7.0/babeldoc/format/pdf/document_il/backend/pdf_creater.py +700 -0
  10. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.py +18 -0
  11. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/extract_char.py +2 -4
  12. babeldoc-0.7.0/babeldoc/format/pdf/document_il/utils/layout_helper.py +15 -0
  13. babeldoc-0.7.0/babeldoc/format/pdf/document_il/utils/mupdf_helper.py +77 -0
  14. babeldoc-0.7.0/babeldoc/format/pdf/document_il/utils/raster_geometry.py +256 -0
  15. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/high_level.py +414 -317
  16. babeldoc-0.7.0/babeldoc/format/pdf/parser_errors.py +14 -0
  17. babeldoc-0.7.0/babeldoc/format/pdf/parser_resource.py +50 -0
  18. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/translation_config.py +46 -3
  19. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/glossary.py +38 -9
  20. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/main.py +31 -3
  21. babeldoc-0.7.0/babeldoc/rust_callback_bridge.py +78 -0
  22. babeldoc-0.7.0/babeldoc/rust_debug_service.py +122 -0
  23. babeldoc-0.7.0/babeldoc/rust_layout_service.py +242 -0
  24. babeldoc-0.7.0/babeldoc/rust_parser_service.py +101 -0
  25. babeldoc-0.7.0/babeldoc/rust_run_context.py +126 -0
  26. babeldoc-0.7.0/babeldoc/rust_scan_service.py +103 -0
  27. babeldoc-0.7.0/babeldoc/rust_translation_service.py +128 -0
  28. babeldoc-0.7.0/babeldoc/rust_writer_service.py +135 -0
  29. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/generate_font_metadata.py +2 -7
  30. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/italic_recognize_tool.py +2 -9
  31. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/translator/translator.py +6 -0
  32. {babeldoc-0.6.3 → babeldoc-0.7.0}/pyproject.toml +28 -6
  33. babeldoc-0.7.0/rust/Cargo.lock +1135 -0
  34. babeldoc-0.7.0/rust/Cargo.toml +17 -0
  35. babeldoc-0.7.0/rust/font_core/Cargo.lock +190 -0
  36. babeldoc-0.7.0/rust/font_core/Cargo.toml +16 -0
  37. babeldoc-0.7.0/rust/font_core/src/bin/font_core_probe.rs +196 -0
  38. babeldoc-0.7.0/rust/font_core/src/lib.rs +720 -0
  39. babeldoc-0.7.0/rust/font_core/src/missing_widths.bin +0 -0
  40. babeldoc-0.7.0/rust/font_core/src/pdf_font_flags.rs +150 -0
  41. babeldoc-0.7.0/rust/il_types/Cargo.toml +9 -0
  42. babeldoc-0.7.0/rust/il_types/build.rs +23 -0
  43. babeldoc-0.7.0/rust/il_types/src/lib.rs +256 -0
  44. babeldoc-0.7.0/rust/il_types/src/python_value.rs +217 -0
  45. babeldoc-0.7.0/rust/ir_core/Cargo.toml +14 -0
  46. babeldoc-0.7.0/rust/ir_core/build.rs +26 -0
  47. babeldoc-0.7.0/rust/ir_core/src/compact.rs +268 -0
  48. babeldoc-0.7.0/rust/ir_core/src/compact_values.rs +153 -0
  49. babeldoc-0.7.0/rust/ir_core/src/lib.rs +1205 -0
  50. babeldoc-0.7.0/rust/p2_bridge/Cargo.toml +32 -0
  51. babeldoc-0.7.0/rust/p2_bridge/build.rs +30 -0
  52. babeldoc-0.7.0/rust/p2_bridge/src/callbacks/mod.rs +285 -0
  53. babeldoc-0.7.0/rust/p2_bridge/src/callbacks/progress.rs +403 -0
  54. babeldoc-0.7.0/rust/p2_bridge/src/font_mapper.rs +143 -0
  55. babeldoc-0.7.0/rust/p2_bridge/src/formula_patterns.rs +97 -0
  56. babeldoc-0.7.0/rust/p2_bridge/src/layout_parser.rs +185 -0
  57. babeldoc-0.7.0/rust/p2_bridge/src/lib.rs +134 -0
  58. babeldoc-0.7.0/rust/p2_bridge/src/llm_only_translation.rs +952 -0
  59. babeldoc-0.7.0/rust/p2_bridge/src/logging.rs +363 -0
  60. babeldoc-0.7.0/rust/p2_bridge/src/m_transfer.rs +1080 -0
  61. babeldoc-0.7.0/rust/p2_bridge/src/ordinary_translation.rs +2017 -0
  62. babeldoc-0.7.0/rust/p2_bridge/src/parser.rs +362 -0
  63. babeldoc-0.7.0/rust/p2_bridge/src/priority_gate.rs +121 -0
  64. babeldoc-0.7.0/rust/p2_bridge/src/production_stages.rs +265 -0
  65. babeldoc-0.7.0/rust/p2_bridge/src/python_value.rs +144 -0
  66. babeldoc-0.7.0/rust/p2_bridge/src/run_context.rs +53 -0
  67. babeldoc-0.7.0/rust/p2_bridge/src/scan_detection.rs +292 -0
  68. babeldoc-0.7.0/rust/p2_bridge/src/shared_context.rs +250 -0
  69. babeldoc-0.7.0/rust/p2_bridge/src/stage_error.rs +53 -0
  70. babeldoc-0.7.0/rust/p2_bridge/src/term_extractor.rs +426 -0
  71. babeldoc-0.7.0/rust/p2_bridge/src/translation.rs +79 -0
  72. babeldoc-0.7.0/rust/p2_bridge/src/translation_service.rs +71 -0
  73. babeldoc-0.7.0/rust/p2_bridge/src/writer.rs +553 -0
  74. babeldoc-0.7.0/rust/p2_stages/Cargo.toml +17 -0
  75. babeldoc-0.7.0/rust/p2_stages/src/font_mapper.rs +160 -0
  76. babeldoc-0.7.0/rust/p2_stages/src/lib.rs +92 -0
  77. babeldoc-0.7.0/rust/p2_stages/src/runtime/config.rs +1 -0
  78. babeldoc-0.7.0/rust/p2_stages/src/runtime/context.rs +90 -0
  79. babeldoc-0.7.0/rust/p2_stages/src/runtime/mod.rs +9 -0
  80. babeldoc-0.7.0/rust/p2_stages/src/runtime/run_state.rs +1 -0
  81. babeldoc-0.7.0/rust/p2_stages/src/runtime/shared_context.rs +234 -0
  82. babeldoc-0.7.0/rust/p2_stages/src/shared/formula_helper.rs +342 -0
  83. babeldoc-0.7.0/rust/p2_stages/src/shared/formula_patterns.rs +4 -0
  84. babeldoc-0.7.0/rust/p2_stages/src/shared/layout_helper.rs +1056 -0
  85. babeldoc-0.7.0/rust/p2_stages/src/shared/mod.rs +3 -0
  86. babeldoc-0.7.0/rust/p2_stages/src/shared/style.rs +54 -0
  87. babeldoc-0.7.0/rust/p2_stages/src/shared/unicode.rs +158 -0
  88. babeldoc-0.7.0/rust/p2_stages/src/shared/unicode_data.rs +8232 -0
  89. babeldoc-0.7.0/rust/p2_stages/src/stages/add_debug_information.rs +263 -0
  90. babeldoc-0.7.0/rust/p2_stages/src/stages/cid_char.rs +68 -0
  91. babeldoc-0.7.0/rust/p2_stages/src/stages/detect_scanned_file.rs +233 -0
  92. babeldoc-0.7.0/rust/p2_stages/src/stages/layout_parser.rs +624 -0
  93. babeldoc-0.7.0/rust/p2_stages/src/stages/mod.rs +10 -0
  94. babeldoc-0.7.0/rust/p2_stages/src/stages/paragraph_finder.rs +995 -0
  95. babeldoc-0.7.0/rust/p2_stages/src/stages/paragraph_finder_inputs.rs +42 -0
  96. babeldoc-0.7.0/rust/p2_stages/src/stages/styles_and_formulas.rs +1190 -0
  97. babeldoc-0.7.0/rust/p2_stages/src/stages/styles_and_formulas_config.rs +89 -0
  98. babeldoc-0.7.0/rust/p2_stages/src/stages/tree_metrics.rs +111 -0
  99. babeldoc-0.7.0/rust/p2_stages/src/stages/typesetting.rs +1708 -0
  100. babeldoc-0.7.0/rust/p2_stages/src/translation/automatic_term_extractor.rs +397 -0
  101. babeldoc-0.7.0/rust/p2_stages/src/translation/glossary.rs +257 -0
  102. babeldoc-0.7.0/rust/p2_stages/src/translation/llm_only.rs +793 -0
  103. babeldoc-0.7.0/rust/p2_stages/src/translation/mod.rs +7 -0
  104. babeldoc-0.7.0/rust/p2_stages/src/translation/ordinary_translation.rs +800 -0
  105. babeldoc-0.7.0/rust/p2_stages/src/translation/paragraph_helpers.rs +192 -0
  106. babeldoc-0.7.0/rust/p2_stages/src/translation/python_semantics.rs +683 -0
  107. babeldoc-0.7.0/rust/p2_stages/src/translation/token_count.rs +20 -0
  108. babeldoc-0.7.0/rust/parser_core/.gitignore +5 -0
  109. babeldoc-0.7.0/rust/parser_core/Cargo.toml +23 -0
  110. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/LICENSE-ADOBE-AFM.txt +10 -0
  111. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/LICENSE-ADOBE-CMAPS.txt +28 -0
  112. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/LICENSE-ADOBE-GLYPHLIST.txt +29 -0
  113. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/base14.json +1 -0
  114. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-EUC-H.json +1 -0
  115. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-EUC-V.json +1 -0
  116. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-H.json +1 -0
  117. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-RKSJ-H.json +1 -0
  118. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-RKSJ-V.json +1 -0
  119. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78-V.json +1 -0
  120. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78ms-RKSJ-H.json +1 -0
  121. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/78ms-RKSJ-V.json +1 -0
  122. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/83pv-RKSJ-H.json +1 -0
  123. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/83pv-RKSJ-V.json +1 -0
  124. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90ms-RKSJ-H.json +1 -0
  125. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90ms-RKSJ-V.json +1 -0
  126. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90msp-RKSJ-H.json +1 -0
  127. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90msp-RKSJ-V.json +1 -0
  128. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90pv-RKSJ-H.json +1 -0
  129. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/90pv-RKSJ-V.json +1 -0
  130. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-H.json +1 -0
  131. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-RKSJ-H.json +1 -0
  132. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-RKSJ-V.json +1 -0
  133. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Add-V.json +1 -0
  134. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5-H.json +1 -0
  135. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5-V.json +1 -0
  136. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5pc-H.json +1 -0
  137. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/B5pc-V.json +1 -0
  138. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS-EUC-H.json +1 -0
  139. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS-EUC-V.json +1 -0
  140. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS1-H.json +1 -0
  141. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS1-V.json +1 -0
  142. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS2-H.json +1 -0
  143. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/CNS2-V.json +1 -0
  144. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETHK-B5-H.json +1 -0
  145. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETHK-B5-V.json +1 -0
  146. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETen-B5-H.json +1 -0
  147. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETen-B5-V.json +1 -0
  148. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETenms-B5-H.json +1 -0
  149. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/ETenms-B5-V.json +1 -0
  150. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/EUC-H.json +1 -0
  151. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/EUC-V.json +1 -0
  152. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-H.json +1 -0
  153. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-RKSJ-H.json +1 -0
  154. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-RKSJ-V.json +1 -0
  155. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Ext-V.json +1 -0
  156. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-EUC-H.json +1 -0
  157. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-EUC-V.json +1 -0
  158. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-H.json +1 -0
  159. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GB-V.json +1 -0
  160. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK-EUC-H.json +1 -0
  161. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK-EUC-V.json +1 -0
  162. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK2K-H.json +1 -0
  163. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBK2K-V.json +1 -0
  164. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBKp-EUC-H.json +1 -0
  165. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBKp-EUC-V.json +1 -0
  166. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-EUC-H.json +1 -0
  167. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-EUC-V.json +1 -0
  168. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-H.json +1 -0
  169. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBT-V.json +1 -0
  170. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBTpc-EUC-H.json +1 -0
  171. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBTpc-EUC-V.json +1 -0
  172. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBpc-EUC-H.json +1 -0
  173. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/GBpc-EUC-V.json +1 -0
  174. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/H.json +1 -0
  175. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdla-B5-H.json +1 -0
  176. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdla-B5-V.json +1 -0
  177. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdlb-B5-H.json +1 -0
  178. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKdlb-B5-V.json +1 -0
  179. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKgccs-B5-H.json +1 -0
  180. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKgccs-B5-V.json +1 -0
  181. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm314-B5-H.json +1 -0
  182. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm314-B5-V.json +1 -0
  183. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm471-B5-H.json +1 -0
  184. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKm471-B5-V.json +1 -0
  185. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKscs-B5-H.json +1 -0
  186. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/HKscs-B5-V.json +1 -0
  187. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hankaku-H.json +1 -0
  188. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hankaku-V.json +1 -0
  189. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hiragana-H.json +1 -0
  190. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Hiragana-V.json +1 -0
  191. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-EUC-H.json +1 -0
  192. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-EUC-V.json +1 -0
  193. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-H.json +1 -0
  194. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-Johab-H.json +1 -0
  195. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-Johab-V.json +1 -0
  196. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSC-V.json +1 -0
  197. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-H.json +1 -0
  198. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-HW-H.json +1 -0
  199. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-HW-V.json +1 -0
  200. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCms-UHC-V.json +1 -0
  201. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCpc-EUC-H.json +1 -0
  202. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/KSCpc-EUC-V.json +1 -0
  203. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Katakana-H.json +1 -0
  204. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Katakana-V.json +1 -0
  205. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/NWP-H.json +1 -0
  206. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/NWP-V.json +1 -0
  207. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/RKSJ-H.json +1 -0
  208. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/RKSJ-V.json +1 -0
  209. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Roman-H.json +1 -0
  210. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/Roman-V.json +1 -0
  211. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UCS2-H.json +1 -0
  212. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UCS2-V.json +1 -0
  213. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF16-H.json +1 -0
  214. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF16-V.json +1 -0
  215. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF32-H.json +1 -0
  216. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF32-V.json +1 -0
  217. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF8-H.json +1 -0
  218. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniCNS-UTF8-V.json +1 -0
  219. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UCS2-H.json +1 -0
  220. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UCS2-V.json +1 -0
  221. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF16-H.json +1 -0
  222. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF16-V.json +1 -0
  223. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF32-H.json +1 -0
  224. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF32-V.json +1 -0
  225. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF8-H.json +1 -0
  226. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniGB-UTF8-V.json +1 -0
  227. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-H.json +1 -0
  228. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-HW-H.json +1 -0
  229. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-HW-V.json +1 -0
  230. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UCS2-V.json +1 -0
  231. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF16-H.json +1 -0
  232. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF16-V.json +1 -0
  233. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF32-H.json +1 -0
  234. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF32-V.json +1 -0
  235. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF8-H.json +1 -0
  236. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS-UTF8-V.json +1 -0
  237. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF16-H.json +1 -0
  238. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF16-V.json +1 -0
  239. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF32-H.json +1 -0
  240. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF32-V.json +1 -0
  241. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF8-H.json +1 -0
  242. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJIS2004-UTF8-V.json +1 -0
  243. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX0213-UTF32-H.json +1 -0
  244. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX0213-UTF32-V.json +1 -0
  245. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX02132004-UTF32-H.json +1 -0
  246. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniJISX02132004-UTF32-V.json +1 -0
  247. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UCS2-H.json +1 -0
  248. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UCS2-V.json +1 -0
  249. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF16-H.json +1 -0
  250. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF16-V.json +1 -0
  251. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF32-H.json +1 -0
  252. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF32-V.json +1 -0
  253. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF8-H.json +1 -0
  254. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/UniKS-UTF8-V.json +1 -0
  255. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/V.json +1 -0
  256. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/WP-Symbol-H.json +1 -0
  257. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/WP-Symbol-V.json +1 -0
  258. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-CNS1.json +1 -0
  259. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-GB1.json +1 -0
  260. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-Japan1.json +1 -0
  261. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/cmap/to-unicode-Adobe-Korea1.json +1 -0
  262. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/font_tables.zst +0 -0
  263. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/fontmetrics.json +1 -0
  264. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/glyphlist.json +1 -0
  265. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/latin_enc.json +1 -0
  266. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/type1_encoding.json +1 -0
  267. babeldoc-0.7.0/rust/parser_core/assets/font_runtime/win_core.json +1 -0
  268. babeldoc-0.7.0/rust/parser_core/examples/object_numbers.rs +16 -0
  269. babeldoc-0.7.0/rust/parser_core/examples/probe_prepared_font.rs +16 -0
  270. babeldoc-0.7.0/rust/parser_core/src/expansion.rs +247 -0
  271. babeldoc-0.7.0/rust/parser_core/src/font_cmap_data.rs +229 -0
  272. babeldoc-0.7.0/rust/parser_core/src/fonts/maps.rs +173 -0
  273. babeldoc-0.7.0/rust/parser_core/src/fonts.rs +2860 -0
  274. babeldoc-0.7.0/rust/parser_core/src/lib.rs +1571 -0
  275. babeldoc-0.7.0/rust/parser_core/src/object_numbers.rs +425 -0
  276. babeldoc-0.7.0/rust/parser_core/src/page_access.rs +374 -0
  277. babeldoc-0.7.0/rust/parser_core/src/page_rank.rs +152 -0
  278. babeldoc-0.7.0/rust/parser_core/src/pool.rs +68 -0
  279. babeldoc-0.7.0/rust/parser_core/src/projection.rs +1400 -0
  280. babeldoc-0.7.0/rust/parser_core/src/tokens.rs +734 -0
  281. babeldoc-0.7.0/rust/parser_core/src/type3.rs +508 -0
  282. babeldoc-0.7.0/rust/parser_core/src/valid_categories.rs +710 -0
  283. babeldoc-0.7.0/rust/parser_core/src/valid_text.rs +82 -0
  284. babeldoc-0.7.0/rust/parser_core/tools/build_font_asset_bundle.py +61 -0
  285. babeldoc-0.7.0/rust/rtree_compat/Cargo.toml +7 -0
  286. babeldoc-0.7.0/rust/rtree_compat/src/lib.rs +408 -0
  287. babeldoc-0.7.0/rust/vendor/lopdf/.editorconfig +12 -0
  288. babeldoc-0.7.0/rust/vendor/lopdf/.gitattributes +9 -0
  289. babeldoc-0.7.0/rust/vendor/lopdf/.gitignore +10 -0
  290. babeldoc-0.7.0/rust/vendor/lopdf/BABELDOC_PATCH.md +12 -0
  291. babeldoc-0.7.0/rust/vendor/lopdf/CHANGELOG.md +1750 -0
  292. babeldoc-0.7.0/rust/vendor/lopdf/Cargo.toml +465 -0
  293. babeldoc-0.7.0/rust/vendor/lopdf/Cargo.toml.orig +107 -0
  294. babeldoc-0.7.0/rust/vendor/lopdf/LICENSE +21 -0
  295. babeldoc-0.7.0/rust/vendor/lopdf/README.md +862 -0
  296. babeldoc-0.7.0/rust/vendor/lopdf/rustfmt.toml +6 -0
  297. babeldoc-0.7.0/rust/vendor/lopdf/src/bookmarks.rs +156 -0
  298. babeldoc-0.7.0/rust/vendor/lopdf/src/cmap_section.rs +28 -0
  299. babeldoc-0.7.0/rust/vendor/lopdf/src/common_data_structures/mod.rs +106 -0
  300. babeldoc-0.7.0/rust/vendor/lopdf/src/content.rs +46 -0
  301. babeldoc-0.7.0/rust/vendor/lopdf/src/creator.rs +431 -0
  302. babeldoc-0.7.0/rust/vendor/lopdf/src/datetime.rs +381 -0
  303. babeldoc-0.7.0/rust/vendor/lopdf/src/destinations.rs +83 -0
  304. babeldoc-0.7.0/rust/vendor/lopdf/src/document.rs +976 -0
  305. babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/cmap.rs +281 -0
  306. babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/differences.rs +48 -0
  307. babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/glyphnames.rs +3803 -0
  308. babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/mappings.rs +1820 -0
  309. babeldoc-0.7.0/rust/vendor/lopdf/src/encodings/mod.rs +248 -0
  310. babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/algorithms.rs +1577 -0
  311. babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/crypt_filters.rs +275 -0
  312. babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/pkcs5.rs +49 -0
  313. babeldoc-0.7.0/rust/vendor/lopdf/src/encryption/rc4.rs +66 -0
  314. babeldoc-0.7.0/rust/vendor/lopdf/src/encryption.rs +1048 -0
  315. babeldoc-0.7.0/rust/vendor/lopdf/src/error.rs +172 -0
  316. babeldoc-0.7.0/rust/vendor/lopdf/src/filters/mod.rs +1 -0
  317. babeldoc-0.7.0/rust/vendor/lopdf/src/filters/png.rs +170 -0
  318. babeldoc-0.7.0/rust/vendor/lopdf/src/font.rs +188 -0
  319. babeldoc-0.7.0/rust/vendor/lopdf/src/incremental_document.rs +132 -0
  320. babeldoc-0.7.0/rust/vendor/lopdf/src/lib.rs +62 -0
  321. babeldoc-0.7.0/rust/vendor/lopdf/src/load_options.rs +95 -0
  322. babeldoc-0.7.0/rust/vendor/lopdf/src/object.rs +1866 -0
  323. babeldoc-0.7.0/rust/vendor/lopdf/src/object_stream.rs +460 -0
  324. babeldoc-0.7.0/rust/vendor/lopdf/src/outlines.rs +168 -0
  325. babeldoc-0.7.0/rust/vendor/lopdf/src/parser/cmap_parser.rs +1163 -0
  326. babeldoc-0.7.0/rust/vendor/lopdf/src/parser/mod.rs +1385 -0
  327. babeldoc-0.7.0/rust/vendor/lopdf/src/parser_aux.rs +949 -0
  328. babeldoc-0.7.0/rust/vendor/lopdf/src/processor.rs +308 -0
  329. babeldoc-0.7.0/rust/vendor/lopdf/src/reader.rs +2313 -0
  330. babeldoc-0.7.0/rust/vendor/lopdf/src/reader_resource_v3_tests.rs +290 -0
  331. babeldoc-0.7.0/rust/vendor/lopdf/src/resource.rs +315 -0
  332. babeldoc-0.7.0/rust/vendor/lopdf/src/save_options.rs +83 -0
  333. babeldoc-0.7.0/rust/vendor/lopdf/src/stream_content.rs +130 -0
  334. babeldoc-0.7.0/rust/vendor/lopdf/src/toc.rs +222 -0
  335. babeldoc-0.7.0/rust/vendor/lopdf/src/writer.rs +834 -0
  336. babeldoc-0.7.0/rust/vendor/lopdf/src/xobject.rs +259 -0
  337. babeldoc-0.7.0/rust/vendor/lopdf/src/xref.rs +314 -0
  338. babeldoc-0.7.0/rust/vendor/lopdf/tests/annotation.rs +100 -0
  339. babeldoc-0.7.0/rust/vendor/lopdf/tests/brotli_decode.rs +92 -0
  340. babeldoc-0.7.0/rust/vendor/lopdf/tests/catalog_compression_integration_test.rs +88 -0
  341. babeldoc-0.7.0/rust/vendor/lopdf/tests/decompression_bomb.rs +318 -0
  342. babeldoc-0.7.0/rust/vendor/lopdf/tests/decryption.rs +1604 -0
  343. babeldoc-0.7.0/rust/vendor/lopdf/tests/document_load_performance.rs +40 -0
  344. babeldoc-0.7.0/rust/vendor/lopdf/tests/encrypted_object_stream_test.rs +185 -0
  345. babeldoc-0.7.0/rust/vendor/lopdf/tests/extract_test.rs +211 -0
  346. babeldoc-0.7.0/rust/vendor/lopdf/tests/font_test.rs +35 -0
  347. babeldoc-0.7.0/rust/vendor/lopdf/tests/incremental_document.rs +495 -0
  348. babeldoc-0.7.0/rust/vendor/lopdf/tests/linearized_objstm_test.rs +131 -0
  349. babeldoc-0.7.0/rust/vendor/lopdf/tests/load_options_test.rs +216 -0
  350. babeldoc-0.7.0/rust/vendor/lopdf/tests/metadata_test.rs +335 -0
  351. babeldoc-0.7.0/rust/vendor/lopdf/tests/modify.rs +168 -0
  352. babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_comprehensive_test.rs +532 -0
  353. babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_edge_cases_test.rs +186 -0
  354. babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_methods_test.rs +482 -0
  355. babeldoc-0.7.0/rust/vendor/lopdf/tests/object_stream_performance_test.rs +166 -0
  356. babeldoc-0.7.0/rust/vendor/lopdf/tests/page_content.rs +45 -0
  357. babeldoc-0.7.0/rust/vendor/lopdf/tests/resource_compat_v2.rs +252 -0
  358. babeldoc-0.7.0/rust/vendor/lopdf/tests/save_options_xref_streams_test.rs +128 -0
  359. babeldoc-0.7.0/rust/vendor/lopdf/tests/simple_object_stream_test.rs +168 -0
  360. babeldoc-0.7.0/rust/vendor/lopdf/tests/stream_length_recovery.rs +306 -0
  361. babeldoc-0.7.0/rust/vendor/lopdf/tests/trailer_reference_compression_test.rs +360 -0
  362. babeldoc-0.7.0/rust/vendor/lopdf/tests/unicode.rs +147 -0
  363. babeldoc-0.7.0/rust/vendor/lopdf/tests/utils.rs +37 -0
  364. babeldoc-0.7.0/rust/vendor/lopdf/tests/xref_reconstruction.rs +382 -0
  365. babeldoc-0.7.0/rust/vendor/lopdf/tests/xref_stream_bounds.rs +231 -0
  366. babeldoc-0.7.0/rust/writer_core/Cargo.toml +12 -0
  367. babeldoc-0.7.0/rust/writer_core/src/codecs.rs +81 -0
  368. babeldoc-0.7.0/rust/writer_core/src/content.rs +935 -0
  369. babeldoc-0.7.0/rust/writer_core/src/fonts.rs +597 -0
  370. babeldoc-0.7.0/rust/writer_core/src/lib.rs +55 -0
  371. babeldoc-0.7.0/rust/writer_core/src/pdf.rs +401 -0
  372. babeldoc-0.7.0/rust/writer_core/src/retry.rs +48 -0
  373. babeldoc-0.7.0/scripts/generate_il_rust.py +229 -0
  374. babeldoc-0.7.0/scripts/il_rust_m.py +867 -0
  375. babeldoc-0.7.0/scripts/il_rust_m_declarations.py +125 -0
  376. babeldoc-0.6.3/.github/ISSUE_TEMPLATE/bug_report.yaml +0 -108
  377. babeldoc-0.6.3/.github/ISSUE_TEMPLATE/feature_request.yaml +0 -60
  378. babeldoc-0.6.3/.github/PULL_REQUEST_TEMPLATE/pr_form.yml +0 -92
  379. babeldoc-0.6.3/.github/PULL_REQUEST_TEMPLATE.md +0 -65
  380. babeldoc-0.6.3/.github/dependabot.yml +0 -21
  381. babeldoc-0.6.3/.github/labels.yml +0 -66
  382. babeldoc-0.6.3/.github/release-drafter.yml +0 -42
  383. babeldoc-0.6.3/.github/workflows/checks.yml +0 -55
  384. babeldoc-0.6.3/.github/workflows/codeql.yml +0 -92
  385. babeldoc-0.6.3/.github/workflows/docs.yml +0 -34
  386. babeldoc-0.6.3/.github/workflows/labeler.yml +0 -36
  387. babeldoc-0.6.3/.github/workflows/lint.yml +0 -17
  388. babeldoc-0.6.3/.github/workflows/pr-lint.yml +0 -46
  389. babeldoc-0.6.3/.github/workflows/publish-to-pypi.yml +0 -177
  390. babeldoc-0.6.3/.gitignore +0 -52
  391. babeldoc-0.6.3/.pre-commit-config.yaml +0 -12
  392. babeldoc-0.6.3/babeldoc/__init__.py +0 -1
  393. babeldoc-0.6.3/babeldoc/format/pdf/awlt_char.py +0 -76
  394. babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/base14.py +0 -3336
  395. babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/type3.py +0 -159
  396. babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/utils.py +0 -22
  397. babeldoc-0.6.3/babeldoc/format/pdf/babelpdf/win_core.py +0 -2618
  398. babeldoc-0.6.3/babeldoc/format/pdf/converter.py +0 -453
  399. babeldoc-0.6.3/babeldoc/format/pdf/document_il/backend/pdf_creater.py +0 -1750
  400. babeldoc-0.6.3/babeldoc/format/pdf/document_il/frontend/il_creater.py +0 -1450
  401. babeldoc-0.6.3/babeldoc/format/pdf/document_il/frontend/il_creater_active.py +0 -1624
  402. babeldoc-0.6.3/babeldoc/format/pdf/document_il/frontend/inline_image_params.py +0 -54
  403. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/add_debug_information.py +0 -180
  404. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/automatic_term_extractor.py +0 -419
  405. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/detect_scanned_file.py +0 -174
  406. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/il_translator.py +0 -1278
  407. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/il_translator_llm_only.py +0 -998
  408. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/layout_parser.py +0 -211
  409. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/paragraph_finder.py +0 -1053
  410. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/remove_descent.py +0 -168
  411. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/styles_and_formulas.py +0 -1276
  412. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/table_parser.py +0 -166
  413. babeldoc-0.6.3/babeldoc/format/pdf/document_il/midend/typesetting.py +0 -1672
  414. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/layout_helper.py +0 -1013
  415. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/matrix_helper.py +0 -335
  416. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/mupdf_helper.py +0 -42
  417. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/paragraph_helper.py +0 -94
  418. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/spatial_analyzer.py +0 -158
  419. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/style_helper.py +0 -94
  420. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/type3_font_metrics.py +0 -55
  421. babeldoc-0.6.3/babeldoc/format/pdf/document_il/utils/zstd_helper.py +0 -21
  422. babeldoc-0.6.3/babeldoc/format/pdf/legacy_parse.py +0 -142
  423. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/__init__.py +0 -1
  424. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_direct_font_backend.py +0 -605
  425. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_font_backend.py +0 -23
  426. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_font_resource_runtime.py +0 -43
  427. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_font_runtime.py +0 -116
  428. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_object_backend.py +0 -14
  429. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_object_projection.py +0 -191
  430. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_parse_runtime.py +0 -27
  431. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/active_value_access.py +0 -59
  432. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/base_operations.py +0 -107
  433. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/bridge_types.py +0 -154
  434. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/compat/__init__.py +0 -1
  435. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/font_spec_primitives.py +0 -45
  436. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/font_types.py +0 -29
  437. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/glyphs.py +0 -204
  438. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/interpreter.py +0 -854
  439. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/native_page_execution_session.py +0 -49
  440. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/native_page_interpreter.py +0 -68
  441. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/native_parse.py +0 -166
  442. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/object_model.py +0 -37
  443. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/object_parser.py +0 -135
  444. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_api.py +0 -31
  445. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_content_access.py +0 -27
  446. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_content_execution.py +0 -23
  447. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_execution_session.py +0 -53
  448. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/page_interpreter.py +0 -13
  449. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pdf_token_serializer.py +0 -202
  450. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page.py +0 -79
  451. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page_access.py +0 -42
  452. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page_debug_access.py +0 -36
  453. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_page_execution.py +0 -31
  454. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/prepared_resource_builder.py +0 -226
  455. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_candidate_parse.py +0 -36
  456. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_object_access.py +0 -161
  457. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_page_execution_session.py +0 -7
  458. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_page_view_access.py +0 -73
  459. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/pymupdf_prepared_page_access.py +0 -38
  460. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/raw_page_view.py +0 -27
  461. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/resolved_object_access.py +0 -65
  462. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/resource_runtime_types.py +0 -13
  463. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/resources.py +0 -131
  464. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/__init__.py +0 -1
  465. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/_cmap_manifest_data.py +0 -603
  466. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cid_cmap_runtime.py +0 -125
  467. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cmap_secure_loader.py +0 -61
  468. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cmap_types_runtime.py +0 -155
  469. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/cmapdb_runtime.py +0 -86
  470. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-EUC-H.pickle.gz +0 -0
  471. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-EUC-V.pickle.gz +0 -0
  472. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-H.pickle.gz +0 -0
  473. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-RKSJ-H.pickle.gz +0 -0
  474. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-RKSJ-V.pickle.gz +0 -0
  475. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78-V.pickle.gz +0 -0
  476. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78ms-RKSJ-H.pickle.gz +0 -0
  477. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/78ms-RKSJ-V.pickle.gz +0 -0
  478. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/83pv-RKSJ-H.pickle.gz +0 -0
  479. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/83pv-RKSJ-V.pickle.gz +0 -0
  480. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90ms-RKSJ-H.pickle.gz +0 -0
  481. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90ms-RKSJ-V.pickle.gz +0 -0
  482. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90msp-RKSJ-H.pickle.gz +0 -0
  483. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90msp-RKSJ-V.pickle.gz +0 -0
  484. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90pv-RKSJ-H.pickle.gz +0 -0
  485. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/90pv-RKSJ-V.pickle.gz +0 -0
  486. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-H.pickle.gz +0 -0
  487. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-RKSJ-H.pickle.gz +0 -0
  488. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-RKSJ-V.pickle.gz +0 -0
  489. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Add-V.pickle.gz +0 -0
  490. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5-H.pickle.gz +0 -0
  491. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5-V.pickle.gz +0 -0
  492. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5pc-H.pickle.gz +0 -0
  493. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/B5pc-V.pickle.gz +0 -0
  494. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS-EUC-H.pickle.gz +0 -0
  495. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS-EUC-V.pickle.gz +0 -0
  496. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS1-H.pickle.gz +0 -0
  497. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS1-V.pickle.gz +0 -0
  498. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS2-H.pickle.gz +0 -0
  499. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/CNS2-V.pickle.gz +0 -0
  500. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETHK-B5-H.pickle.gz +0 -0
  501. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETHK-B5-V.pickle.gz +0 -0
  502. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETen-B5-H.pickle.gz +0 -0
  503. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETen-B5-V.pickle.gz +0 -0
  504. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETenms-B5-H.pickle.gz +0 -0
  505. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/ETenms-B5-V.pickle.gz +0 -0
  506. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/EUC-H.pickle.gz +0 -0
  507. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/EUC-V.pickle.gz +0 -0
  508. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-H.pickle.gz +0 -0
  509. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-RKSJ-H.pickle.gz +0 -0
  510. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-RKSJ-V.pickle.gz +0 -0
  511. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Ext-V.pickle.gz +0 -0
  512. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-EUC-H.pickle.gz +0 -0
  513. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-EUC-V.pickle.gz +0 -0
  514. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-H.pickle.gz +0 -0
  515. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GB-V.pickle.gz +0 -0
  516. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK-EUC-H.pickle.gz +0 -0
  517. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK-EUC-V.pickle.gz +0 -0
  518. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK2K-H.pickle.gz +0 -0
  519. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBK2K-V.pickle.gz +0 -0
  520. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBKp-EUC-H.pickle.gz +0 -0
  521. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBKp-EUC-V.pickle.gz +0 -0
  522. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-EUC-H.pickle.gz +0 -0
  523. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-EUC-V.pickle.gz +0 -0
  524. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-H.pickle.gz +0 -0
  525. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBT-V.pickle.gz +0 -0
  526. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBTpc-EUC-H.pickle.gz +0 -0
  527. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBTpc-EUC-V.pickle.gz +0 -0
  528. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBpc-EUC-H.pickle.gz +0 -0
  529. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/GBpc-EUC-V.pickle.gz +0 -0
  530. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/H.pickle.gz +0 -0
  531. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdla-B5-H.pickle.gz +0 -0
  532. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdla-B5-V.pickle.gz +0 -0
  533. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdlb-B5-H.pickle.gz +0 -0
  534. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKdlb-B5-V.pickle.gz +0 -0
  535. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKgccs-B5-H.pickle.gz +0 -0
  536. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKgccs-B5-V.pickle.gz +0 -0
  537. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm314-B5-H.pickle.gz +0 -0
  538. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm314-B5-V.pickle.gz +0 -0
  539. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm471-B5-H.pickle.gz +0 -0
  540. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKm471-B5-V.pickle.gz +0 -0
  541. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKscs-B5-H.pickle.gz +0 -0
  542. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/HKscs-B5-V.pickle.gz +0 -0
  543. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hankaku-H.pickle.gz +0 -0
  544. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hankaku-V.pickle.gz +0 -0
  545. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hiragana-H.pickle.gz +0 -0
  546. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Hiragana-V.pickle.gz +0 -0
  547. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-EUC-H.pickle.gz +0 -0
  548. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-EUC-V.pickle.gz +0 -0
  549. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-H.pickle.gz +0 -0
  550. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-Johab-H.pickle.gz +0 -0
  551. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-Johab-V.pickle.gz +0 -0
  552. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSC-V.pickle.gz +0 -0
  553. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-H.pickle.gz +0 -0
  554. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-HW-H.pickle.gz +0 -0
  555. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-HW-V.pickle.gz +0 -0
  556. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCms-UHC-V.pickle.gz +0 -0
  557. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCpc-EUC-H.pickle.gz +0 -0
  558. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/KSCpc-EUC-V.pickle.gz +0 -0
  559. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Katakana-H.pickle.gz +0 -0
  560. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Katakana-V.pickle.gz +0 -0
  561. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/NWP-H.pickle.gz +0 -0
  562. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/NWP-V.pickle.gz +0 -0
  563. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/README.txt +0 -79
  564. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/RKSJ-H.pickle.gz +0 -0
  565. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/RKSJ-V.pickle.gz +0 -0
  566. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Roman-H.pickle.gz +0 -0
  567. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/Roman-V.pickle.gz +0 -0
  568. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UCS2-H.pickle.gz +0 -0
  569. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UCS2-V.pickle.gz +0 -0
  570. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF16-H.pickle.gz +0 -0
  571. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF16-V.pickle.gz +0 -0
  572. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF32-H.pickle.gz +0 -0
  573. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF32-V.pickle.gz +0 -0
  574. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF8-H.pickle.gz +0 -0
  575. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniCNS-UTF8-V.pickle.gz +0 -0
  576. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UCS2-H.pickle.gz +0 -0
  577. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UCS2-V.pickle.gz +0 -0
  578. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF16-H.pickle.gz +0 -0
  579. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF16-V.pickle.gz +0 -0
  580. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF32-H.pickle.gz +0 -0
  581. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF32-V.pickle.gz +0 -0
  582. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF8-H.pickle.gz +0 -0
  583. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniGB-UTF8-V.pickle.gz +0 -0
  584. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-H.pickle.gz +0 -0
  585. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-HW-H.pickle.gz +0 -0
  586. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-HW-V.pickle.gz +0 -0
  587. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UCS2-V.pickle.gz +0 -0
  588. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF16-H.pickle.gz +0 -0
  589. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF16-V.pickle.gz +0 -0
  590. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF32-H.pickle.gz +0 -0
  591. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF32-V.pickle.gz +0 -0
  592. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF8-H.pickle.gz +0 -0
  593. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS-UTF8-V.pickle.gz +0 -0
  594. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF16-H.pickle.gz +0 -0
  595. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF16-V.pickle.gz +0 -0
  596. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF32-H.pickle.gz +0 -0
  597. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF32-V.pickle.gz +0 -0
  598. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF8-H.pickle.gz +0 -0
  599. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJIS2004-UTF8-V.pickle.gz +0 -0
  600. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX0213-UTF32-H.pickle.gz +0 -0
  601. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX0213-UTF32-V.pickle.gz +0 -0
  602. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX02132004-UTF32-H.pickle.gz +0 -0
  603. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniJISX02132004-UTF32-V.pickle.gz +0 -0
  604. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UCS2-H.pickle.gz +0 -0
  605. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UCS2-V.pickle.gz +0 -0
  606. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF16-H.pickle.gz +0 -0
  607. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF16-V.pickle.gz +0 -0
  608. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF32-H.pickle.gz +0 -0
  609. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF32-V.pickle.gz +0 -0
  610. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF8-H.pickle.gz +0 -0
  611. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/UniKS-UTF8-V.pickle.gz +0 -0
  612. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/V.pickle.gz +0 -0
  613. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/WP-Symbol-H.pickle.gz +0 -0
  614. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/WP-Symbol-V.pickle.gz +0 -0
  615. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-CNS1.pickle.gz +0 -0
  616. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-GB1.pickle.gz +0 -0
  617. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-Japan1.pickle.gz +0 -0
  618. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/cmap/to-unicode-Adobe-Korea1.pickle.gz +0 -0
  619. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/fontmetrics.py +0 -4464
  620. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/glyphlist.py +0 -4370
  621. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/data/latin_enc.py +0 -244
  622. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/exceptions_runtime.py +0 -18
  623. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_data_runtime.py +0 -109
  624. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_encoding_runtime.py +0 -117
  625. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_unicode_maps.py +0 -21
  626. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/font_widths.py +0 -55
  627. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/object_primitives_runtime.py +0 -106
  628. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/object_stream_runtime.py +0 -30
  629. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/ps_primitives_runtime.py +0 -65
  630. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/runtime_settings.py +0 -1
  631. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/runtime/to_unicode_parser_runtime.py +0 -176
  632. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/sinks/legacy_ir.py +0 -400
  633. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/sinks/native_text.py +0 -259
  634. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/state.py +0 -215
  635. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/text_positioning.py +0 -104
  636. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/tokenizer.py +0 -701
  637. babeldoc-0.6.3/babeldoc/format/pdf/new_parser/xobject_content_execution.py +0 -137
  638. babeldoc-0.6.3/babeldoc/format/pdf/parse_only.py +0 -120
  639. babeldoc-0.6.3/babeldoc/format/pdf/parse_shared.py +0 -63
  640. babeldoc-0.6.3/babeldoc/format/pdf/pdfinterp.py +0 -582
  641. babeldoc-0.6.3/babeldoc/pdfminer/LICENSE +0 -22
  642. babeldoc-0.6.3/babeldoc/pdfminer/__init__.py +0 -11
  643. babeldoc-0.6.3/babeldoc/pdfminer/_saslprep.py +0 -101
  644. babeldoc-0.6.3/babeldoc/pdfminer/arcfour.py +0 -35
  645. babeldoc-0.6.3/babeldoc/pdfminer/ascii85.py +0 -48
  646. babeldoc-0.6.3/babeldoc/pdfminer/casting.py +0 -92
  647. babeldoc-0.6.3/babeldoc/pdfminer/ccitt.py +0 -609
  648. babeldoc-0.6.3/babeldoc/pdfminer/cmapdb.py +0 -470
  649. babeldoc-0.6.3/babeldoc/pdfminer/converter.py +0 -1062
  650. babeldoc-0.6.3/babeldoc/pdfminer/data_structures.py +0 -55
  651. babeldoc-0.6.3/babeldoc/pdfminer/encodingdb.py +0 -127
  652. babeldoc-0.6.3/babeldoc/pdfminer/fontmetrics.py +0 -4464
  653. babeldoc-0.6.3/babeldoc/pdfminer/glyphlist.py +0 -4365
  654. babeldoc-0.6.3/babeldoc/pdfminer/high_level.py +0 -233
  655. babeldoc-0.6.3/babeldoc/pdfminer/image.py +0 -294
  656. babeldoc-0.6.3/babeldoc/pdfminer/jbig2.py +0 -377
  657. babeldoc-0.6.3/babeldoc/pdfminer/latin_enc.py +0 -244
  658. babeldoc-0.6.3/babeldoc/pdfminer/layout.py +0 -979
  659. babeldoc-0.6.3/babeldoc/pdfminer/lzw.py +0 -116
  660. babeldoc-0.6.3/babeldoc/pdfminer/pdfcolor.py +0 -36
  661. babeldoc-0.6.3/babeldoc/pdfminer/pdfdevice.py +0 -326
  662. babeldoc-0.6.3/babeldoc/pdfminer/pdfdocument.py +0 -1072
  663. babeldoc-0.6.3/babeldoc/pdfminer/pdfexceptions.py +0 -33
  664. babeldoc-0.6.3/babeldoc/pdfminer/pdffont.py +0 -1160
  665. babeldoc-0.6.3/babeldoc/pdfminer/pdfinterp.py +0 -1279
  666. babeldoc-0.6.3/babeldoc/pdfminer/pdfpage.py +0 -232
  667. babeldoc-0.6.3/babeldoc/pdfminer/pdfparser.py +0 -173
  668. babeldoc-0.6.3/babeldoc/pdfminer/pdftypes.py +0 -394
  669. babeldoc-0.6.3/babeldoc/pdfminer/psexceptions.py +0 -18
  670. babeldoc-0.6.3/babeldoc/pdfminer/psparser.py +0 -659
  671. babeldoc-0.6.3/babeldoc/pdfminer/py.typed +0 -0
  672. babeldoc-0.6.3/babeldoc/pdfminer/runlength.py +0 -36
  673. babeldoc-0.6.3/babeldoc/pdfminer/settings.py +0 -1
  674. babeldoc-0.6.3/babeldoc/pdfminer/utils.py +0 -799
  675. babeldoc-0.6.3/docs/CODE_OF_CONDUCT.md +0 -128
  676. babeldoc-0.6.3/docs/CONTRIBUTING.md +0 -211
  677. babeldoc-0.6.3/docs/CONTRIBUTOR_REWARD.md +0 -92
  678. babeldoc-0.6.3/docs/ImplementationDetails/AsyncTranslate/AsyncTranslate.md +0 -180
  679. babeldoc-0.6.3/docs/ImplementationDetails/ILTranslator/ILTranslator.md +0 -105
  680. babeldoc-0.6.3/docs/ImplementationDetails/PDFCreation/PDFCreation.md +0 -144
  681. babeldoc-0.6.3/docs/ImplementationDetails/PDFParsing/PDFParsing.md +0 -143
  682. babeldoc-0.6.3/docs/ImplementationDetails/ParagraphFinding/ParagraphFinding.md +0 -75
  683. babeldoc-0.6.3/docs/ImplementationDetails/README.md +0 -35
  684. babeldoc-0.6.3/docs/ImplementationDetails/StylesAndFormulas/StylesAndFormulas.md +0 -93
  685. babeldoc-0.6.3/docs/ImplementationDetails/Typesetting/Typesetting.md +0 -113
  686. babeldoc-0.6.3/docs/README.md +0 -8
  687. babeldoc-0.6.3/docs/deploy.sh +0 -47
  688. babeldoc-0.6.3/docs/example/demo_glossary.csv +0 -4
  689. babeldoc-0.6.3/docs/images/babeldoc-banner.png +0 -0
  690. babeldoc-0.6.3/docs/images/babeldoc-big-logo-darkmode-with-transparent-background.png +0 -0
  691. babeldoc-0.6.3/docs/images/babeldoc-big-logo-darkmode-with-transparent-background.svg +0 -16
  692. babeldoc-0.6.3/docs/images/babeldoc-big-logo-with-transparent-background.png +0 -0
  693. babeldoc-0.6.3/docs/images/babeldoc-big-logo-with-transparent-background.svg +0 -16
  694. babeldoc-0.6.3/docs/images/babeldoc-big-logo.png +0 -0
  695. babeldoc-0.6.3/docs/images/babeldoc-contributor_reward_example.png +0 -0
  696. babeldoc-0.6.3/docs/images/babeldoc-preview.gif +0 -0
  697. babeldoc-0.6.3/docs/images/babeldoc-small-logo-with-transparent-background.png +0 -0
  698. babeldoc-0.6.3/docs/images/babeldoc-small-logo-with-transparent-background.svg +0 -15
  699. babeldoc-0.6.3/docs/images/babeldoc-small-logo.png +0 -0
  700. babeldoc-0.6.3/docs/index.md +0 -2
  701. babeldoc-0.6.3/docs/intro-to-pdf-object.md +0 -148
  702. babeldoc-0.6.3/docs/release-notes/v0.6.0.md +0 -45
  703. babeldoc-0.6.3/docs/release-notes/v0.6.1.md +0 -39
  704. babeldoc-0.6.3/docs/release-notes/v0.6.2.md +0 -16
  705. babeldoc-0.6.3/docs/release-notes/v0.6.3.md +0 -80
  706. babeldoc-0.6.3/docs/requirements.txt +0 -4
  707. babeldoc-0.6.3/docs/supported_languages.md +0 -171
  708. babeldoc-0.6.3/mkdocs.yml +0 -156
  709. {babeldoc-0.6.3 → babeldoc-0.7.0}/LICENSE +0 -0
  710. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/assets/assets.py +0 -0
  711. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/assets/embedding_assets_metadata.py +0 -0
  712. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/asynchronize/__init__.py +0 -0
  713. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/babeldoc_exception/BabelDOCException.py +0 -0
  714. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/babeldoc_exception/__init__.py +0 -0
  715. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/README.md +0 -0
  716. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/__init__.py +0 -0
  717. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/base_doclayout.py +0 -0
  718. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout2.py +0 -0
  719. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout3.py +0 -0
  720. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout4.py +0 -0
  721. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout5.py +0 -0
  722. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/rpc_doclayout7.py +0 -0
  723. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/docvision/table_detection/rapidocr.py +0 -0
  724. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/__init__.py +0 -0
  725. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/__init__.py +0 -0
  726. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/babelpdf/cidfont.py +0 -0
  727. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/babelpdf/cmap.py +0 -0
  728. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/babelpdf/encoding.py +0 -0
  729. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/__init__.py +0 -0
  730. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/backend/__init__.py +0 -0
  731. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/frontend/__init__.py +0 -0
  732. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/frontend/il_creater_active_support.py +0 -0
  733. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.rnc +0 -0
  734. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.rng +0 -0
  735. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/il_version_1.xsd +0 -0
  736. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/midend/__init__.py +0 -0
  737. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/__init__.py +0 -0
  738. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/fontmap.py +0 -0
  739. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/utils/formular_helper.py +0 -0
  740. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/document_il/xml_converter.py +0 -0
  741. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/result_merger.py +0 -0
  742. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/format/pdf/split_manager.py +0 -0
  743. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/progress_monitor.py +0 -0
  744. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/__init__.py +0 -0
  745. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/__main__.py +0 -0
  746. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/babeldoc_adapter.py +0 -0
  747. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/protocol.py +0 -0
  748. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/runner.py +0 -0
  749. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/server.py +0 -0
  750. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/state.py +0 -0
  751. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/translator.py +0 -0
  752. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/watermark_transform.py +0 -0
  753. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/executor/workroot.py +0 -0
  754. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/generate_cmap_metadata.py +0 -0
  755. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/tools/italic_assistance.py +0 -0
  756. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/translator/__init__.py +0 -0
  757. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/translator/cache.py +0 -0
  758. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/__init__.py +0 -0
  759. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/atomic_integer.py +0 -0
  760. {babeldoc-0.6.3 → babeldoc-0.7.0}/babeldoc/utils/memory.py +0 -0
  761. {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.6.3
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
- Requires-Python: <3.14,>=3.10
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<1.24,>=1.16.1; python_version < '3.11'
29
- Requires-Dist: onnxruntime>=1.16.1; python_version >= '3.11'
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: pymupdf>=1.26.7
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: rich>=13.9.4
33
+ Requires-Dist: hyperscan>=0.7.13
39
34
  Requires-Dist: rtree>=1.4.0
40
- Requires-Dist: scikit-image>=0.25.2
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: xsdata[cli,lxml,soap]>=24.12
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
- Requires-Dist: memray>=1.17.1; extra == 'memray'
55
- Description-Content-Type: text/markdown
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`: Control watermark output mode: 'watermarked' (default) adds watermark to translated PDF, 'no_watermark' doesn't add watermark, 'both' outputs both versions.
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] Use --watermark-output-mode=no_watermark instead.
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" # Choices: "watermarked", "no_watermark", "both"
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: Use watermark-output-mode instead
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://github.com/PDFMathTranslate/PDFMathTranslate-next).
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://github.com/PDFMathTranslate/PDFMathTranslate-next).
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`: Control watermark output mode: 'watermarked' (default) adds watermark to translated PDF, 'no_watermark' doesn't add watermark, 'both' outputs both versions.
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] Use --watermark-output-mode=no_watermark instead.
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" # Choices: "watermarked", "no_watermark", "both"
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: Use watermark-output-mode instead
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://github.com/PDFMathTranslate/PDFMathTranslate-next).
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://github.com/PDFMathTranslate/PDFMathTranslate-next).
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"
@@ -6,7 +6,7 @@ import subprocess
6
6
  import threading
7
7
  from pathlib import Path
8
8
 
9
- __version__ = "0.6.3"
9
+ __version__ = "0.7.0"
10
10
 
11
11
  CACHE_FOLDER = Path.home() / ".cache" / "babeldoc"
12
12
 
@@ -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.mupdf_helper import get_no_rotation_img
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(self, image, imgsz=800, batch_size=16, **kwargs):
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
- # pix = mupdf_doc[page.page_number].get_pixmap(dpi=72)
257
- pix = get_no_rotation_img(mupdf_doc[page.page_number])
258
- image = np.frombuffer(pix.samples, np.uint8).reshape(
259
- pix.height,
260
- pix.width,
261
- 3,
262
- )[:, :, ::-1]
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.mupdf_helper import get_no_rotation_img
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, img, self.host, result_container, 800
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
- # pix = mupdf_doc[page.page_number].get_pixmap(dpi=72)
263
- pix = get_no_rotation_img(mupdf_doc[page.page_number])
264
- image = np.frombuffer(pix.samples, np.uint8).reshape(
265
- pix.height,
266
- pix.width,
267
- 3,
268
- )[:, :, ::-1]
269
- predict_result = self.predict_image(image, self.host, None, 800)
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