chinese-traditional-conversion
Convert simplified Chinese to Traditional Chinese (zh-TW), covering characters, Taiwan vocabulary, and phrasing. Use when the user asks to convert 簡體 to…
от jim60105★ 22 звезды на GitHub
Установить chinese-traditional-conversion в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Convert to Traditional Chinese
Convert simplified Chinese into Traditional Chinese as written in Taiwan. The script settles what is deterministic and reports what is not; deciding the reported items is your job.
Never let the script guess and never guess yourself. A character like 发 is 發 or 髮
depending on the sentence around it. Tools that pick one silently are why this skill exists.
Division of labour
scripts/convert.py owns the mechanical half: 6300+ deterministic character mappings, Taiwan
variant folding (着→著, 裏→裡, 爲→為), unambiguous vocabulary, and exhaustive
detection. It is exhaustive where you are not — it will not miss the one stray 发 on line 400.
You own the contextual half: every ambiguous character, every vocabulary item with more than one Taiwan reading, and the phrasing that no dictionary encodes. You have the whole document; the script has a table.
Workflow
1. Establish the input
Files or directories go through the path form. Text pasted into the conversation goes through
--stdin. Convert files in place so the user reviews a git diff; never paste a converted copy
of a file back into the chat.
2. Run the mechanical pass
scripts/convert.py PATH... # convert in place, print the review report
scripts/convert.py --check PATH... # report only, write nothing
scripts/convert.py --diff PATH... # unified diff, write nothing
scripts/convert.py --json PATH... # structured findings, for triage without parsing prose
echo "文字" | scripts/convert.py --stdin # result on stdout, report on stderr
On a directory of any size, run --check first. It tells you the scale of the job and which
files are affected before anything is written.
Add --markdown to apply markdown protection rules to --stdin input. Add --include-code to
convert protected regions too, which is almost never right.
Add --no-naer to suppress the terminology advisories described below, or --naer-all to
widen them to text that was already traditional.
Exit codes: 0 clean, 1 review items only, 2 must-fix items present, 3 usage error.
NAER advisories never change the exit code.
The script checks its own prerequisites and explains failures on stderr, so do not pre-verify
anything.
3. Resolve the report
Three sections, three different obligations.
MUST FIX — a simplified character no substitution resolves on its own. The document is not zh-TW until every one is decided. Read the rule the report prints, look at the sentence, edit the file.
REVIEW — the script applied a form that is valid zh-TW, which may still be the wrong one
here. 面 stays 面 unless it is 麵條. Confirm or correct each one.
Occurrences a curated keep-rule already answers are detected but collapsed into a ✓ summary
line, because a report that lists 同 four hundred times cannot honestly be worked through. The
detection behind them is unchanged; --review-all lists them individually.
PROTECTED — simplified text inside code blocks, inline code, or URLs. Left untouched on purpose. A simplified string literal is often deliberate. Change these only when the user asks.
NAER — 國家教育研究院 has ruled on this term and its Taiwan rendering differs from what the
text uses. The advisory prints the official rendering, the English headword, and the subject
domain. Nothing was substituted, and nothing has to be: this corpus records the preferred
academic rendering, not a correction. 除臭 is not wrong because a glossary prefers 去臭. Apply
one when the domain matches the document and the rendering is clearly better — 纳米 really
should be 奈米 — and ignore it otherwise.
Advisories are raised only where the span actually held a character that cannot stand in zh-TW.
These glossaries are specialist and their mainland column collides constantly with ordinary
words: the electrical-engineering set lists 日期 as data, a typo for 数据, which would
otherwise flag every date in a document. Text already written in Traditional needs no
localising. This is narrower than the other tiers on purpose — vocabulary that matters for
ordinary writing lives in term_map.json and is converted regardless of how it is spelt, so
軟件 still becomes 軟體 even with no simplified character in sight. Pass --naer-all when
reviewing Hong Kong or mainland material that is already written in Traditional.
An entry with no rule printed is one the character table has not been curated for yet. Decide it from context as usual, and prefer the form used elsewhere in the same document.
樂詞網 settles what the report cannot. For a terminology question the tables do not answer,
query https://terms.naer.edu.tw/search/?q=TERM with WebFetch — it is the authority for Taiwan
academic and technical vocabulary. It is HTML with no API, so read the page rather than
expecting JSON. It does not rule on character-level ambiguity: whether 发 is 發 or 髮 is a
question for 教育部《重編國語辭典修訂本》, not for a terminology database.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/ambiguous_chars.json
- assets/char_map.json
- assets/naer_terms.json
- assets/term_map.json
- references/taiwan-vocabulary.md
- scripts/build_tables.py
- scripts/convert.py
FAQ
Что делает скилл chinese-traditional-conversion?
Convert simplified Chinese to Traditional Chinese (zh-TW), covering characters, Taiwan vocabulary, and phrasing. Use when the user asks to convert 簡體 to 正體/繁體, localise mainland Chinese text for Taiwan, fix simplified characters left in a document or repository, check whether content is written in proper zh-TW, or normalise variant forms such as 着/裏/爲 to the Taiwan standard. Handles both files edited in place and text pasted into the conversation. Runs on Python 3 standard library alone, with no OpenCC and no installed packages.
Как установить скилл chinese-traditional-conversion?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chinese-traditional-conversion запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…