|
Posted by PeterMcC on 01/23/55 11:40
Alan J. Flavell wrote in
<Pine.LNX.4.62.0602191505380.2177@ppepc55.ph.gla.ac.uk>
> 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.
Kudos
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.
Navigation:
[Reply to this message]
|