bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert-ly and default accidental style


From: Maximilian Albert
Subject: Re: Convert-ly and default accidental style
Date: Mon, 29 Jan 2007 13:17:33 +0100
User-agent: IceDove 1.5.0.9 (X11/20061220)

Han-Wen Nienhuys schrieb:

> 
> actually, I prefer a change in convertrules.py
> 

Something like this? You probably have added this yourself already, but
just in case ... (I hope I didn't get anything wrong with the python
syntax).

Interesting, though, that you like it better this way. I thought it
might cause some confusion later on or in users unfamiliar with the new
method of setting the style if there is only one exception to the
otherwise consistent naming convention for the alists.

Max
>From b86f95e00a84084d0ead28cdce1ce65524cbca87 Mon Sep 17 00:00:00 2001
From: Maximilian Albert <address@hidden>
Date: Mon, 29 Jan 2007 13:07:45 +0100
Subject: [PATCH] add correct handling of default accidental style to 
convertrules.py

---
 python/convertrules.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/python/convertrules.py b/python/convertrules.py
index 71dbd10..7bfffbf 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -2924,6 +2924,7 @@ def conv (str):
                   sub_acc_name, str) 
     str = re.sub 
(r"(KeySignature|Accidental[A-Za-z]*)\s*#'style\s*=\s*#'([a-z]+)",
                   r"\1 #'glyph-name-alist = #alteration-\2-glyph-name-alist", 
str)
+    str = re.sub 
(r'alteration-default-glyph-name-alist',r'standard-alteration-glyph-name-alist',
 str)
             
     return str
 
-- 
1.4.4.4


reply via email to

[Prev in Thread] Current Thread [Next in Thread]