Patrick McCarty [Thu, 17 Sep 2009 07:09:33 +0000 (00:09 -0700)]
Improve 'warning-as-error handling again
Currently, on the Scheme side, ly:warning and ly:programming-error are
redefined to ly:error. This works, but if the user wants to override
this setting in an LY file, he will not be able to.
This commit moves the handling for the callbacks to C++, thus permitting
users to override -dwarning-as-error in LY files for calls to ly:warning
and ly:programming-error.
Graham Percival [Thu, 17 Sep 2009 15:22:03 +0000 (16:22 +0100)]
Build: more EXTRA_DIST for GUB happiness.
No, I have no clue why most of these are necessary; they look wrong
to me. But screw it, I want to get a release happening. Tomorrow
morning, though. I'm going to bed now.
- the previous example relied on a bug in accidental spacing
which was corrected by the fix to bug 546. This example also
relies on some poor spacing, but that's the only reason for
ever using 'right-padding.
Patrick McCarty [Mon, 7 Sep 2009 08:23:26 +0000 (01:23 -0700)]
Fix check for `utf-8-string' in output modules
When checking for `utf-8-string', we must not include the "warning"
definitions (set at runtime) for backends without `utf-8-string'.
An additional check is therefore necessary in order to ignore module
variables bound to lambda expressions.
All of the stencil expression procedures defined in output-*.scm create
variable<->symbol bindings, and has_utf8_string should be true in these
cases. But the variable<->#f bindings should not count, because they
are set at runtime.
This commit adds an additional check to disclude the variable<->#f
bindings.
Andrew Hawryluk [Fri, 4 Sep 2009 04:22:24 +0000 (22:22 -0600)]
Essay: freshened up Baerenreiter images
Remove annotations from baer-ledger.png, add original scan of
Bach's Sarabande, straighten baer-sarabande.png, and add a
high resolution (1200 dpi) b/w version for the PDF.
Joseph Wakeling [Tue, 1 Sep 2009 19:33:41 +0000 (21:33 +0200)]
Extended documentation on Turkish classical music and Makam.
* New section on 'Non-Western note names and accidentals'
in the Pitches section of the Notation Reference.
Contains table of accidentals for makam.ly.
* New section on Turkish classical music in the World
Music section of the Notation Reference.
Patrick McCarty [Mon, 31 Aug 2009 05:32:03 +0000 (22:32 -0700)]
Vim ftdetect: use `set ft' instead of `setf'.
Since filetype.vim is no longer distributed, the `setf' command will
only set the filetype if Vim's default filetype.vim does not detect a
matching filetype first.
Unfortunately, when certain lines begin with #(, the "generic" filetype
is matched, so the LilyPond-specific highlighting is never loaded.
A workaround is to use `set ft'; this sets the filetype to `lilypond'
unconditionally for all files ending in .ly or .ily, which is what we
want.
Use our own ~s ly:format placeholder, since guile is broken with wide chars
We need our own ~S format placeholder to escape quotes, so use
lilypond's string formating to make wide utf-8 chars work in filenames
Guile seems unable to handle wide characters, so we mustn't use
simple-format or format, because that will break with non-ANSI characters
(char code > 255). Instead, Implement our own ~S placeholder, that
wraps the string in double quotes and escapes backslashes, double
quotes, percent and dollar signs.
Use this format placeholder to generate the proper cmd line args
for our calls to gs.
Implement framework for post-fix text (de)cresc spanners (backend only)
The main problem why \decr or \dim were prefix operators was that the
new dynamic engraver was reading only the properties of the Engraver
itself, so there was no way to create a CrescendoEvent and at the same
time specify the hairpin/text behavior.
This patch makes the New_dynamic_engraver also look at the properties
of the (Dec|C)recendoEvent and prefer a setting from there. If the event
does not have a property (which will be the case most of the time), the
Engraver's settings are used (i.e. same behavior as now).
With this change, e.g. \dim can be defined as
dim = #(make-music 'DecrescendoEvent 'span-direction START
'span-type text 'span-text "dim.")
and used as postfix like a4\dim without the need of any overrides
before the affected note.
This is just the backend commit, implementing processing of the event's
properties. The definition of \cresc is still unchanged, leaving the old
prefix notation in place, until we find good upgrade path.
Also add regtests for text cresc spanners and add the regtest to the
snippets.