Chinese quote converter
Convert English straight quotation marks ("...") to Chinese curved quotation marks ("..." U+201C/D). Use when processing Chinese text documents, markdown files, or any content that needs proper Chinese typography with directional quotes. Triggers on keywords like "转换引号", "中文引号", "英文引号转中文", "quote conversion", "convert quotes".From its SKILL.md
npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill chinese-quote-converterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.1 KB, 188 tokens by cl100k_base, as published. Nobody here has run it
Chinese Quote Converter
Convert English straight quotes to Chinese curved quotes:
"..."→"..."(U+201C / U+201D)'...'→'...'(U+2018 / U+2019)
Usage
Run the conversion script:
# Preview conversion (output to stdout)
python3 scripts/convert_quotes.py <input_file>
# Save to new file
python3 scripts/convert_quotes.py <input_file> -o <output_file>
# Modify file in-place
python3 scripts/convert_quotes.py <input_file> --in-place
Features
- Preserves code blocks (```, `, $$) by default
- Handles nested quotes correctly
- Detects English apostrophes (don't, it's) and leaves them unchanged
- Use
--no-preserve-codeto also convert quotes inside code blocks
What ships with it: 1 file
4.7 KB alongside SKILL.md, 1 of them executable
scripts/
- convert_quotes.pyruns4.7 KB