Re: mac osx pdf point-and-click [was: mac osx emacs lilypond-mode]

2005-05-13 Thread Sean Reed
hi arjan,
this is my first real contribution to furthering knowledge on the list!
i've gotten the point-and-click to work on macos 10.3.9 with ly 2.5.23, 
but with a couple of ticks which you (or maybe han-wen or others?) 
could help me iron out.

the solution was to do everything in xwindows with x11 and not from the 
terminal.app (which you perhaps already knew?)

here's what i did:
1) i installed firefox from FINK to be run from an xterm in apple's x11.
2) i added the following lines to the prefs.js file in 
~HOME/.mozilla/firefox/vgftrus6.default/, with the full path to the 
lilypond-pdfpc-helper (not given on the lilypond website 
documentation):

user_pref("network.protocol-handler.app.textedit", 
"/sw/bin/lilypond-pdfpc-helper");
user_pref("network.protocol-handler.warn-external.textedit", false);

3) i installed Xpdf using FINK
4) i added the following line to the xpdfrc file in /sw/etc/; again 
note the full path:

urlCommand "/sw/bin/firefox -remote 'openURL(%s)'"
5) i modified the editor search in the lilypond-pdfpc-helper binary in 
/sw/bin/ to read (again note the full path):

if ly_pc_editor == None:
	if  re.search ("emacs", editor):
		ly_pc_editor = '/sw/bin/emacsclient --no-wait +%(line)s:%(column)s 
%(file)s'

6) i then start apple's x11, and start /sw/bin/emacs from an xterm 
(this is one point where you may be able to help me: i can't figure out 
where to set the commands for the xterm so that i can just type "emacs" 
and have it automatically prepend the /sw/bin/)

7) you have to start the emacs server with M-x server-start
8) in a new xterm i then select emacs as the EDITOR using: export 
EDITOR="/sw/bin/emacs" (this is the next point you may be able to help 
me with. when i just enter "export" i see that, for example, the SHELL 
is set to bash etc., but no default for EDITOR. i can't seem to find 
the file to enter the EDITOR default, which is apparently, for example, 
the .profile file for the Terminal.app. I added export 
EDITOR="/sw/bin/emacs" to the bashrc file, but this didn't seem 
alleviate having to do it by hand in the xterm).

9) then i start firefox in a new xterm with /sw/bin/firefox
10) in another new xterm i start /sw/bin/xpdf
11) i load a pdf file made with ly2.5.23 into xpdf.
12) clicking on a note or other object now opens the corresponding 
lilypond file and takes me to A spot in the script. (it doesn't call 
emacs to the front though).

This final point is the tick, and may be where han-wen or somebody 
could add some advice. It takes me to the line and number as stated in 
the textedit:// hyperlink, but this is not the corresponding code for 
the given object. it is generally a line or two down. I checked to see 
if it had anything to do with lines which have been commented out, but 
it doesn't seem to. i'm wondering if it is different with a single 
voice lilypond file, but as yet have only tried it with multiple voice 
files.

In the hope that this may help you out a bit, and that we can find the 
last step in the chain to the correct position in the lilypond file!!

Best,
Sean
ps: my autoload still doesn't work for lilypond files in emacs, even in 
the xwindows environment. i'll keep trying to figure that out.


Sean Reed
Hamburg, Germany
Web: www.seanreed.de
On 11.05.2005, at 20:16, Arjan Bos wrote:
On 10 mei 2005, at 9:18, Sean Reed wrote:
hi arjan,
thanks, that got me a useable LilyPond mode in emacs.
i still have to load it by hand with the M-x load-library, and i 
think it only works when i load the lilypond-init.el despite the 
"autoload" in the .emacs file, opening an .ly file doesn't 
automatically load the mode.
Strange, I copied the part straight from my .emacs file, and for me it 
works.

when i try to just load lilypond-mode and open an .ly file i get an 
error message: Wrong type argument: arryp, nil
This I get as well. I never took the time to really figure out why. I 
think I was put off by the strange way the syntax-table is organized.

