Fix for sharps, flats, naturals
Moderators: kcleung, Wiki Admins
-
- Copyright Reviewer
- Posts: 817
- Joined: Sun Aug 17, 2008 8:31 am
- notabot: 42
- notabot2: Human
- Contact:
Fix for sharps, flats, naturals
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.
{{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.
-
- active poster
- Posts: 293
- Joined: Sun Apr 23, 2006 5:08 am
- notabot: YES
- notabot2: Bot
- Location: Phoenix, AZ
-
- Copyright Reviewer
- Posts: 1219
- Joined: Fri Mar 16, 2007 3:42 am
- notabot: 42
- notabot2: Human
- Location: Melbourne, Australia
- Contact:
{{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
{{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
-
- Groundskeeper
- Posts: 553
- Joined: Fri Feb 16, 2007 8:55 am
-
- Copyright Reviewer
- Posts: 817
- Joined: Sun Aug 17, 2008 8:31 am
- notabot: 42
- notabot2: Human
- Contact:
Only Flat, Natural and Sharp here as well on IE7 (the rest being empty squares).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?
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?
-
- Copyright Reviewer
- Posts: 1219
- Joined: Fri Mar 16, 2007 3:42 am
- notabot: 42
- notabot2: Human
- Location: Melbourne, Australia
- Contact:
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!
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!