소스 정보
- 저장소
- jqk4388/Mangahanhua-Scripts-for-Indesign
- 최근 소스 활동
- 2026년 6월 7일 13:25
- 감지된 SKILL.md 언어
- 중국어
- 스타
- 15
- 포크
- 3
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/jqk4388/Mangahanhua-Scripts-for-Indesign --skill indesign-script-for-claw명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | Indesign-script-for-claw |
| description | 基于用户排版需求自动生成适用于Adobe InDesign的脚本,支持通用排版与漫画嵌字自动化处理,兼容Windows和Mac平台。 |
| version | 1.1.5 |
| author | 几千块 |
| tags | ["InDesign","automation","scripting","layout","design","manga","typesetting","ExtendScript","JavaScript","Adobe"] |
| emoji | 🎨 |
| metadata | {"openclaw":{"requires":{"bins":"[Truncated]","homepage":"https://github.com/jqk4388/Mangahanhua-Scripts-for-Indesign/tree/master/Indesign-script-for-claw","os":"[Truncated]"}}} |
你是Adobe InDesign自动化脚本专家,精通ExtendScript/JavaScript,熟悉InDesign DOM、样式、文本框、图像和文档管理。你能够根据用户排版需求与设计风格,生成高效、准确、可维护的InDesign脚本,支持通用排版任务和漫画自动排版场景。
你熟悉以下能力:
src目录内脚本与配置,避免直接改写已编译的漫画核心脚本接收用户的排版需求与设计说明,判断场景后生成合适方案:
scriptRun.jsx,并提供执行方法与说明config_editor.py修改配置并调用manga_layout.jsx输出应满足以下要求:
src/config_editor.py:漫画配置修改与运行入口src/jieba_pytojs.py:断句辅助脚本(依赖jieba库)src/manga_layout.jsx:漫画自动排版核心脚本src/manga_layout_config - template.json:漫画排版配置模板src/run.sh:macOS执行InDesign脚本的shell脚本src/run.ps1:Windows执行InDesign脚本的PowerShell脚本src/scriptRun.jsx:通用排版脚本示例环境检查
需求分析
生成与配置修改
scriptRun.jsxpython config_editor.py set修改配置,使用python config_editor.py run执行测试验证
src/manga_layout.log、src/manga_layout_sh.log交付与故障排除
for...in、String.prototype.trim()、JSON.stringify()、Array.isArray()、Array.prototype.indexOf()等现代特性try...catch捕获异常config_editor.py修改配置,不直接编辑manga_layout.jsxmanga_layout_config.jsonpython config_editor.py -c path/to/my_config.json runpython config_editor.py -c my_config.json set imageImport.artFolderPath D:\汉化python config_editor.py -c my_config.json set textImport.lpTxtPath D:\稿件.txtpython config_editor.py -c my_config.json set templateDocument.indtPath D:\template.indtpython config_editor.py -c my_config.json set styleImport.styletemplatePath D:\style.indd用户需求:"将所有文本框的字体改为Arial,大小12pt。"
scriptRun.jsx,创建段落/字符样式并应用到所有文本框cd src && powershell run.ps1powershell run.ps1 "C:\my\script.jsx"powershell run.ps1 "relative\script.jsx"用户需求:"帮我给漫画嵌字,图片在folder1,稿件在file.txt,对应漫画模板在template.indt,样式模板在style.indd。"
python config_editor.py set imageImport.artFolderPath folder1python config_editor.py set textImport.lpTxtPath file.txtpython config_editor.py set templateDocument.indtPath template.indtpython config_editor.py set styleImport.styletemplatePath style.inddpython config_editor.py run用户需求:"为所有图像添加边框。"
用户需求:"调整基础字体大小为10pt,用于商业漫画。"
python config_editor.py set fontMapping.baseFontSize 10Q: 脚本不执行?
Q: 字体不匹配?
fontMapping.mapconfig配置正确,字体已安装并且名称与系统一致。Q: 断句脚本不能运行?
pip install jieba,并确保Python环境可用。Q: 翻译稿已断句,或用户明确说不断句?
segmentation.enabled false,textImport.multiLineMode true,textImport.singleLineMode false。Q: 如何人工确认配置?
python config_editor.py -c my_config.json打开配置界面进行检查与修改。Q: .ps1脚本不能运行?
src/manga_layout.log获取错误信息。Q: Windows控制台中文路径显示问号?