if i M-x load-library  "lilypond-init.el", then C-x C-f a lilypond 
file, it loads in LilyPond mode, but gives me the error: Error in 
post-command-hook: (wrong-type-argument integerp nil), but the buffer 
is LilyPond mode, the lilypond menu is available, and it for all i 
can determine, it works.

the pdf point-and-click isn't working for me yet either.
i installed firefox and Xpdf, changed the firefox prefs.js to include 
the user_pref() statements for lilypond-pdfpc-helper textedit 
protocol, and added the urlCommand to the xpdfrc file. xpdf shows me 
the textedit:// link when i point at a note, but doesn't open the 
text editor.

i tried running lilypond-pdfpc-helper alone from terminal by manually 
entering a path to a file and a :line:character, and got the 
following error:

Traceback (most recent call last):
  File "/sw/bin/lilypond-pdfpc-helper", line 78, in ?
editor = os.environ['EDITOR']
  File "/sw/lib/python2.3/UserDict.py", line 19, in __getitem__
 

Re: instrument name bug 2.5.24

2005-05-13 Thread Graham Percival
On 12-May-05, at 8:42 AM, Stan Sanderson wrote:
Instrument names are still missing from 2.5.24 (see regression tests, 
e.g.). I'm stuck with 2.5.22 until it is fixed. I did not see this on 
Han-Wen's list of things to fix prior to 2.6.
True.  BTW, such reports should be sent to the bug list (as I've done).
Thanks,
- Graham

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


Re: mac osx pdf point-and-click [was: mac osx emacs lilypond-mode]

2005-05-13 Thread Sean Reed
hi arjan,
i double-checked this and it works now:
12) clicking on a note or other object now opens the corresponding 
lilypond file and takes me to A spot in the script. (it doesn't call 
emacs to the front though).

This final point is the tick, and may be where han-wen or somebody 
could add some advice. It takes me to the line and number as stated in 
the textedit:// hyperlink, but this is not the corresponding code for 
the given object.
i resaved the .ly-file i was using under a different name, reran 
lilypond on it and tried the point-and-click again and it worked 
perfectly. worked with all other files as well.

so, good news!
for some reason i have to run lilypond from the terminal.app, since 
running it from xterm gives me an error in converting from ps to pdf. 
something about ps2pdf papersize="a4" and something. but this is not 
such a bad thing.

best,
sean

Sean Reed
Hamburg, Germany
Web: www.seanreed.de


On 11.05.2005, at 20:16, Arjan Bos wrote:
On 10 mei 2005, at 9:18, Sean Reed wrote:
hi arjan,
thanks, that got me a useable LilyPond mode in emacs.
i still have to load it by hand with the M-x load-library, and i 
think it only works when i load the lilypond-init.el despite the 
"autoload" in the .emacs file, opening an .ly file doesn't 
automatically load the mode.
Strange, I copied the part straight from my .emacs file, and for me 
it works.

when i try to just load lilypond-mode and open an .ly file i get an 
error message: Wrong type argument: arryp, nil
This I get as well. I never took the time to really figure out why. I 
think I was put off by the strange way the syntax-table is organized.

if i M-x load-library  "lilypond-init.el", then C-x C-f a lilypond 
file, it loads in LilyPond mode, but gives me the error: Error in 
post-command-hook: (wrong-type-argument integerp nil), but the 
buffer is LilyPond mode, the lilypond menu is available, and it for 
all i can determine, it works.

the pdf point-and-click isn't working for me yet either.
i installed firefox and Xpdf, changed the firefox prefs.js to 
include the user_pref() statements for lilypond-pdfpc-helper 
textedit protocol, and added the urlCommand to the xpdfrc file. xpdf 
shows me the textedit:// link when i point at a note, but doesn't 
open the text editor.

i tried running lilypond-pdfpc-helper alone from terminal by 
manually entering a path to a file and a :line:character, and got 
the following error:

Traceback (most recent call last):
  File "/sw/bin/lilypond-pdfpc-helper", line 78, in ?
editor = os.environ['EDITOR']
  File "/sw/lib/python2.3/UserDict.py", line 19, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 'EDITOR'
You might have found the answer yourself already. What you need is to 
define an environment variable called "EDITOR" pointing to the editor 
you use. In the Terminal you start lilypond from you need to do:
 export EDITOR=/sw/bin/emacs
or some other editor of choice. This is for bash. I forgot the tcsh 
syntax. For convenience sake, you can put that export command in your 
.profile file.

is it possible that there is a different command necessary to 
determine the EDITOR for darwin? can i determine whether emacs or a 
given text editor is set as default for my darwin environment? or 
can i set that to emacs? or is textedit a protocol that isn't 
available on darwin? when i placed the hyperlink of a note from the 
pdf directly into the firefox address box i got the message that 
firefox didn't support the textedit protocol. is it possible that 
the macos firefox doesn't? sorry for all the questions.

btw: Bertalan: is there a LilyTool available or becoming available 
that will allow point-and-click with ly 2.5.23 in jEdit?

thanks for the assistance.
best,
sean
ps: thanks for the auctex tip.

Sean Reed
Hamburg, Germany
Web: www.seanreed.de
On 09.05.2005, at 08:24, arjan.bos wrote:
Sean,
Did you put in your .emacs the code that links .ly files with 
lilypond-mode?
You can do this by adding:
;; lilypond
(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

Or, alternatively, you can use M-x load-library [ret] lilypond-mode
to load lilypond mode. This makes the lilypond functions available 
to emacs. You then are able to switch on lilypond mode by M-x 
LilyPond-mode. Please be aware that these names are case-sensitive.

HTH,
Arjan
Btw [ot] When starting with Latex in emacs, please consider auctex 
as an enhanced latex-mode. It helps with a lot of small things, 
like placing the correct environment with begin and end, changing 
fonts and things like that.

-Oorspronkelijk bericht-
Van:Sean Reed [mailto:[EMAIL PROTECTED]
Verzonden:  zo 8-5-2005 1:22
Aan:Arjan Bos
CC: lilypond-user's list
Onderwerp:  Re: mac osx emacs lilypo

Re: Space after clef

2005-05-13 Thread Mats Bengtsson
This is controlled by the space-alist property, see
http://lilypond.org/doc/v2.5/Documentation/user/out-www/lilypond-internals/Clef.html#Clef
and
http://lilypond.org/doc/v2.5/Documentation/user/out-www/lilypond-internals/break_002daligned_002dinterface.html#break_002daligned_002dinterface
You might want to increase the extra space to the next note from the
default 0.5 to 1.5 or so:
\override Staff.Clef #'space-alist = #'(
(ambitus extra-space . 2.0)
(staff-bar extra-space . 0.7)
(key-cancellation minimum-space . 4.0)
(key-signature minimum-space . 4.0)
(time-signature minimum-space . 4.2)
(first-note minimum-fixed-space . 5.0)
(next-note extra-space . 1.5)
(right-edge extra-space . 0.5))
   /Mats
Fairchild wrote:
In v 2.4.3, transcribing solo scores with multiple clef changes within 
bars, notes following the clef glyphs are too close to the glyphs.  
Using \override Score.SeparationItem #'padding = #2.0 causes added space 
both prior to and following the glyphs.

Is there a way to insert extra space selectively following clef changes.
 - Bruce


___
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: Text font problems with 2.4.5

2005-05-13 Thread [EMAIL PROTECTED]
As far as I can search there is no ec-fonts-mftraced package in sarge nor is
there a dependency of lilypond from this package.
Did I miss something?
Tanks,
Antonio
-- Initial Header ---

>From  : "D Josiah Boothby" [EMAIL PROTECTED]
To  : "Antonio PALAMA'" [EMAIL PROTECTED]
Cc  : lilypond-user@gnu.org
Date  : Thu, 12 May 2005 19:52:23 -0700 (PDT)
Subject : Re: Text font problems with 2.4.5

> I think that has something to do with the config file that the sid version
> of ec-fonts-mftraced has. Try downgrading to the version that is in sarge
> (which, I believe is the same version but with the right config file).
>
> Josiah
>
> On Thu, 12 May 2005, Antonio PALAMA' wrote:
>
> > After upgrading from 2.2.x to 2.4.5 on my Debian sid system, all the text
> > (title, composer, rehearsal marks, markups etc.) is typeset using a strange
> > font which resmbles Courier. I tried to reinstall ec-fonts-mftraced 
> > 1.0.10a-1
> > but the problem is still there.
> > Do people have any idea about how to solve the problem?
> > Thanks for your help,
> >
> > Antonio Palama'
> >
> >
> >
> >
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > http://lists.gnu.org/mailman/listinfo/lilypond-user
> >
> 




Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it




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


Fwd: mac osx pdf point-and-click correction [was: mac osx emacs lilypond-mode]

2005-05-13 Thread Sean Reed
sorry...
a correction...
Begin forwarded message:
8) in a new xterm i then select emacs as the EDITOR using: export 
EDITOR="/sw/bin/emacs"

