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

MacOS Desktop Control

Generic macOS desktop control using AppleScript for app and window semantics plus screenshot, OCR, mouse, and keyboard workflows.

Registry SourceRecently Updated
Automation

siyuan-llm-wiki

在思源笔记中复现 Karpathy 的 LLM Wiki 工作流。 通过思源 HTTP API 让 AI Agent 维护结构化知识库,支持来源摘要、实体页、概念页、 综合分析和双向链接。利用思源原生 SQL 查询和块级引用实现比 Obsidian 更精细的知识管理。

Registry SourceRecently Updated
Automation

Open-broker

Hyperliquid trading plugin with background position monitoring and custom automations. Execute market orders, limit orders, manage positions, view funding ra...

Registry SourceRecently Updated
2.9K9ya7ya
Automation

neuropay

Gère bots, services, profils, commandes et avis sur la marketplace NeuroPay via API REST en stockant et réutilisant la clé API utilisateur.

Registry SourceRecently Updated