[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Language selection code
From: |
Simon Albrecht |
Subject: |
Language selection code |
Date: |
Fri, 27 Mar 2015 00:43:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
Hello,
triggered by a discussion on -user I have begun to implement a new
\language command which in addition to setting the note names input
language also automatically translates the default text fields in
tagline and table of contents, or may be used for both tasks separately.
By now, with help from David N. and Harm, I made a one-file working
version of this feature (see attachment) and would like to bring this
feature into the code base. There are many comments inline explaining
the design and coding.
I could not manage to combine a convincing new interface with full
backwards compatibility, partly because optional arguments were not
working as expected. As a result, the previous \language "english"
syntax would have to be updated into the equivalent \language
input.english – which I estimate to be feasible using convert-ly,
although I have no knowledge of python.
How to proceed further? I think it unlikely that I am soon going to make
contributions regularly, but I think it would be good to have a mentor,
as suggested by the CG. I work with ubuntu and have also started using
git, so I might be able to incorporate these changes in the code base
and propose a patch myself, though I’m not much into it yet and will
need help in addition to the CG explanations…
So the roadmap would include
– discussing design and coding (?)
– placing the code in the respective .ly and .scm files where it belongs
– modifying the documentation
– and adding a convert-ly rule.
I hope that I can thus contribute something of use.
Yours,
Simon
define-languages.ly
Description: Text Data