[whatwg] HTML5 ruby spec: <rp>

Ian Hickson ian at hixie.ch
Wed Jun 10 00:01:40 PDT 2009


On Tue, 19 May 2009, Roland Steiner wrote:
>
> 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: ") "; }

Yeah, I guess this constraint is excessive. I've removed it.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list