hugohe3--ppt-master
41 行
1.3 KiB
Python
41 行
1.3 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
PPT Master - Native Enhance PPTX Entrypoint
|
|
|
|
Public CLI wrapper for native enhancement of existing PPTX decks. V1 delegates
|
|
to the narration/timings implementation while keeping the stable command name
|
|
aligned with the native-enhance workflow.
|
|
|
|
Usage:
|
|
python3 scripts/native_enhance_pptx.py init <source.pptx> [--name project_name]
|
|
python3 scripts/native_enhance_pptx.py plan <project_path>
|
|
python3 scripts/native_enhance_pptx.py validate <project_path>
|
|
python3 scripts/native_enhance_pptx.py apply <project_path>
|
|
|
|
Examples:
|
|
python3 scripts/native_enhance_pptx.py init projects/source.pptx --name fire_station
|
|
python3 scripts/native_enhance_pptx.py plan projects/fire_station_native_enhance_20260626
|
|
python3 scripts/native_enhance_pptx.py apply projects/fire_station_native_enhance_20260626
|
|
|
|
Dependencies:
|
|
Same as native_narration_pptx.py.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
_SCRIPTS_DIR = Path(__file__).resolve().parent
|
|
if str(_SCRIPTS_DIR) not in sys.path:
|
|
sys.path.insert(0, str(_SCRIPTS_DIR))
|
|
|
|
from console_encoding import configure_utf8_stdio # noqa: E402
|
|
from native_narration_pptx import main # noqa: E402
|
|
|
|
configure_utf8_stdio()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|