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
3 changed files with 22 additions and 49 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import pymupdf
|
||||
import pytest
|
||||
|
||||
import pdf2md_v5 as p
|
||||
import pdf2md as p
|
||||
from conftest import needs_tesseract
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import pytest
|
|||
|
||||
from conftest import ROOT, TITLE, needs_pandoc, needs_tesseract
|
||||
|
||||
SCRIPT = ROOT / "pdf2md_v5.py"
|
||||
SCRIPT = ROOT / "pdf2md.py"
|
||||
|
||||
|
||||
def run(*args, cwd=None) -> subprocess.CompletedProcess:
|
||||
|
|
@ -132,7 +132,7 @@ def test_png_on_request(pdfs, tmp_path):
|
|||
|
||||
|
||||
def test_image_links_relative_to_markdown_with_relative_output(pdfs, tmp_path):
|
||||
# Aufruf wie "python3 pdf2md_v5.py --images buch.pdf Output/buch.md" aus dem Projektordner
|
||||
# Aufruf wie "python3 pdf2md.py --images buch.pdf Output/buch.md" aus dem Projektordner
|
||||
run(pdfs["digital"], "Output/buch.md", "--images", cwd=tmp_path)
|
||||
md = (tmp_path / "Output" / "buch.md").read_text(encoding="utf-8")
|
||||
links = re.findall(r"!\[\]\(([^)]+)\)", md)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from pathlib import Path
|
|||
import pymupdf
|
||||
import pytest
|
||||
|
||||
import pdf2md_v5 as p
|
||||
import pdf2md as p
|
||||
|
||||
|
||||
def norm(md: str, outline=None, **kwargs) -> str:
|
||||
|
|
|
|||
Loading…
Reference in a new issue