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

不处理行首行尾禁则的情况 #624

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

不处理行首行尾禁则的情况 #624

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

Comments

@xfq
Copy link
Member

xfq commented Jul 4, 2024

https://www.w3.org/TR/clreq/#prohibition_rules_for_line_start_end

不处理

完全不处理行首行尾禁则。常见于台湾香港等地报刊。

这种模式还常见于虚拟终端,在CSS标准中也有提到,需求文档中是否需要提到这一点?

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

realfish commented Jul 5, 2024

虚拟终端/终端模拟器不处理标点禁则,可能不是「必须的 feature」;某种程度上是「历史原因遗留的缺陷」。

目前我日常使用的终端模拟器中,就有能处理中文标点禁则的例子(虽然处理得并不完善)。在具体使用中,似乎没有产生用户体验下滑;而处理禁则带来的排版准确性和文本阅读便利性,应当作为值得认可/推荐的 feature。

以下录屏的 app 是 Warp,行尾分号至少在「输入交互」中能保持正确的禁则处理表现:
Screenshot 2024-07-05 at 14 12 57

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

2 participants