w3c / jlreq

Text Layout Requirements for Japanese
https://w3c.github.io/jlreq/
Other
99 stars 16 forks source link

Review the spacing property document to cover space collapsing between fullwidth and proportional punctuations #340

Open kidayasuo opened 1 year ago

kidayasuo commented 1 year ago

Review the spacing property document to cover the space collapsing rule between fullwidth and proportional punctuations that Bin-sensei posted. https://github.com/w3c/jlreq/tree/gh-pages/docs/spacing_property https://github.com/w3c/jlreq-d/issues/24

himorin commented 1 year ago

From TF meeting 2022-11-01 https://github.com/w3c/jlreq/issues/343, agreed to update the document with:

macnmm commented 1 year ago

key aspect is disambiguation of Roman chars from Roman (aka proportional or half-width) punctuation, so the latter can be set flush while the former gets J-Roman aki. And, tsume can happen on the full-width punctuation but none on Roman punctuation.

acli commented 1 year ago

I cannot read Japanese, so I don’t know if this has been addressed.

But recently I was working on something like this (in Lua) and discovered some CJK punctuation can be full-width or half-width, depending on the typeface/language. The specific problem characters I was running into were U+3008 and U+3009, which I understand would be classed as cl-01.

himorin commented 1 year ago

key aspect is disambiguation of Roman chars from Roman (aka proportional or half-width) punctuation,

As far as following current definition, all of A/B/AB has "so-called normal full-width" condition, so I believe such cases are taken up in that table. For proportional Japanese fonts, user agents shall take care of how much spacing is in glyph, and nothing could be taken account in collapsing rules. These are the same as non-proportional ones, but are just a matter on width of spacing included like 0 to 0.5 em for proportional against exactly 0.5em for non-proportional.

himorin commented 1 year ago

But recently I was working on something like this (in Lua) and discovered some CJK punctuation can be full-width or half-width, depending on the typeface/language.

These might be 'proportional' fonts. Check something like 'MS P Gothic' (proportional for 'MS Gothic').