[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change color for some symbols in a sylable
From: |
James |
Subject: |
Re: Change color for some symbols in a sylable |
Date: |
Thu, 12 Jan 2012 17:23:10 +0000 |
Svetlana,
2012/1/12 Светлана <address@hidden>:
> 12.01.2012, 06:16, "David Nalesnik" <address@hidden>:
>
> Hi Svetlana,
>
> Yes, the problem lies in the fact that the representations of many of the
> Cyrillic letters are more than one byte in length, and the Guile functions
> which deal with characters don't appear to accommodate these.
> I've come up with a solution to the problem, I think. (I hope!)
> The variable "all-characters" stores every character which can appear in the
> lyric text. For testing, I included only those characters which are used in
> the Russian test of the "Twinkle, twinkle" example. To work with your chant
> examples, you will need to extend this list to include all Cyrillic letters,
> uppercase and lowercase, and any punctuation, numbers, etc. you will need.
> This list must include the symbols which will be colored red, too. It
> can't include any duplicates, and if something is missing it will also be
> missing in the transformed text. I realize this is tedious, but I couldn't
> think of a better way to "teach" LilyPond the new characters.
> The variable "characters-to-color" of course includes your list.
> Basically, I scan each unit of text to create a list of position/length
> data, and use this to break the text into its component strings. Then I
> convert these to markups with some characters in red, others in black. (Of
> course, you could do other transformations to either of these.)
> Let me know if this works as you would like! If you find any problems, let
> me know and I'll try to fix them.
> If anyone reading this thread knows of a more streamlined approach, please
> let me know.
> Best,
> David
>
>
> Hi, David,
> This works perfectly! I've included all the symbols, that can be used by
> znamya font and also found some more symbols that should be colored (those
> that are not available directly from keyboard), so now we have an universal
> coloring script for Znamenny chants. Great job!
>
> Here, I include an example with full character lists. May be it should be
> placed to the repository (I could write a description for it), but it needs
> a special font to render correctly. I also attach rendered pdf for all to
> see the real rendered example.
>
We can of course upload this example to the LilyPond Snippet
Repository (LSR) - unless anyone else has any better ideas.
As to the special font, of course it won't render on the LSR but I
assume this is not a 'custom' font but something someone, who
understands Cyrillic would be able to download from 'somewhere' on the
internet?
Perhaps could just give the link to that?
--
--
James
- Re: Change color for some symbols in a sylable, (continued)
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/09
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/10
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/10
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/10
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/10
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/11
- Re: Change color for some symbols in a sylable, Christopher R. Maden, 2012/01/11
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/11
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/11
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/12
- Re: Change color for some symbols in a sylable,
James <=
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/13
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/13
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/19
- Re: Change color for some symbols in a sylable, Svetlana, 2012/01/28
- Message not available
- Message not available
- Re: Change color for some symbols in a sylable, David Nalesnik, 2012/01/13
- Re: Change color for some symbols in a sylable, Carl Sorensen, 2012/01/14
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/10
- Re: Change color for some symbols in a sylable, Светлана, 2012/01/10