Attached is an example that displays a problem with CombineTextScript: The 
avoid-slur property is not set, thus the "a2" / "Solo" text collide with 
slurs (and a warning is printed out). As soon as you set avoid-slur to 
outside, things work as expected...

Attached is also a patch for scm/define-grobs.scm, which does exactly that. 
Okay to commit?

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\version "2.11.36"
#(ly:set-option 'point-and-click #f)

mI = \relative c'' {g4( g' g, g') | R1 | g4( g' g, g' |g4 g' g, g') }
mII = \relative c'' { g4( g' g, g') | g4( g' g, g') | R1*2 | }

\score {
  \partcombine {\mI} {\mII}
}


\context Score \with { \override CombineTextScript #'avoid-slur = #'outside } {
    { \partcombine {\mI} {\mII} }
}

Attachment: avoid-slur_for_CombineTextScript.pdf
Description: Adobe PDF document

From 960ec9e96e08f9ff0ad1ddf1f28f68fe5f8d0099 Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <[EMAIL PROTECTED](none)>
Date: Sat, 12 Jan 2008 21:10:38 +0100
Subject: [PATCH] Set avoid-slur for CombineTextScript

Otherwise the "a2"/"Solo" markups will collide with slurred notes and not
be shifted. Using #'outside for avoid-slur causes the a2/Solo markups
to be always above the slur, which is most legible.
---
 scm/define-grobs.scm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm
index 9526c16..167e09a 100644
--- a/scm/define-grobs.scm
+++ b/scm/define-grobs.scm
@@ -517,6 +517,7 @@
 	;; todo: add X self alignment?
 	(baseline-skip . 2)
 	(side-axis . ,Y)
+	(avoid-slur . outside )
 	(font-series . bold)
 	(meta . ((class . Item)
 		 (interfaces . (text-script-interface
-- 
1.5.2.5

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to