pdf2md.py als fester Name, v1–v4 nach History/ verschoben
- pdf2md_v5.py → pdf2md.py; Verweise in Doku und Tests angepasst - pdf2md_v1.py … pdf2md_v4.py nach History/ verschoben - ljutsch_meta.xml entfernt (nicht mehr verwendet) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
37ea397a29
commit
b4b911d37f
1 changed files with 22 additions and 49 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Bedienungsanleitung: pdf2md_v5.py – PDF → Markdown → EPUB
|
||||
# Bedienungsanleitung: pdf2md.py – PDF → Markdown → EPUB
|
||||
|
||||
`pdf2md_v5.py` wandelt PDF-Bücher in sauberes Markdown um: echte Absätze, Überschriften mit
|
||||
`pdf2md.py` wandelt PDF-Bücher in sauberes Markdown um: echte Absätze, Überschriften mit
|
||||
richtiger Ebene, Bilder und ohne Seitenzahlen. Daraus entsteht auf Wunsch direkt ein EPUB für
|
||||
den PocketBook-Reader. Das funktioniert mit digitalen PDFs (Text lässt sich markieren) ebenso wie
|
||||
mit gescannten PDFs (nur Seitenbilder, der Text wird per OCR erkannt).
|
||||
|
|
@ -31,7 +31,7 @@ Prüfen, ob alles da ist:
|
|||
```bash
|
||||
tesseract --list-langs # muss "deu" enthalten
|
||||
pandoc --version # Version 3.x
|
||||
python3 pdf2md_v5.py --help # zeigt alle Optionen
|
||||
python3 pdf2md.py --help # zeigt alle Optionen
|
||||
```
|
||||
|
||||
---
|
||||
|
|
@ -40,7 +40,7 @@ python3 pdf2md_v5.py --help # zeigt alle Optionen
|
|||
|
||||
```bash
|
||||
cd ~/Downloads/ljutsch
|
||||
python3 pdf2md_v5.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
|
||||
python3 pdf2md.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
|
||||
```
|
||||
|
||||
Das Programm meldet zuerst, was es in der PDF gefunden hat:
|
||||
|
|
@ -80,7 +80,7 @@ EPUB zum Vergleichen:
|
|||
|
||||
```bash
|
||||
cd ~/Downloads/ljutsch
|
||||
python3 pdf2md_v5.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
|
||||
python3 pdf2md.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
|
||||
```
|
||||
|
||||
Wenn du kein Cover und kein Probe-EPUB brauchst, reicht `--images` statt `--epub`.
|
||||
|
|
@ -144,7 +144,7 @@ pandoc band1.md \
|
|||
--epub-cover-image band1_images/cover.jpg
|
||||
```
|
||||
|
||||
Das sind dieselben Einstellungen, die `pdf2md_v5.py --epub` verwendet. Titel und Autor trägst du
|
||||
Das sind dieselben Einstellungen, die `pdf2md.py --epub` verwendet. Titel und Autor trägst du
|
||||
selbst ein. Ohne Cover lässt du die letzte Zeile weg und entfernst den `\` am Ende der Zeile davor.
|
||||
|
||||
Schritt 2 und 3 kannst du beliebig oft wiederholen. **Achtung:** Schritt 1 erneut auszuführen
|
||||
|
|
@ -158,7 +158,7 @@ Dateinamen.
|
|||
Bei Scans liest das Programm den Text per OCR (Tesseract). Der Aufruf ist derselbe:
|
||||
|
||||
```bash
|
||||
python3 pdf2md_v5.py --epub scan.pdf Output/scan.md
|
||||
python3 pdf2md.py --epub scan.pdf Output/scan.md
|
||||
```
|
||||
|
||||
| Situation | Option |
|
||||
|
|
|
|||
Loading…
Reference in a new issue