[wishlist]: annotate PDFs
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
Start by reading the codespell project entry points and tests to understand how files are currently checked; this issue names no specific files or tests. Then evaluate the proposed PDF text-extraction and annotation libraries against the desired workflow. Done would require a defined, tested way to check PDF text and annotate identified misspellings, but the issue does not specify expected behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
codespell is so great, would have been nice if we could get it to check and annotate text in other media, in particular in PDFs. Here is some background information from chatting with ChatGPT (adding references):
Yes, some of these libraries can be used to extract text along with their locations from a PDF, which would allow you to add annotations on mistyped words or similar tasks. The two most suitable libraries for this purpose are:
-
PDFMiner: PDFMiner (dead, community fork: https://github.com/pdfminer/pdfminer.six) is especially powerful for this task. It allows you to extract not just the text but also detailed information about the text layout, including the position of each character. This can be very useful if you want to find specific words and their locations for annotation purposes.
-
PyMuPDF (https://github.com/pymupdf/PyMuPDF) (Fitz): This is another library that's highly effective for extracting text with layout information. PyMuPDF provides detailed information about each text block, line, and even individual characters, including their positions on the page.
Both of these libraries will let you extract text in a way that retains information about where each piece of text is located on the page. You can then use this information to target specific words or phrases for annotation.
After extracting the text and its location, you can use a library like PyPDF2 or ReportLab to add annotations or highlight the text at the identified locations. This two-step process (text extraction with PDFMiner or PyMuPDF and annotation with PyPDF2 or ReportLab) can be quite effective for tasks like marking typos or adding notes to specific sections of text in a PDF document.
- Linguagem predominante
- Python
- Estrelas
- 2.4k
- Forks
- 531
- Merge médio
- 15h 5min
- PRs com merge (30d)
- 18
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de codespell-project/codespell
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
codespell-project/codespell#3997 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
codespell-project/codespell#3965 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Add "marcos"Talvez já em andamento @ekanshul assumiu há 19 dias. Abertadictionary
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
codespell-project/codespell#3920 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
question
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
codespell-project/codespell#4005 ·
Mantenedores costumam responder em até 1 dia
-
duplicate question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
codespell-project/codespell#3998 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de codespell-project/codespell
Issues semelhantes
-
area/profiles comp/cli P3 type/feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
NousResearch/hermes-agent#146372 ·
Mantenedores costumam responder em até 1 dia
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistenciesTalvez já em andamento @github-actions assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
GeoSeries scale and skew tests fail with pytest 9.2.0Talvez já em andamento @jiayuasu assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
admission-deferred priority: medium status: ready work-class: scoped
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
melodic-software/claude-code-plugins#10887 · 4 comentários ·
Mantenedores costumam responder em até 1 dia