473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Thanks (was Marking up musical notes?)

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/
Jul 24 '05 #1
2 1583
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
Jul 24 '05 #2
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/
Jul 24 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Spartanicus | last post by:
How to get help from this group, and how to construct a minimised test case: http://www.spartanicus.utvinternet.ie/help_us_help_you.htm -- Spartanicus
17
by: Mark Tranchant | last post by:
On some of my pages, for example: http://tranchant.plus.com/guitar/chord-tutorial/music-theory ....I refer to musical note names a lot in the text, such as A, F# and Eb. Whilst cycling in to...
2
by: Andreas Prilop | last post by:
Is Ruby annotation http://www.w3.org/TR/ruby/ suitable for text with musical score written with symbols from http://www.unicode.org/charts/PDF/U1D100.pdf ? -- All free men, wherever they may...
3
by: clintonG | last post by:
This article has shown me how to playing system sounds and .wav files via a web page. Very nice to know. It got me wondering if we could somehow play one or more tones of a musical scale somehow...
5
by: Andy Mabbett | last post by:
Any suggestions for better ways to mark up and style the footnotes and especially the references to them (currently and temporarily styled in-line), in: ...
0
by: akk003 | last post by:
Hi I'am learning about midi files and the way they are played using DirectMusic in VC++. I have come across few tutorials that guide you to play music, but somehow I haven't figured out how to...
18
by: Lie | last post by:
I'm very surprised actually, to see that Python rejected the use of fractional/rational numbers. However, when I read the PEP, I know exactly why the proposal was rejected: People compared...
7
by: Mr.SpOOn | last post by:
Hi, I'm writing a method to create musical chords. This method must follow a specific set of syntax rules. At least, this is my idea, but maybe there's a better way. Anyway, in the code I have...
0
by: Paul McNett | last post by:
Mr.SpOOn wrote: I say, start with what you can think of (the chain of if clauses). Get it working. Then, you'll likely find ways to refactor if needed. Get it working first. Make it "right"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.