[webkit-dev] Fwd: Ruby Text Enhancements
rolandsteiner at google.com
Mon Sep 27 01:32:13 PDT 2010
On Sat, Sep 25, 2010 at 3:02 PM, David Hyatt <hyatt at apple.com> wrote:
> On Sep 24, 2010, at 6:56 PM, Eric Mader wrote:
> This method makes several assumptions that I'm not 100% sure are always
> * That a RenderRuby object holds only 1 RenderRubyRun object.
> I believe you can have multiple RenderRubyRuns inside a single RenderRuby.
> "The ruby element allows one or more spans of phrasing content to be marked
> with ruby annotations."
Yes - after the change for https://bugs.webkit.org/show_bug.cgi?id=41040, a
ruby run will basically contain:
[:before-generated content]? [RenderRubyRun]* [:after-generated
Where RenderRubyRun is an inline-block element with 1 RenderRubyBase and
(currently) 0-1 RenderRubyTexts - the latter may change to 0-n at some
Thinking this further, I also believe that once you implement ruby overhang
for the edges of the <ruby> element it will really look strange unless you
also implement overhang and offsets between ruby runs within the same <ruby>
element - i.e., implement Jukugo-ruby. This then has implications on the
line-breaking code within a single ruby.
Finally, as yet another corner case that I forgot in my last mail: as
implied above note that you also have to consider the
:before/:after-generated content for overhang.
Incidentally, you'll also have to consider generated content for item 4) of
your initial list (over/under-lines on ruby).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev