Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(249)

Issue 2606042: [Patch] Fix #903: Add shortcuts for note names languages. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by Valentin Villenave
Modified:
14 years, 5 months ago
Reviewers:
t.daniels, carl.d.sorensen, c_sorensen
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fix #903: Add shortcuts for note names languages. This commit adds a new file, lang-init.ly, that introduces new shortcut commands for notenames language selection: instead of using \include "italiano.ly", just use \langItaliano, and so on. Standalone shortcuts have been defined for all available languages. A different syntax has been considered, such as \lang "italiano" However, since the only way to pass arguments is currently through a music-functions, and since you can't have toplevel LilyPond definitions inside a music function, this would require to modify either the parser (a rather heavy change) either the italiano.ly&co files, which would break compatibility with existing code. The way I chose was the lightest, safest and the most straightforward. Full compatibility with the old syntax is preserved. Once people get used to the new syntax, we may consider a slightly different implementation (or not).

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -1 line) Patch
M ly/declarations-init.ly View 1 chunk +2 lines, -1 line 2 comments Download
A ly/lang-init.ly View 1 chunk +69 lines, -0 lines 3 comments Download

Messages

Total messages: 7
Valentin Villenave
Greetings everybody, this user-friendly modification has been discussed for a while but nothing concrete had ...
14 years, 5 months ago (2010-10-20 17:56:07 UTC) #1
Carl
I like this idea as a way to get the functionality you want in the ...
14 years, 5 months ago (2010-10-21 02:53:44 UTC) #2
Valentin Villenave
On Thu, Oct 21, 2010 at 4:53 AM, <Carl.D.Sorensen@gmail.com> wrote: Hi Carl, > I like ...
14 years, 5 months ago (2010-10-23 20:54:31 UTC) #3
c_sorensen
On 10/23/10 2:54 PM, "Valentin Villenave" <v.villenave@gmail.com> wrote: > On Thu, Oct 21, 2010 at ...
14 years, 5 months ago (2010-10-23 22:15:21 UTC) #4
t.daniels_treda.co.uk
Valentin Villenave wrote Saturday, October 23, 2010 9:54 PM > On Thu, Oct 21, 2010 ...
14 years, 5 months ago (2010-10-23 22:27:16 UTC) #5
Valentin Villenave
On Sun, Oct 24, 2010 at 12:15 AM, Carl Sorensen <c_sorensen@byu.edu> wrote: > L.....G.......T......M > ...
14 years, 5 months ago (2010-10-23 22:35:53 UTC) #6
c_sorensen
14 years, 5 months ago (2010-10-23 22:40:05 UTC) #7


On 10/23/10 4:35 PM, "Valentin Villenave" <v.villenave@gmail.com> wrote:

> On Sun, Oct 24, 2010 at 12:15 AM, Carl Sorensen <c_sorensen@byu.edu> wrote:
>> L.....G.......T......M
>> 
>> Nice approach, Valentin!  Now I have no reasonable opposition to this patch!
> 
> Well, you've just made my day :-)
> 
> On Sun, Oct 24, 2010 at 12:27 AM, Trevor Daniels <t.daniels@treda.co.uk>
> wrote:
>> Well, I tried it under Windows Vista and it seems to work fine, at least
>> on a simple test with english.ly.  I can't vouch for the purity of the
>> coding
>> though, and of course we'll need some doc changes, reg test, and
>> a convert-ly change.
> 
> I'm documenting it just now. I'm not sure we want to convert-ly this
> yet, though. (Read: I'm not sure what amount of decibels Graham will
> produce if I do that. :)

I don't think we need a convert-ly rule yet, because we aren't eliminating
the old syntax yet.  Right now this is an *additional* way of selecting
languages, I think.

Thanks,

Carl

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b