473,404 Members | 2,195 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,404 software developers and data experts.

Marking up musical notes?

On some of my pages, for example:

http://tranchant.plus.com/guitar/cho...l/music-theory

....I refer to musical note names a lot in the text, such as A, F# and
Eb. Whilst cycling in to work this morning, it suddenly struck me that a
screen reader or speech browser would have a hard time with this. I
guess the user would end up with "F-pound" (for US speech browsers) and
"Ebb" or something.

So, what's the best solution? I don't want to use longhand "F-sharp,
B-flat" on the page. Visual browser support for the flat (♭) and
sharp (♯) characters is not good enough for me to use those.

What I want is something like <span pronounce="E flat">Eb</span> - a way
to make the speech browser say something *instead* of the apparent
content. Any ideas?

--
Mark.
http://tranchant.plus.com/
Jul 24 '05 #1
17 12196
Els
Mark Tranchant wrote:
On some of my pages, for example:

http://tranchant.plus.com/guitar/cho...l/music-theory

...I refer to musical note names a lot in the text, such as A, F# and
Eb. Whilst cycling in to work this morning, it suddenly struck me that a
screen reader or speech browser would have a hard time with this. I
guess the user would end up with "F-pound" (for US speech browsers) and
"Ebb" or something.

So, what's the best solution? I don't want to use longhand "F-sharp,
B-flat" on the page. Visual browser support for the flat (♭) and
sharp (♯) characters is not good enough for me to use those.

What I want is something like <span pronounce="E flat">Eb</span> - a way
to make the speech browser say something *instead* of the apparent
content. Any ideas?


<acronym title="E flat">Eb</acronym> maybe?
JAWS screen reader can be set to 'expand acronyms', and would say "E
flat" afaics.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #2
On Tue, 17 May 2005, Els wrote:
<acronym title="E flat">Eb</acronym> maybe?
Except that it isn't an acronym, so you'd be lying in order to get the
desired effect.
JAWS screen reader can be set to 'expand acronyms', and would say "E
flat" afaics.


noted, but it still isn't an acronym.
Jul 24 '05 #3
Els
Alan J. Flavell wrote:
On Tue, 17 May 2005, Els wrote:
<acronym title="E flat">Eb</acronym> maybe?


Except that it isn't an acronym, so you'd be lying in order to get the
desired effect.
JAWS screen reader can be set to 'expand acronyms', and would say "E
flat" afaics.


noted, but it still isn't an acronym.


I know - sometimes even I don't mind a little white lie <g>

I use <acronym> for abbreviations too - it's not my fault, but the
browser's ;-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #4
Els wrote:
Alan J. Flavell wrote:
On Tue, 17 May 2005, Els wrote:
<acronym title="E flat">Eb</acronym> maybe?
Except that it isn't an acronym, so you'd be lying in order to get the
desired effect. JAWS screen reader can be set to 'expand acronyms', and would say "E
flat" afaics.

noted, but it still isn't an acronym.


It *is* an abbreviation, however - can JAWS expand <abbr> in the same
way, or does it work off MSIE code?

--
Mark.
http://tranchant.plus.com/
Jul 24 '05 #5
On Tue, 17 May 2005, Els wrote:
I use <acronym> for abbreviations too - it's not my fault, but the
browser's ;-)


"The browser's"? You're not confusing that operating system component
with a real web browser, surely?

Normally I'd recommend <span title="E flat">...</span> if it's neither
an acronym nor an abbreviation (which IMHO this is not), or (if it's
an abbreviation, and you want to pander to IE)

<span title="whatever"><abbr title="whatever">w/e</abbr></span>

But if, as you say, JAWS only wants to expand acronyms, and not title
attributes in general, then indeed there seems to be a dilemma.
Jul 24 '05 #6
Mark Tranchant <ma**@tranchant.plus.com> wrote:
What I want is something like <span pronounce="E flat">Eb</span> - a way
to make the speech browser say something *instead* of the apparent
content. Any ideas?


Theoretically the right way to do this:

<style type="text/css" media="aural,speech">
span.note{content:attr(title)}
</style>

<span class="note" title="E flat">Eb</span>

This would work in Opera 8 were it not for an issue whereby it doesn't
speak generated content if it's restricted to the aural/speech domain.

