Re: PDF-generation lily2.5.19

2005-04-13 Thread Mats Bengtsson

dax2 wrote:
Ok! It works! Thanks!
The new ps2pdf cuts off some piano bass at the bottom of the
page, though. 
Probably, your Ghostscript is configured to provide letter size papers
by default. As long as ps2pdf is called from within LilyPond you should
get A4 size anyway but if you run ps2pdf yourself from the command line
you need the extra flag
ps2pdf -sPAPERSIZE=a4
See the ghostscript documentation for information on how to change the
default paper size of your installation.
/Mats
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: PDF-generation lily2.5.19

2005-04-13 Thread dax2



  When running from Lilypond or -sPAPERSIZE=a4: Yes - no cut offs now!

  I had guessed that it was the paper size but could not find a
clue in man ps2pdf; there is in man gs as you write. Thanks!

  Running ps2pdf from Lilypond works perfectly, producing clickable PDF.

  I have no (ly:set-point-and-click 'line) so I am a little astonished.
When sending a PDF file for print I guess it should not be clickable,
though this is a very minor thing, of course.



On Wed, 13 Apr 2005 09:30:38 +0200
Mats wrote:

 Probably, your Ghostscript is configured to provide letter size papers
 by default. As long as ps2pdf is called from within LilyPond you should
 get A4 size anyway but if you run ps2pdf yourself from the command line
 you need the extra flag
 ps2pdf -sPAPERSIZE=a4
 See the ghostscript documentation for information on how to change the
 default paper size of your installation.

man gs will tell.

Thank you very much for the hints and help!

[ Reposting: I thought I had posted this to the list - 
  readers who wants to find an answer should be able 
  to follow the thread.
]

-- 
dax2-tele2adsl:dk -- http://d-axel.dk/  Donald Axel


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


Re: PDF-generation lily2.5.19

2005-04-13 Thread Daniel Johnson
For anyone looking for the Gentoo ebuild for ESP Ghostscript 8.15_rc2
which was discussed yesterday, I am attaching it here.  Note that it is
not 100% stable, use at your own risk, void where prohibited, etc.

--Daniel


inherit flag-o-matic eutils gcc

DESCRIPTION=ESP Ghostscript -- an enhanced version of GNU Ghostscript with
better printer support
HOMEPAGE=http://www.cups.org/ghostscript.php;

MY_PN=espgs
MY_PV=8.15rc2
MY_P=${MY_PN}-${MY_PV}
CUPS_PV=1.1.20

SRC_URI=http://ftp.easysw.com/pub/ghostscript/test/${MY_P}-source.tar.bz2
cjk? ( 
http://www.matsusaka-u.ac.jp/mirror/gs-cjk/adobe-cmaps-200204.tar.gz

http://www.matsusaka-u.ac.jp/mirror/gs-cjk/acro5-cmaps-2001.tar.gz)

LICENSE=GPL-2 LGPL-2
SLOT=0
KEYWORDS=x86 ~amd64 ~ppc
IUSE=X cups cjk gtk

PROVIDE=virtual/ghostscript

DEPEND=virtual/libc
=media-libs/jpeg-6b
=media-libs/libpng-1.2.5
=sys-libs/zlib-1.1.4
X? ( virtual/x11 )
cjk? ( media-fonts/arphicfonts
media-fonts/kochi-substitute
media-fonts/baekmuk-fonts )
cups? ( =net-print/cups-1.1.20 )
gtk? ( =x11-libs/gtk+-1.2* )
!virtual/ghostscript
media-fonts/gnu-gs-fonts-std

S=${WORKDIR}/${MY_P}

src_unpack() {
unpack ${MY_P}-source.tar.bz2

# enable png devices
sed -i -e 's:DEVICE_DEVS13=:[EMAIL PROTECTED]@:' ${S}/Makefile.in

#Han-Wen's Lilypond patches
sed -i -e 
's!GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts!GS_LIB_DEFAULT=$(gsdatadir)/lib:$(gsdatadir)/Resource:$(gsdir)/fonts:$(prefix)/share/fonts!g'
 ${S}/src/unix-gcc.mak
sed -i -e 
's!$$(gsdatadir)/lib:$$(gsdatadir)/fonts:$$(gsdatadir)/examples:$$(gsdir)/fonts:/usr/local/share/sys/fonts/postscript:$(TF)/lucida:$(TF)/mathtime:$(TF)/postscript/bakoma/pfb:$(TF)/vf!$$(gsdatadir)/lib:$$(gsdatadir)/fonts:$$(gsdatadir)/examples:$$(gsdir)/fonts:$$(datadir)/share/fonts:$(TF)/lucida:$(TF)/mathtime:$(TF)/postscript/bakoma/pfb:$(TF)/vf!g'
 ${S}/src/all-arch.mak
sed -i -e 's!$(GLCC) -g `gtk-config --cflags` -o $(GSSOX_XE) 
$(GLSRC)dxmain.c -L$(BINDIR) -l$(GS) `gtk-config --libs`!$(GLCC) -g `pkg-config 
--cflags gtk+-2.0` -o $(GSSOX_XE) $(GLSRC)dxmain.c -L$(BINDIR) -l$(GS) 
`pkg-config --libs gtk+-2.0`!g' ${S}/src/unix-dll.mak

#make DESTDIR fixes for sandbox isolation
sed -i -e 's:$(install_prefix):$(DESTDIR):g' ${S}/pstoraster/cups.mak
sed -i -e 's:$(BINDIR):$(DESTDIR)$(BINDIR):g' \
-e 's:$(GSSHAREDIR):$(DESTDIR)$(GSSHAREDIR):g' 
${S}/src/all-arch.mak
sed -i -e 's:$(man1dir):$(DESTDIR)$(man1dir):g' \
-e 's:$(docdir):$(DESTDIR)$(docdir):g' \
-e 's:$(bindir):$(DESTDIR)$(bindir):g' ${S}/src/contrib.mak
sed -i -e 's:$(prefix):$(DESTDIR)$(prefix):g' \
-e 's:$(datadir):$(DESTDIR)$(datadir):g' \
-e 's:$(gsdir):$(DESTDIR)$(gsdir):g' \
-e 's:$(bindir):$(DESTDIR)$(bindir):g' \
-e 's:$(gsdatadir):$(DESTDIR)$(gsdatadir):g' \
-e 's:$(libdir):$(DESTDIR)$(libdir):g' ${S}/src/macos-fw.mak
sed -i -e 's:$(prefix):$(DESTDIR)$(prefix):g' \
-e 's:$(datadir):$(DESTDIR)$(datadir):g' \
-e 's:$(gsdir):$(DESTDIR)$(gsdir):g' \
-e 's:$(bindir):$(DESTDIR)$(bindir):g' \
-e 's:$(gsdatadir):$(DESTDIR)$(gsdatadir):g' \
-e 's:$(libdir):$(DESTDIR)$(libdir):g' ${S}/src/unix-dll.mak
sed -i -e 's:$(datadir):$(DESTDIR)$(datadir):g' \
-e 's:$(gsdir):$(DESTDIR)$(gsdir):g' \
-e 's:$(gsdatadir):$(DESTDIR)$(gsdatadir):g' \
-e 's:$(bindir):$(DESTDIR)$(bindir):g' \
-e 's:$(scriptdir):$(DESTDIR)$(scriptdir):g' \
-e 's:$(docdir):$(DESTDIR)$(docdir):g' \
-e 's:$(mandir):$(DESTDIR)$(mandir):g' \
-e 's:$(gssharedir):$(DESTDIR)$(gssharedir):g' \
-e 's:$(exdir):$(DESTDIR)$(exdir):g' ${S}/src/unixinst.mak
sed -i -e 's:$(man1dir):$(DESTDIR)$(man1dir):g' \
-e 's:$(docdir):$(DESTDIR)$(docdir):g' \
-e 's:$(gsdatadir):$(DESTDIR)$(gsdatadir):g' \
-e 's:$(bindir):$(DESTDIR)$(bindir):g' ${S}/addons/addons.mak
}

src_compile() {
myconf=--with-ijs --without-gimp-print

use X  myconf=${myconf} --with-x \
|| myconf=${myconf} --without-x

use cups  myconf=${myconf} --enable-cups \
|| myconf=${myconf} --disable-cups

use gtk  myconf=${myconf} --with-omni \
|| myconf=${myconf} --without-omni

myconf=${myconf} --with-fontconfig


Re: PDF-generation lily2.5.19 [was] What is final-install target

2005-04-12 Thread dax2

I made a here-lily of the development version but the my.ps still
cannot be converted to pdf neither by lilypond nor by ps2pdf12/13 or
just plain ps2pdf. ghostscript version installed: 7.07.1-r7 (r7
is Gentoo-installer-fingerprint, one could be suspicious about
the integrity of that package, of course.)

Any comments will be welcome! Thank you in advance. I am sorry that
I could not work the CVS 2.5.19 through the installation. I don't know
if it was any help I wrote about the make install error (No rule
to make final-install).



On Tue, 12 Apr 2005 21:34:15 +0200
dax2 wrote:
 
 I have been able to revert to 2.5.0 (or 2.4.0) and the PDF-output
 is ok now. 
 
 
 I should upgrade to 2.4.5 because of lilypond-book, I suppose?

CCRMA lilypond-2.4.5-1.rh90.ccrma.i386.rpm installs on my Gentoo
workstation (which has RPM) and it runs and produces nice PDF too.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Details:

gcc-3.3.4, 
glibc-2.3.3.20041008-r0, 
kernel 2.4.28ax2-tun i686
Python:  dev-lang/python-2.3.3-r1 [2.3.3 (#1, Aug 29 2004, 
02:50:23)]
dev-lang/python: 2.3.3-r1
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.21-r1

*  app-text/mftrace
  Latest version available: 1.0.34
  Latest version installed: 1.0.31
  Size of downloaded files: 51 kB
  Homepage:http://www.cs.uu.nl/~hanwen/mftrace/
  Description: traces TeX fonts to PFA or PFB fonts (formerly pktrace)
  License: GPL-2

*  media-fonts/ec-fonts-mftraced
  Latest version available: 1.0.8
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 8 kB
  Homepage:http://lilypond.org/
  Description: EC Fonts for Lilypond
  License: public-domain


Many thanks to Han-Wen, Jan and Nicolas and Mats for friendly
replies to happy note-hackers, and for this terrific music-tool!




-- 
dax2-tele2adsl:dk -- http://d-axel.dk/  Donald Axel


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


Re: PDF-generation lily2.5.19 [was] What is final-install target

2005-04-12 Thread Daniel Johnson
You'll need ghostscript 8.15 in order to build/run more recent lilypond
2.5 releases.  Under Gentoo you can either install ghostscript-afpl, or
use a custom-written ESP ghostscript ebuild for 8.15_rc2.  I'm at work
right now but I have such an ebuild at home if anyone is interested. 
This build is less than 100% stable and make web still fails partway
through, but if you aren't interested in building the documentation, it
will at least let you build and run the app.

dax2 wrote:

I made a here-lily of the development version but the my.ps still
cannot be converted to pdf neither by lilypond nor by ps2pdf12/13 or
just plain ps2pdf. ghostscript version installed: 7.07.1-r7 (r7
is Gentoo-installer-fingerprint, one could be suspicious about
the integrity of that package, of course.)

Any comments will be welcome! Thank you in advance. I am sorry that
I could not work the CVS 2.5.19 through the installation. I don't know
if it was any help I wrote about the make install error (No rule
to make final-install).
  




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


Re: PDF-generation lily2.5.19

2005-04-12 Thread dax2

Thank you for offering a special ebuild for ghostscript-afpl.
Yes, I am very interested.

I realize that there is GNU-ghostscript and Aladdin-ghostscript,
until now I did not know the difference.


I am planning to use lilypond-book for two booklets on music
theory. It will be a very nice tool.


Regards/Donald


On Tue, 12 Apr 2005 13:58:59 -0700
Daniel wrote:

 You'll need ghostscript 8.15 in order to build/run more recent lilypond
 2.5 releases.  Under Gentoo you can either install ghostscript-afpl, or
 use a custom-written ESP ghostscript ebuild for 8.15_rc2.  I'm at work
 right now but I have such an ebuild at home if anyone is interested. 
 This build is less than 100% stable and make web still fails partway
 through, but if you aren't interested in building the documentation, it
 will at least let you build and run the app.



-- 
dax2-tele2adsl:dk -- http://d-axel.dk/  Donald Axel


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


Re: PDF-generation lily2.5.19

2005-04-12 Thread Daniel Johnson
dax2 wrote:

Thank you for offering a special ebuild for ghostscript-afpl.
Yes, I am very interested.

  

The ebuild I made is not for AFPL -- there is already one in Portage
(app-text/ghostscript-afpl).  My ebuild is for ESP Ghostscript
8.15_rc2.  One major difference between AFPL and ESP is that AFPL
includes many less printer drivers.  If AFPL includes drivers for your
printer, I'd recommend using that one instead of my ESP build, at least
until the next release candidate (or final release) comes out from ESP.

ESP builds their product based on GPL Ghostscript (which is identical
with AFPL ghostscript as far as I can tell) but they add a bunch of
features, including CUPS integration along with a bunch of printer
drivers.  Because of all the extra work they do, they are generally one
or two versions behind.  Last time I checked, the latest unstable GPL
version was 8.50.

It's not too hard to modify the AFPL/GPL build process to include extra
printer drivers (such drivers are downloadable from linuxprinting.org).

--d



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


Re: PDF-generation lily2.5.19

2005-04-12 Thread dax2


Ok! It works! Thanks!

The new ps2pdf cuts off some piano bass at the bottom of the
page, though. 

I built Aladdin ghostscript-8.50 for /usr/local/ and my path
sets /usr/local/bin before the others (it is not a bastion host:-)

The ghostscript-afpl is blocked on my Gentoo (by itself?)

ps2pdf makes a nice PDF-file, I can see improvements to the
quality. It is clickable.

I use the here-lily script to setup path/font for 2.5.19.

I can still use 2.4.5 for Red Hat-9 which I got from CCRMA; it
installs in /usr and of course I use /etc/profile.d/lilypond.sh to
get the TEXMF parameter.




On Tue, 12 Apr 2005 14:48:17 -0700
Daniel wrote:

 ESP builds their product based on GPL Ghostscript (which is identical
 with AFPL ghostscript as far as I can tell) but they add a bunch of
 features, including CUPS integration along with a bunch of printer
 drivers.  Because of all the extra work they do, they are generally one
 or two versions behind.  Last time I checked, the latest unstable GPL
 version was 8.50.

That explains a lot. Thank you very much!


 It's not too hard to modify the AFPL/GPL build process to include extra
 printer drivers (such drivers are downloadable from linuxprinting.org).

Yes, I have actually once looked into the Ghostscript printerdriver
specifications, it seemed very clear and logic to me. I do not need
for now - I hope for a Brother laser-printer later.


Thank you again.


-- 
dax2-tele2adsl:dk -- http://d-axel.dk/  Donald Axel


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