Fix for sharps, flats, naturals

Moderators: kcleung, Wiki Admins

Post Reply
Davydov
Copyright Reviewer
Posts: 817
Joined: Sun Aug 17, 2008 8:31 am
notabot: 42
notabot2: Human
Contact:

Fix for sharps, flats, naturals

Post 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.
Peter
Site Admin
Posts: 436
Joined: Sat Apr 01, 2006 9:34 am
notabot: 42
notabot2: Human

Post by Peter »

nice. thanks.
horndude77
active poster
Posts: 293
Joined: Sun Apr 23, 2006 5:08 am
notabot: YES
notabot2: Bot
Location: Phoenix, AZ

Post by horndude77 »

The flat looked a little small to me so I made all three slightly larger.
Generoso
active poster
Posts: 266
Joined: Mon Mar 12, 2007 1:49 pm

Post by Generoso »

I must say that this site (My Favorite Site) is just getting better and better! Bravo!
Davydov
Copyright Reviewer
Posts: 817
Joined: Sun Aug 17, 2008 8:31 am
notabot: 42
notabot2: Human
Contact:

Post 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...
Peter
Site Admin
Posts: 436
Joined: Sat Apr 01, 2006 9:34 am
notabot: 42
notabot2: Human

Post by Peter »

which makes me think again about our need to have a standard about page titling
pml
Copyright Reviewer
Posts: 1219
Joined: Fri Mar 16, 2007 3:42 am
notabot: 42
notabot2: Human
Location: Melbourne, Australia
Contact:

Post 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
--
PML (talk)
Leonard Vertighel
Groundskeeper
Posts: 553
Joined: Fri Feb 16, 2007 8:55 am

Post 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).
noqu
forum adept
Posts: 51
Joined: Mon Aug 18, 2008 5:44 pm

Post by noqu »

Dito for Vista with Internet Explorer 7 and Firefox 3.
kalliwoda
active poster
Posts: 504
Joined: Fri Dec 19, 2008 8:36 pm
notabot: YES
notabot2: Bot
Location: Berlin, Germany

symbols

Post 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.
Generoso
active poster
Posts: 266
Joined: Mon Mar 12, 2007 1:49 pm

Post by Generoso »

They all (8 of them) show up fine for me Mac OSX Safari v3.2.1 browser.
Davydov
Copyright Reviewer
Posts: 817
Joined: Sun Aug 17, 2008 8:31 am
notabot: 42
notabot2: Human
Contact:

Post 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?
pml
Copyright Reviewer
Posts: 1219
Joined: Fri Mar 16, 2007 3:42 am
notabot: 42
notabot2: Human
Location: Melbourne, Australia
Contact:

Post 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!
--
PML (talk)
Post Reply