Not a lilypond-book-preamble.ly bug (was RE: -b eps option (was RE: OOolilypond and openoffice 2.1))
It helps if you include the "=" in the -dbackend=eps option. You can see from my previous message that I read the documentation correctly. We all make mistakes. :-) Is it possible to include more helpful error messages for the command line options, when somebody gets a chance? It appears that I have OOoLilyPond working now, but there are some issues: 1. The default templates with OOoLilyPond assume simple notes, you have to modify the templates to delete the { and } before and after the snippet in order to accept a \score {} block. Since the discussions on the list indicate that the project is leaning toward requiring \score {} blocks in the future, the default templates probably need to be updated. 2. The eps images paste into the swriter file transparent, you can't view and proofread the music until you print -- I can't figure out how to change this. It's really annoying. The documentation says the image is supposed to be in low resolution, not invisible. 3. The temporary files are in the C:\WINDOWS\Temp directory, if you have find the OOoLilypond.ly and OOoLilypond.out files to debug a problem. Looking at the OOoLilypond.ly file is the only way to see how your music snippet really looks to the LilyPond compiler. Paul _ From: Paul Harouff [mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 2:07 PM To: Graham Percival Cc: lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Thanks, Graham. I failed to mention that the -dbackend=eps option works outside of OOo. I verified that before making the changes to Subs.xba. I think this is some other script error inside OOoLilypond passing a bad value to Lilypond, but I don't have a clue from the LilyPond error message where to look. Even thinking about using LaTeX and LilyPondBook gives me chills. And while LilyPond is great at handling musical notation, it is horrible at handling text outside of a score (which is completely understandable - because that's not what it's designed for). OOoLilypond looks like it could be a real production tool for laying out hymnbooks and worship services, etc., by combining the strengths of LilyPond and OOoWriter. I'm really excited to see if I can get it working and try it out. Paul On 3/4/07, Paul Harouff <[EMAIL PROTECTED]> wrote: Okay, I edited Subs.xba and replaced -b eps with -dbackend=eps in all four places. Then I deleted the macro in OOo and reinstalled it, so it would load the changes. Now, I get the following error: GNU LilyPond 2.11.20 ERROR: In procedure symbol->string ERROR: Wrong type argument in position 1 (expecting symbol): #t The template file has the following: \include " <http://lilypond-book-preamble.ly> lilypond-book-preamble.ly" #(set-global-staff-size 20) \paper { #(define dump-extents #t) ragged-right = ##t line-width = 7.5\in } \layout { indent = #0 } { % ly snippet contents follows: c' d' e' % end ly snippet } Paul -Original Message- From: Graham Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, March 04, 2007 6:05 PM To: Paul Harouff Cc: 'Johan Vromans'; lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Paul Harouff wrote: > My problem is Lilypond 2.11.20 is not recognizing either > -b eps or --backend=eps so the code fragment won't compile. Please see the NEWS for 2.11. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Bug in lilypond-book-preamble (was RE: -b eps option (was RE: OOolilypond and openoffice 2.1))
I narrowed the problem down to lilypond-book-preamble.ly lilypond -dbackend eps lilypond-book-preamble.ly GNU LilyPond 2.11.20 ERROR: In procedure symbol->string ERROR: Wrong type argument in position 1 (expecting symbol): #t I haven't made any changes, but here is the contents of lilypond-book-preamble.ly ... maybe someone on the list can find the bug. The only thing I could do would be comment out each line one at a time, but I still wouldn't know what the correct syntax should be. \version "2.10.0" %% toplevel \book gets output per page, %% everything else gets output per system/title #(define default-toplevel-book-handler print-book-with-defaults-as-systems ) #(define toplevel-book-handler (lambda ( . rest) (set! output-empty-score-list #f) (apply print-book-with-defaults rest))) #(define toplevel-music-handler (lambda ( . rest) (apply collect-music-for-book rest))) #(define toplevel-score-handler (lambda ( . rest) (apply collect-scores-for-book rest))) #(define toplevel-text-handler (lambda ( . rest) (apply collect-scores-for-book rest))) #(set! output-empty-score-list #t) #(ly:set-option (quote no-point-and-click)) #(define inside-lilypond-book #t) #(define version-seen #t) From: Paul Harouff [mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 2:07 PM To: Graham Percival Cc: lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Thanks, Graham. I failed to mention that the -dbackend=eps option works outside of OOo. I verified that before making the changes to Subs.xba. I think this is some other script error inside OOoLilypond passing a bad value to Lilypond, but I don't have a clue from the LilyPond error message where to look. Even thinking about using LaTeX and LilyPondBook gives me chills. And while LilyPond is great at handling musical notation, it is horrible at handling text outside of a score (which is completely understandable - because that's not what it's designed for). OOoLilypond looks like it could be a real production tool for laying out hymnbooks and worship services, etc., by combining the strengths of LilyPond and OOoWriter. I'm really excited to see if I can get it working and try it out. Paul On 3/4/07, Paul Harouff <[EMAIL PROTECTED]> wrote: Okay, I edited Subs.xba and replaced -b eps with -dbackend=eps in all four places. Then I deleted the macro in OOo and reinstalled it, so it would load the changes. Now, I get the following error: GNU LilyPond 2.11.20 ERROR: In procedure symbol->string ERROR: Wrong type argument in position 1 (expecting symbol): #t The template file has the following: \include " lilypond-book-preamble.ly <http://lilypond-book-preamble.ly> " #(set-global-staff-size 20) \paper { #(define dump-extents #t) ragged-right = ##t line-width = 7.5\in } \layout { indent = #0 } { % ly snippet contents follows: c' d' e' % end ly snippet } Paul -Original Message- From: Graham Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, March 04, 2007 6:05 PM To: Paul Harouff Cc: 'Johan Vromans'; lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Paul Harouff wrote: > My problem is Lilypond 2.11.20 is not recognizing either > -b eps or --backend=eps so the code fragment won't compile. Please see the NEWS for 2.11. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: -b eps option (was RE: OOolilypond and openoffice 2.1)
On Mon, 2007-03-05 at 14:06 -0600, Paul Harouff wrote: > Thanks, Graham. > > I failed to mention that the -dbackend=eps option works outside of > OOo. I verified that before making the changes to Subs.xba. > > I think this is some other script error inside OOoLilypond passing a > bad value to Lilypond, but I don't have a clue from the LilyPond error > message where to look. > > Even thinking about using LaTeX and LilyPondBook gives me chills. And > while LilyPond is great at handling musical notation, it is horrible > at handling text outside of a score (which is completely > understandable - because that's not what it's designed for). > OOoLilypond looks like it could be a real production tool for laying > out hymnbooks and worship services, etc., by combining the strengths > of LilyPond and OOoWriter. I'm really excited to see if I can get it > working and try it out. > > Paul > Hi Paul, if you're looking for a "WYSIWYG" solution comparable to OOoLilypond, you could give the newest LyX Release (LyX Version 1.4.4) a try, as it has now support for including lilypond snippets into the document. All I had to change in my lilypond files to include complete scores was adding \include "lilypond-book-preamble.ly". To get inline snippets, you can add a ragged-right. This works fine for me. rene ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: -b eps option (was RE: OOolilypond and openoffice 2.1)
Thanks, Graham. I failed to mention that the -dbackend=eps option works outside of OOo. I verified that before making the changes to Subs.xba. I think this is some other script error inside OOoLilypond passing a bad value to Lilypond, but I don't have a clue from the LilyPond error message where to look. Even thinking about using LaTeX and LilyPondBook gives me chills. And while LilyPond is great at handling musical notation, it is horrible at handling text outside of a score (which is completely understandable - because that's not what it's designed for). OOoLilypond looks like it could be a real production tool for laying out hymnbooks and worship services, etc., by combining the strengths of LilyPond and OOoWriter. I'm really excited to see if I can get it working and try it out. Paul On 3/4/07, Paul Harouff <[EMAIL PROTECTED]> wrote: Okay, I edited Subs.xba and replaced -b eps with -dbackend=eps in all four places. Then I deleted the macro in OOo and reinstalled it, so it would load the changes. Now, I get the following error: GNU LilyPond 2.11.20 ERROR: In procedure symbol->string ERROR: Wrong type argument in position 1 (expecting symbol): #t The template file has the following: \include "lilypond-book-preamble.ly" #(set-global-staff-size 20) \paper { #(define dump-extents #t) ragged-right = ##t line-width = 7.5\in } \layout { indent = #0 } { % ly snippet contents follows: c' d' e' % end ly snippet } Paul -Original Message- From: Graham Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, March 04, 2007 6:05 PM To: Paul Harouff Cc: 'Johan Vromans'; lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Paul Harouff wrote: > My problem is Lilypond 2.11.20 is not recognizing either > -b eps or --backend=eps so the code fragment won't compile. Please see the NEWS for 2.11. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: -b eps option (was RE: OOolilypond and openoffice 2.1)
I would recommend you to first make sure that the lilypond command works correctly when you run in from a command prompt. Once you have that working, you could integrate it with OOolilypond. I just tried your example and it runs just fine with lilypond -dbackend=eps testfile.ly /Mats Paul Harouff wrote: Okay, I edited Subs.xba and replaced -b eps with -dbackend=eps in all four places. Then I deleted the macro in OOo and reinstalled it, so it would load the changes. Now, I get the following error: GNU LilyPond 2.11.20 ERROR: In procedure symbol->string ERROR: Wrong type argument in position 1 (expecting symbol): #t The template file has the following: \include "lilypond-book-preamble.ly" #(set-global-staff-size 20) \paper { #(define dump-extents #t) ragged-right = ##t line-width = 7.5\in } \layout { indent = #0 } { % ly snippet contents follows: c' d' e' % end ly snippet } Paul -Original Message- From: Graham Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, March 04, 2007 6:05 PM To: Paul Harouff Cc: 'Johan Vromans'; lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Paul Harouff wrote: My problem is Lilypond 2.11.20 is not recognizing either -b eps or --backend=eps so the code fragment won't compile. Please see the NEWS for 2.11. Cheers, - Graham ___ 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: -b eps option (was RE: OOolilypond and openoffice 2.1)
Okay, I edited Subs.xba and replaced -b eps with -dbackend=eps in all four places. Then I deleted the macro in OOo and reinstalled it, so it would load the changes. Now, I get the following error: GNU LilyPond 2.11.20 ERROR: In procedure symbol->string ERROR: Wrong type argument in position 1 (expecting symbol): #t The template file has the following: \include "lilypond-book-preamble.ly" #(set-global-staff-size 20) \paper { #(define dump-extents #t) ragged-right = ##t line-width = 7.5\in } \layout { indent = #0 } { % ly snippet contents follows: c' d' e' % end ly snippet } Paul -Original Message- From: Graham Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, March 04, 2007 6:05 PM To: Paul Harouff Cc: 'Johan Vromans'; lilypond-user@gnu.org Subject: Re: -b eps option (was RE: OOolilypond and openoffice 2.1) Paul Harouff wrote: > My problem is Lilypond 2.11.20 is not recognizing either > -b eps or --backend=eps so the code fragment won't compile. Please see the NEWS for 2.11. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: -b eps option (was RE: OOolilypond and openoffice 2.1)
Paul Harouff wrote: My problem is Lilypond 2.11.20 is not recognizing either -b eps or --backend=eps so the code fragment won't compile. Please see the NEWS for 2.11. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
-b eps option (was RE: OOolilypond and openoffice 2.1)
On the highlighted line in the basic editor, change the (i-1) to (i) and the next time you type Ctrl-M the edit window will work. My problem is Lilypond 2.11.20 is not recognizing either -b eps or --backend=eps so the code fragment won't compile. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Vromans Sent: Sunday, March 04, 2007 3:22 PM To: lilypond-user@gnu.org Subject: Re: OOolilypond and openoffice 2.1 luis jure <[EMAIL PROTECTED]> writes: > i wanted to report that i couldn't make the plug-in work with > openoffice 2.1 on linux (gentoo). the plug-in installs and opens its > window, but it fails to compile any code, with this message: > > lilypond: /usr/lib/openoffice/program/libstdc++.so.6: version > 'CXXABI_1.3.1' not found (required by lilypond) Hmm. You get farther than I... When I try to use the macro with Ctrl-M I get the BASIC debugger on an Index out of range in ListTemplates. -- Johan ___ 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