翻译后的文件中关键字词自动加标注 #954
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Planned
Is your feature request related to a problem?
pdfzh.py 中添加:
text_zh=["可是","然而","但","却","不过","尽管","虽然","即使","而","相反","反之","相比之下","尽管如此","贡献","创新性","挑战","不足","动机","限制","缺陷"]
并修改:
doc_zh = pymupdf.open('output-zh.pdf')
for page in doc_zh:
for text in text_zh:
rects = page.search_for(text)
page.add_highlight_annot(rects)
Describe the solution you'd like
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: