Re: text below staff ouch!

2005-08-24 Thread stk

 but now why can't I use word wrap and justify?

I don't usually read this list on the Web, I just read the mail that
the list sends me -- and at this point I have lost track of your
original post to the list.

My mail client is plain-text only (Latin-1).  Can you post a message
containing a \markup command *without* word-wrap  justify which gets the
character-order right, and then, secondly, the \markup command *with*
word-wrap  justify, so that I can look at it?

You don't have to use the actual characters in the two \markup examples.
You could just use ascii characters ABC...; it would still show me
the structure of the command you're using.

Thanks for your patience...

-- Tom

**

On Mon, 22 Aug 2005, Aaron Mehl wrote:

 --- [EMAIL PROTECTED] wrote:

  Aaron Mehl wrote:
 
   but actually for each word the letters are in the
   correct order but the words themselves go left to
   right instead of right to left.
 
  With automatic text reversal, I would expect
\markup { ONE TWO THREE }
  to produce
ENO OWT EERHT

 exactly

  which is what it does once I removed the
 justification and wordwrapping

  But, with a pair of quote-marks added, I would
  expect
\markup { ONE TWO THREE }
  to produce
EERHT OWT ENO
 


 bravo!

  In the first case, \markup handles 3 arguments, one
  after the other.
 
  In the second case, \markup handles one single
  argument.
 

 but now why can't I use word wrap and justify?
 maybe I need some escape charactor?

 Thanks so far,
 Aaron

  -- Tom



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


Re: Output other than PDF

2005-08-24 Thread Brett Duncan

On 24/8/05, Trevor Baca wrote:

On 8/20/05, Bec and John Silva [EMAIL PROTECTED] wrote:


Hi Brett,

A more GUI-based solution is to output to PDF as normal, then just
Save as... from Preview.app as a PNG.



An even more Mac-ish GUI-ish solution is to output to pdf as normal,
open the pdf in Preview, and then avail yourself of the magic
shift-command-3 and shift-command-4 commands in MacOS. Both key
combinations are available in any application and let you take a
picture of either your entire desktop or a user-definable region,
respectively.

Obviously this isn't good for getting pngs of entire *pages* of music;
but if you're wanting to crop a small snippet of music (say for a
webpage or to send to the user list) then shift-command-4 is ideal.



Actually, my reason for wanting PNG output was in order to work with
snippets rather than entire pages, but also to take advantage of the
fact that Lilypond lets you specify the resolution of the PNG image -
and I'm after high quality images to use in other documents. PDF was
less than ideal, since the resolution of any cut and paste or
screenshot was not up to what I wanted. Similarly, resaving a PDF as a
PNG didn't produce an image that had the resolution I wanted.

Brett





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


Re: text below staff ouch!

2005-08-24 Thread Mats Bengtsson

Did you try \justify-string or \wordwrap-string?
See the example called markup-word-wrap.ly in the Regression
Test document for version 2.7 to see what the different
word wrapping commands do (though not for Hebrew).

   /Mats

Aaron Mehl wrote:


--- [EMAIL PROTECTED] wrote:



Aaron Mehl wrote:



but actually for each word the letters are in the
correct order but the words themselves go left to
right instead of right to left.


With automatic text reversal, I would expect
 \markup { ONE TWO THREE }
to produce
 ENO OWT EERHT



exactly

 which is what it does once I removed the
justification and wordwrapping


But, with a pair of quote-marks added, I would
expect
 \markup { ONE TWO THREE }
to produce
 EERHT OWT ENO





bravo!


In the first case, \markup handles 3 arguments, one
after the other.

In the second case, \markup handles one single
argument.




but now why can't I use word wrap and justify?
maybe I need some escape charactor?

Thanks so far,
Aaron


-- Tom






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=


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


Re: offset not working

2005-08-24 Thread Mats Bengtsson

I would expect such marks to be left aligned with the bar lines instead
of centered over the multimeasure rest, to make it completely clear
exactly where in the music the change should happen. Here's one example:

