Skip to content

Commit 6684b67

Browse files
authored
Merge pull request #207 from funstory-ai/pdf2zh-v2-rc
fix(styles_and_formulas): update font pattern regex to include Segoe UI
2 parents 778a04f + 472316e commit 6684b67

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

babeldoc/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.26"
1+
__version__ = "0.2.27"

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.2.26"
6+
__version__ = "0.2.27"
77

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

babeldoc/document_il/midend/styles_and_formulas.py

+1
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def is_formulas_font(self, font_name: str) -> bool:
533533
r"|CMSS.+"
534534
r"|Arial.*"
535535
r"|TimesNewRoman.*"
536+
r"|SegoeUI.*"
536537
r")$"
537538
)
538539
if self.translation_config.formular_font_pattern:

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.2.26"
26+
__version__ = "0.2.27"
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.2.26"
3+
version = "0.2.27"
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.2.26"
151+
current_version = "0.2.27"
152152
version_pattern = "MAJOR.MINOR.PATCH[.PYTAGNUM]"
153153

154154
[bumpver.file_patterns]

0 commit comments

Comments
 (0)