|
Posted by Alan J. Flavell on 11/22/64 11:40
On Sun, 19 Feb 2006, Alan J. Flavell wrote:
> It seems to me that Ruby annotation is just what you need for this.
> http://www.w3.org/TR/ruby/
Hmmm, for your requirements in fact the CSS stylesheet which is
suggested at:
http://www.w3.org/People/mimasa/test/schemas/NOTE-ruby-implementation#css2-inline-table
turns out to be effective.
With this particular stylesheet, the annotations are positioned above
the words to which they refer, rather than below, but a slight
adjustment of the stylesheet could change that if you wanted.
I've added some colouring to the annotations, but this is of course
entirely optional! Also I increased the annotation's font size from
the suggested 60%, to 75%.
I threw together a quick demonstration, which seems to give reasonable
results on Mozilla 1.7, Opera 8.52, etc. as well as IE6, and displays
the desired fallback behaviour on non-supporting (or
stylesheet-disabled) browsers.
http://ppewww.ph.gla.ac.uk/~flavell/www/umusalu.html
In practice of course you should be putting appropriate lang= (or
xml:lang= if you use XHTML) attributes on all of the affected
elements.
regards
Navigation:
[Reply to this message]
|