← Về thư mục
- _generate_hex_id · function · L90-L91 — def _generate_hex_id() -> str
- _encode_smart_quotes · function · L94-L97 — def _encode_smart_quotes(text: str) -> str
- _append_xml · function · L100-L109 — def _append_xml(xml_path: Path, root_tag: str, content: str) -> None
- _find_para_id · function · L112-L119 — def _find_para_id(comments_path: Path, comment_id: int) -> str | None
- _next_comment_id · function · L122-L132 — def _next_comment_id(comments_path: Path) -> int
- _get_next_rid · function · L135-L145 — def _get_next_rid(rels_path: Path) -> int
- _has_relationship · function · L148-L153 — def _has_relationship(rels_path: Path, target: str) -> bool
- _has_content_type · function · L156-L161 — def _has_content_type(ct_path: Path, part_name: str) -> bool
- _ensure_comment_relationships · function · L178-L209 — def _ensure_comment_relationships(unpacked_dir: Path) -> None
- _ensure_comment_content_types · function · L212-L232 — def _ensure_comment_content_types(unpacked_dir: Path) -> None
- add_comment · function · L235-L310 — def add_comment( unpacked_dir: Path | str, text: str, comment_id: int | None = None, author: str = "Claude", initials: str = "C", parent_id: int | None = None, raw: bool = False, ) -> tuple[int, str, str]
- main · function · L313-L364 — def main() -> None