9) then i start firefox in a new xterm with /sw/bin/firefox
rather: i started firefox in the SAME xtem in which i performed the 
export EDITOR

best,
sean

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


Re: mac osx pdf point-and-click [was: mac osx emacs lilypond-mode]

2005-05-13 Thread Han-Wen Nienhuys
Sean Reed wrote:
hi arjan,
this is my first real contribution to furthering knowledge on the list!
i've gotten the point-and-click to work on macos 10.3.9 with ly 2.5.23, 
but with a couple of ticks which you (or maybe han-wen or others?) could 
help me iron out.

the solution was to do everything in xwindows with x11 and not from the 
terminal.app (which you perhaps already knew?)

here's what i did:
1) i installed firefox from FINK to be run from an xterm in apple's x11.
2) i added the following lines to the prefs.js file in 
~HOME/.mozilla/firefox/vgftrus6.default/, with the full path to the 
lilypond-pdfpc-helper (not given on the lilypond website documentation):

It should be sufficient to set the PATH environment variable, see
http://developer.apple.com/qa/qa2001/qa1067.html
http://www.astro.washington.edu/owen/AquaEnvVar.html
This should address the problem of adding /sw/bin/ everywhere.
--
 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: Space after clef

2005-05-13 Thread Fairchild
Thanks Mats.

I spent hours trying to find this, stumbled on it, but didn't know how to
use it.  I expected to find something equivalent to \hspace in \markup.
Often I want to add or subtract a little space among the notes.  Feature
request?

What's the logical process I should have followed to find this information?

Is there a place - a glossary - that explains the terms?

Is there a source for the syntax you provided?

Is it necessary to include the whole list?

