+2003-03-01 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * input/regression/rehearsal-mark.ly: new file.
+
+ * lily/my-lily-parser.cc (here_input): revert reporting of errors:
+ report error at the current token again.
+
2003-02-26 Jan Nieuwenhuizen <janneke@gnu.org>
* cygwin/mknetrel: Exit if doc build fails.
@c
@lilypond[verbatim, singleline, fragment]
c'4-1 c'4-2 c'4-3 c'4-4
- c^#'(finger "2-3")
+ c^\markup { \fontsize #-3 \number "2-3" }
@end lilypond
-
+@cindex finger change
@cindex scripts
@cindex superscript
@cindex subscript
es8 d es f g8 \breathe f |
% Revert to old layout:
\property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::brew_molecule
- es8 d \breathe es f g f |
+ [es8 d] \breathe [es f g f] |
es2 r4 \bar "||"
}
}
--- /dev/null
+
+\header { texidoc= " Rehearsal marks are printed over barlines. They
+can be incremented automatically or manually. "}
+
+
+\version "1.7.12"
+
+
+global = \notes {
+ s1 | \mark "A"
+ s1 | \mark \default
+ s1 | \mark \default
+ s1 | \mark "12"
+ s1 | \mark \default
+ s1 | \mark "A2"
+ s1 | \mark \markup { mark \column << up \bold down >> }
+ s1
+}
+
+one = \notes \relative c {
+ c''1 c c c c c c
+}
+
+
+\score{
+\context Staff < \global \one >
+}
+%% new-chords-done %%
-\version "1.7.6"
-
-
-global = \notes {
- s1 | \mark "A"
- s1 | \mark \default
- s1 | \mark \default
- s1 | \mark "12"
- s1 | \mark \default
- s1 | \mark "A2"
- s1 | \mark #'(music "scripts-segno")
- s1
-}
-
-one = \notes \relative c {
- c''1 c c c c c c
-}
-
-
-\score{
-\context Staff < \global \one >
-}
-%% new-chords-done %%
Parsing looks ahead , so we really want the previous location of the
lexer, not lexer_->here_input().
*/
- return lexer_->last_input_;
+ /*
+ Actually, that gets very icky when there are white space, because
+ the line-numbers are all wrong. Let's try the character before
+ the current token. That gets the right result for
+ note/duration stuff, but doesn't mess up for errors in the 1st token of the line.
+
+ */
+ Input hi (lexer_->here_input ());
+
+ char const * bla = hi.defined_str0_;
+ if (hi.line_number () > 1
+ || hi.column_number () > 1)
+ bla --;
+
+ return Input (hi.source_file_, bla);
}
#include "paper-def.hh"