eps file

2021-09-01 Thread ming tsang
Dear lilyponders,
How can I specify the eps file that will be recognized by the \markup - re
below lilypond code? The eps file is in my computer folder.
Shalom,
Ming

\markup {
  \general-align #Y #DOWN {
\epsfile #X #20 #"context-example.eps"
\epsfile #Y #20 #"context-example.eps"
  }
}


-- 
ming (lyndon) tsang


EPS file

2013-06-04 Thread Nikolay Kirov
Hello!

I have a specific question: How to split a EPS file, producing by LilyPond
For example:
http://nikolay.kirov.be/2010/folk/td_093_1_01.eps
I would like to cut  the file horizontally to obtain 2 files - one for the
text and one for the notes.

Can anybody help me?
Nikolay
-- 
Nikolay Kirov Kirov
http://www.math.bas.bg/~nkirov/
http://nikolay.kirov.be/
Office: (+359) 2 979 2850, 2 811 0611
Home: (+359) 2 856 8627, 0887 198 221
nki...@nbu.bg
nki...@math.bas.bg
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: eps file

2021-09-01 Thread Valentin Petzel
Hello Ming!

Just put the name of the file either as absolute path or as relative path to 
your lilypond file instead of context-example.eps.

The sytax for \epsfile is
\epsfile axis size path
Where axis is the axis for scaling, size is the size of the end result along 
this axis and path is the path to the file.

Cheers,
Valentin

Am Mittwoch, 1. September 2021, 22:17:13 CEST schrieb ming tsang:
> Dear lilyponders,
> How can I specify the eps file that will be recognized by the \markup - re
> below lilypond code? The eps file is in my computer folder.
> Shalom,
> Ming
> 
> \markup {
>   \general-align #Y #DOWN {
> \epsfile #X #20 #"context-example.eps"
> \epsfile #Y #20 #"context-example.eps"
>   }
> ,

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-01 Thread ming tsang
Hi Valentin,
Thank you for the info. But I have a hard time entering the file path name.
When I ran lilypond through frescobaldi v2.3.3, I got an error - see at the
end of the lily code. I have no idea what "ice-9 format" is.
Shalom,
Ming.

\version "2.23.3"
\markup {
  \general-align #Y #DOWN {
\epsfile #X #20
#"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
%\epsfile #Y #20 #"Untitled_draw-squibble-1.eps"
  }
}


E <2>rror message .

Starting lilypond-windows.exe 2.23.3 [Untitled]...

Processing
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/
document.ly'

Parsing...

C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/document.ly:7:6
<0>: error: GUILE signaled an error for the expression beginning here

#

"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"

C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <1>:
In procedure simple-format in expression (ly:parse-file file-name):

C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <2>:
FORMAT: Unsupported format option ~1 - use (ice-9 format) instead

Exited with return code 1.

On Wed, Sep 1, 2021 at 4:27 PM Valentin Petzel  wrote:

> Hello Ming!
>
> Just put the name of the file either as absolute path or as relative path
> to
> your lilypond file instead of context-example.eps.
>
> The sytax for \epsfile is
> \epsfile axis size path
> Where axis is the axis for scaling, size is the size of the end result
> along
> this axis and path is the path to the file.
>
> Cheers,
> Valentin
>
> Am Mittwoch, 1. September 2021, 22:17:13 CEST schrieb ming tsang:
> > Dear lilyponders,
> > How can I specify the eps file that will be recognized by the \markup -
> re
> > below lilypond code? The eps file is in my computer folder.
> > Shalom,
> > Ming
> >
> > \markup {
> >   \general-align #Y #DOWN {
> > \epsfile #X #20 #"context-example.eps"
> > \epsfile #Y #20 #"context-example.eps"
> >   }
> > ,



-- 
ming (lyndon) tsang


Re: eps file

2021-09-01 Thread ming tsang
Hi Valentin,
I try another way to code eps file location path. I move the eps file to
the same folder of lily file.
Shalom,
Ming

\version "2.23.3"
\markup {
  \general-align #Y #DOWN {
\epsfile #Y #20 #"Untitled_draw-squibble-1.eps"
  }
}

ERROR Message,

Starting lilypond-windows.exe 2.23.3 [Untitled]...

Processing
`C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/
document.ly'

Parsing...

fatal error: cannot find file: `Untitled_draw-squibble-1.eps' (load path:
`C:/LilyPond_2-23-3/usr/share/lilypond/current/ly;C:/LilyPond_2-23-3/usr/share/lilypond/current/ps;C:/LilyPond_2-23-3/usr/share/lilypond/current/scm;C:/LilyPond_2-23-3/usr/share/lilypond/current/fonts/otf/;C:/LilyPond_2-23-3/usr/share/lilypond/current/fonts/svg/;C:/Users/yming
tsang/Dropbox/LP_includes/;', cwd:
`C:\Users\YMINGT~1\AppData\Local\Temp\frescobaldi-o_s4xv8r\tmps19cuu1_')

Exited with return code 1.

On Wed, Sep 1, 2021 at 4:27 PM Valentin Petzel  wrote:

> Hello Ming!
>
> Just put the name of the file either as absolute path or as relative path
> to
> your lilypond file instead of context-example.eps.
>
> The sytax for \epsfile is
> \epsfile axis size path
> Where axis is the axis for scaling, size is the size of the end result
> along
> this axis and path is the path to the file.
>
> Cheers,
> Valentin
>
> Am Mittwoch, 1. September 2021, 22:17:13 CEST schrieb ming tsang:
> > Dear lilyponders,
> > How can I specify the eps file that will be recognized by the \markup -
> re
> > below lilypond code? The eps file is in my computer folder.
> > Shalom,
> > Ming
> >
> > \markup {
> >   \general-align #Y #DOWN {
> > \epsfile #X #20 #"context-example.eps"
> > \epsfile #Y #20 #"context-example.eps"
> >   }
> > ,



-- 
ming (lyndon) tsang


Re: eps file

2021-09-01 Thread David Wright
Europe might be asleep by now, so:

