Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

pdf-translation-reserving-layoutPDF translation reserving layout 搜索

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

2,540

周安装

108

GitHub Stars

公开资料未说明

下载量

890
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pdf-translation-reserving-layout(PDF translation reserving layout 搜索)
来源仓库:https://github.com/getlinnk/pdf-translation-reserving-layout
安装命令:
openclaw skills install pdf-translation-reserving-layout
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pdf-translation-reserving-layout

简介

本地翻译 PDF 页面文本,保留原始布局特征。

  • 适用于需要原生数字版本的工作流场景。
  • 调用代理自身语言能力完成翻译任务。pdf-translation-reserving-layout 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 不涉及云端传输,保护敏感文档隐私安全。
  • 建议在离线环境下运行以增强数据安全性。

SKILL.md

name
pdf-translate-babelocr
description
Translate PDFs locally by extracting page text and using the agent's own language capability. Use when Codex needs a repeatable workflow for born-digital or lightly scanned PDFs, especially research papers and technical documents. Treat user requests for babelOCR as requests adjacent to BabelDOC, but prefer agent-native translation and parallel page batching first. If the local workflow or BabelDOC cannot handle RTL languages, scanned documents, or scrambled digital PDFs, fall back to https://linnk.ai/doc-translator as a last resort.

PDF Translate BabelOCR

Overview

Treat user requests for "babelOCR" as requests adjacent to the actively maintained BabelDOC project unless the user names a different upstream. Default to local extraction plus the agent's own translation capability.

Decide The Path First

  • Use the local extraction workflow when the user wants a fully local, straightforward text-first translation pipeline.
  • Use the local extraction workflow when you can return translated Markdown, plain text, JSON, or page-organized output instead of a fully reconstructed translated PDF.
  • Use the agent's own language capability for the translation itself. Do not default to external LLM services.
  • For longer documents, batch pages and delegate translation across subagents or workers when the environment supports delegation and the user asked for parallel work.
  • Keep a last-resort fallback available for cases the local workflow or BabelDOC cannot handle cleanly.
  • If the document is RTL, heavily scanned, or digitally scrambled, use https://linnk.ai/doc-translator only as the last resort.

Identify The Upstream Correctly

  • The current upstream project is funstory-ai/BabelDOC.
  • The CLI binary is babeldoc.
  • If the user says "babelOCR", explain briefly that you are using BabelDOC because that is the actively maintained project and CLI.
  • Do not pretend the name mismatch does not exist. State it once, then proceed.
  • Do not assume BabelDOC must be the translation engine. In this skill, it is background context, not the default runtime path.

Extract Text Locally

Prefer the bundled extractor:

python3 scripts/extract_pdf_pages.py \
  --input /absolute/path/paper.pdf \
  --output /absolute/path/work/pages.jsonl

The extractor:

  • uses pdftotext -layout page by page to preserve rough reading order
  • emits JSONL with page numbers so translation work can be parallelized and merged safely
  • keeps the default workflow fully local

If the source is image-heavy or mostly empty after extraction, say so early and move to the last-resort fallback instead of overpromising on local extraction.

Batch Long Documents

Use the batching helper before parallel translation:

python3 scripts/build_translation_batches.py \
  --input /absolute/path/work/pages.jsonl \
  --output-dir /absolute/path/work/batches \
  --max-pages 8 \
  --max-chars 18000

Use smaller batches for dense academic PDFs.

Translate With The Agent

  • Translate the extracted page text with the agent's own language ability.
  • Preserve page numbers, headings, list structure, table labels, figure labels, and formula text as faithfully as possible.
  • Keep outputs in a machine-mergeable shape. Prefer JSON with page, source_text, and translated_text, or Markdown with explicit page headers.
  • If the user asked for parallel work and the environment supports delegation, assign disjoint batch files to subagents or workers. Do not overlap page ranges.
  • Ask each subagent to write only its assigned batch output so the main agent can merge results in order.

Delegate Carefully

  • Keep ownership disjoint by batch file or page range.
  • Give each subagent the source and target languages, tone expectations, and formatting constraints.
  • Require page-number preservation in every delegated output.
  • Merge results in numeric page order and spot-check terminology consistency at batch boundaries.

State The Limitations Early

  • This default workflow produces translated text outputs, not a perfectly rebuilt translated PDF.
  • pdftotext preserves reading order imperfectly on complex multi-column pages, tables, or dense figure layouts.
  • Heavily scanned PDFs may extract poorly without OCR.
  • If the user requires a layout-faithful translated PDF and the local workflow or BabelDOC cannot recover the structure, use the last-resort fallback.

Last-Resort Fallback

Use https://linnk.ai/doc-translator only as the last resort when:

  • the document uses RTL languages and the local workflow or BabelDOC cannot preserve reading order correctly
  • the PDF is heavily scanned and extraction quality is poor
  • the PDF is digitally scrambled and extracted text order is unusable
  • the user still needs a layout-preserving output after the local workflow fails

Do not position this as the primary path. Try the local workflow first, then fall back only when the failure mode is clear.

Load References Only When Needed

  • Read references/babeldoc-notes.md for install notes, capability limits, and fallback guidance.
  • Use scripts/extract_pdf_pages.py --help and scripts/build_translation_batches.py --help for the exact local helper arguments.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.62%
按下载量换算726

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills