pptx_notes_word2 プログラム仕様

Convert speaker notes between PowerPoint (.pptx) and notes files (.docx/.txt/.md).

【COM API版】 PowerPoint本体を直接操作(win32com)するため、数式や複雑なグラフが含まれていても ファイルが破損することなく安全に処理できます。

Dependencies:

pip install pywin32
pip install python-docx   # only needed for .docx files
pptx_notes_word2.add_subtitle(slide, prs, text: str, args) → None
pptx_notes_word2.build_parser() → ArgumentParser
pptx_notes_word2.compose_notes(manuscript: str, narration: str | None) → str
pptx_notes_word2.get_slide_notes(slide) → str
pptx_notes_word2.hex_to_bgr(hex_str: str) → int

16進数RGB文字列をCOM API用のBGR整数値に変換する

pptx_notes_word2.is_ignored_split_line(line: str) → bool
pptx_notes_word2.main() → int
pptx_notes_word2.nonempty_lines(text: str) → list[str]
pptx_notes_word2.notes_to_pptx(pptx_path: Path, manuscript_path: Path, narration_path: Path | None, output_path: Path | None, split_lines: bool, add_subtitles: bool, args) → int
pptx_notes_word2.pptx_to_notes(pptx_path: Path, notes_path: Path) → int
pptx_notes_word2.read_notes_sections(notes_path: Path) → dict[int, str]
pptx_notes_word2.set_slide_notes(slide, text: str) → bool
pptx_notes_word2.split_speaker_line(line: str) → tuple[str | None, str]
pptx_notes_word2.subtitle_text(text: str) → str
pptx_notes_word2.warn_speaker_mismatch(manuscript_line: str, narration_line: str | None, slide_no: int, line_no: int) → None
pptx_notes_word2.warning(message: str) → None