-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
翻译后的文件中关键字词自动加标注 #954
Copy link
Copy link
Closed
Labels
PlannedenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PlannedenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed