473,696 Members | 1,989 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 12214
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
1922
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
1600
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
1602
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
1313
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
3942
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
988
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
1911
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
2014
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
8666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8597
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
9145
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
9010
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
6515
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
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4356
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...
0
4611
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2319
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.