[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debian control file out of date? was: Re: live cd-with lilypondhttp:
From: |
Karl Hammar |
Subject: |
Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL |
Date: |
Sun, 31 Aug 2008 19:28:16 +0200 (CEST) |
Reinhold wrote:
> Am Sonntag, 31. August 2008 schrieb Karl Hammar:
> > Thomas wrote:
> > > On Sat, 2008-08-30 at 22:16 +0100, Rob Canning wrote:
> > > > the debian package lilypond-data has a pre-depend of texlive though
> > > > lilypond no longer has a runtime dependency on tex
> > ...
> > As long as lilypond-book is included there is a dependancy on latex.
> No, there is not. lilypond-book does not need latex, it simply is able to
> process a file in latex syntax and generate output, that can then be
> processed with latex. But latex is not required for lilypond-book. It's only
> required if you want to process that file further.
...
This tells me another story (tt.lytex is the example from [1]):
$ /home/karl/most/music/lilypond/git/lilypond/out/bin/lilypond-book tt.lytex
lilypond-book (GNU LilyPond) 2.11.58
Reading tt.lytex...
Running latex...This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(/home/karl/tmp/tmpQsPjvx.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
...
lilypond-book do start up another program as seen by:
$ strace /home/karl/most/music/lilypond/git/lilypond/out/bin/lilypond-book
tt.lytex 2>&1 | grep -C5 clone
close(4) = 0
write(2, "Running latex...", 16Running latex...) = 16
pipe([4, 5]) = 0
fcntl64(5, F_GETFD) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7dd66f8) = 6488
close(5) = 0
mmap2(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb797a000
read(4, "", 1048576) = 0
mremap(0xb797a000, 1052672, 4096, MREMAP_MAYMOVE) = 0xb797a000
close(4) = 0
$
And if you look into the code, you will find:
$ grep -A20 '^def get_latex_textwidth' scripts/out/lilypond-book
def get_latex_textwidth (source):
m = re.search (r'''(?P<preamble>\\begin\s*{document})''', source)
if m == None:
warning (_ ("cannot find \\begin{document} in LaTeX document"))
## what's a sensible default?
return 550.0
preamble = source[:m.start (0)]
latex_document = LATEX_INSPECTION_DOCUMENT % vars ()
(handle, tmpfile) = tempfile.mkstemp('.tex')
logfile = os.path.splitext (tmpfile)[0] + '.log'
logfile = os.path.split (logfile)[1]
tmp_handle = os.fdopen (handle,'w')
tmp_handle.write (latex_document)
tmp_handle.close ()
ly.system ('%s %s' % (global_options.latex_program, tmpfile),
be_verbose=global_options.verbose)
$
lilypond-book only uses latex to extract the textwidh, but there is
still a dependancy. You might not want to have it, but then you have to
find the textwidth in another way.
Regards,
/Karl
[1]
http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/An-example-of-a-musicological-document
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, (continued)
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Rob Canning, 2008/08/30
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2. 10/Documentation/topdocs/INSTALL, Reinhold Kainhofer, 2008/08/30
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Thomas Bushnell BSG, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Karl Hammar, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Reinhold Kainhofer, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Graham Percival, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Francisco Vila, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Mats Bengtsson, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Valentin Villenave, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Karl Hammar, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL,
Karl Hammar <=
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Francisco Vila, 2008/08/31
- Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL, Mats Bengtsson, 2008/08/31
- Re: live cd-with lilypond, Valentin Villenave, 2008/08/28
- Re: live cd-with lilypond, Wilbert Berendsen, 2008/08/29
- Re: live cd-with lilypond, Stefan Thomas, 2008/08/29