Practically I wouldn't bother trying to construct a solution unless it
has been established that speaking UAs are being used to access your
content. If the latter then the only cross UA solution is to replace Eb
with E Flat.

--
Spartanicus
Jul 24 '05 #7
Els
Alan J. Flavell wrote:
On Tue, 17 May 2005, Els wrote:
I use <acronym> for abbreviations too - it's not my fault, but the
browser's ;-)
"The browser's"? You're not confusing that operating system component
with a real web browser, surely?


I'm sorry - not confused, no, just thinking the general public's
thoughts ;-)
Normally I'd recommend <span title="E flat">...</span> if it's neither
an acronym nor an abbreviation (which IMHO this is not), or (if it's
an abbreviation, and you want to pander to IE)

<span title="whatever"><abbr title="whatever">w/e</abbr></span>

But if, as you say, JAWS only wants to expand acronyms, and not title
attributes in general, then indeed there seems to be a dilemma.


It can be set to use title attributes on links and form elements, but
not in general afaics.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #8
Els
Mark Tranchant wrote:
Els wrote:
Alan J. Flavell wrote:
On Tue, 17 May 2005, Els wrote:<acronym title="E flat">Eb</acronym> maybe?Except that it isn't an acronym, so you'd be lying in order to get the
desired effect.JAWS screen reader can be set to 'expand acronyms', and would say "E
flat" afaics.noted, but it still isn't an acronym.


It *is* an abbreviation, however - can JAWS expand <abbr> in the same
way, or does it work off MSIE code?


It has a setting to expand abbreviations, but I have no idea if it
uses the browser's code to detect them.
As I only have the 40 minute mode of Jaws, I'll restart my system to
check what it actually does. Back in a few mins... :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #9
Els
Els wrote:
Mark Tranchant wrote:
Els wrote:
Alan J. Flavell wrote:
On Tue, 17 May 2005, Els wrote:

><acronym title="E flat">Eb</acronym> maybe?

Except that it isn't an acronym, so you'd be lying in order to get the
desired effect.

>JAWS screen reader can be set to 'expand acronyms', and would say "E
>flat" afaics.

noted, but it still isn't an acronym.


It *is* an abbreviation, however - can JAWS expand <abbr> in the same
way, or does it work off MSIE code?


It has a setting to expand abbreviations, but I have no idea if it
uses the browser's code to detect them.
As I only have the 40 minute mode of Jaws, I'll restart my system to
check what it actually does. Back in a few mins... :-)


Okay, right: I used IE to display the page, and Jaws read both the
<abbr> and the <acronym> in full.

I think it would be useful to have a short explanation for users of
screen readers at the top of the page, saying that they'd need to set
<abbr> to expand in the options in case they haven't yet, in order to
hear A sharp instead of A pound for musical notes.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #10
Mark Tranchant wrote:
On some of my pages, for example:

http://tranchant.plus.com/guitar/cho...l/music-theory

...I refer to musical note names a lot in the text, such as A, F# and
Eb. Whilst cycling in to work this morning, it suddenly struck me that a
screen reader or speech browser would have a hard time with this. I
guess the user would end up with "F-pound" (for US speech browsers) and
"Ebb" or something.


Hmmm. Not an easy one, unless you resort to MusML (is there support for
such a thing in real life?)

How about <abbr title="F sharp">F#</abbr> ?

