Click here to get back home

Thanks (was Marking up musical notes?)

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Thanks (was Marking up musical notes?) Mark Tranchant 05-17-2005
Posted by Mark Tranchant on May 17, 2005, 3:41 pm
Please log in for more thread options


Thanks for the input everyone. I've settled (for now) on the following:

<abbr title="B flat">Bb</abbr>

My magic conversion to pander to IE's non-support of <abbr> [1] has now
been turned off as it made any music-related pages a mass of conditional
comments. People who want abbreviations expanded can either get a
browser or view the source.

I understand that e.g. Bb isn't really an abbreviation, but I think it's
probably the closest semantically. Perhaps <code> would have been
appropriate?

Now all I need to do is update the crazy number of occurrences.

[1] It converted <abbr title="foo">bar</abbr> to:

<abbr title="foo"><!--[if IE]<acronym title="(fixed abbr for IE)
foo">bar</acronym><![endif]--></abbr>

--
Mark.
http://tranchant.plus.com/

Posted by Nick Kew on May 18, 2005, 12:47 am
Please log in for more thread options


Mark Tranchant wrote:

> <abbr title="B flat">Bb</abbr>
>
> My magic conversion to pander to IE's non-support of <abbr>

Seems OTT. Presumably users affected by that are those who don't need
the title anyway, yesno?

> Now all I need to do is update the crazy number of occurrences.

That's what scripts and regexps are for!

--
Nick Kew


Posted by Mark Tranchant on May 18, 2005, 10:04 am
Please log in for more thread options


Nick Kew wrote:
> Mark Tranchant wrote:
>
>><abbr title="B flat">Bb</abbr>
>>
>>My magic conversion to pander to IE's non-support of <abbr>
>
> Seems OTT. Presumably users affected by that are those who don't need
> the title anyway, yesno?

In the musical note case, yes. What I've ended up doing is as follows:

In the source XML, notes are marked up as <note title="B flat">Bb</note>
The front-end performs the IE fix on <abbr>s first, then converts the
<note>s to <abbr>. That way, non-note <abbr>s are still readable by the
joke "browser", and my music pages aren't drowned in conditional comments.

>>Now all I need to do is update the crazy number of occurrences.
>
> That's what scripts and regexps are for!

Yes, but they're hardly trivial given the number of cases.

--
Mark.
http://tranchant.plus.com/

Similar ThreadsPosted
Marking up musical notes? May 17, 2005, 10:02 am
Ruby Annotation for Musical Symbols? March 2, 2006, 11:53 am
Marking up keyboard shortcuts September 2, 2004, 12:59 pm
Marking-up and styling footnotes August 23, 2006, 1:05 pm
RE: DHTML Notes and Information October 9, 2005, 6:29 pm
DHTML Notes and Information October 2, 2005, 3:54 pm
RE: DHTML Notes and Information October 9, 2005, 6:35 pm
create margin notes on webpages March 6, 2006, 9:03 pm
Copy tables from Lotus Notes emails to HTML editors... October 26, 2006, 11:44 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap