audit-typography
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAudit Typography
排版审核
89 rules across 10 categories for web typography quality. Focuses on concrete issues with concrete fixes.
涵盖10个类别的89条Web排版质量规则,聚焦具体问题并提供明确修复方案。
Audit Workflow
审核流程
Copy and track this checklist during the audit:
text
Audit progress:
- [ ] Step 1: Scope changed surfaces and select relevant categories
- [ ] Step 2: Run CRITICAL checks (punctuation, font setup)
- [ ] Step 3: Run HIGH checks (sizing, spacing)
- [ ] Step 4: Run MEDIUM+ checks for remaining categories in scope
- [ ] Step 5: Report findings with file:line and concrete fixes- Audit only changed files unless a full sweep is requested.
- Scan CSS for font-family, @font-face, font-feature-settings, and sizing/spacing properties to identify relevant categories.
- Load rule files progressively by category prefix — read only what applies.
- Prioritize CRITICAL and HIGH findings before medium-priority polish.
- After fixes, rerun the relevant rules before finalizing.
审核期间可复制并跟踪以下检查清单:
text
审核进度:
- [ ] 步骤1:确定变更范围并选择相关类别
- [ ] 步骤2:执行CRITICAL(关键)检查(标点、字体设置)
- [ ] 步骤3:执行HIGH(高优先级)检查(尺寸、间距)
- [ ] 步骤4:对范围内剩余类别执行MEDIUM+(中高优先级)检查
- [ ] 步骤5:结合文件:行号及明确修复方案提交审核结果- 除非要求全面检查,否则仅审核变更文件。
- 扫描CSS中的font-family、@font-face、font-feature-settings及尺寸/间距属性,确定相关类别。
- 按类别前缀逐步加载规则文件——仅阅读适用内容。
- 在处理中优先级的优化项之前,优先解决CRITICAL和HIGH优先级的问题。
- 修复完成后,在最终确认前重新运行相关规则。
Rule Categories by Priority
按优先级划分的规则类别
| Priority | Category | Impact | Prefix | Rules |
|---|---|---|---|---|
| 1 | Punctuation & Special Characters | CRITICAL | | 12 |
| 2 | Font Selection & Weights | CRITICAL | | 10 |
| 3 | Sizing & Measure | HIGH | | 7 |
| 4 | Spacing & Rhythm | HIGH | | 10 |
| 5 | OpenType Features | MEDIUM-HIGH | | 8 |
| 6 | Hierarchy & Scale | MEDIUM-HIGH | | 8 |
| 7 | Alignment & Layout | MEDIUM | | 8 |
| 8 | Typeface Pairing | MEDIUM | | 10 |
| 9 | Brand & Identity | LOW-MEDIUM | | 8 |
| 10 | Display & Headlines | LOW-MEDIUM | | 8 |
| 优先级 | 类别 | 影响程度 | 前缀 | 规则数量 |
|---|---|---|---|---|
| 1 | 标点与特殊字符 | CRITICAL(关键) | | 12 |
| 2 | 字体选择与字重 | CRITICAL(关键) | | 10 |
| 3 | 尺寸与行长 | HIGH(高优先级) | | 7 |
| 4 | 间距与韵律 | HIGH(高优先级) | | 10 |
| 5 | OpenType特性 | MEDIUM-HIGH(中高优先级) | | 8 |
| 6 | 层级与比例 | MEDIUM-HIGH(中高优先级) | | 8 |
| 7 | 对齐与布局 | MEDIUM(中优先级) | | 8 |
| 8 | 字体配对 | MEDIUM(中优先级) | | 10 |
| 9 | 品牌与标识 | LOW-MEDIUM(中低优先级) | | 8 |
| 10 | 展示字体与标题 | LOW-MEDIUM(中低优先级) | | 8 |
Quick Reference
快速参考
Read only what is needed for the current audit scope:
- Category map and impact rationale:
rules/_sections.md - Rule-level guidance and examples:
rules/<prefix>-*.md
Example rule files:
rules/punct-smart-quotes.md
rules/font-true-styles.md
rules/size-line-height.mdEach rule file contains:
- Why the rule matters
- Incorrect example
- Correct example
仅阅读当前审核范围内所需内容:
- 类别映射及影响说明:
rules/_sections.md - 规则级指南及示例:
rules/<prefix>-*.md
示例规则文件:
rules/punct-smart-quotes.md
rules/font-true-styles.md
rules/size-line-height.md每个规则文件包含:
- 规则重要性说明
- 错误示例
- 正确示例
Review Output Contract
审核输出规范
Report findings in this format:
markdown
undefined按以下格式提交审核结果:
markdown
undefinedTypography Audit Findings
排版审核结果
path/to/file.css
path/to/file.css
- [CRITICAL] : Straight quotes used in heading text.
punct-smart-quotes- Fix: Replace with
"/“entities.”
- Fix: Replace
- [CRITICAL] : 标题文本中使用了直引号。
punct-smart-quotes- 修复方案:将替换为
"/“实体。”
- 修复方案:将
path/to/clean-file.css
path/to/clean-file.css
- ✓ pass
- Group findings by file.
- Use `file:line` when line numbers are available.
- State issue and propose a concrete fix.
- Include clean files as `✓ pass`.- ✓ 审核通过
- 按文件分组展示问题。
- 若有行号,需标注`file:line`。
- 说明问题并提供明确的修复方案。
- 审核通过的文件标注为`✓ 审核通过`。