473,847 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 12230
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 vo. 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 vo. 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,sp eech">
span.note{conte nt: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 vo. 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 vo. 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 vo. O resto imperfeito.
- Renato Russo -
Jul 24 '05 #10

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

Similar topics

3
1931
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
1606
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 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
2
1615
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 live, are citizens of Denmark. And therefore, as a free man, I take pride in the words "Jeg er dansker!"
3
1318
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 without downloading or streaming files? I'm ignorant about it but I though Windows had native support for generating beeps as tonal values. <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL...
5
3948
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: http://www.westmidlandbirdclub.com/blithfield/plants20060815.htm would be appreciated. (as would other constructive comments)
0
994
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 compose music. How do I compose musical notes from a text file? Kindly help.
18
1922
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 fractions with integers, while it should be more fairly compared to floats. Arguments against: - When I use the result of / as a sequence index, it's usually an error which should not be hidden by making the program working for some data, since it...
7
2019
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 class Chord which is a set. The costrunction of a chord is based on a root note and a structure, so by default, giving just a note, it creates a major chord adding the third and fifth note.
0
475
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 instance, so maj = (n, -, n, -, n, -, -, -, -, -, -, -, -, -, -) min = (n, -, b, -, n, -, -, -, -, -, -, -, -, -, -) #9 = (n, -, n, -, n, -, n, -, #, -, -, -, -, -, -) and just have a lookup table. (Or a 7-tuple and do mod arithmetic to
0
9727
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10981
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10645
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10706
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7879
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5718
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4115
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3160
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.