Chinese Typesetting Normalizer - Pangu Spacing & Proper-Noun Casing
Free Chinese typesetting normalizer: pangu spacing between CJK and Latin/digits, fullwidth punctuation in CJK context, and 40+ tech proper-noun casing fixes. Runs locally.
This tool runs in your browser: what you enter is processed on your device and normally never appears in a request to any server.
Usage Guide
Mixed Chinese-English copy has three chronic ailments: no spacing at CJK/Latin boundaries, half-width punctuation inside Chinese sentences, and inconsistently cased product names (github, json, iphone). Fixing them by hand is slow and leaky. This normalizer batches the conventions known as “pan-gu spacing”: a space between CJK and Latin/numerals, full-width punctuation in Chinese context, and official casing for 40+ high-frequency tech terms. Fully local — a final polish before publishing docs, READMEs, or official-account posts.
1. How to use
Everything runs in the browser; unpublished drafts and internal docs never leave the page.
- Paste the text (long paragraphs welcome).
- Toggle the rule groups — CJK/Latin spacing, punctuation full-widthing, proper-noun casing — each independently.
- Normalize and review the side-by-side diff, then copy. Code spans wrapped in backticks are skipped automatically.
2. Why these rules
A space between CJK and Latin text (“pan-gu spacing”) is the dominant convention in Chinese technical writing and measurably improves readability. Full-width punctuation addresses “你好,世界.” — half-width commas inside Chinese sentences are ugly and ambiguous next to abbreviations. The proper-noun table covers the terms developer docs hit constantly — JavaScript, TypeScript, GitHub, JSON, HTTP, iOS, macOS, Vue, React — normalized to each vendor’s official spelling rather than blind capitalization.
3. Details and exceptions
- Numerals get spacing too (“提高了 30%”), except when glued to units (3km, 5GB).
- Full-widthing applies only in Chinese context: half-width punctuation inside English sentences survives; the decision is based on the surrounding characters.
- Proper-noun matching is case-insensitive but word-boundary anchored (json inside jsonpath is untouched).
- Backtick spans and fenced code blocks are skipped wholesale — typography rules must not touch code.
4. When not to use it
- Legal and official documents: their punctuation and spacing follow official style guides that may conflict with these conventions.
- Publishing submissions: run the target journal’s rules, and pilot on a small section first.
- Contracts: any automated rewrite deserves human review before becoming final.
5. How this differs from the garbled-text diagnoser
The Garbled Text Diagnoser fixes encoding-level corruption (the byte layer); this tool fixes formatting conventions (the presentation layer) — the former repairs “displays wrongly”, the latter polishes “displays correctly but reads rough”. A common mix-up: if the text is already legible Han characters but awkwardly spaced, use this tool; if you see “且-style alien glyphs, start with the diagnoser.
FAQ
Three independently toggleable rule groups: spacing between CJK and Latin text (the pangu convention — numbers get it too, as in 提高了 30%, but not when a unit hugs the number, as in 3km or 5GB); full-width punctuation in Chinese context; and 40+ tech proper nouns cased to their official spellings. Proper-noun matching is case-insensitive yet whole-word only, so the json inside jsonpath stays untouched.
No — backtick spans and fenced code blocks are skipped wholesale; typesetting rules never touch code.
No. Full-widthing applies only in Chinese context, decided by the characters surrounding the punctuation; punctuation inside English sentences survives as-is.
Not recommended. Such documents follow official punctuation and spacing rules that may conflict with general conventions; for journal submissions, defer to the target style guide and test on an excerpt first; and contract clauses that went through any automated rewrite deserve human review before finalizing.
By symptom: text that is already correct Chinese but typeset poorly is a presentation-layer problem for this tool; strings like ä¸ indicate encoding-layer damage — run the garbled-text diagnoser first. One fixes "correct but ugly", the other fixes "displayed wrong".
Yes — processing is instant and self-contained in the tab; nothing you paste is uploaded or shared anywhere.
Related Tools
Related Articles
Miping × Post-Quantum: A Dual-Stack Assessment Framework for Chinese Compliance Systems
SM2's elliptic-curve foundation sits on Shor's list right next to RSA — Chinese cryptographic compliance carries no quantum exemption. This post lays out a dual-stack evaluation framework on top of miping (GB/T 39786): an algorithmic quantum-exposure inventory, parallel TLCP + hybrid TLS deployment, dual protection for long-lived data, and where the domestic standards process currently stands. A forward-looking guide for compliance teams and critical-infrastructure operators.
Chinese Cryptographic Assessment (Miping) Self-Check Checklist: GB/T 39786, Layer by Layer
A pre-assessment framework for commercial cryptography application security evaluation: the four technical layers (physical, network, device, application) plus management, the quantitative red lines (algorithm/product/key compliance), the most common findings, and a remediation order ranked by points-per-effort.
SM2/SM3/SM4 in Practice: Choosing, Integrating, and Debugging Chinese National Cryptography
A field guide to Chinese national crypto: SM4 vs SM3 vs SM2, plus the integration traps that dominate real work — C1C3C2 vs C1C2C3, hex vs Base64, CBC IVs — with browser-local tools for known-answer checks.