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

約物連続時の処理の疑問 #111

Open
himorin opened this issue Aug 13, 2019 · 8 comments
Open

約物連続時の処理の疑問 #111

himorin opened this issue Aug 13, 2019 · 8 comments
Labels
question Questions about how Japanese works. These issues should be tracked in i18n-activity tracker.

Comments

@himorin
Copy link
Contributor

himorin commented Aug 13, 2019

(copy from post by Bin-sensei, discussion is better to be here, and any post on the list will be copied to here.)


9日に約物連続時の処理の問題が議論され,基本的に問題はないと
いうことでしたが,やや細かい話ですが,それなりに出てくる例
で,括弧類と和字間隔(全角スペース)が重なるケースがありま
す.

和字間隔が括弧などと重なった場合,添付した図版(
全角スペースの処理例1.pdf
のどの処理が可能ですか.
JLReqの本文では説明していませんが,付属書の“B 文字間の空き
量”では示しています.これに示した方法では,添付した図版のAの
方式が規定されています.

Aのような処理がCSSでは可能でしょうか?

@himorin himorin added the question Questions about how Japanese works. These issues should be tracked in i18n-activity tracker. label Aug 13, 2019
@MurakamiShinyu
Copy link

CSS Text L4 text-spacingの仕様
https://drafts.csswg.org/css-text-4/#fullwidth-collapsing
に書かれていますが、Aのような処理になる仕様です。

@himorin
Copy link
Contributor Author

himorin commented Aug 26, 2019 via email

@kidayasuo
Copy link
Contributor

良いと思います。JLReq の付属書で示されている A の方が綺麗ですね。

@kidayasuo
Copy link
Contributor

敏先生いかがでしょうか?ってメールで出した方がいいのかな?

@himorin
Copy link
Contributor Author

himorin commented Aug 26, 2019 via email

@himorin
Copy link
Contributor Author

himorin commented Aug 26, 2019 via email

@MurakamiShinyu
Copy link

https://drafts.csswg.org/css-text-4/#fullwidth-collapsing のEXAMPLE 10の図の "Closing—Ideographic Space" などでは括弧の例を図示していますが、この "Closing" 文字は句点・読点も含むことが意図されているはずだと思い、その "Closing 文字(fullwidth closing punctuation)の定義 https://drafts.csswg.org/css-text-4/#fullwidth-closing-punctuation を確認しました。

Includes any closing punctuation character (Unicode category Pe) that belongs to …

しかし、この "Unicode category Pe" というのは、閉じ括弧類だけであり、句点・読点は含まれません。たぶんここは、Unicode Line_Break property の Close_Punctuation (句点・読点も含まれる)のほうがtext-spacing 仕様の意図通りで "Unicode category Pe" は間違いだと思います。そこで、css-text-4 のほうにissue登録しました:

[css-text-4] Unicode category in "fullwidth closing punctuation"
w3c/csswg-drafts#4241

中点については、全角スペースと隣接したとき(それから、行頭・行末でも)中点は全角幅のままです。これを 1/4 em 詰めるという考えもあるかと思いますが、あまり気にする人はいないのに処理が複雑になってしまうのは避けたいので、これはこのままがよいと私は思います。

@kidayasuo
Copy link
Contributor

kidayasuo commented Jan 22, 2020

・和字間隔と括弧の組み合わせは現在の css text level 4 draft でカバーされている
・句読点と括弧の組み合わせはおそらく間違いでカバーされておらず、それは w3c/csswg-drafts#4241 がトラックしている
と言うことで、この問題は閉じてもいいのかな? それとも w3c/csswg-drafts#4241 を jlreq 側でトラックするために開いておくべき?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions about how Japanese works. These issues should be tracked in i18n-activity tracker.
Projects
None yet
Development

No branches or pull requests

3 participants