W3C home > Mailing lists > Public > www-html@w3.org > August 2005

Re: Creating web pages with lyrics and chords

From: Sjoerd Visscher <sjoerd@w3future.com>
Date: Wed, 10 Aug 2005 19:41:57 +0200
Message-ID: <42FA3C65.2020904@w3future.com>
To: www-html@w3.org

> Not sure if this is 100% "correct", as I suspect it is a "bending" of
> the spec, but have you considered Ruby? http://www.w3.org/TR/ruby/

That's quite cool. I played with it a bit more:

   p { ruby-align:left; }
   rt { font-size: 75%; }
   <ruby><rb>bla bla.</rb><rt>E</rt></ruby>
   <ruby><rb>bla</rb><rt>Am G F E</rt></ruby>
   <ruby><rb>bla bla.</rb><rt>Dm</rt></ruby>

This workes really well.

You need ruby-align: left, because the chords starts at the beginning of 
the word. Unfortunately, this also makes the fallback feature of ruby 
useless, because <rt> has to follow <rb>, so the chords always end up 
after the words. I think the order restriction is unnecessary, maybe 
this can be fixed in a next version. (But Internet Explorer would have 
to be fixed as well then.)

Sjoerd Visscher
Received on Wednesday, 10 August 2005 17:42:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:11 UTC