(label: str)
| 37 | |
| 38 | |
| 39 | def normalize_label(label: str) -> str: |
| 40 | text = normalize_whitespace(label).lower() |
| 41 | text = text.replace("figure", "fig") |
| 42 | text = re.sub(r"\bfig\.\s*", "fig ", text) |
| 43 | text = re.sub(r"\btable\.\s*", "table ", text) |
| 44 | return normalize_whitespace(text) |
| 45 | |
| 46 | |
| 47 | def caption_items(source_manifest: dict[str, Any]) -> list[dict[str, Any]]: |
no test coverage detected