Browse Source

fix vflag

Byaidu 1 year ago
parent
commit
7017e94b2f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pdf2zh/__init__.py
  2. 1 1
      pdf2zh/converter.py

+ 1 - 1
pdf2zh/__init__.py

@@ -1,2 +1,2 @@
-__version__ = "1.4.2"
+__version__ = "1.4.3"
 __author__ = "Byaidu"

+ 1 - 1
pdf2zh/converter.py

@@ -393,7 +393,7 @@ class TextConverter(PDFConverter[AnyIO]):
                     if re.match(self.vfont,font):
                         return True
                 else:
-                    if re.match(r'(CM[^R].*|MS.*|XY.*|MT.*|BL.*|RM.*|EU.*|LINE.*|LMMono.*|.*0700|.*0500|.*Ital|.*Symbol|.*math)',font):
+                    if re.match(r'(CM[^R].*|MS.*|XY.*|MT.*|BL.*|RM.*|EU.*|LINE.*|LMMono.*|rsfs.*|txsy.*|.*0700|.*0500|.*Ital|.*Sym|.*math)',font):
                         return True
                 if self.vchar:
                     if re.match(self.vchar,char):