Punctuation Normalizer
Purpose
This Skill converts Chinese punctuation marks (,。!?:;()等)
into English punctuation with proper spacing, while preserving:
- Markdown code blocks
- Inline code
- LaTeX math ($...$, $$...$$)
How to use
- Take the full input text as-is
- Pipe it to the script:
python scripts/normalize.py
- Return the script output directly
- Do NOT re-edit or paraphrase the output
Example
Input:
这是一个示例文本,包含中文标点。
下面是代码块:
```rust
fn main() {
println!("Hello,world!");
}
这里有行内代码 let x = a,b + c;,
以及行内公式 $x = y,z + 1$。
多行公式:
$$
f(x,y) = x^2 + y^2;
$$
结束。
Output:
```markdown
这是一个示例文本, 包含中文标点.
下面是代码块:
```rust
fn main() {
println!("Hello,world!");
}
这里有行内代码 let x = a,b + c;,
以及行内公式 $x = y,z + 1$.
多行公式:
$$
f(x,y) = x^2 + y^2;
$$
结束.