A lightweight ONLYOFFICE plugin tailored for Chinese writing. It automatically checks and fixes common typography issues such as punctuation style, spacing between CJK and Latin text, and stray spaces — perfect for keeping your documents neat and consistent.
Current version: see
CHANGELOG.md
- Smart Conversion: detect and fix formatting issues in Chinese text
- Optional: missing space between Chinese and Latin text/numbers
- Optional: missing space between numbers and units (e.g., “10kg” → “10 kg”)
- Optional: missing space before percent sign (e.g., “30%” → “30 %”)
- Optional: one-click toggle for numbers and Latin letters (full-width ⇄ half-width)
- Full-width unification: normalize half-width punctuation to full-width (e.g., “,” → “,”)
- Extra spaces cleanup: collapse consecutive spaces
- Ellipsis normalization:
.../…→ standard Chinese……
- Force Full-Width: convert all punctuation in the selection to full-width
- Force Half-Width: convert all punctuation in the selection to half-width
- Format Report: visual list of issues with user-controlled replacement
- Customizable Rules: choose which punctuation/types to convert in Settings
📌 Toolbar button
The plugin appears under a dedicated tab.
📋 Settings (setting.html)
Choose which symbols/rules to apply.

- Clone the project and deploy it to an ONLYOFFICE environment that supports plugins.
- Open a Word document and click Chinese Auto-Formatting Tool in the toolbar.
- Use the following actions as needed:
Smart ConversionForce Full-WidthForce Half-WidthSettings(configure which items to convert)
spaceBetweenMixedLang: missing space between Chinese and Latin text/numbersnumberUnitSpacing: number followed immediately by a unitpercentSpacing: missing space before the percent signfullwidthPunctuation: non-standard half-width punctuationtrimExtraSpaces: consecutive spaces (2+)
- Built on the ONLYOFFICE plugin framework (
sdkjs-plugins). - Document interaction via
Api.GetSelectedText()/Api.ReplaceTextSmart(). - In
config.json, the plugin GUID isasc.{c3a4b670-9e25-41f8-9d6e-4f7d7d5e1c33}and Word editor is supported.
- ✅ ONLYOFFICE Desktop Editors / Web Document Server
- ✅ Responsive plugin panels that adapt to different window sizes
If you find this plugin helpful, please ⭐ Star, 🍴 Fork, and open Issues!

