{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ppt-translator",
    "name": "PPT Translator",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/Nimo1987/ppt-translator",
    "canonicalUrl": "https://clawhub.ai/Nimo1987/ppt-translator",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ppt-translator",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ppt-translator",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "scripts/translate.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ppt-translator"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ppt-translator",
    "agentPageUrl": "https://openagent3.xyz/skills/ppt-translator/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ppt-translator/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ppt-translator/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "🎯 PPT Translator",
        "body": "保持排版翻译 PPT，支持任意语言对。"
      },
      {
        "title": "核心原理",
        "body": "Agent Loop（渲染验证）：\n\n提取 PPT 文字 + 样式\nLLM 翻译（保证准确）\n写回 PPT（python-pptx）\nLibreOffice 渲染成真实 PNG\nVision 模型检测文字溢出\n有溢出 → 缩字号 15% → 回步骤 3\n通过 → 输出最终 PPTX"
      },
      {
        "title": "依赖",
        "body": "python-pptx（pip）\nlibreoffice（yum/apt）"
      },
      {
        "title": "使用方法",
        "body": "python3 scripts/translate.py \\\n  --input /path/to/file.pptx \\\n  --output /path/to/output.pptx \\\n  --translations '{\"原文\": \"translation\", ...}' \\\n  --max-iter 5"
      },
      {
        "title": "Agent 调用流程",
        "body": "用户发送 PPTX 文件\nAgent 提取所有文字 → 翻译（自己翻译或调用 LLM）\n调用 scripts/translate.py 执行渲染验证循环\n循环完成后将输出 PPTX 发回用户"
      },
      {
        "title": "输出",
        "body": "最终 PPTX 文件（可编辑）\n渲染验证 PNG（可选，用于确认）\n迭代日志（几轮收敛、最终字号缩放比）"
      },
      {
        "title": "注意事项",
        "body": "LibreOffice 首次启动较慢（~5s），之后正常\n字号缩放是全局的（所有 shape 等比缩），未来可优化为 per-shape\n不支持 .ppt（老格式），仅支持 .pptx"
      }
    ],
    "body": "🎯 PPT Translator\n\n保持排版翻译 PPT，支持任意语言对。\n\n核心原理\n\nAgent Loop（渲染验证）：\n\n提取 PPT 文字 + 样式\nLLM 翻译（保证准确）\n写回 PPT（python-pptx）\nLibreOffice 渲染成真实 PNG\nVision 模型检测文字溢出\n有溢出 → 缩字号 15% → 回步骤 3\n通过 → 输出最终 PPTX\n依赖\npython-pptx（pip）\nlibreoffice（yum/apt）\n使用方法\npython3 scripts/translate.py \\\n  --input /path/to/file.pptx \\\n  --output /path/to/output.pptx \\\n  --translations '{\"原文\": \"translation\", ...}' \\\n  --max-iter 5\n\nAgent 调用流程\n用户发送 PPTX 文件\nAgent 提取所有文字 → 翻译（自己翻译或调用 LLM）\n调用 scripts/translate.py 执行渲染验证循环\n循环完成后将输出 PPTX 发回用户\n输出\n最终 PPTX 文件（可编辑）\n渲染验证 PNG（可选，用于确认）\n迭代日志（几轮收敛、最终字号缩放比）\n注意事项\nLibreOffice 首次启动较慢（~5s），之后正常\n字号缩放是全局的（所有 shape 等比缩），未来可优化为 per-shape\n不支持 .ppt（老格式），仅支持 .pptx"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Nimo1987/ppt-translator",
    "publisherUrl": "https://clawhub.ai/Nimo1987/ppt-translator",
    "owner": "Nimo1987",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ppt-translator",
    "downloadUrl": "https://openagent3.xyz/downloads/ppt-translator",
    "agentUrl": "https://openagent3.xyz/skills/ppt-translator/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ppt-translator/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ppt-translator/agent.md"
  }
}