Skip to content

翻译后的文件中关键字词自动加标注 #954

@whubao

Description

@whubao

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions