mineru 2.6.7__py3-none-any.whl → 2.6.8__py3-none-any.whl

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.
@@ -484,7 +484,7 @@ def merge_para_with_text_v2(para_block):
484
484
  for line in para_block['lines']:
485
485
  for span in line['spans']:
486
486
  span_type = span['type']
487
- if span['content']:
487
+ if span.get("content", '').strip():
488
488
  if para_type == BlockType.PHONETIC and span_type == ContentTypeV2.SPAN_TEXT:
489
489
  span_type = ContentTypeV2.SPAN_PHONETIC
490
490
  if span_type == ContentType.INLINE_EQUATION:
@@ -534,13 +534,12 @@ def union_make(pdf_info_dict: list,
534
534
  output_content.append(para_content)
535
535
  elif make_mode == MakeMode.CONTENT_LIST_V2:
536
536
  # https://github.com/drunkpig/llm-webkit-mirror/blob/dev6/docs/specification/output_format/content_list_spec.md
537
- page_contents = []
538
537
  para_blocks = (paras_of_layout or []) + (paras_of_discarded or [])
539
- if not para_blocks:
540
- continue
541
- for para_block in para_blocks:
542
- para_content = make_blocks_to_content_list_v2(para_block, img_buket_path, page_size)
543
- page_contents.append(para_content)
538
+ page_contents = []
539
+ if para_blocks:
540
+ for para_block in para_blocks:
541
+ para_content = make_blocks_to_content_list_v2(para_block, img_buket_path, page_size)
542
+ page_contents.append(para_content)
544
543
  output_content.append(page_contents)
545
544
 
546
545
  if make_mode in [MakeMode.MM_MD, MakeMode.NLP_MD]:
mineru/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.6.7"
1
+ __version__ = "2.6.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mineru
3
- Version: 2.6.7
3
+ Version: 2.6.8
4
4
  Summary: A practical tool for converting PDF to Markdown
5
5
  License: AGPL-3.0
6
6
  Project-URL: homepage, https://mineru.net/
@@ -1,5 +1,5 @@
1
1
  mineru/__init__.py,sha256=8CRrCQVuExa0BttRFh3Z40lFy2K5jN0sp67KWjOlj5c,50
2
- mineru/version.py,sha256=Kc2cyTvfIdfaMxraNhj61Hw9Mr3C-eTCdQPLK5KH1AQ,22
2
+ mineru/version.py,sha256=3WRCYKawwH5XZgRMQ8fXEoGyCz5YorbyTfOWuY9SV3g,22
3
3
  mineru/backend/__init__.py,sha256=8CRrCQVuExa0BttRFh3Z40lFy2K5jN0sp67KWjOlj5c,50
4
4
  mineru/backend/utils.py,sha256=GLJU3IznDmhE1_qNmkU1UOtsuskIHBezgsEVO6Uar-Y,698
5
5
  mineru/backend/pipeline/__init__.py,sha256=8CRrCQVuExa0BttRFh3Z40lFy2K5jN0sp67KWjOlj5c,50
@@ -16,7 +16,7 @@ mineru/backend/vlm/model_output_to_middle_json.py,sha256=AqYX44gS9crUO_t7SuUatD7
16
16
  mineru/backend/vlm/utils.py,sha256=JMgS3SMFcHJYH2jIx-Xhs-P2a1bmT8U6Kn60IL0OmQA,3570
17
17
  mineru/backend/vlm/vlm_analyze.py,sha256=wP3vuYGVec0hRsDAuzfSm2HD4Muu7wSWL767qxd_yqw,11690
18
18
  mineru/backend/vlm/vlm_magic_model.py,sha256=e8BWkfeRkZNJjFdm9oPmvIs9ATjdzCy_5OZw2qTziZA,23839
19
- mineru/backend/vlm/vlm_middle_json_mkcontent.py,sha256=9ig7kfbKDrG5QOwvYoXfcsK5EY9_VyAFmqz733Il-P0,24071
19
+ mineru/backend/vlm/vlm_middle_json_mkcontent.py,sha256=Oc2w2BSRXeJPKVcM1Bkb2LjLNTQAG5yUYRtF7YNBTss,24070
20
20
  mineru/cli/__init__.py,sha256=8CRrCQVuExa0BttRFh3Z40lFy2K5jN0sp67KWjOlj5c,50
21
21
  mineru/cli/client.py,sha256=XSEIr4klUuufMAWn5IioZdXpg1xAxqRZF0HkaVIhxh0,6815
22
22
  mineru/cli/common.py,sha256=Rld3P4FzbTYngy3BP-Irto9aMS7EPq2lIWgeIF1xPMc,14667
@@ -179,9 +179,9 @@ mineru/utils/run_async.py,sha256=rPeP4BCZerR8VByRDhiYzfZiahLVqoZEBVAS54dAjNg,128
179
179
  mineru/utils/span_block_fix.py,sha256=0eVQjJCrT03woRt9hoh6Uu42Tp1dacfGTv2x3B9qq94,8797
180
180
  mineru/utils/span_pre_proc.py,sha256=h41q2uQajI0xQbc_30hqaju1dv3oVYxBAlKgURl8HIc,13692
181
181
  mineru/utils/table_merge.py,sha256=pZHP0mIUcWPcdu0HecZDEFZ_ms_rT7C43m0Eg2iEEF4,15592
182
- mineru-2.6.7.dist-info/licenses/LICENSE.md,sha256=jVa0BUaKrRH4erV2P5AeJ24I2WRv9chIGxditreJ6e0,34524
183
- mineru-2.6.7.dist-info/METADATA,sha256=2SEMOR8-0ZzJL85pLQR4Gkm61YroeJ6BSDjB44YCUhs,73142
184
- mineru-2.6.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
185
- mineru-2.6.7.dist-info/entry_points.txt,sha256=JbtrCPhx1T32s7TONUsteKg-24ZwRT1HSiFtW5jypVw,376
186
- mineru-2.6.7.dist-info/top_level.txt,sha256=zuGQfZcbsHv4I4oKI9gaKPqEWBFm6xJroKuug2LnKP8,7
187
- mineru-2.6.7.dist-info/RECORD,,
182
+ mineru-2.6.8.dist-info/licenses/LICENSE.md,sha256=jVa0BUaKrRH4erV2P5AeJ24I2WRv9chIGxditreJ6e0,34524
183
+ mineru-2.6.8.dist-info/METADATA,sha256=nbMEGfGHC_Z7OUDegE18y0lrzSXaQCTtpWDYi_KZVSE,73142
184
+ mineru-2.6.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
185
+ mineru-2.6.8.dist-info/entry_points.txt,sha256=JbtrCPhx1T32s7TONUsteKg-24ZwRT1HSiFtW5jypVw,376
186
+ mineru-2.6.8.dist-info/top_level.txt,sha256=zuGQfZcbsHv4I4oKI9gaKPqEWBFm6xJroKuug2LnKP8,7
187
+ mineru-2.6.8.dist-info/RECORD,,
File without changes