| 1 | #!/usr/bin/env python3 |
| 2 | """ |
| 3 | PPT Master - Native Narration PPTX Compatibility Entrypoint |
| 4 | |
| 5 | Backward-compatible CLI for callers that still use the retired narration |
| 6 | script name. New calls use native_enhance_pptx.py. |
| 7 | |
| 8 | Usage: |
| 9 | python3 scripts/native_narration_pptx.py init <source.pptx> [--name project_name] |
| 10 | python3 scripts/native_narration_pptx.py plan <project_path> |
| 11 | python3 scripts/native_narration_pptx.py validate <project_path> |
| 12 | python3 scripts/native_narration_pptx.py apply <project_path> |
| 13 | |
| 14 | Examples: |
| 15 | python3 scripts/native_narration_pptx.py validate projects/native_enhance_project |
| 16 | |
| 17 | Dependencies: |
| 18 | Same as native_enhance_pptx_core.py. |
| 19 | """ |
| 20 | |
| 21 | from __future__ import annotations |
| 22 | |
| 23 | import sys |
| 24 | from pathlib import Path |
| 25 | |
| 26 | _SCRIPTS_DIR = Path(__file__).resolve().parent |
| 27 | if str(_SCRIPTS_DIR) not in sys.path: |
| 28 | sys.path.insert(0, str(_SCRIPTS_DIR)) |
| 29 | |
| 30 | from console_encoding import configure_utf8_stdio # noqa: E402 |
| 31 | from native_enhance_pptx_core import main # noqa: E402 |
| 32 | |
| 33 | configure_utf8_stdio() |
| 34 | |
| 35 | |
| 36 | if __name__ == "__main__": |
| 37 | raise SystemExit(main()) |
| 38 |