On Wed 01 Sep 2021 at 19:15:19 (-0400), ming tsang wrote:
> Hi Valentin,
> Thank you for the info. But I have a hard time entering the file path name.
> When I ran lilypond through frescobaldi v2.3.3, I got an error - see at the
> end of the lily code. I have no idea what "ice-9 format" is.
> Shalom,
> Ming.
> 
> \version "2.23.3"
> \markup {
>   \general-align #Y #DOWN {
> \epsfile #X #20
> #"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"

↑↑↑ a "long" filename, and containing a space

> %\epsfile #Y #20 #"Untitled_draw-squibble-1.eps"
>   }
> }
> 
> 
> E <2>rror message .
> 
> Starting lilypond-windows.exe 2.23.3 [Untitled]...
> 
> Processing
> `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/document.ly'

 a Microsoft hack to make a short filename without a space

> Parsing...
> 
> C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/document.ly:7:6
> <0>: error: GUILE signaled an error for the expression beginning here
> 
> #
> 
> "c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
> 
> C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <1>:
> In procedure simple-format in expression (ly:parse-file file-name):
> 
> C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm:973:21 <2>:
> FORMAT: Unsupported format option ~1 - use (ice-9 format) instead
> 
> Exited with return code 1.

Would it be practical to change your working directory to
c:\User\yming tsang\Documents\SNIPPET\, or wherever, before you run
LilyPond, so that you can use bare filenames, rather than absolute
paths? Doing that /might/ avoid these (frequent and long-standing)
problems you have with filenames on your system.

>From what gets mangled, I assume the space is causing more of a
problem than the length of the filenames.

BTW I can't help if the problem lies with Frescobaldi.

Cheers,
David.



Re: eps file

2021-09-01 Thread Valentin Petzel
Hi Ming,

For the relative problem: Note that if you do not save the file Frescobaldi 
will save the file to a temporary location. This will change the working 
directory to that temporary location.

So unless you have the directory of your file in the includes relative paths 
you may only use relative paths with saved files.
(It might be a good thing to do a bug report for Frescobaldi. In this 
situation Frescobaldi might be expected to add the directory of the file to 
the Lilypond includes).

For your other error: That looks like a guile missconfiguration to me, or it 
may be some fundamental error in what appears to be dir-basename.

Try to run a file simply containing

#(display (version))

And check if the output contains a line like 1.8.8 at the end, or if there are 
different numbers.

Cheers,
Valentin

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-02 Thread Valentin Petzel
Okay, the guile version looks fine. I'll try to look into this, can you please 
append the file
C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm

just to be sure?

02.09.2021 13:07:42 ming tsang :

> Hi David Wright and Valentin Petzel:
> Thank you both for helping.
> I did a (#display version) + move the eps file to a directory does not 
> contain space on the names.
> Here is the screen capture from frecobaldi v2.3.3.
>  [cid:ii_kt2tghaj0###466x222:false###][image.png]
>  
> Shalom,
> Ming
> 
> On Wed, Sep 1, 2021 at 8:36 PM David Wright  wrote:
>> 
>> On Wed 01 Sep 2021 at 19:15:19 (-0400), ming tsang wrote:
>>  
>>> end of the lily code. I have no idea what "ice-9 format" is.
>>>     #"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
>> 
>>                 ↑↑↑ a "long" filename, and containing a space
>> 
>>> `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/document.ly[http://document.ly]'
>> 
>>              a Microsoft hack to make a short filename without a 
>> space
>> 
>> 
>> Cheers,
>> David.
> 
> 
> --
> ming (lyndon) tsang


Re: eps file

2021-09-02 Thread ming tsang
Hi Valentin Petzel:
Here is the file. I open the lily.scm with  miscrosoft notepad and save as.
Thank you very much Valentin and David for your patience and helpful hands.
Very much appreciated.
Shalom,
Ming.


On Thu, Sep 2, 2021 at 7:37 AM Valentin Petzel  wrote:

> Okay, the guile version looks fine. I'll try to look into this, can you
> please append the file
> C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm 
>
> just to be sure?
>
> 02.09.2021 13:07:42 ming tsang :
>
> Hi David Wright and Valentin Petzel:
> Thank you both for helping.
> I did a (#display version) + move the eps file to a directory does not
> contain space on the names.
> Here is the screen capture from frecobaldi v2.3.3.
> [image: image.png]
>
> Shalom,
> Ming
>
> On Wed, Sep 1, 2021 at 8:36 PM David Wright 
> wrote:
>
>>
>> On Wed 01 Sep 2021 at 19:15:19 (-0400), ming tsang wrote:
>>
>> > end of the lily code. I have no idea what "ice-9 format" is.
>> > #"c:\User\yming
>> tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
>>
>> ↑↑↑ a "long" filename, and containing a space
>>
>> > `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/
>> document.ly'
>>
>>  a Microsoft hack to make a short filename without a
>> space
>>
>>
>> Cheers,
>> David.
>>
>
>
> --
> ming (lyndon) tsang
>
>

-- 
ming (lyndon) tsang
 This file is part of LilyPond, the GNU music typesetter.

 Copyright (C) 1998--2021 Jan Nieuwenhuizen 
 Han-Wen Nienhuys 

 LilyPond is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 LilyPond is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.

;; Internationalisation: (_i "to be translated") gets an entry in the
;; POT file; (gettext ...) must be invoked explicitly to do the actual
;; "translation".
;;
;; (define-macro (_i x) x)
;; (define-macro-public _i (x) x)
;; (define-public-macro _i (x) x)
;; Abbrv-PWR!

(define-module (lily))

(defmacro-public _i (x) x)

;; GUILE defaults to fixed seed.
(define-public (randomize-rand-seed)
  (ly:randomize-rand-seed)
  (let*
  ((t (gettimeofday))
   ;; GUILE's random initialization is clumsy (it converts the
   ;; integer to decimal string, and then sums groups of 8 bytes
   ;; as 64 bit integers.  Here we multiply to spread the entropy
   ;; around a bit better.
   (seed (*
  (cdr t)
  (car t)
  (getpid
(set! *random-state* (seed->random-state seed

(randomize-rand-seed)

(cond-expand
 (guile-2
  (begin
   ;; By default, we don't want scary backtraces.
   (debug-disable 'backtrace)))
 (else
  (begin
   (read-enable 'positions)
   (debug-enable 'debug))
  ))

(define-public PLATFORM
  (string->symbol
   (string-downcase
(car (string-tokenize (utsname:sysname (uname)) char-set:letter)

;; We don't use (srfi srfi-39) (parameter objects) here because that
;; does not give us a name/handle to the underlying fluids themselves.

(define %parser (make-fluid))
(define %location (make-fluid))
;; No public setters: should not get overwritten in action
(define-public (*parser*) (fluid-ref %parser))
(define-public (*location*) (fluid-ref %location))

(define-public _ gettext)

;; Guile 1.8 doesn't have (and doesn't need) eval-when.
(defmacro-public eval-early (expr)
  `(cond-expand
(guile-2 (eval-when (expand load eval) ,expr))
(else ,expr)))

;; It would be nice to convert occurences of parser/location to
;; (*parser*)/(*location*) using the syncase module but it is utterly
;; broken in GUILE 1 and would require changing a lot of unrelated
;; innocuous constructs which just happen to fall apart with
;; inscrutable error messages.

;;
;; Session-handling variables and procedures.
;;
;;  A "session" corresponds to one .ly file processed on a LilyPond
;;  command line.  Every session gets to see a reasonably fresh state
;;  of LilyPond and should work independently from previous files.
;;
;;  Session management relies on cooperation, namely the user not
;;  trying to change variables and data structures internal to
;;  LilyPond.  It is not proof against in-place mo

Re: eps file

2021-09-02 Thread David Wright
On Thu 02 Sep 2021 at 07:07:15 (-0400), ming tsang wrote:
> Hi David Wright and Valentin Petzel:
> Thank you both for helping.
> I did a (#display version) + move the eps file to a directory does not
> contain space on the names.
> Here is the screen capture from frecobaldi v2.3.3.
> [image: image.png]

I would try using / instead of \ in the path specifications that you
use in filenames that are read by programs (ie LilyPond/Frescobaldi).
You might find that programs have been (sensibly) interpreting each \
as escaping the next character, and thereby generating a weird filename.

AIUI Windows is quite happy to use / as a path separator internally,
just not at the commandline. Microsoft's use of \ in DOS paths was a
well-intentioned hack that led to hell.

>From the "Processing C:…" message, I presume that the colon in C:
causes no trouble.

Cheers,
David.



Re: eps file

2021-09-02 Thread Valentin Petzel
Hello Ming,

David has correctly identified the problem. The Lilypond parser escapes guile 
string literals, so #"c:\U..." fails as \U is no escape sequence. So you need 
to escape each \ by writing \\ instead. As David has said, Lilypond might very 
well handle / instead of \.

Cheers,
Valentin

02.09.2021 14:50:52 ming tsang :

> Hi Valentin Petzel:
> Here is the file. I open the lily.scm with  miscrosoft notepad and save as. 
> Thank you very much Valentin and David for your patience and helpful hands. 
> Very much appreciated.
> Shalom,
> Ming.
>  
> 
> On Thu, Sep 2, 2021 at 7:37 AM Valentin Petzel  wrote:
>> Okay, the guile version looks fine. I'll try to look into this, can you 
>> please append the file
>> C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm[http://2]
>> 
>> just to be sure?
>> 
>> 02.09.2021 13:07:42 ming tsang :
>> 
>>> Hi David Wright and Valentin Petzel:
>>> Thank you both for helping.
>>> I did a (#display version) + move the eps file to a directory does not 
>>> contain space on the names.
>>> Here is the screen capture from frecobaldi v2.3.3.
>>> 
>>>  
>>> Shalom,
>>> Ming
>>> 
>>> On Wed, Sep 1, 2021 at 8:36 PM David Wright  
>>> wrote:
>>>> 
>>>> On Wed 01 Sep 2021 at 19:15:19 (-0400), ming tsang wrote:
>>>>  
>>>>> end of the lily code. I have no idea what "ice-9 format" is.
>>>>>     #"c:\User\yming tsang\Documents\SNIPPET\Untitled_draw-squibble-1.eps"
>>>> 
>>>>                 ↑↑↑ a "long" filename, and containing a space
>>>> 
>>>>> `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-o_s4xv8r/tmps19cuu1_/document.ly[http://document.ly]'
>>>> 
>>>>              a Microsoft hack to make a short filename without a 
>>>> space
>>>> 
>>>> 
>>>> Cheers,
>>>> David.
>>> 
>>> 
>>> --
>>> ming (lyndon) tsang
> 
> 
> --
> ming (lyndon) tsang


Re: eps file

2021-09-02 Thread Valentin Petzel
Hello Ming,

just to be sure, you need to replace each \ with \\, not just the first one. 
You want #"c:\\User\\yming 
tsang\\Documents\\SNIPPET\\Untitled_draw-squibble-1.eps"
in total.

02.09.2021 19:40:36 ming tsang :

> Hi Valentin & David,
> I just tried with \\U and error persists
> Shalom,
> Ming.
>  [cid:ii_kt37qzmo0###466x265:false###][image.png]
> 
> 
> On Thu, Sep 2, 2021 at 1:04 PM Valentin Petzel  wrote:
>> Hello Ming,
>> 
>> David has correctly identified the problem. The Lilypond parser escapes 
>> guile string literals, so #"c:\U..." fails as \U is no escape sequence. So 
>> you need to escape each \ by writing \\ instead. As David has said, Lilypond 
>> might very well handle / instead of \.
>> 
>> Cheers,
>> Valentin
>> 
>> 02.09.2021 14:50:52 ming tsang :
>> 
>>> Hi Valentin Petzel:
>>> Here is the file. I open the lily.scm with  miscrosoft notepad and save as. 
>>> Thank you very much Valentin and David for your patience and helpful hands. 
>>> Very much appreciated.
>>> Shalom,
>>> Ming.
>>>  
>>> 
>>> On Thu, Sep 2, 2021 at 7:37 AM Valentin Petzel  wrote:
>>>> Okay, the guile version looks fine. I'll try to look into this, can you 
>>>> please append the file
>>>> C:/LilyPond_2-23-3/usr/share/lilypond/current/scm/lily/lily.scm[http://2]
>>>> 
>>>> just to be sure?
>>>> 
>>>> 02.09.2021 13:07:42 ming tsang :
>>>> 
>>>>> Hi David Wright and Valentin Petzel:
>>>>> Thank you both for helping.
>>>>> I did a (#display version) + move the eps file to a directory does not 
>>>>> contain space on the names.
>>>>> Here is the screen capture from frecobaldi v2.3.3.
>>>>> 
>>>>>  
>>>>> Shalom,
>>>>> Ming
>>>>> 
>>>>> On Wed, Sep 1, 2021 at 8:36 PM David Wright  
>>>>> wrote:
>>>>>> …
>>>>>> …
>>>>> 
>>>>> 
>>>>> --
>>>>> ming (lyndon) tsang
>>> 
>>> 
>>> --
>>> ming (lyndon) tsang
> 
> 
> --
> ming (lyndon) tsang


Re: eps file

2021-09-02 Thread Valentin Petzel
Hello Ming.

I’ve noticed „yming tsang” is turned into „ymingt~1” in the path. From what 
I’ve tried through experimentation this is something done by Frescobaldi! 
(Lilypond works quite fine on such files with out the mangled names.)

This poses a problem if the filepath is used in formatting a string in guile, 
as ~... is used as placeholder. So at some point using epsfile require some 
sort of formatting, and then we get this error.

So we need to look into Frescobaldi, how frescobaldi handles filenames.

Cheers,
Valentin

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-02 Thread David Wright
On Thu 02 Sep 2021 at 14:14:12 (-0400), ming tsang wrote:

> I must have included the wrong screen print.
> Here is the right one.

Ah, I can replicate that:

$ lily /tmp/ming.
/home/david/lilypond-2.23.3-1.linux-64/bin/lilypond -dno-point-and-click 
--include=/home/david/LilyLib/ --include=/home/david/LilyLib/margins/ 
--include=/home/david/LilyLib/parts-midis/ ming.ly
GNU LilyPond 2.23.3
Processing `ming.ly'
Parsing...
ming.ly:1: warning: no \version statement found, please add

\version "2.23.3"

for future compatibility
/home/david/lilypond-2.23.3-1.linux-64/lilypond/usr/share/lilypond/current/scm/lily/stencil.scm:986:26:
 In procedure list-ref in expression (list-ref bbox 3):
/home/david/lilypond-2.23.3-1.linux-64/lilypond/usr/share/lilypond/current/scm/lily/stencil.scm:986:26:
 Wrong type argument in position 1: #f

ERROR

$ 

(I'm guessing there's something in the Windows version that loses a
line of stencil.scm somewhere.)

I took your original MWE and substituted some EPSs of "my own", a
perfect one, and one that is oddly malformed. The malformation makes
some programs refuse to display it, other groan but cooperate, but
ghostview opens it without a murmer. Here's a hex dump of the start
of the file:

$ hexdump -C ave/tex/logos/xmas018.eps | head -n 16
  c5 d0 d3 c6 1e 00 00 00  45 6d 00 00 00 00 00 00  |Em..|
0010  00 00 00 00 63 6d 00 00  90 4c 03 00 ff ff 25 21  |cm...L%!|
0020  50 53 2d 41 64 6f 62 65  2d 33 2e 30 20 45 50 53  |PS-Adobe-3.0 EPS|
0030  46 2d 33 2e 30 0d 0a 25  25 42 6f 75 6e 64 69 6e  |F-3.0..%%Boundin|
0040  67 42 6f 78 3a 20 33 30  20 31 39 38 20 35 38 38  |gBox: 30 198 588|
0050  20 35 38 35 20 0d 0a 25  25 4c 61 6e 67 75 61 67  | 585 ..%%Languag|
0060  65 4c 65 76 65 6c 3a 20  31 0d 0a 25 25 43 72 65  |eLevel: 1..%%Cre|
0070  61 74 6f 72 3a 20 43 6f  72 65 6c 44 52 41 57 20  |ator: CorelDRAW |
0080  31 32 0d 0a 25 25 54 69  74 6c 65 3a 20 58 4d 41  |12..%%Title: XMA|
0090  53 30 31 38 2e 65 70 73  0d 0a 25 25 43 72 65 61  |S018.eps..%%Crea|
00a0  74 69 6f 6e 44 61 74 65  3a 20 53 61 74 20 4e 6f  |tionDate: Sat No|
00b0  76 20 32 35 20 32 30 3a  34 34 3a 35 36 20 32 30  |v 25 20:44:56 20|
00c0  30 36 0d 0a 25 25 44 6f  63 75 6d 65 6e 74 50 72  |06..%%DocumentPr|
00d0  6f 63 65 73 73 43 6f 6c  6f 72 73 3a 20 43 79 61  |ocessColors: Cya|
00e0  6e 20 4d 61 67 65 6e 74  61 20 59 65 6c 6c 6f 77  |n Magenta Yellow|
00f0  20 42 6c 61 63 6b 20 0d  0a 25 25 44 6f 63 75 6d  | Black ..%%Docum|
$ 

So the file starts with 30 bytes of "garbage", which could be some
sort of header for some program of other. (The EPS is a piece of
clipart.)

Ah (again), I've just looked in more detail at the file. Buried under
the EPS layer is actually a TIFF image. So the program that groaned
waded through the PS part until it hit the II decimal42 TIFF header,
groaned some more about tags that it didn't understand, but happily
displayed the TIFF.

Upshot: at least try and find some test EPS file where the first
characters are something like:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 37 160 568 701
and see if that works.

Cheers,
David.



Re: eps file

2021-09-02 Thread Silvain Dupertuis
This change of name seems to bo what Windows does to convert long file names into the 8+3 
(very) old system limited to 8 lettres plus a three letters extension...


Le 02.09.21 à 20:58, Valentin Petzel a écrit :

Hello Ming.

I’ve noticed „yming tsang” is turned into „ymingt~1” in the path. From what
I’ve tried through experimentation this is something done by Frescobaldi!
(Lilypond works quite fine on such files with out the mangled names.)

This poses a problem if the filepath is used in formatting a string in guile,
as ~... is used as placeholder. So at some point using epsfile require some
sort of formatting, and then we get this error.

So we need to look into Frescobaldi, how frescobaldi handles filenames.

Cheers,
Valentin



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 


Re: eps file

2021-09-02 Thread Valentin Petzel
Yes, but why does this happen? This does not come from Windows, this comes 
from Frescobaldi. It is not linked to long paths, but to spaces in the path. I 
noticed that this only affects the temporary path, but not the filename.

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-02 Thread David Wright
On Thu 02 Sep 2021 at 17:57:18 (-0400), ming tsang wrote:

> I have replaced all / with //. And here is screen print.

No, you used backslashes. But when you do get round to trying
forward slashes, don't double them.

Anyway, my previous post was overcomplicated. On the basis that your
EPS image wasn't read correctly, I tried touching an empty file, and
found that I got exactly the same error message from stencil.scm:

$ ls -s /tmp/empty.eps 
0 /tmp/empty.eps
$ cat /tmp/ming.ly 
\markup {
  \general-align #Y #DOWN {
\epsfile #X #20 #"/tmp/empty.eps"
  }
}
$ lily /tmp/ming.
/home/david/lilypond-2.23.3-1.linux-64/bin/lilypond -dno-point-and-click 
--include=/home/david/LilyLib/ --include=/home/david/LilyLib/margins/ 
--include=/home/david/LilyLib/parts-midis/ ming.ly
GNU LilyPond 2.23.3
Processing `ming.ly'
Parsing...
ming.ly:1: warning: no \version statement found, please add

\version "2.23.3"

for future compatibility
/home/david/lilypond-2.23.3-1.linux-64/lilypond/usr/share/lilypond/current/scm/lily/stencil.scm:985:26:
 In procedure list-ref in expression (list-ref bbox 2):
/home/david/lilypond-2.23.3-1.linux-64/lilypond/usr/share/lilypond/current/scm/lily/stencil.scm:985:26:
 Wrong type argument in position 1: #f

ERROR

$ 

So once you've managed to fix the filename, the error above should
just go away.

Cheers,
David.



Re: eps file

2021-09-03 Thread Valentin Petzel
Hi Ming,
Have you already tried compiling from a saved document? As far as I can see 
this mangling only is done on unsaved documents. I can reproduce the issue 
with a path containing ~1, but only if the path to epsfile is absolute, and 
one on windows (on debian it just works fine).

I’m going to dive into the code of epsfile, maybe I’ll find something.
Cheers, Valentin

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-03 Thread Valentin Petzel
Or maybe I can’t. The format-specific error appears to not come from epsfile, 
but from the Lilypond parser, so this means that the input is not correct. 
This happes with \ instead of \\ or /.

From the list-ref error I gathered:
eps-file->stencil reads the eps, discards anything after the first null 
character, and then calculates the dimesions of the eps. These dimensions are 
then accessed by list-ref. Now, if calculating the bounds fails (probably 
because the file does not have valid postscript code) this returns #f, so all 
the list-refs fail.

So you might want to check if your eps-file is in fact a valid eps file. Can 
you attach the eps file you’re using?

Cheers,
Valentin

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-03 Thread Knute Snortum
--
Knute Snortum


On Fri, Sep 3, 2021 at 12:02 PM Valentin Petzel  wrote:
>
> Hello Ming,
>
> According to the error message: Are you sure your epsfile is in that path?
>
> If analyzed your eps-file and have found that it has some very weird bytes in
> the beginning (also containing some null-chars). This makes rendering the file
> a bit of a gamble, and it also means that Lilypond does not find any
> information in this file (as it stops at the first null char).
>
> So all these list-ref issues actually come from a malformed eps file. The eps
> file also has 5000 lines of junk in the end, which does not affect Lilypond,
> as Lilypond does not read further that the null char starting that stuff.
>
> I’ve fixed up the file (it now has less than half of its original size).
>
> To summarize:
> We’ve encounterd three kinds of issues:
> → The (ice-9 format)-issue, which happens if you use \ instead of / or \\
> → The "cannot find file”-issue, which happens because Lilypond cannot find
> your file, either because it is a relative path in an unsaved document, or
> because the file does not exist, or because you do not have read access or
> something
> → The list-ref/Wrong type argument issue that happes due to the bad eps file.
>
> So far we have resolved two of these issues, so it remains to solve the
> „cannot find file”-issue.
>
> Cheers,
> Valentin

I tried this on my Window 10 machine:

%%%
\version "2.23.3"
\markup {
  \general-align #Y #DOWN {
\epsfile #X #20 #"C:/Users/***/Downloads/new_pepsi_logo.eps"
  }
}
%%%

The logo displayed but I got this error:

Starting lilypond.exe 2.23.3 [eps-file-test.ly]...
Processing `C:/Users/***/Documents/LilyPond/Snippets/eps-file-test.ly'
Parsing...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `eps-file-test.pdf'...
warning: `(gs -q -dNODISPLAY -dNOSAFER -dALLOWPSTRANSPARENCY -dNOPAUSE
-dBATCH -dAutoRotatePages=/None -dPrinted=false ./tmp--tmp-577)'
failed (1)

fatal error: failed files:
"C:/Users/***/Documents/LilyPond/Snippets/eps-file-test.ly"
Exited with return code 1.



Re: eps file

2021-09-04 Thread WaiMing Tsang
Hi Silvain,Sorry it take me so long to response.  Thank you for the info. At this moment I am avoiding using spaces in folders that only involves with frecobaldi. Kntue  Snortum help created issue with frecobaldi.Thank again.Shalom,Ming  Sent from Mail for Windows 



Re: eps file

2021-09-04 Thread Knute Snortum
On Sat, Sep 4, 2021 at 6:17 AM WaiMing Tsang  wrote:
>
> Hi Silvain,
>
> Sorry it take me so long to response.  Thank you for the info. At this moment 
> I am avoiding using spaces in folders that only involves with frecobaldi. 
> Kntue  Snortum help created issue with frecobaldi.

Just for the record, I get the exact same error executing LilyPond
from the command line, so it's not Frescobaldi that's the problem.

--
Knute Snortum



Re: eps file

2021-09-04 Thread David Wright
On Fri 03 Sep 2021 at 21:00:40 (+0200), Valentin Petzel wrote:

> If analyzed your eps-file and have found that it has some very weird bytes in 
> the beginning (also containing some null-chars). This makes rendering the 
> file 
> a bit of a gamble, and it also means that Lilypond does not find any 
> information in this file (as it stops at the first null char).
> 
> So all these list-ref issues actually come from a malformed eps file. The eps 
> file also has 5000 lines of junk in the end, which does not affect Lilypond, 
> as Lilypond does not read further that the null char starting that stuff.

I took a look at the spec. The "junk" at the end, as I pointed out, is
a TIFF file. It's one of the four types of preview image allowed. When
you think about it (which I hadn't, because EPS files barely entered
any workflow of mine, years ago) wysiwyg people need an image to gaze
upon (TeX users are usually used to boxes), but they don't typically
have a PS interpreter built into the display program.

On account of Macs having a resource fork, PCs' EPS formats need an
indication of having a preview, and its location. The first four bytes
"c5 d0 d3 c6" is the correct magic to indicate this. The next byte is
the offset to %!PS-Adobe (leading zeroes following), and the rest is
lengths/offsets and a checksum (here,  ≡ ignore).

> I’ve fixed up the file (it now has less than half of its original size).
> 
> To summarize:
> We’ve encounterd three kinds of issues:
> → The (ice-9 format)-issue, which happens if you use \ instead of / or \\
> → The "cannot find file”-issue, which happens because Lilypond cannot find 
> your file, either because it is a relative path in an unsaved document, or 
> because the file does not exist, or because you do not have read access or 
> something
> → The list-ref/Wrong type argument issue that happes due to the bad eps file.
> 
> So far we have resolved two of these issues, so it remains to solve the 
> „cannot find file”-issue.

I would suggest that the OP rename the stripped file so that it is
easily distinguished from the larger version in the output.

I would also suggest filing a wishlist bug against LP, because it
would seem fairly straightforward for it to be able to handle EPS
files that contain preview images.

Cheers,
David.



Re: eps file

2021-09-04 Thread David Wright
On Thu 02 Sep 2021 at 08:58:21 (+0200), Valentin Petzel wrote:
> 
> For the relative problem: Note that if you do not save the file Frescobaldi 
> will save the file to a temporary location. This will change the working 
> directory to that temporary location.
> 
> So unless you have the directory of your file in the includes relative paths 
> you may only use relative paths with saved files.
> (It might be a good thing to do a bug report for Frescobaldi. In this 
> situation Frescobaldi might be expected to add the directory of the file to 
> the Lilypond includes).

I think it's clearer to write that you need "the full path" of your
file, rather than "the directory".

Having to write the full path into the unsaved source has the effect
of emphasising that these subsidiary files are compiled/included from
the *filesystem*. Having F~ handle all this automatically might leave
users with an impression that F~ is cleverer than it is, that it can
compile unsaved versions of included files (which I am led to believe
it can't).

> For your other error: That looks like a guile missconfiguration to me, or it 
> may be some fundamental error in what appears to be dir-basename.

I missed seeing another error reported.

> Try to run a file simply containing
> 
> #(display (version))
> 
> And check if the output contains a line like 1.8.8 at the end, or if there 
> are 
> different numbers.

I see lots of "1.8.7" in the OP's output. Is that wrong?

Cheers,
David.



Re: eps file

2021-09-04 Thread Valentin Petzel
Hello David,

No, that seems right. Lilypond is compiled against 1.8.7 on windows, and that 
makes no difference. I initially just thought that maybe it was compiled 
against the wrong guile version, which can lead to problems with specific 
functionality.

But we have determined that this issue (i.e. the format issue) comes from 
using unescaped \ in the Path, and it does come the parser.

For the other thing: This would be resolved if Frescobaldi were to add the 
path to the file into the lilypond include path when compiling such temporary 
files. I’ve filed a bug report against Frescobaldi suggesting such a thing.

Cheers,
Valentin

signature.asc
Description: This is a digitally signed message part.


Re: eps file

2021-09-05 Thread Valentin Petzel
Hello David,

It would not be hard to implement correct behaviour for this eps specification 
apart from how to exactly ensure that the bytes match up. The sensible thing 
would probably be to include functionality for lilypond to read a file into a 
byte array.

Cheers,
Valentin

signature.asc
Description: This is a digitally signed message part.


Re: EPS file

2013-06-04 Thread SoundsFromSound
Hi there,

I'm not sure what you mean.  If you have an EPS file and from there you wish
to split up anything, just select all, "UNGROUP", and then drag/lasso-select
/only/ your text; drag it onto a new page, etc. or any other approach you
desire.

HTH


Nikolay Kirov wrote
> Hello!
> 
> I have a specific question: How to split a EPS file, producing by LilyPond
> For example:
> http://nikolay.kirov.be/2010/folk/td_093_1_01.eps
> I would like to cut  the file horizontally to obtain 2 files - one for the
> text and one for the notes.
> 
> Can anybody help me?
> Nikolay
> -- 
> Nikolay Kirov Kirov
> http://www.math.bas.bg/~nkirov/
> http://nikolay.kirov.be/
> Office: (+359) 2 979 2850, 2 811 0611
> Home: (+359) 2 856 8627, 0887 198 221

> nkirov@

> 

> nkirov@.bas

> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user





-
composer | sound designer
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/EPS-file-tp146684p146685.html
Sent from the User mailing list archive at Nabble.com.

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


Re: EPS file

2013-06-04 Thread Mike Solomon
On 5 juin 2013, at 07:46, Nikolay Kirov  wrote:

> Hello!
> 
> I have a specific question: How to split a EPS file, producing by LilyPond  
> For example: 
> http://nikolay.kirov.be/2010/folk/td_093_1_01.eps
> I would like to cut  the file horizontally to obtain 2 files - one for the 
> text and one for the notes. 
> 
> Can anybody help me?
> Nikolay

You could write a little parser for the EPS file - one that keeps all of the 
text, and one that doesn't.

The text is in lines looking like, for example:

/TimesNewRomanPSMT 4.33691406 output-scale div selectfont
1.3657 0. /afii10079
1.1267 0. /afii10065
1.1609 0. /afii10067
3 print_glyphs

It always starts with /TimesNewRomanPSMT, has X glyphs, and then finishes with 
X print_glyphs.

Then, depending on how fancy you want to get, you can modify the bounding box 
to be more snug around either the text or the music.

Cheers,
MS___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


EPS file expression

2010-04-15 Thread Bernardo Barros
Hi there,

I'm trying to use the method \epsfile to make some of the symbols I need to
use.
Should I put the files in the same folder of the .ly file, shouldn't I?
I'm having this error:

Interpreting music...
Preprocessing graphical objects...
error: cannot find file: `circular-cheio.eps' (load path:
`/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')


HERE IS THE INPUT FILE

\version "2.12.3"
\paper {
  #(define dump-extents #t)

  indent = 0\mm
  line-width = 160\mm
  force-assignment = #""
  line-width = #(- line-width (* mm  3.00))
}
\layout {

}
{ c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }

Processing `teste.ly'
Parsing...
teste.ly:0: warning: no \version statement found, please add

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


including eps file

2006-05-29 Thread Orm Finnendahl
Hi,

In lilypond 2.8.4 I'm trying to attach an eps file above a staff with
the \epsfile markup command. the eps file gets included, but seems to
be anchored to the bottom of the page instead of being related to the
staff no matter how I change the parameters of the markup.

I attach the lilypond file with a normal text markup to indicate,
where the eps graphic should appear and the eps file itself. Replacing
line 14 by line 15 in the lilypond source includes the eps file
anchored to the bottom of the page.

gv displays the graphic correctly (rotated by 90 degrees).

Another related question: How can I find documentation on the possible
values for the "axis" parameter of \epsfile? I guess it is something
like "horizontal" or "vertical" coded into an integer, but which one
is coded how? I often stumble across such definitions desperately
trying to find some description of the possible values of parameters
and always hope there is some place in the documentation which I'm not
aware of (and haven't encountered yet).

--
Orm
\version "2.8.0"

\header {
tagline = "Musik gesetzt mit LilyPond (http://www.lilypond.org)"
}
\paper {
#(set-paper-size "a3")
}

solovioline = \relative c' {
\clef treble
\key c \major
    \time 4/4
 s32^\markup { \hspace#-9.5 \raise#5 "Bottom left corner of eps-file" }
% s32^\markup { \hspace#-9.5 \raise#5 \epsfile #1 #300 #"part_01.eps" }
c8[ d e f] g4 g4 a2 r2
}

\score {
<<
\set Score.proportionalNotationDuration = #(ly:make-moment 1 13)
\new Staff { \solovioline }
>>

\layout {
ragged-right = ##t 
}
\midi { \tempo 4=60 }
}



part_01.eps
Description: PostScript document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: eps file size

2012-08-05 Thread Nikolay Kirov
Hello!

LilyPond produces EPS files with sizes
 1MB (ba_001_1_07.eps) and
20MB (ba_001_1_05.eps)

[the files are in the zip: http://nikolay.kirov.be/2013/ba_001.zip]

using very similar source codes:
ba_001_1_07.ly and
ba_001_1_05.ly


>lilypond -dbackend=eps -o

GNU LilyPond 2.14.2

Is there any explanation?

Nikolay Kirov Kirov
-
http://www.math.bas.bg/~nkirov/
http://nikolay.kirov.be/
Office: (+359) 2 979 2850, 2 811 0611
Home: (+359) 2 856 8627, 0887 198 221
nki...@nbu.bg
nki...@math.bas.bg


ba_001_1_07.ly
Description: Binary data


ba_001_1_05.ly
Description: Binary data


td-preamble.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: eps file size

2012-08-10 Thread Werner LEMBERG

> I don't have 2.14.2 around, but the current version (2.15.43) yields
> to
> 
> $ ls -l ba*.eps
> -rw-rw-r-- 1 marc marc 950448 Aug 10 22:48 ba_001_1_05.eps
> -rw-rw-r-- 1 marc marc 875912 Aug 10 22:48 ba_001_1_07.eps
> 
> I don't know where the 20MB come from...

I suspect that one glyph or character was missing in a font somehow,
and fontconfig used a fallback font, which often is a CJK font, thus
the huge size.

Please bear in mind that EPS files as produced by LilyPond should be
run through ps2pdf to reduce the size *enormously* since LilyPond
doesn't do font subsetting.  Normally, even a 20MByte EPS condenses to
just a few kByte.


Werner

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


Re: EPS file expression

2010-04-15 Thread Graham Percival
(sorry, forgot to send to the list)

Yes, the eps file must be in the same directory as the ly file.
Double-check that you have the right filename, and if you're on
certain operating systems, double-check that you have the correct
capitalization.  (in particular, watch out for eps vs. EPS)

Cheers,
- Graham


On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros
 wrote:
> Hi there,
>
> I'm trying to use the method \epsfile to make some of the symbols I need to
> use.
> Should I put the files in the same folder of the .ly file, shouldn't I?
> I'm having this error:
>
> Interpreting music...
> Preprocessing graphical objects...
> error: cannot find file: `circular-cheio.eps' (load path:
> `/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')
>
>
> HERE IS THE INPUT FILE
> \version "2.12.3"
> \paper {
>   #(define dump-extents #t)
>
>   indent = 0\mm
>   line-width = 160\mm
>   force-assignment = #""
>   line-width = #(- line-width (* mm  3.00))
> }
> \layout {
>
> }
> { c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }
>
> Processing `teste.ly'
> Parsing...
> teste.ly:0: warning: no \version statement found, please add
>
> \version "2.12.3"
>
>
> ___
> 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: EPS file expression

2010-04-15 Thread Mats Bengtsson

Quoting Graham Percival :


(sorry, forgot to send to the list)

Yes, the eps file must be in the same directory as the ly file.


Or, perhaps, it's rather that it has to be in the working directory
where you run the lilypond command. Don't know how it works if you for
example double-click on a file in Windows to process it.

  /Mats


Double-check that you have the right filename, and if you're on
certain operating systems, double-check that you have the correct
capitalization.  (in particular, watch out for eps vs. EPS)

Cheers,
- Graham


On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros
 wrote:

Hi there,

I'm trying to use the method \epsfile to make some of the symbols I need to
use.
Should I put the files in the same folder of the .ly file, shouldn't I?
I'm having this error:

Interpreting music...
Preprocessing graphical objects...
error: cannot find file: `circular-cheio.eps' (load path:
`/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')


HERE IS THE INPUT FILE
\version "2.12.3"
\paper {
  #(define dump-extents #t)

  indent = 0\mm
  line-width = 160\mm
  force-assignment = #""
  line-width = #(- line-width (* mm  3.00))
}
\layout {

}
{ c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }

Processing `teste.ly'
Parsing...
teste.ly:0: warning: no \version statement found, please add

\version "2.12.3"


___
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







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


Re: EPS file expression

2010-04-15 Thread Bernardo Barros
I got this other kind of error for this code ("Wrong type argument in
position 1: #f")

{ c''4-\markup { \epsfile #X #10 #"seta_normal.eps" } }

ERROR:

Processing `eps.ly'
Parsing...
eps.ly:0: warning: no \version statement found, please add
Preprocessing graphical
objects.../Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
In procedure list-ref in expression (list-ref bbox 2):
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
Wrong type argument in position 1: #f

Error generating PDF file.
On 15 April 2010 13:00, Mats Bengtsson  wrote:
>
> Quoting Graham Percival :
>
>> (sorry, forgot to send to the list)
>>
>> Yes, the eps file must be in the same directory as the ly file.
>
> Or, perhaps, it's rather that it has to be in the working directory where
you run the lilypond command. Don't know how it works if you for example
double-click on a file in Windows to process it.
>
>  /Mats
>
>> Double-check that you have the right filename, and if you're on
>> certain operating systems, double-check that you have the correct
>> capitalization.  (in particular, watch out for eps vs. EPS)
>>
>> Cheers,
>> - Graham
>>
>>
>> On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros
>>  wrote:
>>>
>>> Hi there,
>>>
>>> I'm trying to use the method \epsfile to make some of the symbols I need
to
>>> use.
>>> Should I put the files in the same folder of the .ly file, shouldn't I?
>>> I'm having this error:
>>>
>>> Interpreting music...
>>> Preprocessing graphical objects...
>>> error: cannot find file: `circular-cheio.eps' (load path:
>>>
`/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')
>>>
>>>
>>> HERE IS THE INPUT FILE
>>> \version "2.12.3"
>>> \paper {
>>>   #(define dump-extents #t)
>>>
>>>   indent = 0\mm
>>>   line-width = 160\mm
>>>   force-assignment = #""
>>>   line-width = #(- line-width (* mm  3.00))
>>> }
>>> \layout {
>>>
>>> }
>>> { c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }
>>>
>>> Processing `teste.ly'
>>> Parsing...
>>> teste.ly:0: warning: no \version statement found, please add
>>>
>>> \version "2.12.3"
>>>
>>>
>>> ___
>>> 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
>>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: EPS file expression

2010-04-16 Thread Mats Bengtsson



Bernardo Barros wrote:

Interesting thing..

I made the image with PhotoLine (Mac) and i got the error. 
Now I opened with InkScape and saved again and now the image appears 
in the pdf...
You are not the first one to report problems with the \epsfile function, 
which seems to work well for certain kind of EPS files but not for 
others. I seem to remember that I briefly looked into the implementation 
a number of years back and that it was done exactly according to the 
recommendations I could find on the internet. If anybody is an expert in 
Postscript, here's something to look into.


   /Mats




On 16 April 2010 01:10, <mailto:nick.pa...@internode.on.net>> wrote:



Have you tried with another eps file? I tried your exact code,
just substituting another eps file I had on hand, and it builds
without error:

\version "2.13.17"

{ c''4-\markup { \epsfile #X #10 #"Bach_BWV1003_andante.eps" } }

Nick


On Fri 16/04/10 8:24 AM , Bernardo Barros
bernardobarr...@gmail.com <mailto:bernardobarr...@gmail.com> sent:

I got this other kind of error for this code ("Wrong type
argument in position 1: #f")

{ c''4-\markup { \epsfile #X #10 #"seta_normal.eps" } } 


ERROR:

Processing `eps.ly <http://eps.ly>'
Parsing...
eps.ly:0 <http://eps.ly:0>: warning: no \version statement
found, please add
Preprocessing graphical

objects.../Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
In procedure list-ref in expression (list-ref bbox 2):

/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
Wrong type argument in position 1: #f

Error generating PDF file.
On 15 April 2010 13:00, Mats Bengtsson
 wrote:
>
> Quoting Graham Percival :
>
>> (sorry, forgot to send to the list)
>>
>> Yes, the eps file must be in the same directory as the ly file.
>
> Or, perhaps, it's rather that it has to be in the working
directory where you run the lilypond command. Don't know how
it works if you for example double-click on a file in Windows
to process it.
>
>  /Mats
>
>> Double-check that you have the right filename, and if you're on
>> certain operating systems, double-check that you have the
correct
>> capitalization.  (in particular, watch out for eps vs. EPS)
>>
>> Cheers,
>> - Graham
>>
>>
>> On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros
>>  wrote:
>>>
>>> Hi there,
>>>
>>> I'm trying to use the method \epsfile to make some of the
symbols I need to
>>> use.
>>> Should I put the files in the same folder of the .ly file,
shouldn't I?
>>> I'm having this error:
>>>
>>> Interpreting music...
>>> Preprocessing graphical objects...
>>> error: cannot find file: `circular-cheio.eps' (load path:
>>>

`/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')
>>>
>>>
>>> HERE IS THE INPUT FILE
>>> \version "2.12.3"
>>> \paper {
>>>   #(define dump-extents #t)
>>>
>>>   indent = 0\mm
>>>   line-width = 160\mm
>>>   force-assignment = #""
>>>   line-width = #(- line-width (* mm  3.00))
>>> }
>>> \layout {
>>>
>>> }
>>> { c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }
>>>
>>> Processing `teste.ly <http://teste.ly>'
>>> Parsing...
>>> teste.ly:0 <http://teste.ly:0>: warning: no \version
statement found, please add
>>>
>>> \version "2.12.3"
>>>
>>>
>>> _

Re: \eps-file error

2016-08-29 Thread Graham King
On Mon, 2016-08-29 at 18:15 +0200, Federico Bruni wrote:

> \version "2.19.46"
> \markup {
>   \eps-file #X #0 #"test.eps"
> }
> 

\eps-file should be \epsfile (no dash).  After that, test.eps throws an
error on my system, but your mileage may vary.

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


Re: \eps-file error

2016-08-29 Thread David Kastrup
Federico Bruni  writes:

> What's wrong with the following code?
>
> \version "2.19.46"
> \markup {
>  \eps-file #X #0 #"test.eps"
> }
>
> Find attached the EPS file.
>
> Here's the error:
>
> Processing `/tmp/eps-test.ly'
> Parsing...
> /tmp/eps-test.ly:3:3: error: unknown escaped string: `\eps-file'
> \eps-file #X #0 #"test.eps"
> /tmp/eps-test.ly:3:13: error: not a markup
> \eps-file
> #X #0 #"test.eps"
> /tmp/eps-test.ly:3:16: error: not a markup
> \eps-file #X
> #0 #"test.eps"
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `/tmp/lilypond-BGAhyU'...
> Converting to `eps-test.pdf'...
> fatal error: failed files: "/tmp/eps-test.ly"

It's \epsfile rather than \eps-file ?

-- 
David Kastrup

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


Re: \eps-file error

2016-08-30 Thread Federico Bruni
Il giorno lun 29 ago 2016 alle 18:32, Graham King 
 ha scritto:

On Mon, 2016-08-29 at 18:15 +0200, Federico Bruni wrote:

\version "2.19.46"
\markup {
  \eps-file #X #0 #"test.eps"
}

\eps-file should be \epsfile (no dash).  After that, test.eps throws 
an error on my system, but your mileage may vary.


You are right, I misread the doc.
It didn't work because I set the size to 0 (in my mind it was the X 
position.. definitely I had reading problems yesterday). So this works:


\markup {
 \epsfile #X #20 #"test.eps"
}

I'm curious to know: what's the unit of the size? (in this case #20)


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


Re: \eps-file error

2016-08-30 Thread Pierre Perol-Schneider
Hi Federico,

The unit is the same as in markups command.
Try :

\version "2.19.46"

\markuplist {
  \epsfile #X #20 #"test.eps"
  \override #'(thickness . 5)
  \draw-line #'(20 . 0)
}

HTH,
Pierre

2016-08-30 17:18 GMT+02:00 Federico Bruni :

> Il giorno lun 29 ago 2016 alle 18:32, Graham King <
> graham.k...@tremagi.org.uk> ha scritto:
>
>> On Mon, 2016-08-29 at 18:15 +0200, Federico Bruni wrote:
>>
>>> \version "2.19.46"
>>> \markup {
>>>   \eps-file #X #0 #"test.eps"
>>> }
>>>
>>> \eps-file should be \epsfile (no dash).  After that, test.eps throws an
>> error on my system, but your mileage may vary.
>>
>
> You are right, I misread the doc.
> It didn't work because I set the size to 0 (in my mind it was the X
> position.. definitely I had reading problems yesterday). So this works:
>
> \markup {
>  \epsfile #X #20 #"test.eps"
> }
>
> I'm curious to know: what's the unit of the size? (in this case #20)
>
>
>
> ___
> 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


Re: \eps-file error

2016-08-30 Thread Federico Bruni

Ok, thanks!

Il giorno mar 30 ago 2016 alle 18:24, Pierre Perol-Schneider 
 ha scritto:

Hi Federico,

The unit is the same as in markups command.
Try :

\version "2.19.46"

\markuplist {
  \epsfile #X #20 #"test.eps"
  \override #'(thickness . 5)
  \draw-line #'(20 . 0)
}

HTH,
Pierre

2016-08-30 17:18 GMT+02:00 Federico Bruni :
Il giorno lun 29 ago 2016 alle 18:32, Graham King 
 ha scritto:

On Mon, 2016-08-29 at 18:15 +0200, Federico Bruni wrote:

\version "2.19.46"
\markup {
  \eps-file #X #0 #"test.eps"
}

\eps-file should be \epsfile (no dash).  After that, test.eps 
throws an error on my system, but your mileage may vary.


You are right, I misread the doc.
It didn't work because I set the size to 0 (in my mind it was the X 
position.. definitely I had reading problems yesterday). So this 
works:


\markup {
 \epsfile #X #20 #"test.eps"
}

I'm curious to know: what's the unit of the size? (in this case #20)



___
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


Re: including eps file

2006-05-29 Thread Han-Wen Nienhuys

Orm Finnendahl schreef:

Hi,

In lilypond 2.8.4 I'm trying to attach an eps file above a staff with
the \epsfile markup command. the eps file gets included, but seems to
be anchored to the bottom of the page instead of being related to the
staff no matter how I change the parameters of the markup.


Strange, I can't really get anything to appear. Are you sure that this 
is a bonafide EPS file?  If in doubt, try with a normal EPS (eg. a PNG 
converted to EPS with convert or similar.)



I attach the lilypond file with a normal text markup to indicate,
where the eps graphic should appear and the eps file itself. Replacing
line 14 by line 15 in the lilypond source includes the eps file
anchored to the bottom of the page.

gv displays the graphic correctly (rotated by 90 degrees).

Another related question: How can I find documentation on the possible
values for the "axis" parameter of \epsfile? I guess it is something
like "horizontal" or "vertical" coded into an integer, but which one


X = 0 ,  Y = 1

--

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: including eps file

2006-05-30 Thread Orm Finnendahl
Am 30. Mai 2006, 02:45 Uhr (+0200) schrieb Han-Wen Nienhuys:
> 
> Strange, I can't really get anything to appear.

Did you scroll down all the way to the bottom of the page? In the code
example only the eps gets displayed without the staff system (which
probably is shifted off the page).

> Are you sure that this 
> is a bonafide EPS file?  

I'm not sure as the file got generated by a selfmade lisp program, but
it gets opened and displayed by ghostview, Illustrator, Finale and
gimp without errors or warnings and convert doesn't complain
either. The postscript code is fairly straightforward, but I'm by no
means a postscript expert.

> If in doubt, try with a normal EPS (eg. a PNG converted to EPS with
> convert or similar.)

I did that just to be sure. Now lilypond gives the following error:


Compilation started at Tue May 30 10:01:58

lilypond -f pdf /home/orm/work/kompositionen/violine/lilypond/k_g01.ly
GNU LilyPond 2.8.0
Processing `/home/orm/work/kompositionen/violine/lilypond/k_g01.ly'
Parsing...
Interpreting music... [1]
Preprocessing graphical objects... 
Calculating line breaks... [2]
Interpreting music... 
MIDI output to `k_g01.midi'...
Track... 
Calculating page breaks...
Layout output to `k_g01.ps'...
Converting to `k_g01.pdf'...
`gs -q  -dSAFER  -dCompatibilityLevel=1.4  -sPAPERSIZE="a3" -dNOPAUSE -dBATCH 
-r1200  -sDEVICE=pdfwrite -sOutputFile="k_g01.pdf" -c .setpdfwrite -f 
"k_g01.ps"' failed (256)
error: failed files: "/home/orm/work/kompositionen/violine/lilypond/k_g01.ly"

Compilation exited abnormally with code 1 at Tue May 30 10:02:01
---

> X = 0 ,  Y = 1

Thanks. That means, if aligned along the horizontal axis (parallel to
the staff system), the syntax should be:

\epsfile #0 #5 #"part01.eps"

right?

--
Orm


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


Re: including eps file

2006-05-30 Thread Mats Bengtsson

Quoting Orm Finnendahl <[EMAIL PROTECTED]>:


Am 30. Mai 2006, 02:45 Uhr (+0200) schrieb Han-Wen Nienhuys:

Are you sure that this
is a bonafide EPS file?


I'm not sure as the file got generated by a selfmade lisp program, but
it gets opened and displayed by ghostview, Illustrator, Finale and
gimp without errors or warnings and convert doesn't complain
either. The postscript code is fairly straightforward, but I'm by no
means a postscript expert.


One thing I noticed is that you set the bounding box to include lots of 
whitespace, which probably explains why it fills the whole page

and shifts the music off the page.



If in doubt, try with a normal EPS (eg. a PNG converted to EPS with
convert or similar.)


I did that just to be sure. Now lilypond gives the following error:


Compilation started at Tue May 30 10:01:58

lilypond -f pdf /home/orm/work/kompositionen/violine/lilypond/k_g01.ly
GNU LilyPond 2.8.0
Processing `/home/orm/work/kompositionen/violine/lilypond/k_g01.ly'
Parsing...
Interpreting music... [1]
Preprocessing graphical objects...
Calculating line breaks... [2]
Interpreting music...
MIDI output to `k_g01.midi'...
Track...
Calculating page breaks...
Layout output to `k_g01.ps'...
Converting to `k_g01.pdf'...
`gs -q  -dSAFER  -dCompatibilityLevel=1.4  -sPAPERSIZE="a3" -dNOPAUSE 
-dBATCH -r1200  -sDEVICE=pdfwrite -sOutputFile="k_g01.pdf" -c 
.setpdfwrite -f "k_g01.ps"' failed (256)

error: failed files: "/home/orm/work/kompositionen/violine/lilypond/k_g01.ly"

Compilation exited abnormally with code 1 at Tue May 30 10:02:01
---


It seems that you used an EPS file that caused even larger problems, 
since ghostscript failed.



X = 0 ,  Y = 1


Thanks. That means, if aligned along the horizontal axis (parallel to
the staff system), the syntax should be:

\epsfile #0 #5 #"part01.eps"

right?


You can actually say

\epsfile #X ...

which is easier to remember.

  /Mats



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


Re: including eps file

2006-05-30 Thread Han-Wen Nienhuys

Orm Finnendahl schreef:


`gs -q  -dSAFER  -dCompatibilityLevel=1.4  -sPAPERSIZE="a3" -dNOPAUSE -dBATCH -r1200  
-sDEVICE=pdfwrite -sOutputFile="k_g01.pdf" -c .setpdfwrite -f "k_g01.ps"' failed (256)
error: failed files: "/home/orm/work/kompositionen/violine/lilypond/k_g01.ly"

Compilation exited abnormally with code 1 at Tue May 30 10:02:01


Use --verbose to get more info.


---


X = 0 ,  Y = 1


Thanks. That means, if aligned along the horizontal axis (parallel to
the staff system), the syntax should be:

\epsfile #0 #5 #"part01.eps"


the axis is not about alignment, but rather about which dimension should 
be scaled to the 2nd argument.


Use #X for #0 , as it's clearer.

--

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: including eps file

2006-05-30 Thread Orm Finnendahl
Am 30. Mai 2006, 11:52 Uhr (+0200) schrieb Mats Bengtsson:
> 
> One thing I noticed is that you set the bounding box to include lots of 
> whitespace, which probably explains why it fills the whole page
> and shifts the music off the page.

I don't think so. The bounding box is a4 landscape wide (842) and 190
eps units high. That encloses the picture without any white space (at
least in my gv, gimp and convert renderings).

--
Orm


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


Re: including eps file

2006-05-30 Thread Mats Bengtsson

Orm Finnendahl wrote:


Am 30. Mai 2006, 11:52 Uhr (+0200) schrieb Mats Bengtsson:
 

One thing I noticed is that you set the bounding box to include lots of 
whitespace, which probably explains why it fills the whole page

and shifts the music off the page.
   



I don't think so. The bounding box is a4 landscape wide (842) and 190
eps units high. That encloses the picture without any white space (at
least in my gv, gimp and convert renderings).
 


Right! I'm not so used to GSView, which has the only
postscript viewer I happened to have available at the moment,
so I draw the wrong conclusions.

  /Mats


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


Re: including eps file

2006-05-31 Thread Orm Finnendahl
Hi,

I still couldn't get anywhere concerning the eps issue. I tried to
post the eps file which caused the error to the list, but since it is
a bitmap, it's too huge for the list. I also don't think it helps
trying to solve the lilypond error using a bitmap eps which will not
get used anyway.

Can anybody send an example of a markup using an eps file with
postscript drawing routines (e.g. a horizontal line running parallel
to the staff) and attach the eps file as well?

I'm sure I could get my files adapted once a working example is found.

--
Orm


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


Re: including eps file

2006-05-31 Thread Han-Wen Nienhuys

Orm Finnendahl schreef:

Hi,

I still couldn't get anywhere concerning the eps issue. I tried to
post the eps file which caused the error to the list, but since it is
a bitmap, it's too huge for the list. I also don't think it helps
trying to solve the lilypond error using a bitmap eps which will not
get used anyway.

Can anybody send an example of a markup using an eps file with
postscript drawing routines (e.g. a horizontal line running parallel
to the staff) and attach the eps file as well?

I'm sure I could get my files adapted once a working example is found.


see http://lilypond.org/~hanwen/eps-demo.zip

--

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: including eps file

2006-05-31 Thread martial


view this article : 

http://article.gmane.org/gmane.comp.gnu.lilypond.general/18308/match=eps+issue



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


Re: including eps file

2006-05-31 Thread martial

> view this article : 
> http://article.gmane.org/gmane.comp.gnu.lilypond.general/18308/match=eps+issue

with the new syntaxe 

in use  :  \markup { \epsfile #X #size #"my_image.eps" }

this  zipfile is in the actual syntaxe 
http://cathemline.org/lily/eps_image.zip



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


Re: including eps file

2006-06-01 Thread Orm Finnendahl
Hi Han-Wen,

Am 31. Mai 2006, 13:38 Uhr (+0200) schrieb Han-Wen Nienhuys:
>
> see http://lilypond.org/~hanwen/eps-demo.zip
>

I can't get the barlow.ly example to compile. the log file is
attached. gs version is 8.15.2 on my machine.

--
Orm





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


Re: including eps file

2006-06-01 Thread Orm Finnendahl
Hi Han-Wen,

sorry, forgot the attachment...

Am 31. Mai 2006, 13:38 Uhr (+0200) schrieb Han-Wen Nienhuys:
>
> see http://lilypond.org/~hanwen/eps-demo.zip
>

I can't get the barlow.ly example to compile. the log file is
attached. gs version is 8.15.2 on my machine.

--
Orm





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
GPL Ghostscript 8.50 (2005-12-31)
Copyright (C) 2005 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
WARNING: /Unicode /Decoding resource is not accessible but it is useful for 
generating ToUnicode CMap.
Can't find (or can't open) font file n021003l.pfb.
Can't find (or can't open) font file 
/usr/local/lilypond/usr/share/ghostscript/8.50/Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file 
/usr/local/lilypond/usr/share/ghostscript/8.50/Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Querying operating system for font files...
Didn't find this font on the system!
Substituting font Courier for NimbusRomNo9L-Regu.
Can't find (or can't open) font file n022003l.pfb.
Can't find (or can't open) font file 
/usr/local/lilypond/usr/share/ghostscript/8.50/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Can't find (or can't open) font file 
/usr/local/lilypond/usr/share/ghostscript/8.50/Resource/Font/NimbusMonL-Regu.
Can't find (or can't open) font file NimbusMonL-Regu.
Didn't find this font on the system!
Unable to substitute for font.
Error: /invalidfont in findfont
Operand stack:
   Times-Roman   Font   Times-Roman   739153   Times-Roman   --nostringval--   