\version 2.6.0
\score{
{ \set Score.skipBars = ##t
  \override Score.RehearsalMark #'self-alignment-X = #LEFT
  \override Score.RehearsalMark #'padding = #3
  c''1 \mark \markup{\bold Andante } |
  R1*4 \mark \markup{\bold Etwas langsamer } |
  R1*7 c''1 }
\layout{raggedright=##t}
}

   /Mats

Kris Shaffer wrote:
It's not always necessary, but regularly in orchestral parts, you will  
have a new tempo or expression mark over each of several adjacent  
multirests (especially with the overly verbose German composers like  
Strauss and Mahler).  So it would come in handy for me...


Kris

On Tue, 23 Aug 2005 18:36:57 -0400, Han-Wen Nienhuys 
[EMAIL PROTECTED]  wrote:



Kris Shaffer wrote:


Why can't LilyPond figure out the length of the text itself?
Maybe a new feature somebody wants to sponsor?

That would be a very helpful and time-saving feature, especially 
when   producing orchestral parts.  How much would it be worth?  I'd 
be  willing  to contribute a modest amount if a few others wanted to 
join  in as well.



It's not clear to me that the mm-rest text should be kept between the  
barlines. Of course, I can have a look into the cost of such a  
modification.








--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=


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


Re: text below staff ouch!

2005-08-24 Thread Mats Bengtsson

Since you are the only one in the discussion who knows Hebrew,
maybe you can enlighten the rest of us what happens and what
you would like to happen, for example using some examples similar
to examples that Tom sent earlier.

   /Mats

Aaron Mehl wrote:




Did you try \justify-string or \wordwrap-string?
See the example called markup-word-wrap.ly in the
Regression
Test document for version 2.7 to see what the
different
word wrapping commands do (though not for Hebrew).



Thats where I got the examples I used from
So far they don't work with the hebrew.

Aaron




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=


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


Re: text below staff ouch!

2005-08-24 Thread Aaron Mehl



 Did you try \justify-string or \wordwrap-string?
 See the example called markup-word-wrap.ly in the
 Regression
 Test document for version 2.7 to see what the
 different
 word wrapping commands do (though not for Hebrew).

Thats where I got the examples I used from
So far they don't work with the hebrew.

Aaron




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


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


Re: text below staff ouch!

2005-08-24 Thread Aaron Mehl

 
  but now why can't I use word wrap and justify?
 
 I don't usually read this list on the Web, I just
 read the mail that
 the list sends me -- and at this point I have lost
 track of your
 original post to the list.
 

fine I use mutt and use yahoo only for lilypond
because my private address doesn't work for this list.

I can send you the example to your email if you
promise to reply back to the group so that the answer
appears in the archives.
 My mail client is plain-text only (Latin-1).  Can
 you post a message
 containing a \markup command *without* word-wrap 
 justify which gets the
 character-order right, and then, secondly, the
 \markup command *with*
 word-wrap  justify, so that I can look at it?
 
 You don't have to use the actual characters in the
 two \markup examples.
 You could just use ascii characters ABC...; it would
 still show me
 the structure of the command you're using.
 
 Thanks for your patience...
 
 -- Tom
 

Thank you
Aaron

**
 
 On Mon, 22 Aug 2005, Aaron Mehl wrote:
 
  --- [EMAIL PROTECTED] wrote:
 
   Aaron Mehl wrote:
  
but actually for each word the letters are in
 the
correct order but the words themselves go left
 to
right instead of right to left.
  
   With automatic text reversal, I would expect
 \markup { ONE TWO THREE }
   to produce
 ENO OWT EERHT
 
  exactly
 
   which is what it does once I removed the
  justification and wordwrapping
 
   But, with a pair of quote-marks added, I would
   expect
 \markup { ONE TWO THREE }
   to produce
 EERHT OWT ENO
  
 
 
  bravo!
 
   In the first case, \markup handles 3 arguments,
 one
   after the other.
  
   In the second case, \markup handles one single
   argument.
  
 
  but now why can't I use word wrap and justify?
  maybe I need some escape charactor?
 
  Thanks so far,
  Aaron
 
   -- Tom
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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


Re: text below staff ouch!

2005-08-24 Thread Aaron Mehl
Well I have to admit I only tried two of the examples

\markup {
  this is normal  text
  \override #'(linewidth . 60)
  \wordwrap {
ABC cde
  }
 
works and gives me  edc  CBA but for a long lines it
keeps going off the page (no word wrap?)I gather the
override linewidth should be set to something
different for this to work?...

}

\markup {
  this is normal  text
  \override #'(linewidth . 40)
  \justify {
ABC def
 ABC def
 ABC def

  }
if I make separate lines they come out as a mess one
on top of the other.



}


\markup {

  \override #'(linewidth . 40)

{  \wordwrap-string # ABC def 

Here the word wrap does work but the word order for
hebrew comes out:

CBA fed (left to right word order right to left letter
order)


  \justify-string # 
ABC def
ABC def
ABC def

 }

Here the justify works but on the english side not the
hebrew. The hebrew word order is also wrong:
CBA fed
CBA fed
CBA fed

(left to right word order right to left letter order)

I am sorry I didn't test this better previously.

So I can get the correct word order it is just the
justify and wordwrap that are acting flakey.

Thanks
Aaron




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


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


Re: text below staff ouch!

2005-08-24 Thread Han-Wen Nienhuys

Mats Bengtsson wrote:

Since you are the only one in the discussion who knows Hebrew,
maybe you can enlighten the rest of us what happens and what
you would like to happen, for example using some examples similar
to examples that Tom sent earlier.


the problem seems to be that \markup commands are hard-coded to LtoR 
text composition. Individual words are handled by Pango, so these are 
done correctly.


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: epsfile include question

2005-08-24 Thread Han-Wen Nienhuys

Henrik Frisk wrote:

Two questions about the \epsfile statement that I can't find in the 
documentation:

1. Is it not possible to move the eps graphic? I have tried \raise without 
success.


You can't move scripts wholesale with \raise. See

http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Text-markup.html

Graham,

Where did this information go in the 2.6/2.7 manual?


2. Is it possible to scale the size of the graphic? (It strikes me now that it 
may be scaled with the global-staff-size - haven't checked that...)

Thanks for any input.


No, but I can add it as a sponsored feature, if you like.


--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Re: da capo al fine

2005-08-24 Thread fiëé visuëlle


Am 2005-08-23 um 13:29 schrieb Mats Bengtsson:

For the MIDI, I hope you know that you can make a separate \score{...}
for the MIDI output, for example something like,


Thank you - sometimes you've to point me to the obvious.
I always use a separate \score for MIDI output, because I need to  
\unfoldRepeats, set instruments, sometimes use accompaigning voices  
etc., so it's no real effort.


Greetlings from Lake Constance
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/



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


script direction not yet known

2005-08-24 Thread Trevor Baca
Somewhere in some input I've specified neither ^ nor _ for some script.

Lily then says

  programming error: script direction not yet known
  continuing, cross fingers

The output is fine. But is there a way to coax Lily to tell me *where*
the script is that has no direction specification (so that I can add
such a specification to my input and avoid the warning)?


Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


LilyPond dies on hairpin override

2005-08-24 Thread Hans de Rijck
Hello.

When I use a \override Voice.Hairpin #'extra-offset LilyPond dies in
compilation. No errors or warnings. Log says:

# -*-compilation-*-
Changing working directory to `G:/MusicCvt'
Processing `G:/MusicCvt/test.ly'
Parsing...


thats all.

Using Win2k, version 2.6.3. Example file is attached.

regards,

Hans.
#(set-global-staff-size 18)
\paper
{
#(set-paper-size a4)
}

\version 2.6.3
\header
{
title = Test
}

\score
{

\new Staff
{
\new Voice \relative c
{
% Staff 1	(Flute)

\clef treble
\key c \major
\time 4/4

% this causes LilyPond to die:
\override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )

c'\p\ d e \mf f \ |
g  a \p b c |

}
}

}

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


Re: LilyPond dies on hairpin override

2005-08-24 Thread Trevor Baca
On 8/24/05, Hans de Rijck [EMAIL PROTECTED] wrote:
 Hello.
 
 When I use a \override Voice.Hairpin #'extra-offset LilyPond dies in
 compilation. No errors or warnings. Log says:
 
 # -*-compilation-*-
 Changing working directory to `G:/MusicCvt'
 Processing `G:/MusicCvt/test.ly'
 Parsing...

Hi Hans,

Change ...

  \override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )

to

  \override Voice.Hairpin #'extra-offset = #'(0 . -1.8)

... making sure to insert the apostrophe between the octothorpe and (0
. -1.8) (just as you include the apostrophe between the octothorpe and
extra-offset).


Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: epsfile include question

2005-08-24 Thread Henrik Frisk
Han-Wen Nienhuys [EMAIL PROTECTED] wrote:

 Henrik Frisk wrote:
  Two questions about the \epsfile statement that I can't find in the 
  documentation:
  1. Is it not possible to move the eps graphic? I have tried \raise
  without success.
 
 You can't move scripts wholesale with \raise. See
 
 http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Text-markup.html
 
 Graham,
A few lines fell out of my first post. I have tried a number of commands apart 
from \raise which obviously doesn't work. As far as I understand, \translate 
would be one possible way to move the graphic and I can move it sideways but 
not up or down. IOW the following moves it to the right but not up:

\markup { \translate #(cons 2 5) \epsfile #eps/nss.eps }


 
 Where did this information go in the 2.6/2.7 manual?
 
  2. Is it possible to scale the size of the graphic? (It strikes me now that 
  it may be scaled with the global-staff-size - haven't checked that...)
  Thanks for any input.
 
 No, but I can add it as a sponsored feature, if you like.
 

Yeah, well, how much?

/henrik frisk


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


bypass \set associatedVoice altogether?

2005-08-24 Thread Trevor Baca
Why does the second set of lyrics with \set associatedVoice align incorrectly?

And, in general, should I bypass \set associatedVoice altogether and
insert fake spaces, as in the third set of lyrics (which do work
correctly)?

%% BEGIN LYRICS ALIGNMENT SNIPPET %

\version 2.7.7

theVoice = {
   \time 2/4
   \set Staff.autoBeaming = ##f
   d''8
   
  {
 \voiceOne
 d''16
 d''16
 \oneVoice
  }
  \context Voice = alternative {
 \voiceTwo
 d''8
 \oneVoice
  }
   
   d''8
   d''8
}

theFirstLyrics = \lyricmode {
   \set stanza = GOOD: 
   Five words in this voice.
}
theSecondLyrics = \lyricmode {
   \set stanza = BAD :
   \set associatedVoice = alternative
   On --
   % reverts to mainVoice 1/16th too early:
   \set associatedVoice = mainVoice
   ly
   four
   here.
}

theThirdLyrics = \lyricmode {
   \set stanza = GOOD: 
   On --
   ly

   four
   here.
}

\score {
   \new Staff 
  \context Voice = mainVoice \theVoice
  \new Lyrics \lyricsto mainVoice \theFirstLyrics
  \new Lyrics \lyricsto mainVoice \theSecondLyrics
  \new Lyrics \lyricsto mainVoice \theThirdLyrics
   
   \layout {
  raggedright = ##t
   }
}

%%% END LYRICS ALIGNMENT SNIPPET %

Trevor Bača
[EMAIL PROTECTED]


lyrics-alignment.png
Description: PNG image
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond dies on hairpin override

2005-08-24 Thread Hans de Rijck
Thanks Trevor,

I just found it myself too.

regards,

Hans.

- Original Message -
From: Trevor Baca [EMAIL PROTECTED]
To: Hans de Rijck [EMAIL PROTECTED]
Cc: lilypond-user@gnu.org
Sent: Wednesday, August 24, 2005 3:04 PM
Subject: Re: LilyPond dies on hairpin override


 On 8/24/05, Hans de Rijck [EMAIL PROTECTED] wrote:
  Hello.
 
  When I use a \override Voice.Hairpin #'extra-offset LilyPond dies in
  compilation. No errors or warnings. Log says:
 
  # -*-compilation-*-
  Changing working directory to `G:/MusicCvt'
  Processing `G:/MusicCvt/test.ly'
  Parsing...

 Hi Hans,

 Change ...

   \override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )

 to

   \override Voice.Hairpin #'extra-offset = #'(0 . -1.8)

 ... making sure to insert the apostrophe between the octothorpe and (0
 . -1.8) (just as you include the apostrophe between the octothorpe and
 extra-offset).


 Trevor Bača
 [EMAIL PROTECTED]




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


Re: epsfile include question

2005-08-24 Thread Mats Bengtsson



Henrik Frisk wrote:

Han-Wen Nienhuys [EMAIL PROTECTED] wrote:



Henrik Frisk wrote:


Two questions about the \epsfile statement that I can't find in the 
documentation:
1. Is it not possible to move the eps graphic? I have tried \raise
without success.


You can't move scripts wholesale with \raise. See

http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Text-markup.html

Graham,


A few lines fell out of my first post. I have tried a number of commands apart 
from \raise which obviously doesn't work. As far as I understand, \translate 
would be one possible way to move the graphic and I can move it sideways but 
not up or down. IOW the following moves it to the right but not up:

\markup { \translate #(cons 2 5) \epsfile #eps/nss.eps }


The example from the 2.4 manual doesn't work out of the box in 2.6.
You have to replace the  with   or \hspace #1.0 to give \raise
some object to raise relative to. Of course, a better alternative is
probably to increase the padding:
\once \override TextScript #'padding = #3.0
c^\markup{...}

   /Mats




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


Re: epsfile include question

2005-08-24 Thread Henrik Frisk
Mats Bengtsson [EMAIL PROTECTED] wrote:

 
 
 Henrik Frisk wrote:
  Han-Wen Nienhuys [EMAIL PROTECTED] wrote:
  
 Henrik Frisk wrote:
 
 Two questions about the \epsfile statement that I can't find in the 
 documentation:
 1. Is it not possible to move the eps graphic? I have tried \raise
 without success.
 
 You can't move scripts wholesale with \raise. See
 
 http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Text-markup.html
 
 Graham,
  A few lines fell out of my first post. I have tried a number of
  commands apart from \raise which obviously doesn't work. As far as I
  understand, \translate would be one possible way to move the graphic
  and I can move it sideways but not up or down. IOW the following
  moves it to the right but not up:
  \markup { \translate #(cons 2 5) \epsfile #eps/nss.eps }
 
 The example from the 2.4 manual doesn't work out of the box in 2.6.
 You have to replace the  with   or \hspace #1.0 to give \raise
 some object to raise relative to. Of course, a better alternative is
 probably to increase the padding:
 \once \override TextScript #'padding = #3.0
 c^\markup{...}
 
 /Mats
Well, here we go! That's something that works.
Thank you! 

/henrik


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


lily rOOr!

2005-08-24 Thread Nicolas Sceaux
Hi,

I've just converted an old score from lily 1.6 to 2.7.
This 180 page score is built with a single lilypond invocation.
On my laptop (1.5GHz G4, 512 Mo):

robert$ wc -l *ly */*ly
 ...
   27436 total
robert$ time lilypond score.ly  score.log 21

real12m52.841s
user10m43.889s
sys 0m23.546s

Wahou. This used to be around 40 minutes, in an slightly older
computer, with multiple lilypond invocations.

Lily is getting so cool. Kuddos to Han-Wen and Jan!

nicolas


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


Re: lily rOOr!

2005-08-24 Thread Han-Wen Nienhuys

Nicolas Sceaux wrote:

Wahou. This used to be around 40 minutes, in an slightly older
computer, with multiple lilypond invocations.

Lily is getting so cool. Kuddos to Han-Wen and Jan!


Thanks!

the downside to this is that there is little left to optimize, I still 
think Lily is a bit slow, but with painstaking optimization, I've only 
been been able to get some 10 to 30 % during the 2.7 cycle.



--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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


Re: epsfile include question

2005-08-24 Thread Graham Percival


On 24-Aug-05, at 3:17 AM, Han-Wen Nienhuys wrote:

You can't move scripts wholesale with \raise. See

http://www.lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/ 
Text-markup.html


Graham,

Where did this information go in the 2.6/2.7 manual?


As Mats said, this trick no longer works, so I removed it.  I've added  
info with
new tricks (#'padding, and using \hspace #0 to create an anchor  
point).


Will
\markup{ \hspace #0 \raise #3 high text }
continue to work in the future?  When we noticed that  \raise and
\raise

didn't work, there was a discussion about whether the whitespace should
work in the same in future versions; you didn't want to commit to doing  
that.

Is \hspace #0 a stable construct?  (if not, could we have a \null markup
command that _is_ stable, and does the same thing as \hspace #0 ?)

Cheers,
- Graham



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


Re: text below staff ouch!

2005-08-24 Thread stk

Well, from your four examples, and from Han-Wen's remarks, it looks like
you will have to give up on using wordwrap:  I think you will have to
produce each line of the text individually, given LilyPond's current
limitations.

If you define the lines in variables,

La = this string is the first line of text
Lb = this string is the second line of text
Lc = this string is the third line of text

and so on, guessing as well as you can how to break up the text
into lines, then you can write

\markup { La }
\markup { Lb }
\markup { Lc }

or instead, the following might work:

\markup { \column { La Lb Lc } }

I haven't been using LilyPond for very long, but I think you could write
something like

\markup {  \override #'(baseline-skip . 1.2) \column { La Lb Lc } }

or maybe

\markup { \column { \override #'(baseline-skip . 1.2) La Lb Lc } }

to control the vertical spacing of the lines.  But at least one of those
two possibilities is not correct syntax.  I'm pressed for time tonight, so
I can't try these things out at the moment.

As to whether you could throw in a   \justify   before or inside
the \column {...} construct, I don't know, but it would be worth a try.

-- Tom

*

On Wed, 24 Aug 2005, Aaron Mehl wrote:

 Well I have to admit I only tried two of the examples

 \markup {
   this is normal  text
   \override #'(linewidth . 60)
   \wordwrap {
 ABC cde
   }

 works and gives me  edc  CBA but for a long lines it
 keeps going off the page (no word wrap?)I gather the
 override linewidth should be set to something
 different for this to work?...

 }

 \markup {
   this is normal  text
   \override #'(linewidth . 40)
   \justify {
 ABC def
  ABC def
  ABC def
 
   }
 if I make separate lines they come out as a mess one
 on top of the other.



 }


 \markup {

   \override #'(linewidth . 40)

 {  \wordwrap-string # ABC def 

 Here the word wrap does work but the word order for
 hebrew comes out:

 CBA fed (left to right word order right to left letter
 order)


   \justify-string #
 ABC def
 ABC def
 ABC def

  }

 Here the justify works but on the english side not the
 hebrew. The hebrew word order is also wrong:
 CBA fed
 CBA fed
 CBA fed

 (left to right word order right to left letter order)

 I am sorry I didn't test this better previously.

 So I can get the correct word order it is just the
 justify and wordwrap that are acting flakey.

 Thanks
 Aaron



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


Re: LilyPond dies on hairpin override

2005-08-24 Thread stk

Trevor Baca wrote:

 Change ...

   \override Voice.Hairpin #'extra-offset = #( 0 . -1.8 )

 to

   \override Voice.Hairpin #'extra-offset = #'(0 . -1.8)

So you committed a Scheme error.  Side remark:  a Scheme error
always seems to result in a log file ending in a wistful

  Parsing...

with no further information, like a message scratched on a wall by the
last human at the world's end.

But at least you can be pretty sure that a Scheme error is the problem,
so you can use a fine-tooth comb on your Scheme expressions looking for
the error.  I've taken to keeping a separate file with a handwritten list
of all the Scheme expressions that *do* work, as a help in finding my
coding faults.

-- Tom



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