Skip to content

Commit 42fc08d

Browse files
authored
Merge pull request #235 from funstory-ai/pdf2zh-v2-rc
fix(paragraph_finder): extend bullet point regex pattern to include additional characters
2 parents 52ba4d9 + c906214 commit 42fc08d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

babeldoc/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.7"
1+
__version__ = "0.3.8"

babeldoc/const.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import subprocess
44
from pathlib import Path
55

6-
__version__ = "0.3.7"
6+
__version__ = "0.3.8"
77

88
CACHE_FOLDER = Path.home() / ".cache" / "babeldoc"
99

babeldoc/document_il/midend/paragraph_finder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ParagraphFinder:
2929

3030
# 定义项目符号的正则表达式模式
3131
BULLET_POINT_PATTERN = re.compile(
32-
r"[■•⚫⬤◆◇○●◦‣⁃▪▫∗†‡¹²³⁴⁵⁶⁷⁸⁹⁰₁₂₃₄₅₆₇₈₉₀ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖᵍʳˢᵗᵘᵛʷˣʸᶻ†‡§¶※⁑⁂⁕⁎⁜⁑❧☙⁋‖‽]"
32+
r"[■•⚫⬤◆◇○●◦‣⁃▪▫∗†‡¹²³⁴⁵⁶⁷⁸⁹⁰₁₂₃₄₅₆₇₈₉₀ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖᵍʳˢᵗᵘᵛʷˣʸᶻ†‡§¶※⁑⁂⁕⁎⁜⁑❧☙⁋‖‽]"
3333
)
3434

3535
def __init__(self, translation_config: TranslationConfig):

babeldoc/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from babeldoc.translation_config import WatermarkOutputMode
2424

2525
logger = logging.getLogger(__name__)
26-
__version__ = "0.3.7"
26+
__version__ = "0.3.8"
2727

2828

2929
def create_parser():

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "BabelDOC"
3-
version = "0.3.7"
3+
version = "0.3.8"
44
description = "Yet Another Document Translator"
55
license = "AGPL-3.0"
66
readme = "README.md"
@@ -148,7 +148,7 @@ pythonpath = [".", "src"]
148148
testpaths = ["tests"]
149149

150150
[bumpver]
151-
current_version = "0.3.7"
151+
current_version = "0.3.8"
152152
version_pattern = "MAJOR.MINOR.PATCH[.PYTAGNUM]"
153153

154154
[bumpver.file_patterns]

0 commit comments

Comments
 (0)