← Back to Skills Marketplace
mrfengcn

Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion.

by MrFengcn · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
100
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install classical-chinese-translator
Description
Translates Classical Chinese texts to modern vernacular Chinese with high accuracy, preserving e-book formatting and specialized terminology across multiple...
README (SKILL.md)

Classical Chinese Translator Skill

Overview

Professional skill for translating Classical Chinese texts to modern vernacular Chinese with high-quality standards (98.5+ points). Supports EPUB/AZW3/MOBI electronic book format conversion, preservation of original structure, and specialized terminology handling for philosophical, medical, and cultivation texts.

Features

  • High-Quality Translation: Sentence-by-sentence accurate translation with 98.5+ quality standard
  • Format Preservation: Maintains original EPUB/HTML structure while replacing content
  • Specialized Terminology: Handles Daoist, Buddhist, Confucian, and medical terminology with proper explanations
  • Batch Processing: Processes chapters in batches for quality control
  • Validation: Built-in XML/EPUB validation to prevent formatting errors
  • Custom Rules: Configurable translation rules for different text types

Requirements

  • Python 3.6+
  • ebooklib library (pip install ebooklib)
  • lxml library (pip install lxml)
  • Optional: mobi tools for AZW3 conversion

Usage Examples

Basic Translation

classical-chinese-translator --input book.epub --output translated_book.epub --quality-standard 98.5

With Custom Terminology Dictionary

classical-chinese-translator --input text.xhtml --output translated.xhtml --terminology-dict daoist_terms.json

Batch Processing

classical-chinese-translator --input-dir chapters/ --output-dir translated/ --batch-size 3

Format Conversion + Translation

classical-chinese-translator --convert azw3 --input book.azw3 --output book_translated.epub

Configuration Options

Quality Standards

  • --quality-standard 98.5: Enforce high-quality translation rules
  • --modern-syntax-only: Force completely modern sentence structures
  • --explain-terms: Automatically explain specialized terminology in parentheses

Format Handling

  • --preserve-original: Keep original files as backup
  • --validate-xml: Validate XML/HTML structure before and after processing
  • --epub-check: Run epubcheck validation on output

Special Cases

  • --exclude-patterns: Exclude specific patterns from translation (e.g., "按:此书旧无作者姓氏.*")
  • --custom-rules: Apply custom translation rules for specific text types

Security Considerations

  • Input sanitization for XML/HTML content
  • Safe file path handling to prevent directory traversal
  • Memory limits for large file processing
  • No external network calls during processing

Error Handling

  • Detailed error reporting for XML/HTML parsing issues
  • Graceful degradation for malformed input files
  • Automatic backup creation before processing
  • Validation failure rollback

Performance

  • Optimized for large electronic books (1000+ pages)
  • Memory-efficient processing for resource-constrained environments
  • Parallel processing support for batch operations

Compatibility

  • EPUB 2.0/3.0
  • AZW3 (via mobi-tools conversion)
  • MOBI (via mobi-tools conversion)
  • Plain XHTML/HTML files
  • UTF-8 encoded text files

Quality Assurance

All translations follow the 98.5-point quality standard:

  1. Complete vernacular modernization (no classical syntax)
  2. Comprehensive terminology explanation
  3. Sentence-by-sentence accuracy (not summary/paraphrase)
  4. Natural modern Chinese expression
  5. Proper handling of cultural and philosophical concepts

Installation

This skill is compatible with OpenClaw skillhub and can be installed via:

openclaw skill install classical-chinese-translator

Or manually by copying the skill directory to ~/.openclaw/workspace/skills/

Usage Guidance
This skill appears to do what it claims: local EPUB/XHTML translation with terminology support and no network calls. Before installing: (1) verify the source repository link (package.json/README point to GitHub) if you require an authoritative origin, since the registry entry's source/homepage were 'unknown'/'none'; (2) run it in a sandbox or VM and ensure pip packages (ebooklib, lxml) are installed rather than relying on npm; (3) review the included scripts yourself—there are duplicated files and a packaging script but no obscured or obfuscated code; (4) if you need strict network isolation, run with network disabled to enforce the documented 'no external network calls'; and (5) expect the translator's high '98.5' quality claim to be aspirational—the code contains placeholder logic for deep linguistic transformation, so validate output quality on representative samples before relying on it for production use.
Capability Analysis
Type: OpenClaw Skill Name: classical-chinese-translator Version: 1.0.0 The skill bundle is a legitimate tool for translating Classical Chinese texts into modern vernacular Chinese, specifically targeting EPUB and XHTML formats. The core logic in `scripts/translator.py` uses standard libraries (lxml, ebooklib) for file processing and contains no evidence of network calls, data exfiltration, or unauthorized system access. The documentation and build scripts are consistent with the stated purpose and follow safe practices.
Capability Tags
cryptocan-make-purchases
Capability Assessment
Purpose & Capability
Name/description match the code and SKILL.md: a local tool to translate classical Chinese and preserve ebook structure. The code implements EPUB/XHTML processing, terminology handling, and batch modes described in the documentation. Minor metadata mismatches: registry lists no homepage/source but package.json and several READMEs reference a GitHub repo and a homepage; duplicate files appear at both root and a nested classical-chinese-translator/ directory (likely packaging artifact) but this does not change functionality.
Instruction Scope
SKILL.md instructs local file processing and explicitly states 'No external network calls'. The Python script operates on local files (XHTML/EPUB), reads an optional terminology JSON, validates/parses XML, and writes outputs. It does not read environment variables or call external endpoints. No instructions ask the agent to collect or transmit unrelated system data.
Install Mechanism
There is no OpenClaw install spec (instruction-only in registry) but the package includes build.sh, package.json, and Python scripts — installation is manual/copy-based or via openclaw CLI. No remote downloads or obscure URLs. Minor incoherence: package.json lists 'dependencies' as ebooklib and lxml (Python packages) in an npm-style manifest — this is a harmless but inconsistent packaging convention and means the environment must have the Python packages installed via pip rather than npm.
Credentials
The skill requests no environment variables or credentials. The code does not access secrets or unrelated config paths. Optional external tooling (mobi-tools) is documented only for AZW3/MOBI conversion and is proportionate to the stated purpose.
Persistence & Privilege
The skill does not request always: true and will not be force-included. It does not modify other skills or global agent settings. Installation is file-copy/tarball based and does not persist unexpected agent-wide privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install classical-chinese-translator
  3. After installation, invoke the skill by name or use /classical-chinese-translator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Classical Chinese Translator Skill 1.0.0 – Initial Release - Professional, high-quality translation (98.5+ standard) from Classical to modern vernacular Chinese. - Maintains original EPUB/HTML structure; supports electronic book format conversion (EPUB, AZW3, MOBI). - Specialized terminology handling for philosophical (Daoist, Buddhist, Confucian), medical, and cultivation texts. - Batch chapter processing, built-in XML/EPUB validation, and configurable custom translation rules. - Comprehensive error handling, security best practices, performance optimizations, and quality assurance included.
Metadata
Slug classical-chinese-translator
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion.?

Translates Classical Chinese texts to modern vernacular Chinese with high accuracy, preserving e-book formatting and specialized terminology across multiple... It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.

How do I install Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion.?

Run "/install classical-chinese-translator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion. free?

Yes, Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion. is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion. support?

Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion. is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Skill for OpenClaw: Converts classical Chinese to vernacular Chinese, supporting multiple e-book formats for full-text conversion.?

It is built and maintained by MrFengcn (@mrfengcn); the current version is v1.0.0.

💬 Comments