Times-Roman   NimbusRomNo9L-Regu   Courier   NimbusMonL-Regu
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   
%oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push   
--nostringval--   --nostringval--   1   5   %oparray_pop   2   5   %oparray_pop 
  --nostringval--   --nostringval--   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   5   6   %oparray_pop   
--nostringval--   --nostringval--   --nostringval--   1   -1   1   
--nostringval--   %for_neg_int_continue
Dictionary stack:
   --dict:1124/1686(ro)(G)--   --dict:0/20(G)--   --dict:133/200(L)--   
--dict:133/200(L)--   --dict:133/200(L)--   --dict:17/17(ro)(G)--   
--dict:1124/1686(ro)(G)--
Current allocation mode is local
Last OS error: 2
Current file position is 373825
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: including eps file

2006-06-01 Thread Han-Wen Nienhuys

Orm Finnendahl schreef:

Hi Han-Wen,

sorry, forgot the attachment...

Am 31. Mai 2006, 13:38 Uhr (+0200) schrieb Han-Wen Nienhuys:

see http://lilypond.org/~hanwen/eps-demo.zip



I can't get the barlow.ly example to compile. the log file is
attached. gs version is 8.15.2 on my machine.



Can you view the PS file with your regular GS ?

The GS error you get is from our bundled GS, which doesn't have a 
Times-Roman font.


