Re: Repeated embedded fonts in PDF documentation

2011-03-24 Thread Carl Sorensen
On 3/23/11 10:24 PM, Werner LEMBERG w...@gnu.org wrote:

 If I open the one of the manuals in Acrobat (full version) and
 select the Reduce File Size option from the Document menu, which
 consolidates fonts, then when that eventually finishes - depending
 on file size, it can take many hours to complete - I find that the
 size of the PDF file has been reduced by 40-50%.
 
 Another possibility is `pdfsizeopt', which does an even better job, I
 believe, since it specialized for handling TeX files.
 
   http://code.google.com/p/pdfsizeopt/
 
 Unfortunately, due to copyright reasons, it is impossible to
 incorporate it into lilypond's workflow of creating the manuals.
 However, maybe someone can set up a postprocessing stage so that the
 online versions of the PDF manuals get reduced in size which would be
 beneficial for both the user and the hoster, reducing the bandwidth.
 

I just tried using pdfsizeopt without pngout, jbig2, or multivalent, and got
about a 25% reduction in the size of the Notation Reference pdf.

The Notation Reference took about 45 seconds to process on my MacBook Pro.

Carl




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


Re: Repeated embedded fonts in PDF documentation

2011-03-24 Thread Werner LEMBERG

 I just tried using pdfsizeopt without pngout, jbig2, or multivalent,
 and got about a 25% reduction in the size of the Notation Reference
 pdf.

Better than nothing, actually.

However, the `multivalent' part is the real optimization engine (and
this is exactly the problematic bit w.r.t. the license); using it you
should get far more impressive numbers.


Werner

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


embedding external graphics to lilypond

2011-03-24 Thread Esa Erola

Hi,

I am wandering if there is any way to embed graphics like scanned pictures, jpg,
png etc. to be shown on Lilypond pdf output?

Thanks!

BR 
esa



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


Re: Repeated embedded fonts in PDF documentation

2011-03-24 Thread Werner LEMBERG
 I setup pdfsizeopt, including multivalent, and ran the 2.13.55 docs
 through it, then created a PDF portfolio with an embedded index
 using Acrobat. The end result was a 34.8MB file containing
 
 extending.pdf
 internals.pdf
 learning.pdf
 notation.pdf
 snippets.pdf
 usage.pdf
 web.pdf
 
 For comparison, a portfolio from the same files shrunk in Acrobat is
 29.9Mb, and one made from the PDFs straight out of the doc tarball is
 a bit over 50Mb.

Thanks for testing.  It's obviously not as good as Acrobat (no
wonder), but it still improves a lot.


Werner

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


Re: Repeated embedded fonts in PDF documentation

2011-03-24 Thread Nick Payne

On 24/03/11 19:35, Werner LEMBERG wrote:

I just tried using pdfsizeopt without pngout, jbig2, or multivalent,
and got about a 25% reduction in the size of the Notation Reference
pdf.

Better than nothing, actually.

However, the `multivalent' part is the real optimization engine (and
this is exactly the problematic bit w.r.t. the license); using it you
should get far more impressive numbers.


I setup pdfsizeopt, including multivalent, and ran the 2.13.55 docs 
through it, then created a PDF portfolio with an embedded index using 
Acrobat. The end result was a 34.8MB file containing


extending.pdf
internals.pdf
learning.pdf
notation.pdf
snippets.pdf
usage.pdf
web.pdf

For comparison, a portfolio from the same files shrunk in Acrobat is 
29.9Mb, and one made from the PDFs straight out of the doc tarball is a 
bit over 50Mb.


Nick

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


Re: embedding external graphics to lilypond

2011-03-24 Thread Francisco Vila
2011/3/24 Esa Erola esa.er...@nokia.com:

 Hi,

 I am wandering if there is any way to embed graphics like scanned pictures, 
 jpg,
 png etc. to be shown on Lilypond pdf output?

Make an EPS and insert it inside of a markup with epsfile. See
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Graphic#index-inlining-an-Encapsulated-PostScript-image

Also, the code for this snippet shows an example  of using
lilypond-book to make documents with images and music.
http://lsr.dsi.unimi.it/LSR/Item?id=231
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Re: embedding external graphics to lilypond

2011-03-24 Thread Xavier Scheuer
On 24 March 2011 11:10, Esa Erola esa.er...@nokia.com wrote:

 Hi,

 I am wandering if there is any way to embed graphics like scanned pictures, 
 jpg,
 png etc. to be shown on Lilypond pdf output?

\epsfile is the only one I'm thinking about.
Check out NR A.8.3 Graphic
http://lilypond.org/doc/v2.13/Documentation/notation/graphic

You'll need to convert your image into EPS.

Cheers,
Xavier

-- 
Xavier Scheuer x.sche...@gmail.com

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


Re: embedding external graphics to lilypond

2011-03-24 Thread Nick Payne

On 24/03/11 21:10, Esa Erola wrote:

Hi,

I am wandering if there is any way to embed graphics like scanned pictures, jpg,
png etc. to be shown on Lilypond pdf output?


You can convert the graphics files to eps format and use the \epsfile 
command.


Nick

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


Re: Re: Re: strange instrument name bug

2011-03-24 Thread Francisco Vila
2011/3/23 胡海鹏 - Hu Haipeng hhpmu...@163.com:
 Thanks. Will the 1.5 cm margin causes binding difficulty?

 Regards
 Haipeng

Yes; in my example an absolute minimum is 2.3\cm and shortnames
already touch paper's edge (in PDF).  I guess that could be fine tuned
afterwards.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


Can't get the layout right

2011-03-24 Thread Christian Bos
I am working on a piece



\version 2.12.3

\include nederlands.ly

\header {
  title = De dag van onze Vorst brak aan
  composer = Melodie: Psalm 21 - Loys Bourgeois (1551)
  arranger = Zetting: Claude Goudimel (1565)
}

\paper {
  #(set-paper-size a4)
}

global = {
  \key d \major
  \override Staff.TimeSignature #'style = #'default
  \override Staff.TimeSignature #'stencil = #(lambda (grob)
(grob-interpret-markup grob tsMarkup))
  \time 4/4
  \set Score.defaultBarType = 
}

tsMarkup = \markup {
  \override #'(baseline-skip . 0.5)
  \column { \number 1 \note #2 #-1 }
}


\score {
 [some music]
\layout {
  \context {
\Score
\remove Bar_number_engraver
  }
}

  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 100 4)
}
  }
}

\pageBreak

\score {
  [some more music]
  \layout {
  \context {
\Score
\remove Bar_number_engraver
  }
}

  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 100 4)
}
  }
}

#(set-global-staff-size 16)

\paper {  % Start paper block
  bottom-margin = 10\cm
  ragged-bottom=##f
  ragged-last-bottom=##f
  system-count = 3
  indent = 5 % don't indent first system


I want alle the systems to vertically align tot the top, but the two pages
act differently.
Wat settings do I need?

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


Re: Can't get the layout right

2011-03-24 Thread Francisco Vila
2011/3/24 Christian Bos christian@gmail.com:
 I am working on a piece

I can not compile your example.  Please send a minimal piece of code
that shows your problem.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

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


RE: Can't get the layout right

2011-03-24 Thread James Lowe
Hello,

)-Original Message-
)From: lilypond-user-bounces+james.lowe=datacore@gnu.org
)[mailto:lilypond-user-bounces+james.lowe=datacore@gnu.org] On
)Behalf Of Francisco Vila
)Sent: 24 March 2011 11:22
)To: Christian Bos
)Cc: lilypond-user@gnu.org
)Subject: Re: Can't get the layout right
)
)2011/3/24 Christian Bos christian@gmail.com:
) I am working on a piece
)
)I can not compile your example.  Please send a minimal piece of code that
)shows your problem.
)--

Also what happens if you remove all your \paper { } statements?

Do they line up then? 

If so then at least we can see the place we can tweak.

 If they do not line up after you have remove that paper definition then there 
is another issue.

James



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


Re: Can't get the layout right

2011-03-24 Thread Tim McNamara
Without actual music we can't compile your score to see the problem.

I think your problem may be in that you have two \paper blocks and your indent 
is wrong if you really don't want the first staff indented.  Try consolidating 
your paper block and changing the indent:


\paper {
#(set-paper-size a4)
indent = 0.0
ragged-last = ##f
ragged-last-bottom=##f
bottom-margin = 10\cm
system-count = 3

} 

BTW, that looks like a *lot* of white space- do you really want a 10 cm margin 
at the bottom and only three systems per page?



On Mar 24, 2011, at 6:18 AM, Christian Bos wrote:

 I am working on a piece
 
 
 
 \version 2.12.3
 
 \include nederlands.ly
 
 \header {
   title = De dag van onze Vorst brak aan
   composer = Melodie: Psalm 21 - Loys Bourgeois (1551)
   arranger = Zetting: Claude Goudimel (1565)
 }
 
 \paper {
   #(set-paper-size a4)
 }
 
 global = {
   \key d \major
   \override Staff.TimeSignature #'style = #'default
   \override Staff.TimeSignature #'stencil = #(lambda (grob)
 (grob-interpret-markup grob tsMarkup))
   \time 4/4
   \set Score.defaultBarType = 
 }
 
 tsMarkup = \markup {
   \override #'(baseline-skip . 0.5)
   \column { \number 1 \note #2 #-1 }
 }
 
 
 \score {
  [some music]
 \layout {
   \context {
 \Score
 \remove Bar_number_engraver
   }
 }
 
   \midi {
 \context {
   \Score
   tempoWholesPerMinute = #(ly:make-moment 100 4)
 }
   }
 }
 
 \pageBreak
 
 \score {
   [some more music]
   \layout {
   \context {
 \Score
 \remove Bar_number_engraver
   }
 }
 
   \midi {
 \context {
   \Score
   tempoWholesPerMinute = #(ly:make-moment 100 4)
 }
   }
 }
 
 #(set-global-staff-size 16)
 
 \paper {  % Start paper block
   bottom-margin = 10\cm
   ragged-bottom=##f
   ragged-last-bottom=##f
   system-count = 3
   indent = 5 % don't indent first system
 
 
 I want alle the systems to vertically align tot the top, but the two pages 
 act differently.
 Wat settings do I need?
 
 Gr.
 Christian
 ___
 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 2.12.3 and Fonts in Debian Squeeze

2011-03-24 Thread Tiresia Giuno
Hello,

not sure this is the right place to ask the following question, but I
hope that someone knows more about this issue.

I'm running LilyPond 2.12.3 on Debian Squeeze. I can compile my files
with no problems but if I change the font size I get an almost empty PDF
file. It does not happen with every font size. For example setting
#(set-global-staff-size 14) returns a PDF file containing just stems,
beams and slurs (no noteheads, no clef, no dynamics)

Compiling the same file with LilyPond 2.12.3 in MacOSX works.

Thanks in advance! 
Tiresia

P.S. By the way, I tried yesterday to post my first message to the lilypond-user
mailing list but it was rejected by the list moderator with the reason that I am
not a subscribed to the list.

I don't understand what is wrong. I subscribed to the list a couple of
weeks ago (and I get regularly all messages of the list members).


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


RE: LilyPond 2.12.3 and Fonts in Debian Squeeze

2011-03-24 Thread James Lowe
Hello,

)-Original Message-
)From: lilypond-user-bounces+james.lowe=datacore@gnu.org
)[mailto:lilypond-user-bounces+james.lowe=datacore@gnu.org] On
)Behalf Of Tiresia Giuno
)Sent: 24 March 2011 15:22
)To: lilypond-user@gnu.org
)Subject: LilyPond 2.12.3 and Fonts in Debian Squeeze
)
)Hello,
)
)not sure this is the right place to ask the following question, but I hope
)that someone knows more about this issue.
)
)I'm running LilyPond 2.12.3 on Debian Squeeze. I can compile my files with
)no problems but if I change the font size I get an almost empty PDF file. It
)does not happen with every font size. For example setting #(set-global-
)staff-size 14) returns a PDF file containing just stems, beams and slurs (no
)noteheads, no clef, no dynamics)
)
)Compiling the same file with LilyPond 2.12.3 in MacOSX works.
)

Can you try a different PDF viewer just to be sure it isn't that?

James



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


Re: LilyPond 2.12.3 and Fonts in Debian Squeeze

2011-03-24 Thread Federico Bruni
2011/3/24 Tiresia Giuno tires...@gmail.com


 I'm running LilyPond 2.12.3 on Debian Squeeze. I can compile my files
 with no problems but if I change the font size I get an almost empty PDF
 file. It does not happen with every font size. For example setting
 #(set-global-staff-size 14) returns a PDF file containing just stems,
 beams and slurs (no noteheads, no clef, no dynamics)


I've tried the minimal example below and it compiles fine using lilypond
packaged in squeeze.
Does it work for you?
If it doesn't work, then there's definitely something wrong in your
installation.

\version 2.12.3
#(set-global-staff-size 14)

{ a b c d }
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Box getting off-center

2011-03-24 Thread Michael Dykes
I am now in a project that is working to set, and upload the vast repertoire
of Orthodox liturgical music that exists. I harmonize, and arrange some of
it, then send it along to a colleague to adds certain fields to my
Lilyponded arrangements. He is mainly adding a boxed in area at the bottom
of the last page that contains copyright info, and other pertinent stuff.
Attached is one file He did, and another that I submitted, and He added the
copyright info, and etc. However, while the file He did completely himself
looks fine, mine has the box partly off the page. Can anyone help? Thanks.

-- 
In Christ,
Michael D
\version 2.12.3
\include english.ly
\include gregorian.ly

\header {
  title = First Typical Antiphon
  subtitle = Psalm 102
  poet = Znamenny Chant
  composer =  Arranged by Michael Dykes
 footer = 1ant_zn[3].ly
ponomarname = First Typical Antiphon
ponomartype = OwnWork
ponomarsubtype = Arrangement
ponomarsource = Unknown
ponomarauthor = Michael Dykes
maintainer = Michael Dykes
maintaineremail = thedoctor81...@gmail.com
lastupdated = 2011/03/24
ponomarlang = en
ponomarcomments = 
copyright = This score is part of the Ponomar OpenMusic Project
tagline = \markup {
\override #'(box-padding . 1.0) \override #'(baseline-skip . 2.7)
\box \center-column {
  \line { \with-url #http://www.ponomar.net; \line { www. \hspace #-1.0 ponomar \hspace #-1.0 .net \hspace #0.5 } • Orthodox Liturgical music that is \italic free to download, use, modify and distribute. }
  \line { Typeset using \with-url #http://www.LilyPond.org; \line { LilyPond } by \maintainer \hspace #-1.0 . \hspace #0.5 Copyright © 2011. \hspace #0.5 Reference: \footer }
  \line { \teeny \line { Licensed under the Creative Commons Attribution-ShareAlike 3.0 (Unported) License, for details see: \hspace #-0.5 \with-url #http://creativecommons.org/licenses/by-sa/3.0; http://creativecommons.org/licenses/by-sa/3.0 } }
}
  }
}

#(set-global-staff-size 22)
global = {
  \key f \major

  \override Staff.TimeSignature #'stencil = ##f
  \override Staff.BarLine #'stencil = ##f
}
move = { \bar  \break }

soprano = \relative c'' {
  \global
  % Music follows here.
  g4 a bf2(a4 g) a bf c(bf a2) \divisioMinima
  a4(bf c bf8 a) bf2 a c4 bf8(a) g1 \divisioMaior
  
  g2 a4 bf2(a4 g) a bf c(bf a2) \divisioMinima
  bf4 c bf a a a a g a bf2(a4) a g1 \divisioMaior
  
  g2 a4 bf2(a4 g) a bf c(bf a2) \divisioMinima
  a4 bf c bf a2 g4(a) bf(a) g a1 \divisioMaior
  
  c4 bf c2(bf4 a) a2 a4 bf c2(bf4 ) a g2 \divisioMinima
  a4(bf) c(bf) a2 g4 f a2(bf4 a) g1 \divisioMaior
  
  g4 g g g a a g g a g a2 \divisioMinima
  a4 bf bf a a a a a2 g1 \divisioMaior
  
  g2 bf4 c2(bf8 a g4) a8(g) a8(bf) c4(bf a g2) \divisioMinima
  g4 bf2 bf4 bf bf8(a) g(a) bf2 \divisioMaior
  
  bf8(g) a(bf) c4(bf8 a) g4 a2 \divisioMinima
  bf2 a g4.(f8) a2 bf8(a bf4) a(g8 f a\breve) \finalis
}

tenor = \relative c' {
  \global
  % Music follows here.
  g4 a bf2(a4 g) a bf c(bf a2) \divisioMinima
  a4(bf c bf8 a) bf2 a c4 bf8(a) g1 \divisioMaior
  
  bf2 c4 d2(c4 bf) c d ef(d c2) \divisioMinima
  d4(ef d) c c c c c c d2(c4) c bf1 \divisioMaior
  
  bf2 c4 d2(c4 bf) c d ef(d c2) \divisioMinima
  c4 d ef d c2 bf4(c) d(c) bf c1 \divisioMaior
  
  ef4 d ef2(d4 c) c2 c4 d ef2(d4) c bf2 \divisioMinima
  c4(d) ef(d) c2 bf4 a c2(d4 c) bf1 \divisioMaior
  
  bf4 bf bf bf c c bf bf c bf c2 \divisioMinima
  c4 d d c c c c c2 bf1 \divisioMaior
  
  bf2 d4 ef2(d8 c bf4) c8(bf) c8(d) ef4(d c bf2) \divisioMinima
  bf4 d2 d4 d d8(c) bf(c) d2 \divisioMaior
  
  d8(bf) c(d) ef4(d8 c) bf4 c2 \divisioMinima
  d2 c bf4.(a8) c2 d8(c d4) c(bf8 a c\breve) \finalis
}

bass = \relative c {
  \global
  % Music follows here.
  g'4 a bf2(a4 g) a bf c(bf a2) \divisioMinima
  a4(bf c bf8 a) bf2 a c4 bf8(a) g1 \divisioMaior
  
  g2 g4 g1 g4 g f1 \divisioMinima
  f4 f f f f f f f f d2(f4) f g1 \divisioMaior
  
  g2 g4 g1 g4 g f1 \divisioMinima
  f4 f f f f2 f f f4 f1 \divisioMaior
  
  f4 f f1 f2 f4 f f2. f4 g2 \divisioMinima
  g2 f f f4 f d2.(g4) f1 \divisioMaior
  
  g4 g g g f f f f f f d2 \divisioMinima
  d4 d d d d d d f2 g1 \divisioMaior
  
  g2 g4 g1 g4 g g2.~g2 \divisioMinima
  g4 g2 g4 g g g g2 \divisioMaior
  
  g4 g f2 f4 f2 \divisioMinima
  d2 d d1 d2 d4 g f f,\breve \finalis
}

verse = \lyricmode {
  % Lyrics follow here.
  \override LyricSpace #'minimum-distance = #1.2
  \override LyricText #'font-size = #+1
  Bless the Lord,__ O my soul,__
  bles -- sed art Thou, O Lord.
  Bless the Lord,__ O my soul,__
  and all that is with -- in me bless His Ho -- ly Name.
  Bless the Lord,__ O my soul,__
  and for -- get not all His 
  \override LyricHyphen #'minimum-distance = #1.8
  be -- ne -- fits.
  Who 
  \override LyricHyphen #'minimum-distance = #1.8
  for -- gives __ all your in -- i -- quit -- ies, 
  Who heals __ all your dis -- eas -- es.
  The Lord is com -- pas -- sion -- ate and mer -- ci -- ful,
  long suf -- fer -- ing and of great good -- 

Re: Re: strange instrument name bug

2011-03-24 Thread Francisco Vila
2011/3/23 Francisco Vila paconet@gmail.com:
 2011/3/23 胡海鹏 - Hu Haipeng hhpmu...@163.com:
 Hello Francisco,
   Does this work? I can't know it from my pdf reder's txt conversion. Or
 must I x-offset the instr name of grand staff to -1 or -2?

 In your score you need \paper{ left-margin=1.5\cm } as a minimum,
 otherwise shortInstrumentNames run out of the page.

 As for the clash, I find very difficult to decide what to do here.
 The standard place for both names is where they currently are, what is
 extraordinary is to have an odd amount of staves with names in a group
 that has also a name.  For a textual schematic mind-diagram (not
 music) I'd put the brace with its name at the left end, then names of
 sub concepts at the right side of the brace. Maybe what you need is a
 generous left margin together with a big padding for the brace, enoguh
 for staff names to fit at its right side, all bracketed by the brace,
 hope I'm explaining well.

Well.  I come with a way of avoiding the clash for an odd number of
staves in a group.  Here you can adjust X-offset and Y-offset freely.
I have put 1 for group instrumentname and -1 for individual staves
instrumentname in Y-offset.  It's attached.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com
%#(set-global-staff-size 32)  % it is scalable

grpnamesettings = \with {
  \override InstrumentName #'Y-offset = #(lambda (grob) (+ (system-start-text::calc-y-offset grob) 1))
  \override InstrumentName #'X-offset = #(lambda (grob) (+ (system-start-text::calc-x-offset grob) 0))
  }

instrnamesettings = \with {
  \override InstrumentName #'Y-offset = #(lambda (grob) (+ (system-start-text::calc-y-offset grob) -1))
  \override InstrumentName #'X-offset = #(lambda (grob) (+ (system-start-text::calc-x-offset grob) 0))
  }



\new GrandStaff \with { instrumentName = Percussion I
		  shortInstrumentName = Perc1
		  \grpnamesettings
	  }
  
\new Staff \with { instrumentName =  One	
  shortInstrumentName = 1
  \instrnamesettings
}
{ s1 \break s1 }

\new Staff  \with { instrumentName = Two 
  shortInstrumentName = 2
  \instrnamesettings
}
{ s1 \break s1 }

\new Staff \with { instrumentName = Three 
  shortInstrumentName = 3
  \instrnamesettings
}
{ s1 \break s1 }



\paper { left-margin=2\cm }
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user