Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Translate articles and documents between languages in three modes: quick, normal, and refined publication-quality.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/config/extend-schema.md
1# EXTEND.md Schema for baoyu-translate23## Format45EXTEND.md uses YAML format:67```yaml8# Default target language (ISO code or common name)9target_language: zh-CN1011# Default translation mode12default_mode: normal # quick | normal | refined1314# Target audience (affects annotation depth and register)15audience: general # general | technical | academic | business | or custom string1617# Translation style preference18style: storytelling # storytelling | formal | technical | literal | academic | business | humorous | conversational | elegant | or custom string1920# Word count threshold to trigger chunked translation21chunk_threshold: 40002223# Max words per chunk24chunk_max_words: 50002526# Custom glossary (merged with built-in glossary)27# CLI --glossary flag overrides these28# Supports inline entries and/or file paths29glossary:30- from: "Reinforcement Learning"31to: "强化学习"32- from: "Transformer"33to: "Transformer"34note: "Keep English"3536# Load glossary from external file(s)37# Supports absolute path or relative to EXTEND.md location38# File format: markdown table with | from | to | note | columns,39# or YAML list of {from, to, note} entries40glossary_files:41- ./my-glossary.md42- /path/to/shared-glossary.yaml4344# Language-pair specific glossaries45glossaries:46en-zh:47- from: "AI Agent"48to: "AI 智能体"49ja-zh:50- from: "人工知能"51to: "人工智能"52```5354## Fields5556| Field | Type | Default | Description |57|-------|------|---------|-------------|58| `target_language` | string | `zh-CN` | Default target language code |59| `default_mode` | string | `normal` | Default translation mode (`quick` / `normal` / `refined`) |60| `audience` | string | `general` | Target reader profile (`general` / `technical` / `academic` / `business` / custom) |61| `style` | string | `storytelling` | Translation style (`storytelling` / `formal` / `technical` / `literal` / `academic` / `business` / `humorous` / `conversational` / `elegant` / custom) |62| `chunk_threshold` | number | `4000` | Word count threshold to trigger chunked translation |63| `chunk_max_words` | number | `5000` | Max words per chunk |64| `glossary` | array | `[]` | Universal glossary entries (inline) |65| `glossary_files` | array | `[]` | External glossary file paths (absolute or relative to EXTEND.md) |66| `glossaries` | object | `{}` | Language-pair specific glossary entries |6768## Glossary Entry6970| Field | Required | Description |71|-------|----------|-------------|72| `from` | yes | Source term |73| `to` | yes | Target translation |74| `note` | no | Usage note (e.g., "Keep English", "Only in tech context") |7576## Glossary File Format7778External glossary files (`glossary_files`) support two formats:7980**Markdown table** (`.md`):81```markdown82| from | to | note |83|------|----|------|84| Reinforcement Learning | 强化学习 | |85| Transformer | Transformer | Keep English |86```8788**YAML list** (`.yaml` / `.yml`):89```yaml90- from: "Reinforcement Learning"91to: "强化学习"92- from: "Transformer"93to: "Transformer"94note: "Keep English"95```9697Paths can be absolute or relative to the EXTEND.md file location.9899## Priority1001011. CLI `--glossary` file entries1022. EXTEND.md `glossaries[pair]` entries1033. EXTEND.md `glossary` entries (inline)1044. EXTEND.md `glossary_files` entries (in listed order, later files override earlier)1055. Built-in glossary (e.g., `references/glossary-en-zh.md`)106107Later entries override earlier ones for the same source term.108