--

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


generate eps file from frecobaldi

2022-05-31 Thread WaiMing Tsang
Hi lilyponders: To produce ‘EPS’ images;lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly How ro run the above from frecobaldi v3.13?  I do not know how to use command line with lilypond. Thank you for the help, Shalom,Ming Sent from Mail for Windows 



Single EPS file trimmed output

2022-12-29 Thread Mauro

Dear all,

I have a large repository of scores which are currently being built as 
eps documents using the following command:


lilypond -E -dno-gs-load-fonts -dinclude-eps-fonts file.ly

This command, up to version 2.22, generates a single eps file (file.eps) 
trimmed down to just the size of the score.


I recently upgraded from lilypond 2.22.2 to 2.24.0 and the same command 
now produces a full-page output. After searching the lists and the 
documentation, I understand that I have to set 'use-paper-size-for-page' 
to false in order to get a trimmed down output, but I do not understand 
how to get a single eps file.


I have tried different combinations of command line args. I am only able 
to generate two output files (file.eps and file-1.eps), both of them 
identical and trimmed down, with the following command:


lilypond -E -dno-gs-load-fonts -dinclude-eps-fonts 
-dno-use-paper-size-for-page demo.ly


Is this how it is supposed to work? Why is lilypond generating a second 
identical file with -1 suffix?


