translator-pdf2zh

用统一脚本执行 pdf2zh-next。支持单/多PDF、目录批处理、按 glob 筛选;未指定 provider 时按 config.toml 生效;指定 provider 时按官方 --<Services> 参数传给主程序;支持实时监控与并行翻译。

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 "translator-pdf2zh" with this command: npx skills add mxingchtongaelofficial2568/pdf2zh-translator

translator-pdf2zh

1) 强制安全边界

  1. 只允许读取 skills/translator-pdf2zh/config.toml(相对路径,跨电脑可识别)。
  2. 禁止读取 openclaw.json 或任何 agent 内部配置。
  3. 禁止读写全局 ~/.config/pdf2zh/config.v3.toml
  4. 运行子进程时必须隔离 HOME/USERPROFILE/XDG_CONFIG_HOME。
  5. 不做运行时 pip install

2) 审计声明(避免误判“隐式下载”)

  • 本脚本不内置外部下载逻辑。
  • pdf2zh-next/babeldoc 首次运行可能下载模型/字体/cmap(上游行为)。

3) 输入能力

  • --input-file(可重复)
  • --input-dir(可重复)
  • --include-glob(可重复)
  • --workers N(并行,N>=1)
  • --visible-monitor(实时进度)

4) Provider 规则

  • 不传 --provider:完全按 config.toml
  • --provider
    • 先校验 provider 在 config.toml 顶层存在;
    • 再校验主程序存在官方 --<Services> 参数;
    • 通过后仅传官方参数。

5) 命令模板

python skills/translator-pdf2zh/scripts/run_pdf2zh_pipeline.py \
  --input-file "{PDF路径}" \
  --output-dir "{输出目录}" \
  --provider "{可选: openai|deepseek|siliconflow|openaicompatible|...}" \
  --config-path "skills/translator-pdf2zh/config.toml" \
  --visible-monitor \
  --workers 1

6) 帮助

  • 如果Agent无法将用户的需求正确转化为pdf2zh_next主程序所能读懂的参数,Agent需要使用参数-h功能运行主程序,读取pdf2zh_next主程序输出的参数说明,确定参数的正确用法。或者是读取官方参考文档https://pdf2zh-next.com/zh/advanced/advanced.html

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.

General

Content Keyword Tracker

An OpenClaw skill for tracking keyword trends and generating structured reports. Uses Tavily API for search and supports webhook notifications for daily repo...

Registry SourceRecently Updated
General

读书每日推荐

微信读书飙升榜每日推荐卡片生成器。从微信读书飙升榜抓取热门书籍数据,生成精美的每日读书推荐卡片(HTML/PNG)。当用户说「读书推荐」「微信读书」「飙升榜」「今日好书」「推荐一本书」「读书卡片」「book recommendation」时触发。也可用于每日定时推送读书推荐场景。

Registry SourceRecently Updated
General

V3.3 系统架构白皮书

V3.3系统架构白皮书 — V19认知治理协议最高级架构版本。三维耦合引擎(空间冗余×时间调度×结构对齐)整合内部自洽、外部控制、注意力均衡为单一状态机驱动执行流。

Registry SourceRecently Updated
General

CORE CONSTITUTION MANIFEST API Spec v1.0.0

CORE CONSTITUTION MANIFEST API规范文档v1.0.0 — V19认知治理协议的外部接入技术规范。包含宪法合规校验、系统启动自检、注意力均衡、审计冗余查询等核心端点。

Registry SourceRecently Updated