← 返回
未分类 中文

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...
高准确度地将古文译为现代白话文,保留电子书排版及跨多领域专业术语
mrfengcn mrfengcn 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 342
下载
💾 0
安装
1
版本
#latest

概述

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/

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 11:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Marketing Mode

thesethrose
{"answer":"营销模式整合23项全能技能,涵盖策略、心理、内容、SEO、转化优化及付费增长。适用于营销策略、文案、SEO、转化优化、付费广告及各类营销战术需求。"}
★ 161 📥 25,117
content-creation

Marketing Skills

jchopard69
{"answer":"获取23个营销模块,包含CRO、SEO、文案、分析、发布、广告及社媒的清单、框架与现成交付物。"}
★ 143 📥 30,886
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 907 📥 207,008