Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

行首行尾禁则和目前的CSS的不同 #625

Open
xfq opened this issue Jul 5, 2024 · 1 comment
Open

行首行尾禁则和目前的CSS的不同 #625

xfq opened this issue Jul 5, 2024 · 1 comment
Labels
i:line_breaking Line breaking & hyphenation

Comments

@xfq
Copy link
Member

xfq commented Jul 5, 2024

目前的CSS标准包含了一些CLReq的行首行尾禁则没有提到的内容,如:

  • 如果书写系统是中文或日文,在normalloose时允许在〜 (U+301C)゠ (U+30A0)之前断行,其他情况下禁止。

  • 如果前一个字符属于表意文字,在loose时允许在‐ (U+2010)– (U+2013)之前断行,其他情况下禁止。


  • 如果书写系统是中文或日文,在loose时允许在某些标点符号之前断行:
    • ・ (U+30FB)
    • : (U+FF1A)
    • ; (U+FF1B)
    • ・ (U+FF65)
    • ‼ (U+203C)
    • ⁇ (U+2047)
    • ⁈ (U+2048)
    • ⁉ (U+2049)
    • ! (U+FF01)
    • ? (U+FF1F)
    • 具有 Unicode 换行类 PO(数字后缀)和东亚宽度属性为AmbiguousFullwidthWide的字符,如:
      • ‰ (U+2030)℃ (U+2103)% (U+FF05)
    • 具有 Unicode 换行类 PR(数字前缀)和东亚宽度属性为AmbiguousFullwidthWide的字符,如:
      • ¥ (U+20AC)№ (U+2116)$ (U+FF04)

其他情况下禁止。


另外,CSS里没有对应CLReq中「GB法」的规则。

我们需要讨论一下这些规则是否合理,是否需要修订需求文档或者CSS标准。

@xfq xfq added the i:line_breaking Line breaking & hyphenation label Jul 5, 2024
@xfq
Copy link
Member Author

xfq commented Jul 5, 2024

相关issue:#510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i:line_breaking Line breaking & hyphenation
Projects
None yet
Development

No branches or pull requests

1 participant