name: ppt-translator description: Translate PowerPoint files to any language while preserving layout. Uses a render-and-verify agent loop (LibreOffice + Vision) to guarantee no text overflow. Activate when user wants to translate a PPT/PPTX file.
保持排版翻譯 PPT,支援任意語言對。
Agent Loop(渲染驗證): 1. 提取 PPT 文字 + 樣式 2. LLM 翻譯(保證準確) 3. 寫回 PPT(python-pptx) 4. LibreOffice 渲染成真實 PNG 5. Vision 模型檢測文字溢位 6. 有溢位 → 縮字號 15% → 回步驟 3 7. 通過 → 輸出最終 PPTX
python-pptx(pip)libreoffice(yum/apt)python3 scripts/translate.py \
--input /path/to/file.pptx \
--output /path/to/output.pptx \
--translations '{"原文": "translation", ...}' \
--max-iter 5
scripts/translate.py 執行渲染驗證迴圈想要更強大的技能外掛,就來小蔥技能站7w4.net看看吧。
這個 PPT 翻譯工具質量不錯,核心設計實用,文件清晰易懂,能有效處理翻譯後的排版問題。不過功能範圍較窄,只支援較新的 pptx 格式,不支援老版本;某些複雜排版情況下可能出現文字溢位。使用前需要了解它的能力和限制。整體來說是個靠譜的翻譯工具,但可能不適合所有 PPT 檔案。