]> git.donarmstrong.com Git - lilypond.git/commitdiff
Make regtest for shorthands (Issue 3487)
authorDavid Kastrup <dak@gnu.org>
Fri, 9 Aug 2013 16:55:12 +0000 (18:55 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 13 Aug 2013 12:35:17 +0000 (14:35 +0200)
input/regression/shorthands.ly [new file with mode: 0644]

diff --git a/input/regression/shorthands.ly b/input/regression/shorthands.ly
new file mode 100644 (file)
index 0000000..e1a7af5
--- /dev/null
@@ -0,0 +1,28 @@
+\version "2.17.25"
+
+\header {
+
+texidoc = "A number of shorthands like @code{(}, @code{)}, @code{|},
+@code{[}, @code{]}, @code{~}, @code{\\(}, @code{\\)} and others can be
+redefined like normal commands.  @file{ly/declarations-init.ly} serves
+as a regtest for a number of them.  This test just demonstrates
+replacing @code{(} and @code{)} with melismata commands which are
+@emph{not} articulations."
+
+}
+
+\layout { ragged-right = ##t }
+
+"\\{" = (
+"\\}" = )
+"(" = \melisma
+")" = \melismaEnd
+
+\new Staff <<
+  \relative c' {
+    c8 \{ d e f \} % slurred
+    g ( a b c ) % no slur, but with melisma
+    c,1 \bar "|."
+   }
+   \addlyrics { Li -- ly -- pond. }
+>>