DescriptionFix #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
MessagesTotal messages: 7
|