ppt-translator

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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ppt-translator" with this command: npx skills add nimo1987/ppt-translator

🎯 PPT Translator

保持排版翻译 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

Agent 调用流程

  1. 用户发送 PPTX 文件
  2. Agent 提取所有文字 → 翻译(自己翻译或调用 LLM)
  3. 调用 scripts/translate.py 执行渲染验证循环
  4. 循环完成后将输出 PPTX 发回用户

输出

  • 最终 PPTX 文件(可编辑)
  • 渲染验证 PNG(可选,用于确认)
  • 迭代日志(几轮收敛、最终字号缩放比)

注意事项

  • LibreOffice 首次启动较慢(~5s),之后正常
  • 字号缩放是全局的(所有 shape 等比缩),未来可优化为 per-shape
  • 不支持 .ppt(老格式),仅支持 .pptx

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Sharpagent Engineering Lifecycle

SharpAgent Engineering Lifecycle — 6-phase engineering pipeline: Spec → Plan → Build → Verify → Review → Ship. Embedding five-factor review, calibration fram...

Registry SourceRecently Updated
Automation

Sharpagent Five Factor Review

SharpAgent Five-Factor Review — Anti-bias information credibility verification system. Evaluates any source across 5 independent dimensions: source credibili...

Registry SourceRecently Updated
Automation

Sharpagent Skill Contract

SharpAgent Skill Contract — Schema-driven skill scaffolding tool. Generates, validates, and packages SharpAgent-compliant skills with five-factor trust verif...

Registry SourceRecently Updated
Automation

Windows Execution Interface for OpenClaw

Windows automation via Clawdos API: screen capture, mouse/keyboard input, window management, file-system operations, and shell command execution. Standalone...

Registry SourceRecently Updated