lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedded preview in output EPS files


From: Clifford W. Racz
Subject: Re: Embedded preview in output EPS files
Date: Tue, 08 May 2007 10:29:09 -0400
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

Forgive me... I did not mean to imply that I thought another dependency should be added.  In fact, just the opposite... this was not a feature request.

I am fairly sure that ghostscript can already add image previews (epstool just calls ghostscript, and GSView also has the functionality).  I only wanted to know:
  • Is there a way (through a switch or command) that Lilypond can add this
    OR
  • Where in the code is the EPS file generated, so that I can edit the code to include this functionality?
I would rather not write a script because I might want to run this on the computers of others who would do the editing and installation of PERL and other libraries would be too "complicated."

However, maybe the answer is that perhaps I write a M$ Word add-in to use Lilypond... I will review the OpenOffice code and see if that is do-able.  Do others on this list think that this would be a useful project?


Cliff


Mats Bengtsson wrote:
Why not create a BAT script (or whatever scripting language you prefer) that
first calls LilyPond and then epstool?

LilyPond already contains too many dependencies to external programs,
and I guess the main hackers don't want yet another external program that
has to be included in the LilyPond installation package and kept up to date.

I hope you know about OOoLilyPond, http://ooolilypond.sourceforge.net/
which automatically handles all the steps you have to do manually today.
I have never tried it myself, but from the information at the web page, I
get the impression that they even include a preview for EPS files.

  /Mats

Clifford W. Racz wrote:
I read the manual.
I searched the source code.

To use an EPS file in a word processing document (such as MS Word), I am using a command like this:

  lilypond -b eps --png --pdf foobar.ly

The EPS prints fine, but there is no embedded preview in the file.  That is completely understood.  The documentation shows no option for adding a bitmapped preview to the EPS so that it will show up in the word processing document.

I can create one with commands like:

  epstool -t6p foobar.eps fooNew.eps
  epstool -w foobar.eps fooW.eps

Is there a way that this can be done directly with LilyPond?
I think that if the PNG could be embedded as a preview for the *.eps files, that would be exactly what I am looking for.

I am not very familiar with Scheme, so while I can tell in those *.scm instructions, there are relating lines of code, but I don't know what they mean.

Please do not confuse my question with the preview functionality:

  lilypond --preview foobar.ly

This is a preview of the music, not an embedded bitmap of the EPS file.

System information:
I am using v2.10.23 on the Windows platform
I would like to include about 100 snippets into a music book that I am assisting a committee with.  So, they will not understand the concept that music can print but not show up on the screen.  They are Windows users, and expect that this source document will be available in MS Word for them.

********************************************************************************
%foobar.ly source
#(set! toplevel-score-handler print-score-with-defaults)
#(set! toplevel-music-handler
(lambda (p m)
 (if (not (eq? (ly:music-property m 'void) #t))
      (print-score-with-defaults
       p (scorify-music m p)))))

#(ly:set-option (quote no-point-and-click))
#(define inside-lilypond-book #t)
#(define version-seen #t)

\paper {
#(define dump-extents #t)
indent = 0\mm
line-width = 160\mm - 2.0 * 0.4\in
ragged-right = ##t
force-assignment = #""
line-width = #(- line-width (* mm  3.000000))
}

\layout {
\context {
\Staff
\remove Time_signature_engraver
}
}

\relative c'
{
\sourcefileline 42
c d e f g a b c d e f g a b c d e f g'
}
********************************************************************************




_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


-- 
*********************************************
Clifford W. Racz
Purdue University
Agricultural and Biological Engineering
225 South University Street
West Lafayette, IN  47907-2093
Office: ABE316
Phone:  (765) 49-45731
Fax:    (765) 49-61356
*********************************************

reply via email to

[Prev in Thread] Current Thread [Next in Thread]