W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] HTML5 ruby spec: <rp>

From: Roland Steiner <rolandsteiner@google.com>
Date: Tue, 19 May 2009 18:07:20 -0700
Message-ID: <ee6bf5be0905191807o6d6162aeqd4298488e2795cb4@mail.gmail.com>
As I am currently in the process of writing an implementation for ruby, I
was wondering about the constraints put on the content of the <rp> element
in the spec:
If the rp <http://dev.w3.org/html5/spec/Overview.html#the-rp-element>element
is immediately after an
rt <http://dev.w3.org/html5/spec/Overview.html#the-rt-element> element that
is immediately preceded by another
rp<http://dev.w3.org/html5/spec/Overview.html#the-rp-element>element:
a single character from Unicode character class Pe. Otherwise:
a single character from Unicode character class Ps.Is there a specific
reason that <rp> is constrained in this way? I imagine that someone could
want to add additional spaces before/after the parenthesis, non-parenthesis
separators, or, e.g., in a text book write:

*<ruby>*??*<rp> *(reading:*</rp><rt>*Kanji*</rt>**<rp>*) *</rp><ruby>

*
Also note that there isn't such a constraint if one would use CSS rules to
achieve a similar result (in the absence of proper ruby rendering):

rt:before { content: " (reading: "; }
rt:after { content: ") "; }


Cheers,

- Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090519/837ab34d/attachment.htm>
Received on Tuesday, 19 May 2009 18:07:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:49 UTC