lilypond-user
[Top][All Lists]
Advanced

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

Has anyone had success including lilypond generated EPS files into groff


From: Kim Shrier
Subject: Has anyone had success including lilypond generated EPS files into groff?
Date: Sun, 9 Nov 2008 15:37:39 -0700

I am using lilypond 2.11.59 on a FreeBSD 6.3 system.

As an experiment, I wanted to create a simple troff document that would
include the EPS output from lilypond.

The lilypond source file is:

    \version "2.11.59"
    \paper{
      indent=0\mm
      oddFooterMarkup=##f
      oddHeaderMarkup=##f
      bookTitleMarkup=##f
      scoreTitleMarkup=##f
      ragged-right=##t
    }

    { c1 }


The troff file is:

    This is a test of including a postscript file in a troff document.

    .PSPIC test.eps

    followed by some more text.



I use the following command to make the test.eps file:

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


When I try to run groff (version 1.19.2) on my troff file, I get the
following 2 messages:

    grops:test.eps:16: unknown resource type
    grops:test.eps:17: unknown resource type


The offending lines in test.eps are:

    %%IncludeResource: ProcSet (FontSetInit)
    %%BeginResource: FontSet (Emmentaler-20)


If I ignore these messages and try to convert the ps file output
to pdf, I get the following errors.

ps2pdf test2.ps
Error: /rangecheck in --get--
Operand stack:
   gsubrs   --nostringval--   1   3341   --nostringval--   12
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- -- nostringval-- 2 %stopped_push --nostringval-- -- nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1147/1684(ro)(G)-- --dict:0/20(G)-- --dict: 80/200(L)-- --dict:60/120(L)-- --dict:80/200(L)-- --dict:54/60(ro)(G)-- --dict:15/30(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 12532
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
*** Error code 1

Stop in /stuff/home/kim/Projects/music.


I am probably missing something obvious.  Any ideas?

Thanks,
Kim




reply via email to

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