← Về thư mục
scripts/adapters/_common.py
- path_to_file_uri · function · L16-L24 — def path_to_file_uri(path: Path | str) -> str
- sanitize_citation_key · function · L36-L38 — def sanitize_citation_key(raw: str) -> str
- _first_title_word_non_stopword · function · L41-L47 — def _first_title_word_non_stopword(title_hint: str | None) -> str
- _alpha_suffixes · function · L50-L56 — def _alpha_suffixes()
- make_citation_key · function · L59-L87 — def make_citation_key( *, family: str, year: int, title_hint: str | None, existing: set[str] ) -> str
- ensure_unique_citekey · function · L90-L122 — def ensure_unique_citekey(key: str, existing: set[str]) -> str
- parse_csl_name · function · L125-L139 — def parse_csl_name(raw: str) -> dict[str, str]
- parse_semicolon_names · function · L142-L147 — def parse_semicolon_names(raw: str) -> list[dict[str, str]]
- dump_yaml_stable · function · L150-L161 — def dump_yaml_stable(data: Any) -> str
- now_iso · function · L164-L166 — def now_iso() -> str
- write_passport · function · L169-L173 — def write_passport(path: Path, entries: list[dict[str, Any]]) -> None
- write_rejection_log · function · L176-L209 — def write_rejection_log( path: Path, *, adapter_name: str, adapter_version: str, rejected: list[dict[str, Any]], input_source: str | None = None, total_input: int | None = None, total_accepted: int | None = None, ) -> None