You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-ruby] Limiting leading/trailing space with ruby-align:space-around #5918
css-ruby-1Current Worki18n-jlreqJapanese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.
The behavior currently prescribed by ruby-align:space-around is not quite the one that JLREQ or Simple Ruby calls for: They limit the amount of space at the edges to 1em of the ruby annotation font size, to ensure that the annotation obviously spans across the entire annotated base text. Should we encode this limit into the definition of space-around?
See also Antenna House's user manual, which calls for the same behavior. Not suggesting we add support for the property they have to control this in L1, but its initial value matches.
changed the title [-][css-ruby] Limitting leading/trailing space with ruby-align:space-around[/-][+][css-ruby] Limiting leading/trailing space with ruby-align:space-around[/+]on Feb 2, 2021
The route reason of this is how to find boundaries of ruby base from attached annotation characters as in JLReq note. If we don't have a limit of maximum 1em (or 1.5em) of annotation character (or half of base character) for combination of long base and short annotation, we could easily miss the outermost characters of base to be not in the ruby base text.
For cases shown in examples in simple-ruby or JLReq, it is quite easy to tell where is the ruby base text in a long text like:
but, in some cases like in animations (and daily use cases in Japanese cultural area) it's quite common to place short annotation for long title, like あの日見た花の名前を僕達はまだ知らない。 (title contains '。', and officially annotated as 'あの花' or 'あのはな') or 私、能力は平均値でって言ったよね! (title contains '!', and annotated as 'のうきん'), and it's quite difficult to tell their boundary if someone does not have enough information, like:
I suspect there's probably a need for some flexibility down the line to relax this boundary, and that we could, in level 2, introduce some property, as antenna house does, to change how big the limit is or remove it, but I think the default behavior should include that limit.
css-ruby-1Current Worki18n-jlreqJapanese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.
Activity
[-][css-ruby] Limitting leading/trailing space with ruby-align:space-around[/-][+][css-ruby] Limiting leading/trailing space with ruby-align:space-around[/+]himorin commentedon Feb 16, 2021
The route reason of this is how to find boundaries of ruby base from attached annotation characters as in JLReq note. If we don't have a limit of maximum 1em (or 1.5em) of annotation character (or half of base character) for combination of long base and short annotation, we could easily miss the outermost characters of base to be not in the ruby base text.


For cases shown in examples in simple-ruby or JLReq, it is quite easy to tell where is the ruby base text in a long text like:
but, in some cases like in animations (and daily use cases in Japanese cultural area) it's quite common to place short annotation for long title, like あの日見た花の名前を僕達はまだ知らない。 (title contains '。', and officially annotated as 'あの花' or 'あのはな') or 私、能力は平均値でって言ったよね! (title contains '!', and annotated as 'のうきん'), and it's quite difficult to tell their boundary if someone does not have enough information, like:
frivoal commentedon Feb 19, 2021
I suspect there's probably a need for some flexibility down the line to relax this boundary, and that we could, in level 2, introduce some property, as antenna house does, to change how big the limit is or remove it, but I think the default behavior should include that limit.