I could easily remove the second file (file-1.eps) in my build chain, 
but I wonder if I am missing something.


Thanks,

Mauro Levra


PS: Here is a tiny example:

\version "2.22.0"
% Set a custom size with the width I am
% interested in and hypothetical maximum height.
#(set! paper-alist (cons '("my size" . (cons (* 100 mm) (* 300 mm))) 
paper-alist))

\header { tagline = ##f }
\paper {
  #(set-paper-size "my size")
  #(define bottom-margin (* 0 cm))
  #(define left-margin (* 0 mm))
  #(define after-title-space (* 0 cm))
  #(define right-margin (* 0 cm))
  #(define top-margin (* 0 cm))
  #(define line-width (* 100 mm ))
}
\score{
  \relative c' { c4 d e2 | f4 g e2 | }
  \layout {
indent = #0
ragged-right = ##f
ragged-last = ##f
  }
}



Re: Fwd: eps file size

2012-08-10 Thread Marc Hohl

Am 06.08.2012 07:26, schrieb Nikolay Kirov:

Hello!

LilyPond produces EPS files with sizes
  1MB (ba_001_1_07.eps) and
20MB (ba_001_1_05.eps)

[the files are in the zip: http://nikolay.kirov.be/2013/ba_001.zip]

using very similar source codes:
ba_001_1_07.ly and
ba_001_1_05.ly



lilypond -dbackend=eps -o

GNU LilyPond 2.14.2

Is there any explanation?

I don't have 2.14.2 around, but the current version (2.15.43) yields to

$ ls -l ba*.eps
-rw-rw-r-- 1 marc marc 950448 Aug 10 22:48 ba_001_1_05.eps
-rw-rw-r-- 1 marc marc 875912 Aug 10 22:48 ba_001_1_07.eps

I don't know where the 20MB come from...

Regards,

Marc



Nikolay Kirov Kirov
-
http://www.math.bas.bg/~nkirov/
http://nikolay.kirov.be/
Office: (+359) 2 979 2850, 2 811 0611
Home: (+359) 2 856 8627, 0887 198 221
nki...@nbu.bg
nki...@math.bas.bg


___
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


Re: Re: EPS file expression

2010-04-15 Thread nick . payne
  
 Have you tried with another eps file? I tried your exact code, just 
substituting another eps file I had on hand, and it builds without 
error: 
 
 version "2.13.17" 
 
 { c''4-markup { epsfile #X #10 #"Bach_BWV1003_andante.eps" } }  
 
 Nick 
 
 On Fri 16/04/10 8:24 AM , Bernardo Barros bernardobarr...@gmail.com 
sent: 
 I got this other kind of error for this code ("Wrong type argument in 
position 1: #f") 
 { c''4-markup { epsfile #X #10 #"seta_normal.eps" } }  
 ERROR:  
 Processing `eps.ly [1]' 
 Parsing... 
 eps.ly:0 [2]: warning: no version statement found, please add 
 Preprocessing graphical 
objects.../Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
 
In procedure list-ref in expression (list-ref bbox 2): 
 
/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
 
Wrong type argument in position 1: #f 
 
 Error generating PDF file. 
 On 15 April 2010 13:00, Mats Bengtsson  wrote: 
 > 
 > Quoting Graham Percival : 
 > 
 >> (sorry, forgot to send to the list) 
 >> 
 >> Yes, the eps file must be in the same directory as the ly file. 
 > 
 > Or, perhaps, it's rather that it has to be in the working directory 
where you run the lilypond command. Don't know how it works if you for 
example double-click on a file in Windows to process it. 
 > 
 > /Mats 
 > 
 >> Double-check that you have the right filename, and if you're on 
 >> certain operating systems, double-check that you have the correct 
 >> capitalization. (in particular, watch out for eps vs. EPS) 
 >> 
 >> Cheers, 
 >> - Graham 
 >> 
 >> 
 >> On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros 
 >>  wrote: 
 >>> 
 >>> Hi there, 
 >>> 
 >>> I'm trying to use the method epsfile to make some of the symbols 
I need to 
 >>> use. 
 >>> Should I put the files in the same folder of the .ly file, 
shouldn't I? 
 >>> I'm having this error: 
 >>> 
 >>> Interpreting music... 
 >>> Preprocessing graphical objects... 
 >>> error: cannot find file: `circular-cheio.eps' (load path: 
 >>> 
`/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')
 
 >>> 
 >>> 
 >>> HERE IS THE INPUT FILE 
 >>> version "2.12.3" 
 >>> paper { 
 >>> #(define dump-extents #t) 
 >>> 
 >>> indent = 0mm 
 >>> line-width = 160mm 
 >>> force-assignment = #"" 
 >>> line-width = #(- line-width (* mm 3.00)) 
 >>> } 
 >>> layout { 
 >>> 
 >>> } 
 >>> { c'4-markup { epsfile #X #10 #"circular-cheio.eps" } } 
 >>> 
 >>> Processing `teste.ly [3]' 
 >>> Parsing... 
 >>> teste.ly:0 [4]: warning: no version statement found, please add 
 >>> 
 >>> version "2.12.3" 
 >>> 
 >>> 
 >>> ___ 
 >>> lilypond-user mailing list 
 >>> lilypond-user@gnu.org 
 >>> http://lists.gnu.org/mailman/listinfo/lilypond-user [5] 
 >>> 
 >>> 
 >> 
 >> 
 >> ___ 
 >> lilypond-user mailing list 
 >> lilypond-user@gnu.org 
 >> http://lists.gnu.org/mailman/listinfo/lilypond-user [6] 
 >> 
 > 
 > 
 > 
 
   
 
Links: 
-- 
[1] http://eps.ly 
[2] http://eps.ly:0 
[3] http://teste.ly 
[4] http://teste.ly:0 
[5] http://lists.gnu.org/mailman/listinfo/lilypond-user 
[6] 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: Re: EPS file expression

2010-04-16 Thread Bernardo Barros
Interesting thing..

I made the image with PhotoLine (Mac) and i got the error.
Now I opened with InkScape and saved again and now the image appears in the
pdf...



On 16 April 2010 01:10,  wrote:

>
> Have you tried with another eps file? I tried your exact code, just
> substituting another eps file I had on hand, and it builds without error:
>
> \version "2.13.17"
>
> { c''4-\markup { \epsfile #X #10 #"Bach_BWV1003_andante.eps" } }
>
> Nick
>
>
> On Fri 16/04/10 8:24 AM , Bernardo Barros bernardobarr...@gmail.com sent:
>
> I got this other kind of error for this code ("Wrong type argument in
> position 1: #f")
>
> { c''4-\markup { \epsfile #X #10 #"seta_normal.eps" } }
>
> ERROR:
>
> Processing `eps.ly'
> Parsing...
> eps.ly:0: warning: no \version statement found, please add
> Preprocessing graphical
> objects.../Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
> In procedure list-ref in expression (list-ref bbox 2):
> /Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm/stencil.scm:377:26:
> Wrong type argument in position 1: #f
>
> Error generating PDF file.
> On 15 April 2010 13:00, Mats Bengtsson  wrote:
> >
> > Quoting Graham Percival :
> >
> >> (sorry, forgot to send to the list)
> >>
> >> Yes, the eps file must be in the same directory as the ly file.
> >
> > Or, perhaps, it's rather that it has to be in the working directory
> where you run the lilypond command. Don't know how it works if you for
> example double-click on a file in Windows to process it.
> >
> >  /Mats
> >
> >> Double-check that you have the right filename, and if you're on
> >> certain operating systems, double-check that you have the correct
> >> capitalization.  (in particular, watch out for eps vs. EPS)
> >>
> >> Cheers,
> >> - Graham
> >>
> >>
> >> On Thu, Apr 15, 2010 at 2:25 PM, Bernardo Barros
> >>  wrote:
> >>>
> >>> Hi there,
> >>>
> >>> I'm trying to use the method \epsfile to make some of the symbols I
> need to
> >>> use.
> >>> Should I put the files in the same folder of the .ly file, shouldn't
> I?
> >>> I'm having this error:
> >>>
> >>> Interpreting music...
> >>> Preprocessing graphical objects...
> >>> error: cannot find file: `circular-cheio.eps' (load path:
> >>>
> `/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/svg/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/type1/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf/:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/scm:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ps:/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly:')
> >>>
> >>>
> >>> HERE IS THE INPUT FILE
> >>> \version "2.12.3"
> >>> \paper {
> >>>   #(define dump-extents #t)
> >>>
> >>>   indent = 0\mm
> >>>   line-width = 160\mm
> >>>   force-assignment = #""
> >>>   line-width = #(- line-width (* mm  3.00))
> >>> }
> >>> \layout {
> >>>
> >>> }
> >>> { c'4-\markup { \epsfile #X #10 #"circular-cheio.eps" } }
> >>>
> >>> Processing `teste.ly'
> >>> Parsing...
> >>> teste.ly:0: warning: no \version statement found, please add
> >>>
> >>> \version "2.12.3"
> >>>
> >>>
> >>> ___
> >>> 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
> >>
> >
> >
> >
>
>
> ___
> 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


One eps file per page

2007-11-24 Thread Michael Käppler

Hi,
I've read several articles on the list concerning the fact that
lilypond-book doesn't take the exact page spacing into account. Now I'm
experiencing the same problem and I wonder whether lilypond can't create
simply one eps file per page. lilypond -dbackend=eps -dno-gs-load-fonts
-dinclude-eps-fonts *.ly creates one file per page, but the spacing gets
lost. Do I have to extract the eps files from the pdf file lilypond
normally creates?

Greetz,
Michael



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


Alignement of an eps file

2024-08-22 Thread Dimitri Sykias
How can I align an EPS file at the center of a page in LilyPond?
I tried:
\markup { 
  \center-align {
\epsfile #X #30 #”Name.eps"
}
}
Thanks for your help!


Re: generate eps file from frecobaldi

2022-05-31 Thread Simon Bailey
Hi Ming,

go to the Lilypond menu and select "Engrave custom", then select EPS
in the "Output format" dropdown.

hth,
sb

On Tue, 31 May 2022 at 16:56, WaiMing Tsang  wrote:
>
> Hi lilyponders:
>
>
>
> To produce ‘EPS’ images;
>
> lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly
>
> How ro run the above from frecobaldi v3.13?  I do not know how to use command 
> line with lilypond.
>
>
>
> Thank you for the help,
>
>
>
> Shalom,
>
> Ming
>
>
>
> Sent from Mail for Windows
>
>



-- 
Do not meddle in the affairs of trombonists, for they are subtle and
quick to anger.


Re: generate eps file from frecobaldi

2022-05-31 Thread Silvain Dupertuis

Hello everyone,

This does not answer the question directly... but suggests a solution without 
command line.

It is indeed easy to create EPS and/or SVG files from the PDF using Inkscape. You can then 
edit the file, and choose any part you want to include. It works perfecty with PDF files 
produced by LilyPond.


As an example, in an ongoing project to test frequencies 
, I created 
a music sheet with Frescobaldi, saved it in PDF, and opend the PDF resulting file with 
Inkscape. Then I saved the parts I wanted as SVG (actually, optimized SVG) to include them 
as images in my web page (using this easy code : 


No need to use the command line to do that... I am sure you could do the same to create 
EPS image files (I did not test it, though).


Silvain


Le 31.05.22 à 17:53, WaiMing Tsang a écrit :


Hi lilyponders:

To produce ‘EPS’ images;

lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly

How ro run the above from frecobaldi v3.13?  I do not know how to use command line with 
lilypond.


Thank you for the help,

Shalom,

Ming

Sent from Mail  for Windows



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 

Re: generate eps file from frecobaldi

2022-05-31 Thread David M. Boothe, CAS
I have always used Gimp to convert music PDFs to EPS, whether the PDF was
generated by Lilypond (via Frescobaldi) or by gabc. Here is a link to a
document I wrote several years ago detailing how to do that:
http://lakewoodsound.com/misc/pdf2eps-gimp.pdf

Hope this helps.

dB

On Tue, May 31, 2022, 11:56 AM WaiMing Tsang  wrote:

> Hi lilyponders:
>
>
>
> To produce ‘EPS’ images;
>
> lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts myfile.ly
>
> How ro run the above from frecobaldi v3.13?  I do not know how to use
> command line with lilypond.
>
>
>
> Thank you for the help,
>
>
>
> Shalom,
>
> Ming
>
>
>
> Sent from Mail  for
> Windows
>
>
>


Re: generate eps file from frecobaldi

2022-05-31 Thread Henning Hraban Ramm

Am 31.05.22 um 21:56 schrieb David M. Boothe, CAS:
I have always used Gimp to convert music PDFs to EPS, whether the PDF 
was generated by Lilypond (via Frescobaldi) or by gabc.


That means you convert a proper vector PDF into pixels. Don’t do that. 
It makes no sense.


Hraban



Re: generate eps file from frecobaldi

2022-06-01 Thread WaiMing Tsang
Hi Simon Bailey, Silvain Dupertuis, David M. Boothe & Henning Hraban Ramm Thank you all for giving me suggestion. I am a window 10 user. I don’t know GIMP, Inkscape, I will search if these programs are available for window 10? Even if they are, learning curve will occurs. I knew to select eps output from Frecobaldi, but I was hopping I can use Frecobaldi to run commandline for lilypond. Thank you all again,Shalom,ming Sent from Mail for Windows 



Re: generate eps file from frecobaldi

2022-06-01 Thread Silvain Dupertuis


Gimp and Inkscape are free and available in Windows, MacOs and Linux.

Le 01.06.22 à 14:30, WaiMing Tsang a écrit :


Hi Simon Bailey, Silvain Dupertuis, David M. Boothe &/Henning Hraban Ramm/

//

/Thank you all for giving me suggestion. I am a window 10 user. I don’t know GIMP, 
/Inkscape/, /


/I will search if these programs are available for window 10? Even if they are, learning 
curve will occurs. /


/I knew to select eps output from Frecobaldi, but I was hopping I can use Frecobaldi to 
run commandline for lilypond./


//

/Thank you all again,/

/Shalom,/

/ming/

Sent from Mail  for Windows



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 

Re: generate eps file from frecobaldi

2022-06-02 Thread Knute Snortum
On Wed, Jun 1, 2022 at 5:31 AM WaiMing Tsang  wrote:

> I knew to select eps output from Frecobaldi, but I was hopping I can use 
> Frecobaldi to run commandline for lilypond.

I'm not understanding what you're saying, could you say it a different
way?  Why would you use Frescobaldi to "run commandline for lilypond",
why wouldn't you just run from the command line?



Re: Single EPS file trimmed output

2022-12-29 Thread Federico Bruni




Il giorno gio 29 dic 2022 alle 11:14:03 +0100, Mauro 
 ha scritto:

Dear all,

I have a large repository of scores which are currently being built 
as eps documents using the following command:


lilypond -E -dno-gs-load-fonts -dinclude-eps-fonts file.ly

This command, up to version 2.22, generates a single eps file 
(file.eps) trimmed down to just the size of the score.


I recently upgraded from lilypond 2.22.2 to 2.24.0 and the same 
command now produces a full-page output. After searching the lists 
and the documentation, I understand that I have to set 
'use-paper-size-for-page' to false in order to get a trimmed down 
output, but I do not understand how to get a single eps file.


I have tried different combinations of command line args. I am only 
able to generate two output files (file.eps and file-1.eps), both of 
them identical and trimmed down, with the following command:


lilypond -E -dno-gs-load-fonts -dinclude-eps-fonts 
-dno-use-paper-size-for-page demo.ly


Is this how it is supposed to work? Why is lilypond generating a 
second identical file with -1 suffix?


I could easily remove the second file (file-1.eps) in my build chain, 
but I wonder if I am missing something.






There was a similar discussions last month:
https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00047.html

In your example I would add a \pageBreak to get a better understanding 
of what lilypond does.
I cannot open EPS files currently, but as far as I can see from the 
file manager thumbnails the first file is the two page file, while 
-1.eps and -2.eps are the single pages. They are different:


$ ls -lh *.eps
-rw-r--r--. 1 fede fede 157K 29 dic 14.40 demo-1.eps
-rw-r--r--. 1 fede fede 156K 29 dic 14.40 demo-2.eps
-rw-r--r--. 1 fede fede 158K 29 dic 14.40 demo.eps










Re: Single EPS file trimmed output

2022-12-31 Thread Mauro Levra

On 29/12/2022 14:43, Federico Bruni wrote:


There was a similar discussions last month:
https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00047.html

In your example I would add a \pageBreak to get a better understanding 
of what lilypond does.


So, the EPS backend generates an EPS file with the whole document, plus 
one EPS file per page. In version 2.22 if the document had only one 
page, only a single EPS was generated. Right now, instead, if the 
document fits on one page, both file.eps and file-1.eps are generated.


I can live with that :) I will remove file-1.eps manually from the build 
output.


Thank you.

Mauro



Wrong eps file with lily 2.6.3

2005-11-09 Thread Anna Choma
Hello,

I have problems with generting an eps file (small music fragments).
Usually, after generating the ps file using lilypond, I made the eps
file from the ps using eps2epsi program and the eps file was correct.
With the lilypond version 2.4.5 everything worked fine. But I have
also installed the 2.6.3 version of lilypond. When I process the *.ly
file with the newer lilypond, it creates a ps file, from which I can't
generate a correct eps file. The bounding box is incorrect (the notes
are beyond the box). Changing the box manually doesn't have any effect
either. When I switch to lily 2.4.5, everything works fine again. Does
anyone know why the 2.4.5 lilypond creates diifferent *.ps files from
the 2.6.3 lilypond? Why I can't use the ps2epsi with lily 2.6.3? I've
tried also ps2eps programm, it creates also wrong files (bad bounding
box).

Best reagards,

Anna Choma


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


Re: Alignement of an eps file

2024-08-22 Thread Timothy Lanfear

This should do it,

\markup \fill-line { \null \epsfile #X #30 #"Name.eps" \null }

On 22/08/2024 17:06, Dimitri Sykias wrote:

How can I align an EPS file at the center of a page in LilyPond?
I tried:
\markup {
   \center-align {
 \epsfile #X #30 #”Name.eps"
}
}
Thanks for your help!


--
Timothy Lanfear, Bristol, UK.


Re: Alignement of an eps file

2024-08-22 Thread Dimitri Sykias
Thank you Timothy!
> \markup \fill-line { \null \epsfile #X #30 #"Name.eps" \null }



G_8 not complete in a small eps file

2009-06-11 Thread Alexandros Droseltis
Hello all!

[I am using GNU LilyPond 2.10.33 and I am a new user.]

I try to create a small example, in order to use it in a text document.
My lilypond file looks like this

%%
\version "2.10.33"

\paper{
indent=0\mm
line-width=100\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
bookTitleMarkup = ##f
scoreTitleMarkup = ##f
}

line = relative c
{
\clef "G_8" e f g a
}

\score{ \new Staff\line }
%%

and I give the command

lilypond -b eps -dno-gs-load-fonts -dinclude-eps-fonts example.ly

In the result, the 8 under the clef is cut. I could not find how I could
solve this problem niftily. I would be grateful for any idea.

Best Regards

Alexandros


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


Re: G_8 not complete in a small eps file

2009-06-11 Thread -Eluze


Alexandros Droseltis-3 wrote:
> 
> [I am using GNU LilyPond 2.10.33 and I am a new user.]
> 
> In the result, the 8 under the clef is cut. I could not find how I could
> solve this problem niftily. I would be grateful for any idea.
> 
> 

for me it looks ok with version 2.13.1 - maybe you should upgrade to a newer
version!?
-- 
View this message in context: 
http://www.nabble.com/G_8-not-complete-in-a-small-eps-file-tp23981367p23984600.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread Alexandros Droseltis
On Thu, Jun 11, 2009 at 09:23 -0700, -Eluze wrote:
> 
> 
> Alexandros Droseltis-3 wrote:
> > 
> > [I am using GNU LilyPond 2.10.33 and I am a new user.]
> > 
> > In the result, the 8 under the clef is cut. I could not find how I could
> > solve this problem niftily. I would be grateful for any idea.
> > 
> > 
> 
> for me it looks ok with version 2.13.1 - maybe you should upgrade to a newer
> version!?

Thank you for the answer. I updated to 2.13.1 and I find out, that there
is no option -b eps any more! Now I cannot create the small eps image at
all. [Of course, the pdf and the ps file looks fine, they looked fine
with the older version too; what happened to eps? :( ]

Alexandros


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


Re: G_8 not complete in a small eps file

2009-06-11 Thread -Eluze


Alexandros Droseltis-3 wrote:
> 
> On Thu, Jun 11, 2009 at 09:23 -0700, -Eluze wrote:
>> 
>> 
>> Alexandros Droseltis-3 wrote:
>> > 
>> > [I am using GNU LilyPond 2.10.33 and I am a new user.]
>> > 
>> > In the result, the 8 under the clef is cut. I could not find how I
>> could
>> > solve this problem niftily. I would be grateful for any idea.
>> > 
>> > 
>> 
>> for me it looks ok with version 2.13.1 - maybe you should upgrade to a
>> newer
>> version!?
> 
> Thank you for the answer. I updated to 2.13.1 and I find out, that there
> is no option -b eps any more! Now I cannot create the small eps image at
> all. [Of course, the pdf and the ps file looks fine, they looked fine
> with the older version too; what happened to eps? :( ]
> 
to be honest  - i had a look at the png file and not at the eps file (which
btw is created)
-- 
View this message in context: 
http://www.nabble.com/G_8-not-complete-in-a-small-eps-file-tp23981367p23987069.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread Graham Percival
On Thu, Jun 11, 2009 at 08:48:15PM +0200, Alexandros Droseltis wrote:
> On Thu, Jun 11, 2009 at 09:23 -0700, -Eluze wrote:
> > Alexandros Droseltis-3 wrote:
> > > 
> > > [I am using GNU LilyPond 2.10.33 and I am a new user.]
> > > 
> > > In the result, the 8 under the clef is cut. I could not find how I could
> > > solve this problem niftily. I would be grateful for any idea.
> > > 
> > > 
> > 
> > for me it looks ok with version 2.13.1 - maybe you should upgrade to a newer
> > version!?
> 
> Thank you for the answer. I updated to 2.13.1 and I find out, that there
> is no option -b eps any more! Now I cannot create the small eps image at
> all. [Of course, the pdf and the ps file looks fine, they looked fine
> with the older version too; what happened to eps? :( ]

First, I recommend that you use 2.12, since 2.13 is the unstable
development version.  Note to other people who answer such emails:
let's not suggest that new users try the devel releases.

Second, please read the NEWS document for 2.12.  That will tell
you what you need to to other than -b eps.  You may also want to
look at AU 3.something (I think?)... it's the chapter about
lilypond-book.  At the end, it tells you how to produce eps for
use in other programs.

Cheers,
- Graham


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


Re: G_8 not complete in a small eps file

2009-06-11 Thread James E. Bailey


On 11.06.2009, at 20:48, Alexandros Droseltis wrote:


On Thu, Jun 11, 2009 at 09:23 -0700, -Eluze wrote:



Alexandros Droseltis-3 wrote:


[I am using GNU LilyPond 2.10.33 and I am a new user.]

In the result, the 8 under the clef is cut. I could not find how  
I could

solve this problem niftily. I would be grateful for any idea.




for me it looks ok with version 2.13.1 - maybe you should upgrade  
to a newer

version!?


Thank you for the answer. I updated to 2.13.1 and I find out, that  
there
is no option -b eps any more! Now I cannot create the small eps  
image at

all. [Of course, the pdf and the ps file looks fine, they looked fine
with the older version too; what happened to eps? :( ]

Alexandros


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
I don't know if it's the same for 2.13, but in 2.12, your command  
would be lilypond -dbackend='eps' -dno-gs-load-fonts -dinclude-eps-fonts

hth

James E. Bailey



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread James E. Bailey


On 11.06.2009, at 21:41, Graham Percival wrote:


On Thu, Jun 11, 2009 at 08:48:15PM +0200, Alexandros Droseltis wrote:

On Thu, Jun 11, 2009 at 09:23 -0700, -Eluze wrote:

Alexandros Droseltis-3 wrote:


[I am using GNU LilyPond 2.10.33 and I am a new user.]

In the result, the 8 under the clef is cut. I could not find how  
I could

solve this problem niftily. I would be grateful for any idea.




for me it looks ok with version 2.13.1 - maybe you should upgrade  
to a newer

version!?


Thank you for the answer. I updated to 2.13.1 and I find out, that  
there
is no option -b eps any more! Now I cannot create the small eps  
image at

all. [Of course, the pdf and the ps file looks fine, they looked fine
with the older version too; what happened to eps? :( ]


First, I recommend that you use 2.12, since 2.13 is the unstable
development version.  Note to other people who answer such emails:
let's not suggest that new users try the devel releases.

Second, please read the NEWS document for 2.12.  That will tell
you what you need to to other than -b eps.  You may also want to
look at AU 3.something (I think?)... it's the chapter about
lilypond-book.  At the end, it tells you how to produce eps for
use in other programs.


That's interesting, I used lilypond -dhelp and chapter 3 of AU, which  
is about normal lilypond, AU 4 is on lilypond book. But AU 3 covers  
command line options, which succeded for my purposes.


James E. Bailey



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


RE: G_8 not complete in a small eps file

2009-06-11 Thread Nick Payne
Use

lilypond -dbackend=eps file.ly

Nick

> -Original Message-
> From: lilypond-user-bounces+nick.payne=internode.on@gnu.org
> [mailto:lilypond-user-bounces+nick.payne=internode.on@gnu.org] On
> Behalf Of Alexandros Droseltis
> Sent: Friday, 12 June 2009 4:48 AM
> To: lilypond-user@gnu.org
> Subject: Re: G_8 not complete in a small eps file
> 
> Thank you for the answer. I updated to 2.13.1 and I find out, that
> there
> is no option -b eps any more! Now I cannot create the small eps image
> at
> all. [Of course, the pdf and the ps file looks fine, they looked fine
> with the older version too; what happened to eps? :( ]



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread -Eluze


Graham Percival-3 wrote:
> 
> Note to other people who answer such emails:
> let's not suggest that new users try the devel releases.
> 
yes, i am one of those people who answer such emails, and i suggested to use
a newer version!  
anything wrong about that?
-- 
View this message in context: 
http://www.nabble.com/G_8-not-complete-in-a-small-eps-file-tp23981367p23989901.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread Graham Percival
On Thu, Jun 11, 2009 at 03:15:15PM -0700, -Eluze wrote:
> Graham Percival-3 wrote:
> > Note to other people who answer such emails:
> > let's not suggest that new users try the devel releases.
> > 
> yes, i am one of those people who answer such emails, and i suggested to use
> a newer version!  
> anything wrong about that?

2.13 is the development release, not the stable release.  The
syntax may change, and additional bugs may be introduced.  This
can be particularly confusing for new users -- if anything
changes, best to have it happen all at once between 2.12.x and
2.14.0, instead of spread throughout the 2.13 versions.

That's why I suggest that normal users stick to the stable
version.

Cheers,
- Graham


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


Re: G_8 not complete in a small eps file

2009-06-11 Thread James E. Bailey


On 12.06.2009, at 00:21, Graham Percival wrote:


On Thu, Jun 11, 2009 at 03:15:15PM -0700, -Eluze wrote:

Graham Percival-3 wrote:

Note to other people who answer such emails:
let's not suggest that new users try the devel releases.

yes, i am one of those people who answer such emails, and i  
suggested to use

a newer version!
anything wrong about that?


2.13 is the development release, not the stable release.  The
syntax may change, and additional bugs may be introduced.


Like eighth note beaming? :P

James E. Bailey



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread -Eluze


Graham Percival-3 wrote:
> 
> On Thu, Jun 11, 2009 at 03:15:15PM -0700, -Eluze wrote:
>> Graham Percival-3 wrote:
>> > Note to other people who answer such emails:
>> > let's not suggest that new users try the devel releases.
>> > 
>> yes, i am one of those people who answer such emails, and i suggested to
>> use
>> a newer version!  
>> anything wrong about that?
> 
> 2.13 is the development release, not the stable release.  The
> syntax may change, and additional bugs may be introduced.  This
> can be particularly confusing for new users -- if anything
> changes, best to have it happen all at once between 2.12.x and
> 2.14.0, instead of spread throughout the 2.13 versions.
> 
> That's why I suggest that normal users stick to the stable
> version.
> 
> Cheers,
> - Graham
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

when i suggested to use a newer version i did not mean it has to be an
unstable version

in any case i believe that most lilypond users are able to take the risk -
or to decline it - of an instable release

speaking of the diagnostic process: if you hear something works under
specific circumstances you can narrow the search area - isn't that why you
are talking to others?

-- 
View this message in context: 
http://www.nabble.com/G_8-not-complete-in-a-small-eps-file-tp23981367p23990502.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: G_8 not complete in a small eps file

2009-06-11 Thread Graham Percival
On Thu, Jun 11, 2009 at 04:11:17PM -0700, -Eluze wrote:
> 
> Graham Percival-3 wrote:
> > 
> > That's why I suggest that normal users stick to the stable
> > version.
> 
> when i suggested to use a newer version i did not mean it has to be an
> unstable version

All 2.13 releases are unstable.  In version numbers 2.x, if x is
odd then it is unstable; if x is even then it is stable.

> in any case i believe that most lilypond users are able to take the risk -
> or to decline it - of an instable release

True, but this person specifically mentioned that he was a newbie.
In such cases, I recommend a stable (i.e. 2.12.x) version.

> speaking of the diagnostic process: if you hear something works under
> specific circumstances you can narrow the search area - isn't that why you
> are talking to others?

Yes, but when possible I prefer to avoid using newbies as test
subjects.  If I was talking to an experienced lilypond user, I
would certainly consider recommending 2.13.

Cheers,
- Graham


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


re: G_8 not complete in a small eps file

2009-06-11 Thread 胡海鹏 - Hu Haipeng
Graham,

> True, but this person specifically mentioned that he was a newbie.

Hmm, when I was a newbie at the end of 2007, I first downloaded 2.10.33, but 
after few days, I discovered the version I downloaded was not the latest. So I 
jumped to 2.11.34 immediately, regardingless whether it was stable or not. For 
me, I'm always keep up with the latest versions, although I am not a track and 
field athlete :-)

Haipeng

 



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


[SOLVED] Re: G_8 not complete in a small eps file

2009-06-11 Thread Alexandros Droseltis
Thank you all for the help! -dbackend did the job!

Best Regards

Alexandros


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