Thomas 'PointedEars' Lahn hu kiteb:
> Fabian wrote:
>
>> I have a page (ok, will have a page) written in Japanese. As we all
>> know, Japanese is written with some pretty funky characters,
>
> AFAIK Japanese has glyphs, not characters. But understood.
For all practial purposes, the two words have the same meaning. The only
reason Japanese people don't call them characters is because
'kyarakutaa' means things like Mickey Mouse, Fred Flintstone, or the
Stay-Puffed Marshmallow Man.
>> This can be rendered properly using the html <RUBY> tag.
>
> (X)HTML does not have a <RUBY> tag. In fact, _W3C's_ Ruby (apparently
> there is an object-oriented scripting language of the same name[1]) is
> another markup language which can be embedded in XHTML 1.1 documents
> through a module for XHTML 1.1.[2] The "ruby" element is, of course,
> the root element of the embedded markup.
>
> [1] http://www.ruby-lang.org/en/
> [2] http://www.w3.org/TR/ruby/
>
>> Unfortunately, that tag is not properly supported across browsers,
>
> As XHTML is not, alas.
>
>> and msie, the only one I know that does support it, wont allow it
>> to be manipulated properly by javascript. So I think it is best
>> avoided.
>
> Why not admit that IE is not capable and serve it (and
> other not-supporting UAs) a page without Ruby markup?
What I want is a solution whereby by default the user agent will see one
of:
ruby
text
or
text(ruby)
Depending on the capabilities of the agent. Further, I want the user to
have teh option to toggle the display of the text and ruby. There will
be 3 options:
Show all
Show base text only
Show ruby only
Ideally it will be functional it at least both msie and netscape (latest
versions).
The main problem I have is that msie won't allow the <ruby> tags to be
manipulated via javascript.
> There is a good[tm] and a bad[tm] solution.
>
> The good[tm] one is CSS.
>
> CSS2, using floats and toggling child elements of each float:
> <http://www.w3.org/TR/CSS2/visuren.html#floats>
From the example they give, this would be a great way to do drop-caps,
but since the main text will flow around both sides, I'm not sure it
would work. On really long examples, the ideal display would be
interleaved lines.
> CSS3, using its Ruby Module (not yet a recommendation) and
> toggling properties of child elements:
> <http://www.w3.org/TR/css3-ruby/>
Since there is no browser (no common one anyway) that both understands
the ruby tagset and allows it to be manipulated, I'll pass on this
solution.
I think I'll have to give this one up as a not yet possible across
browsers task.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk