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]

extending CSS is unnecessary Re: Abbreviations and Acronyms: [techs] Latest HTML Techniques Draft

From: Charles McCathieNevile <charles@w3.org>
Date: Fri, 12 Dec 2003 04:35:57 -0500 (EST)
To: Christoph Päper <christoph.paeper@tu-clausthal.de>
Cc: www-html@w3.org, w3c-wai-gl@w3.org
Message-ID: <Pine.LNX.4.55.0312120421590.17211@homer.w3.org>

Actually you can do this already, using XHTML 1.1 and CSS 2, as the
following example shows:

some XHTML:

...
<ruby class="acron">
<rb>NATO</rb><rt>North Atlantic Treaty Organisation</rt></ruby>'s
strategy for the
<ruby class="init"><rb>UN</rb><rt>United Nations</rt></ruby>
was yesterday spelled out by
<ruby class="abbr"><rb>Dr</rb><rt>Doctor</rt></ruby>
Strangelove...

with the following style:

@media screen {
ruby.init rb, ruby.abbr rt, ruby.acron rt { display: none }
}

@media aural {
ruby.init rt, ruby.abbr rb, ruby.acron rt { speak: none }
ruby.abbr rt, ruby.acron rb { speak: normal }
ruby.init rb { speak: spell }
}

which will present on screen:

NATO's strategy for the United Nations was yesterday spelled out by Dr
Strangelove

and will read in audio:

"Nato's strategy for the U N was yesterday spelled out by Doctor Strangelove"

Seems too easy - three classes to cover the required variations, the
information is there to allow people to give a different version, it's all
element content, ...

cheers

Chaals

On Thu, 11 Dec 2003, Christoph Päper wrote:

>  <link rel="stylesheet abbr" href="/abbreviations.css" type="text/css"
>media="aural"/>
>  ...
>  <p xml:lang="en"><abbr>e.g.</abbr>, <abbr>abbr.</abbr>,
>  <acronym>WWW</acronym>, <acronym>NATO</acronym>.</p>
>
>  /* /abbreviations.css */
>  abbr("abbr."):lang(en) {content: "abbreviation";}
>  abbr("WWW"):lang(en) {content: "World Wide Web"}
>  abbr("WWW"):lang(de) {content: "W W W";}
>  abbr("NATO") {content: "Nato";}
>
>Quite similar a glossary might work:
>
>  <link rel="glossary" href="/glossary"/>
>  ...
>  <term>foo</term>
>
>  ; /glossary.txt
>  foo: A generic placeholder.
>
>  <!-- /glossary.html -->
>  ...
>  <dl><dt id="foo">foo</dt><dd>A generic placeholder.</dd></dl>
Received on Friday, 12 December 2003 04:35:57 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.