The title attribute is widely supported, and your use of the hash
is more-or-less an abbreviation (OK it's really a substitute).

BTW, How do 'merkins get pound out of that? I know hash shared the
shift-3 keyboard position with pound on keyboards of 20 years ago,
but there's no resemblence beyond that historical quirk.

--
Nick Kew
Jul 24 '05 #11
On Tue, 17 May 2005, Nick Kew wrote:
BTW, How do 'merkins get pound out of that? I know hash shared the
shift-3 keyboard position with pound on keyboards of 20 years ago,


It's "pound" as in pound weight, i.e a stylised rendering of "lb".
Jul 24 '05 #12
Mark Tranchant <ma**@tranchant.plus.com> wrote:
I don't want to use longhand "F-sharp,
B-flat" on the page. Visual browser support for the flat (♭)
and sharp (♯) characters is not good enough for me to use
those.


There's the (too obvious?) option of using small images, e.g.
B<img alt="-flat" src="flat.gif">
This might be a feasible alternative, despite the (obvious?)
disadvantages such as the fact that the image does not change size and
style as font size and face are changed.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 24 '05 #13
On Tue, 17 May 2005, Mark Tranchant wrote:
...I refer to musical note names a lot in the text, such as A, F# and
Eb. Whilst cycling in to work this morning, it suddenly struck me that a
screen reader or speech browser would have a hard time with this.


I'd expect them to whistle or sing.

Jul 24 '05 #14
In article <jm************@asgard.webthing.com>,
Nick Kew <ni**@asgard.webthing.com> wrote:
Mark Tranchant wrote:
On some of my pages, for example:

http://tranchant.plus.com/guitar/cho...l/music-theory

...I refer to musical note names a lot in the text, such as A, F# and
Eb. Whilst cycling in to work this morning, it suddenly struck me that a
screen reader or speech browser would have a hard time with this. I
guess the user would end up with "F-pound" (for US speech browsers) and
"Ebb" or something.


Hmmm. Not an easy one, unless you resort to MusML (is there support for
such a thing in real life?)

How about <abbr title="F sharp">F#</abbr> ?

The title attribute is widely supported, and your use of the hash
is more-or-less an abbreviation (OK it's really a substitute).

BTW, How do 'merkins get pound out of that? I know hash shared the
shift-3 keyboard position with pound on keyboards of 20 years ago,
but there's no resemblence beyond that historical quirk.


http://en.wikipedia.org/wiki/Number_sign

--
= Eric Bustad, Norwegian bachelor programmer
Jul 24 '05 #15
On Tue, 17 May 2005 13:24:13 +0000 (UTC), "Jukka K. Korpela"
<jk******@cs.tut.fi> wrote:
Mark Tranchant <ma**@tranchant.plus.com> wrote:
I don't want to use longhand "F-sharp,
B-flat" on the page. Visual browser support for the flat (♭)
and sharp (♯) characters is not good enough for me to use
those.


There's the (too obvious?) option of using small images, e.g.
B<img alt="-flat" src="flat.gif">
This might be a feasible alternative, despite the (obvious?)
disadvantages such as the fact that the image does not change size and
style as font size and face are changed.


Perhaps the image could be styled with a height of 1em? That should
allow it to change size, at least. If one makes the native size of the
image somewhat larger than most peoples' likely chosen default font
size, it should stand enlargement without serious degradation of
quality.

Here is an example:

<http://theodorakis.net/flat.html>

Nick

--
Nick Theodorakis
ni**************@hotmail.com
contact form:
http://theodorakis.net/contact.html
Jul 24 '05 #16
Mark Tranchant wrote:
On some of my pages, for example:

http://tranchant.plus.com/guitar/cho...l/music-theory

...I refer to musical note names a lot in the text, such as A, F# and
Eb. Whilst cycling in to work this morning, it suddenly struck me that a
screen reader or speech browser would have a hard time with this. I
guess the user would end up with "F-pound" (for US speech browsers) and
"Ebb" or something.

So, what's the best solution? I don't want to use longhand "F-sharp,
B-flat" on the page. Visual browser support for the flat (♭) and
sharp (♯) characters is not good enough for me to use those.

What I want is something like <span pronounce="E flat">Eb</span> - a way
to make the speech browser say something *instead* of the apparent
content. Any ideas?


Check this out:

http://www.music-notation.info/en/co...onformats.html

Jul 24 '05 #17
JRS: In article <jm************@asgard.webthing.com>, dated Tue, 17 May
2005 10:04:27, seen in news:comp.infosystems.www.authoring.html, Nick
Kew <ni**@asgard.webthing.com> posted :

Re # :
BTW, How do 'merkins get pound out of that? I know hash shared the
shift-3 keyboard position with pound on keyboards of 20 years ago,
but there's no resemblence beyond that historical quirk.


ISTR hearing that it came from, for example, dog-pound. Hence its use
for pounds Sterling and Avoirdupois, for the same sound.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links;
Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 24 '05 #18

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
2
by: Mark Tranchant | last post by:
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> has now been turned off as...
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: Dan Upton | last post by:
On Fri, Nov 14, 2008 at 1:00 PM, Mr. SpOOn <mr.spoon21@gmail.comwrote: I don't know if this is any better, but you could represent a chord formula as a 15-tuple consisting of (-, n, b, #) for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.