-
Notifications
You must be signed in to change notification settings - Fork 746
Description
In the process of trying Chromium's implementation of text-autospace, some interested Chinese developers found an issue: there is no extra spacing between ideographs and non-fullwidth punctuation/symbols. In many cases, this results in unbalanced spacing around embedded non-CJK text in CJK languages.
Examples:
input[type="text"]
选择器将选择所有type
属性为text
的input
元素。
在HTML中按语言修改样式的最佳方法是使用CSS的
:lang()
选择器。
C#是微软公司发布的一种由C和C++衍生出来的面向对象的编程语言,运行于.NET Framework和.NET Core之上。
使用
!important
是一个坏习惯,应该尽量避免。
我们可以用
@font-face
来指定自定义字体。
可选链
?.
是一种访问嵌套对象属性的安全的方式。即使中间的属性不存在,也不会出现错误。
符号
^
和符号$
在正则表达式中具有特殊的含义。
正则表达式中的
\b
表示词边界。
42%代表百分之四十二,1‰代表千分之一,|a|=2代表a的实际值是±2
{1,2}
是{1,2,3}
的子集。
在三亚15℃太冷了! (
U+2103
instead ofU+00B0
+U+0043
)
However, not all non-fullwidth punctuation/symbols require extra spacing. For example, footnote marks like *, †, ‡, and ◊ should not have the extra spacing.
Should we add a new value ideograph-symbol
(the name and specific design can be discussed later) to cover this situation? This value may not cover all situations, but it can cover some common ones. For uncommon cases, it would be nice to have a mechanism for author customization.