Page 1 of 1

Fix for sharps, flats, naturals

Posted: Sun Feb 08, 2009 2:41 pm
by Davydov
Having been fed up with typing "C#", "Bb", etc. I've borrowed a solution from Wikipedia so that the symbols should display correctly. So inserting the following (case-sensitive) codes into the Wiki should produce the correctly-formatted music symbols of the same names:

{{Sharp}}
{{Flat}}
{{Natural}}

The Wikipedia documentation suggests that this may not work for everyone, and if that's the case it may be helpful to know which browser they're using. There are a few examples on this page:

http://imslp.org/wiki/List_of_compositi ... pus_number

(easiest to see by scrolling to the end, under Op.75 and Op.80).

Please note that they can be used in ordinary Wiki text, e.g. "in B{{Flat}} minor", but not in the titles of pages.

Posted: Sun Feb 08, 2009 7:05 pm
by Peter
nice. thanks.

Posted: Sun Feb 08, 2009 8:06 pm
by horndude77
The flat looked a little small to me so I made all three slightly larger.

Posted: Sun Feb 08, 2009 8:15 pm
by Generoso
I must say that this site (My Favorite Site) is just getting better and better! Bravo!

Posted: Sun Feb 08, 2009 9:02 pm
by Davydov
horndude77 wrote:The flat looked a little small to me so I made all three slightly larger.
Yes, that's definitely an improvement. I've just copied the modified templates over to IMDBP as well...

Posted: Mon Feb 09, 2009 1:13 am
by Peter
which makes me think again about our need to have a standard about page titling

Posted: Mon Feb 09, 2009 1:46 am
by pml
{{Flat2}} double flat
{{Sharp2}} double sharp
{{GClef}}, {{CClef}}, {{FClef}}... guess :)

Technical caveat: These five symbols use a separate part of the Unicode tablespace beginning at U+1D100, which may not be as well supported as the natural, sharp and flat signs, which are from the "miscellaneous symbols and dingbats" collection at U+2600. Anyone want to see if there are problems with certain OS/browser combinations?

http://imslp.org/wiki/Test_page

Posted: Mon Feb 09, 2009 7:25 am
by Leonard Vertighel
Only Flat, Natural and Sharp display in on my Linux machine (Opensuse - Firefox, Opera and Konqueror; the latter displays the other symbols as Chinese (?) characters).

Posted: Mon Feb 09, 2009 10:44 am
by noqu
Dito for Vista with Internet Explorer 7 and Firefox 3.

symbols

Posted: Mon Feb 09, 2009 3:24 pm
by kalliwoda
double-flat and double-sharp display fine on Mac OS 10.4 - Safari browser.

No luck with the clefs, they display as rectangel.

Posted: Mon Feb 09, 2009 3:33 pm
by Generoso
They all (8 of them) show up fine for me Mac OSX Safari v3.2.1 browser.

Posted: Mon Feb 09, 2009 6:33 pm
by Davydov
pml wrote:These five symbols use a separate part of the Unicode tablespace beginning at U+1D100, which may not be as well supported as the natural, sharp and flat signs, which are from the "miscellaneous symbols and dingbats" collection at U+2600. Anyone want to see if there are problems with certain OS/browser combinations?
Only Flat, Natural and Sharp here as well on IE7 (the rest being empty squares).

The Wikipedia solution was to use graphics for the other symbols instead of characters (see http://en.wikipedia.org/wiki/Template:Music). If the graphic images were copied, uploaded and referenced in the template, might this work just as well?

Posted: Tue Feb 10, 2009 9:20 pm
by pml
Thanks Davydov,

I've quickly come to that conclusion given that most of the users here appear to have issues with the expanded Unicode tablespace. I suppose that implementation would have to wait until Unicode font handling improves on a variety of OSs.

I'll be trying to obtain scalable versions: the beauty of fonts are that they print nicely at any particular size, whereas an ordinary graphic is limited by the pixel count.

Regards, PML

Edit: Hmm. Maybe not SVG images, since they don't render in-line well...
Time to go digging in the sandbox!