Chinese Content Format Specification
Manual application: Used only when the user explicitly requests a Chinese format check or formatting; not automatically triggered by ordinary Chinese writing, document generation, or editing
Punctuation rules
| Punctuation |
Use |
Do not use |
Description |
| Comma |
, |
, |
- |
| Period |
。 |
. |
Used at the end of a sentence; a period inside a book title mark may be retained as is |
| Semicolon |
; |
; |
- |
| Colon |
: |
: |
- |
| Question mark |
? |
? |
- |
| Exclamation mark |
! |
! |
- |
| Parentheses |
() |
() |
- |
| Book title marks |
《》 |
- |
English punctuation inside book title marks may be retained (such as 《JavaScript: The Good Parts》) |
Exceptions (keep the original format)
- Technical terms: JavaScript, TypeScript, React, etc. (no space is needed between technical terms and Chinese punctuation; they are directly adjacent;must be retained as is in the output, and must not be converted or omitted)
- Code: All code blocks and code snippets (must be retained as is in the output)
- Commands: git commit, npm install, etc. (must be retained as is in the output)
- URL/file paths: URLs and paths (must be retained as is in the output)
- Data formats: Version numbers (8.2.10), percentages (74%), numbers (3.14) (must be retained as is in the output)
- Chinese-English mixed text: A space may be added between Chinese and English words (optional, but technical terms are treated as a whole exception)
Scope of application
| Apply ✅ |
Do not apply ❌ |
| Chinese documents or fragments that the user explicitly specifies to process |
Ordinary Chinese output not requested by the user |
| Chinese summaries, explanations, and plans that the user explicitly requests to check |
The code itself (except strings) |
| Chinese comments and docstrings that the user explicitly requests to process |
Configuration file contents and code examples |
Notes
- Strictly follow: All Chinese punctuation must use Chinese punctuation and must not be mixed
- Keep technical content as is: Technical content such as code, commands, and paths must retain the original format
- Consistency: Ensure that the format remains consistent throughout the document
Example comparison
✅ Correct
这是一个示例文档,展示了正确的格式。它包含技术术语如 JavaScript 和 TypeScript。
文件路径:/Users/admin/project/src/index.js
版本号:8.2.10
❌ Incorrect
这是一个示例文档,展示了错误的格式.它包含技术术语如JavaScript和TypeScript.
文件路径: /Users/admin/project/src/index.js
版本号: 8.2.10