Skip to content

Commit

Permalink
fix: mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Byaidu committed Nov 28, 2024
1 parent 13d4441 commit 5aa5bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf2zh/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def raw_string(fcur: str, cstk: str): # 编码字符串
adv = vlen[vid]
except Exception:
continue # 翻译器可能会自动补个越界的公式标记
if len(var[vid]) == 1 and unicodedata.category(var[vid][0].get_text()[0]) in ["Lm", "Mn", "Sk"]: # 文字修饰符
if len(var[vid]) == 1 and var[vid][0].get_text() and unicodedata.category(var[vid][0].get_text()[0]) in ["Lm", "Mn", "Sk"]: # 文字修饰符
mod = True
else: # 加载文字
ch = new[ptr]
Expand Down

0 comments on commit 5aa5bf1

Please sign in to comment.