Using the alist (What's an alist?) as you suggested, interspersed comment
lines are not accepted.  Bug?

   - Bruce

-Original Message-
From: Mats Bengtsson [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 13, 2005 6:11 AM
To: Fairchild
Cc: lilypond-user@gnu.org
Subject: Re: Space after clef


This is controlled by the space-alist property, see
http://lilypond.org/doc/v2.5/Documentation/user/out-www/lilypond-internals/C
lef.html#Clef
and
http://lilypond.org/doc/v2.5/Documentation/user/out-www/lilypond-internals/b
reak_002daligned_002dinterface.html#break_002daligned_002dinterface

You might want to increase the extra space to the next note from the default
0.5 to 1.5 or so: \override Staff.Clef #'space-alist = #'(
(ambitus extra-space . 2.0)
(staff-bar extra-space . 0.7)
(key-cancellation minimum-space . 4.0)
(key-signature minimum-space . 4.0)
(time-signature minimum-space . 4.2)
(first-note minimum-fixed-space . 5.0)
(next-note extra-space . 1.5)
(right-edge extra-space . 0.5))

/Mats

Fairchild wrote:
> In v 2.4.3, transcribing solo scores with multiple clef changes within
> bars, notes following the clef glyphs are too close to the glyphs.  
> Using \override Score.SeparationItem #'padding = #2.0 causes added space 
> both prior to and following the glyphs.
> 
> Is there a way to insert extra space selectively following clef 
> changes.
> 
>  - Bruce
> 
> 
> 
> --
> --
> 
> ___
> 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


Is there an RPM

2005-05-13 Thread Mark Healey
I'm running Fedora Core 3 and would like to install 
Lillypond.  It looks like it is a nightmare of dependencies. 
 I'd like to use yum to install it.  Is there an RPM for 
the current version?

--
Mark Healey
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Text font problems with 2.4.5

2005-05-13 Thread D Josiah Boothby
Pedro Kroger's repository is in my sources.list, so it is probably from 
there.

josiah
On Fri, 13 May 2005, [EMAIL PROTECTED] wrote:
As far as I can search there is no ec-fonts-mftraced package in sarge nor is
there a dependency of lilypond from this package.
Did I miss something?
Tanks,
Antonio
-- Initial Header ---
From  : "D Josiah Boothby" [EMAIL PROTECTED]
To  : "Antonio PALAMA'" [EMAIL PROTECTED]
Cc  : lilypond-user@gnu.org
Date  : Thu, 12 May 2005 19:52:23 -0700 (PDT)
Subject : Re: Text font problems with 2.4.5
I think that has something to do with the config file that the sid version
of ec-fonts-mftraced has. Try downgrading to the version that is in sarge
(which, I believe is the same version but with the right config file).
Josiah
On Thu, 12 May 2005, Antonio PALAMA' wrote:
After upgrading from 2.2.x to 2.4.5 on my Debian sid system, all the text
(title, composer, rehearsal marks, markups etc.) is typeset using a strange
font which resmbles Courier. I tried to reinstall ec-fonts-mftraced 1.0.10a-1
but the problem is still there.
Do people have any idea about how to solve the problem?
Thanks for your help,
Antonio Palama'

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



Navighi a 4 MEGA e i primi 3 mesi sono GRATIS. 
Scegli Libero Adsl Flat senza limiti su http://www.libero.it


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


Re: Text font problems with 2.4.5 (PROBLEM SOLVED)

2005-05-13 Thread Antonio PALAMA'
The problem is solved: I downloaded ec-fonts-mftraced_1.0.12-1_all.deb 
from www.lilypond.org/download/fonts, installed it and the good fonts 
are back.
Thanks for your help,

Antonio
D Josiah Boothby wrote:
I think that has something to do with the config file that the sid 
version of ec-fonts-mftraced has. Try downgrading to the version that 
is in sarge (which, I believe is the same version but with the right 
config file).

Josiah
On Thu, 12 May 2005, Antonio PALAMA' wrote:
After upgrading from 2.2.x to 2.4.5 on my Debian sid system, all the 
text (title, composer, rehearsal marks, markups etc.) is typeset 
using a strange font which resmbles Courier. I tried to reinstall 
ec-fonts-mftraced 1.0.10a-1 but the problem is still there.
Do people have any idea about how to solve the problem?
Thanks for your help,

Antonio Palama'

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


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


Re: instrument name bug 2.5.24

2005-05-13 Thread Erik Sandberg
On Friday 13 May 2005 11.37, Graham Percival wrote:
> On 12-May-05, at 8:42 AM, Stan Sanderson wrote:
> > Instrument names are still missing from 2.5.24 (see regression tests,
> > e.g.). I'm stuck with 2.5.22 until it is fixed. I did not see this on
> > Han-Wen's list of things to fix prior to 2.6.
>
> True.  BTW, such reports should be sent to the bug list (as I've done).

It seems that the bug is fixed now. Thanks for the reports!

Erik


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