[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Persian musical koron and sori
From: |
Graham Breed |
Subject: |
Re: Persian musical koron and sori |
Date: |
Tue, 17 Feb 2009 18:08:38 +0800 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20090105) |
Kees van den Doel wrote:
Hi Folks,
I made an init file "persian.ly" with support for Persian accidentals and scale
signatures.
The only thing missing is correct glyphs for koron and sori. I include it below.
You don't want glyphs. You want strings, because we're not
expecting a music font, so the mechanism for glyphs won't work.
This can stay here:
% Define accidental symbols.
% Really need to have accidentals.koron and accidentals.sori
persianGlyphs = #`((-3/10 . "accidentals.mirroredflat")
(1/5 . "accidentals.sharp.slashslash.stem")
(0 . "accidentals.natural")
(1/2 . "accidentals.sharp")
(-1/2 . "accidentals.flat")
(-1/10 . "")
(-3/5 . "")
(-1 . "accidentals.flatflat")
( 1 . "accidentals.doublesharp")
)
Then add:
persianStrings = #`((-3/10 . "???")
(1/5 . "???")
...
)
where the ??? are replaced with the UTF-8 strings of the
symbols you want. Then in "\context" add
\override Accidental #'stencil = #ly:text-interface::print
\override Accidental #'text = #accidental-text
\override Accidental #'font-name = #"???"
\override Accidental #'font-size = #?
\override Accidental #'text = #(lambda (grob)
(cdr (assoc (ly:grob-property grob 'alteration)
persianStrings)))
\override Accidental #'X-extent = #(0 . 1)
\override Accidental #'Y-extent = #(-1 . 1)
and so on for KeySignature and whatever else you want to use
the new symbols. The font name is what Pango uses to find
the new font and you may need to adjust the font size. For
the best results use lookups for the X- and Y-extents as well.
Something I'm doing is causing a bug on another system, but
this works for me.
Graham
- Re: Persian musical koron and sori, (continued)
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/16
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/16
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/16
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/16
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16
- Re: Persian musical koron and sori,
Graham Breed <=
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/17
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/18
- Re: Persian musical koron and sori, Graham Breed, 2009/02/18
- Re: Persian musical koron and sori, Kees van den Doel, 2009/02/20
- Re: Persian musical koron and sori, Behnam Rassi, 2009/02/22
- Custom key signatures, Kees van den Doel, 2009/02/22
- Persian music, Kees van den Doel, 2009/02/23
- Re: Persian music, Werner LEMBERG, 2009/02/23
- Re: Custom key signatures, Mats Bengtsson, 2009/02/23
- Re: Persian musical koron and sori, Hans Aberg, 2009/02/16