moda-deck-pptx
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesemoda-deck-pptx
moda-deck-pptx
<!-- moda:banner -->
PREREQUISITE — load once per session (step-0, write contract,
free/metered map). Already loaded? Skip ahead. If you cannot load it, the
non-negotiables: run before anything;
before creating; every write carries the latest revision — on
, re-read and retry once (it heals); send the canvas link the
moment it exists; stuck or failed? — free and fast,
never guess.
<!-- /moda:banner -->moda-coremoda doctor --jsonmoda brand liststale_revisionmoda ask "<question>"<!-- moda:banner -->
前提条件——每个会话只需加载一次(步骤0,编写合约,免费/按使用量计费映射)。已加载?直接跳过。如果无法加载,必须执行以下操作:先运行;创建前先运行;每次写入操作都会携带最新版本——遇到时,重新读取并重试一次即可解决;画布链接一生成就发送;遇到卡顿或失败?使用——免费且快速,切勿自行猜测。
<!-- /moda:banner -->moda-coremoda doctor --jsonmoda brand liststale_revisionmoda ask "<question>"Sizes and defaults
尺寸与默认设置
| Thing | Value | Notes |
|---|---|---|
| Import | | FREE, un-billed, async — the verb polls to completion |
| Result | one canvas, one page per slide | slide size is preserved from the file |
| Round trip | | native shapes and text layers, not screenshots |
| Data law | every source string and number survives verbatim | a cleanup that loses data is a failure |
Import takes a local path or a durable ref. Nothing is generated and
nothing is charged; the import is the cheapest useful thing you can do with a
deck someone hands you.
file_…| 事项 | 值 | 说明 |
|---|---|---|
| 导入 | | 免费、不计费、异步操作——该命令会轮询直至完成 |
| 结果 | 一个画布,每张幻灯片对应一个页面 | 幻灯片尺寸与原文件保持一致 |
| 往返导出 | | 原生形状和文本图层,而非截图 |
| 数据规则 | 所有源字符串和数字均完整保留 | 丢失数据的清理操作视为失败 |
导入支持本地路径或持久化的引用。此操作不会生成额外内容,也不收取费用;是处理他人交付的演示文稿时性价比最高的操作。
file_…Recipe — import, then fix
操作流程——导入后修复
- — free, async, polls itself to completion (
moda canvas import-pptx [deck.pptx]returns a job id; re-poll with--no-wait). Send the canvas link the MOMENT it exists.moda canvas import-pptx --job [JOB_ID] - — the page index and what landed on each slide.
moda canvas read [CANVAS_REF] --summary - in ≤3-page batches, worst slides first. Judge with your own eyes; list the fixes before making any.
moda canvas screenshot [CANVAS_REF] --page [IDS] - Fix smallest-change-first, one slide at a time: for targeted property changes (references/edit-code.md);
moda canvas edit [CANVAS_REF] --file fix.jsto rebuild a slide outright (grammar: references/markup.md);moda canvas markup [CANVAS_REF] --file - --page [PAGE_ID] --mode replace --revision [REV]for cruft. Data preservation is non-negotiable — restate every source string and number verbatim.moda canvas delete-items [CANVAS_REF] [NODE_IDS] - Re-theming to the team's kit? records the kit; the tokens still have to be authored into the slides (kit creation itself is moda-brand's job).
moda canvas brand [CANVAS_REF] [KIT] - again and compare against your fix list.
moda canvas screenshot [CANVAS_REF] - Deliver the live link; export back only on a format word or an accepted offer: .
moda export [CANVAS_REF] --format pptx -o [deck]-clean.pptx - Read the export warnings — (an image baked in rather than editable) and
pptx_shape_rasterized(an element missing entirely) name exactly what did not survive. Repair or disclose; never hand over a silently degraded deck.pptx_content_dropped
- ——免费、异步,会自动轮询直至完成(
moda canvas import-pptx [deck.pptx]参数会返回任务ID;可通过--no-wait重新轮询)。画布链接一生成就立即发送。moda canvas import-pptx --job [JOB_ID] - ——查看页面索引及每张幻灯片的内容。
moda canvas read [CANVAS_REF] --summary - ——每次最多处理3页,优先处理问题最严重的幻灯片。自行判断问题,列出修复项后再开始操作。
moda canvas screenshot [CANVAS_REF] --page [IDS] - 优先进行最小改动的修复,逐页处理:使用进行针对性属性修改(参考references/edit-code.md);使用
moda canvas edit [CANVAS_REF] --file fix.js彻底重建幻灯片(语法参考references/markup.md);使用moda canvas markup [CANVAS_REF] --file - --page [PAGE_ID] --mode replace --revision [REV]清理冗余内容。必须严格保留数据——所有源字符串和数字均需完整重现。moda canvas delete-items [CANVAS_REF] [NODE_IDS] - 要重新应用团队的品牌套件?使用绑定套件;仍需将品牌标记添加到幻灯片中(套件创建由moda-brand负责)。
moda canvas brand [CANVAS_REF] [KIT] - 再次运行,与修复清单进行对比。
moda canvas screenshot [CANVAS_REF] - 交付实时链接;仅在明确要求格式或获得许可后再导出:。
moda export [CANVAS_REF] --format pptx -o [deck]-clean.pptx - 务必查看导出警告——(转为图片而非可编辑元素)和
pptx_shape_rasterized(元素完全丢失)会明确指出未保留的内容。进行修复或告知用户;绝不能交付存在隐性损坏的演示文稿。pptx_content_dropped
Examples
示例
- "clean up this PowerPoint" → import, screenshot the worst slides, fix, export.
- "put our brand on this deck" → import, bind the kit, re-author the tokens.
- "what's actually in this deck?" → import + ; no edits unasked.
read --summary - "fix slide 7's chart" → import, then the targeted-edit step on that page only.
- "build a NEW deck from this content" → moda-deck owns authoring from scratch.
- "清理这份PowerPoint" → 导入,截取问题最严重的幻灯片,修复,导出。
- "将我们的品牌应用到这份演示文稿" → 导入,绑定品牌套件,添加品牌标记。
- "这份演示文稿里到底有什么内容?" → 导入 + ;未经请求请勿编辑。
read --summary - "修复第7页的图表" → 导入,然后针对该页面执行针对性编辑步骤。
- "基于这份内容创建新演示文稿" → 由moda-deck负责从头创作。
Errors
错误处理
Any typed error → load moda-core and read its recovery reference.
An import that fails or returns an empty canvas is a file problem, not a retry
problem: say what happened, then with the task error.
moda ask "<question>"任何输入错误 → 加载moda-core并查看其恢复参考文档。
导入失败或返回空画布属于文件问题,无需重试:说明情况,然后使用并附上任务错误信息。
moda ask "<question>"Make it recurring
实现常态化
The cleaned deck is the team's canonical starting point — flag it with
via moda-templates, so the next deck starts
there instead of from another crufty .pptx.
moda canvas template [CANVAS_REF]See also: moda-deck — authoring a deck from a brief, doc, or notes ·
moda-core — the contract, recovery, everything Moda can do.
清理后的演示文稿作为团队的标准起始模板——通过moda-templates使用标记为模板,这样后续的演示文稿就可以基于此创建,而非使用其他冗余的.pptx文件。
moda canvas template [CANVAS_REF]另请参阅:moda-deck — 根据简报、文档或笔记创作演示文稿 · moda-core — 合约、恢复及Moda的所有功能。
References
参考文档
| Doc | Load when |
|---|---|
| references/deck-design.md | judging and rebuilding an imported slide |
| references/edit-code.md | before any targeted fix program |
| references/export.md | the pptx round trip and its warnings |
| 文档 | 加载时机 |
|---|---|
| references/deck-design.md | 判断和重建导入的幻灯片时 |
| references/edit-code.md | 执行任何针对性修复程序前 |
| references/export.md | 进行pptx往返导出及查看警告时 |