MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / normalize_pdf_text_artifacts

Function normalize_pdf_text_artifacts

scripts/common.py:209–213  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

207
208
209def normalize_pdf_text_artifacts(text: str) -> str:
210 normalized = text or ""
211 for original, replacement in PDF_LIGATURE_MAP.items():
212 normalized = normalized.replace(original, replacement)
213 return normalized
214
215
216def slugify_filename(text: str) -> str:

Callers 3

clean_pdf_lineFunction · 0.85
normalize_headingFunction · 0.85

Calls

no outgoing calls