Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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:

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

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
http://w3future.com/weblog/ 
Received on Wednesday, 10 August 2005 17:42:10 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.