refactor: 清理冗余代码和过时配置

This commit is contained in:
2026-06-14 12:56:02 +08:00
parent 90fe705e8f
commit 8f13c31991
8 changed files with 4 additions and 220 deletions
-4
View File
@@ -501,10 +501,6 @@ def _image_sort_key(name: str) -> tuple[int, int]:
m = re.search(r"(?:figure|table)_(\d+)", name)
if m:
return (0, int(m.group(1)))
# 旧格式:page2_img1.png, page5_table1.png, figure_1.png
m2 = re.search(r"page(\d+)_(?:img|table)(\d+)", name)
if m2:
return (int(m2.group(1)), int(m2.group(2)))
return (0, 0)