Re: Can I make a TextScript occupy no space, potentially colliding?

2014-10-14 Thread Richard Shann
On Mon, 2014-10-13 at 14:47 +0200, David Kastrup wrote:
 Richard Shann rich...@rshann.plus.com writes:
 
  On Sun, 2014-10-12 at 17:49 +0100, Richard Shann wrote:
  Perfect!
 
  hmm, I spoke a little too soon. It seems that \with-dimensions kills
  point-and-click. Understandable with 0 as the dimension, but actually
  this doesn't seem to be the issue:
 
  \version 2.18.0
 
  \score { 
   {
a1 
^\markup \with-dimensions #'(10 . -10) #'(10 . -10) 
%\with-url #'some link 
{\fontsize #12 A }
   }
  } 
 
  with good-sized dimension here there is no point and click.
 
 They are not good-sized since the right edge is to left side of the left
 edge, and the lower edge is above the upper edge.

Thank you - switching order of the pairs gets something that works. The
documentation
http://www.lilypond.org/doc/v2.18/Documentation/notation/other
says
 \with-dimensions x (pair of numbers) y (pair of numbers) arg (markup)

Set the dimensions of arg to x and y.

If dimensions here is a LilyPond technical term defined elsewhere that
is ok, otherwise it perhaps should be

Set the dimensions of the markup to be defined by coordinates of lower
left (x) and upper right (y) relative to the markup's reference point,
in staff spaces.

or whatever is actually correct here.

Richard





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I make a TextScript occupy no space, potentially colliding?

2014-10-13 Thread David Kastrup
Richard Shann rich...@rshann.plus.com writes:

 On Sun, 2014-10-12 at 17:49 +0100, Richard Shann wrote:
 Perfect!

 hmm, I spoke a little too soon. It seems that \with-dimensions kills
 point-and-click. Understandable with 0 as the dimension, but actually
 this doesn't seem to be the issue:

 \version 2.18.0

 \score { 
  {
   a1 
   ^\markup \with-dimensions #'(10 . -10) #'(10 . -10) 
   %\with-url #'some link 
   {\fontsize #12 A }
  }
 } 

 with good-sized dimension here there is no point and click.

They are not good-sized since the right edge is to left side of the left
edge, and the lower edge is above the upper edge.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I make a TextScript occupy no space, potentially colliding?

2014-10-12 Thread Simon Albrecht

Am 12.10.2014 um 18:21 schrieb Richard Shann:

In this code I put a large letter A above the music.
If I uncomment the tweak the letter A is moved elsewhere, but it still
takes up space at the top of the score.
If I uncomment the override, I don't get the space back.

\version 2.18.0
\score {
  {
   %\override  TextScript.Y-extent = #'(0 . 0)
   a1
   %-\tweak #'extra-offset #'(7 . -12)
   ^\markup {\fontsize #12 A }
   }
}

Is there a way to stop LilyPond trying to prevent my TextScript
colliding - to say that it occupies, say, no space?

Richard

Hello Richard,

try:


\version 2.18.0

\score {

{

a1

%-\tweak #'extra-offset #'(7 . -12)

^\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \fontsize #12 A }

}

}



HTH, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I make a TextScript occupy no space, potentially colliding?

2014-10-12 Thread Richard Shann
Perfect! I've found that in the documentation as well...
Thank you very much,
Richard
On Sun, 2014-10-12 at 18:40 +0200, Simon Albrecht wrote:
 Am 12.10.2014 um 18:21 schrieb Richard Shann:
  In this code I put a large letter A above the music.
  If I uncomment the tweak the letter A is moved elsewhere, but it still
  takes up space at the top of the score.
  If I uncomment the override, I don't get the space back.
 
  \version 2.18.0
  \score {
{
 %\override  TextScript.Y-extent = #'(0 . 0)
 a1
 %-\tweak #'extra-offset #'(7 . -12)
 ^\markup {\fontsize #12 A }
 }
  }
 
  Is there a way to stop LilyPond trying to prevent my TextScript
  colliding - to say that it occupies, say, no space?
 
  Richard
 Hello Richard,
 
 try:
 
 
 \version 2.18.0
 
 \score {
 
 {
 
 a1
 
 %-\tweak #'extra-offset #'(7 . -12)
 
 ^\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \fontsize #12 A }
 
 }
 
 }
 
 
 
 HTH, Simon



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I make a TextScript occupy no space, potentially colliding?

2014-10-12 Thread Richard Shann
On Sun, 2014-10-12 at 17:49 +0100, Richard Shann wrote:
 Perfect!

hmm, I spoke a little too soon. It seems that \with-dimensions kills
point-and-click. Understandable with 0 as the dimension, but actually
this doesn't seem to be the issue:

\version 2.18.0

\score { 
 {
  a1 
  ^\markup \with-dimensions #'(10 . -10) #'(10 . -10) 
  %\with-url #'some link 
  {\fontsize #12 A }
 }
} 

with good-sized dimension here there is no point and click. If I
uncomment the \with-url in this code then the A *is* clickable - and the
clickable area is the area of the letter not the 200x200 square.

So, if there is no easy way to get point-and-click back, can I
re-construct the link that point and click would have given using
\with-url? 

(Point-and-click is essential my application...)

Richard





  I've found that in the documentation as well...
 Thank you very much,
 Richard
 On Sun, 2014-10-12 at 18:40 +0200, Simon Albrecht wrote:
  Am 12.10.2014 um 18:21 schrieb Richard Shann:
   In this code I put a large letter A above the music.
   If I uncomment the tweak the letter A is moved elsewhere, but it still
   takes up space at the top of the score.
   If I uncomment the override, I don't get the space back.
  
   \version 2.18.0
   \score {
 {
  %\override  TextScript.Y-extent = #'(0 . 0)
  a1
  %-\tweak #'extra-offset #'(7 . -12)
  ^\markup {\fontsize #12 A }
  }
   }
  
   Is there a way to stop LilyPond trying to prevent my TextScript
   colliding - to say that it occupies, say, no space?
  
   Richard
  Hello Richard,
  
  try:
  
  
  \version 2.18.0
  
  \score {
  
  {
  
  a1
  
  %-\tweak #'extra-offset #'(7 . -12)
  
  ^\markup { \with-dimensions #'(0 . 0) #'(0 . 0) \fontsize #12 A }
  
  }
  
  }
  
  
  
  HTH, Simon
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user