Skip to content

Commit

Permalink
feat(docs): add another bad example to spacing
Browse files Browse the repository at this point in the history
Sometimes, additional spaces are added before/after punctuation in fullwidth,
especially in copying Chinese translation in Google Translate. It's better to
avoid spacing in this situation, or it looks wider than normal.
  • Loading branch information
pityonline authored and sparanoid committed Aug 26, 2018
1 parent 161c82c commit a3fbf58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.en.md
Expand Up @@ -105,6 +105,8 @@ Bad:

> 剛剛買了一部 iPhone ,好開心!
> 剛剛買了一部 iPhone, 好開心!
### `-ms-text-autospace` to the rescue?

Microsoft provides a CSS property [`-ms-text-autospace`](http://msdn.microsoft.com/en-us/library/ie/ms531164(v=vs.85).aspx) that can specify the autospacing and narrow space width adjustment of text. However it's not popular, and on other platforms such as OS X and iOS we can not use this feature. So it's better for you to keep up the habit.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -106,6 +106,8 @@ Other languages:

> 剛剛買了一部 iPhone ,好開心!
> 剛剛買了一部 iPhone, 好開心!
### `-ms-text-autospace` to the rescue?

Microsoft 有個 [`-ms-text-autospace`](http://msdn.microsoft.com/en-us/library/ie/ms531164(v=vs.85).aspx) 的 CSS 屬性可以實現自動為中英文之間增加空白。不過目前並未普及,另外在其他應用場景,例如 OS X、iOS 的用戶介面目前并不存在這個特性,所以請繼續保持隨手加空格的習慣。
Expand Down

0 comments on commit a3fbf58

Please sign in to comment.