连接号/破折号(Dashes)看起来像连字符(hyphens),但更宽。em dash(破折号)是最宽的一种。连接号/破折号的用途与连字符不同。我们使用以下两种类型:
对置于名词前的复合修饰语使用连字符。 置于名词前的复合修饰语需要使用连字符,以将其与单个修饰语和名词区分开。不要对置于名词后的复合修饰语使用连字符。连字符常用于复合词和表示范围。
示例:
-
The most up-to-date software can be found here.(可以在此处找到最新的软件。)
-
It takes 24-48 hours for the data to upload.(数据上传需要 24-48 小时。)
其他示例:
| ✅ | ❌ | 原理/依据 |
|---|---|---|
| Protect your Internet property from common vulnerabilities with our enterprise-class Web Application Firewall (WAF). | Protect your Internet property from common vulnerabilities with our enterprise class Web Application Firewall (WAF). | ‘Enterprise-class’ 指的是某项事物扩展并处理大型企业需求的能力。连字符是必要的,因为复合修饰语位于名词之前。 |
| Our WAF is enterprise class. | Our WAF is enterprise-class. | ‘Enterprise class’ 修饰 ‘WAF’。连字符不是必要的,因为复合修饰语位于名词之后。 |
使用 em dashes 来中断单句中的思绪。 可以在句子中使用前后带空格的 em dashes(—)或双连字符(--)来中断句中的思绪。单连字符(-)(即连字符 hyphen)通常用于书写复合词/修饰语,切勿用于以此种方式中断思绪。
-
Mac 用户快捷键:按住 Shift 和 Option 键,然后按减号键
-
PC 用户快捷键:按住 Alt 键并输入 0151
破折号可以成对使用(代替括号)或单独使用(代替分号或冒号)。
示例:
-
Cookies provide saved information about a user’s session to establish a “state” — in most cases, identity — as your browser makes a request.
-
Embed yourself in the team — the best results will come when trust is built.
其他示例:
| ✅ | ❌ | 原理/依据 |
|---|---|---|
| The app has made security and privacy core to the company’s mission — and that is why it chose Cloudflare to provide an extra layer of protection. | The app has made security and privacy core to the company’s mission—and that is why it chose Cloudflare to provide an extra layer of protection. | 两侧带有空格的 em dash 是区分此句子末尾偏移短语的合适方式。 |
| ACME has always looked deeply into two sources of traffic -- organic and direct traffic. | ACME has always looked deeply into two sources of traffic - organic and direct traffic. | 双连字符是在此句子末尾阐明不同流量类型的合适方式。不应使用连字符来代替双连字符。 |
其他连接号与破折号信息:
| 标点符号 | 字符/HTML 代码 | 何时在 Cloudflare 文档中使用 | 理由说明 |
|---|---|---|---|
| 连字符 | - | 负数、复合名词、复合形容词、消除歧义、某些前缀、某些单位 | 使用连字符而不是 en dash。 |
| 减号 | − | 不要使用 | |
| Em Dash | — | 空白表格单元格 | 过度使用 em dash 会使句子显得支离破碎,可能会让读者感到厌烦。 |
| En Dash | – | 版权年份范围 | 为避免可能产生的混淆,在数字范围中应使用单词 “to” 而不是 en dash,因为 en dash 可能会被误解为减号。 |