Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-07 Thread Dmytro O. Redchuk
2015-12-08 9:55 GMT+02:00 Dmytro O. Redchuk :
> Hello,
>
> to avoid any misunderstanding with any "include"'s I've tested this
> issue with this source:
And the command was (no -I...), of course:

$ lilypond-book --out=out [--pdf] test.lytex

>
> %  8< --
> \documentclass{article}
> \begin{document}
> \begin{lilypond}
>   { c''4 }
>   \paper {
> #(define fonts
>   (set-global-fonts
>   #:music "improviso"
>   #:factor (/ staff-height pt 20)
> ))
>   }
> \end{lilypond}
> \end{document}
> %  8< --
>
> And I have the same result, attached.
>
> 2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk :
>> 2015-12-07 19:55 GMT+02:00 James :
>>> Hello Dmytro,
>> Hello James :)
>>
> I want lilypond to engrave it with "improviso" font,
> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's
> ok.
>> ... and the subject of this thread is: "lilypond-book: 'external'
>> fonts and --pdf option problem" .)
>>
>> I have no any problem with lilypond-book and Emmentaler (lilypond's
>> default) font. With or without --pdf, really.
>>
>> I am sorry to be unclear. That \include imports the stylesheet for
>> improviso font (https://fonts.openlilylib.org/improviso/, an alternate
>> font for lilypond).
>>
>> So, without --pdf I have nice result, with --pdf I have a score(s)
>> with "improviso-related" objects missed.

-- 
  Dmytro O. Redchuk

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


Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-07 Thread Dmytro O. Redchuk
Hello,

to avoid any misunderstanding with any "include"'s I've tested this
issue with this source:

%  8< --
\documentclass{article}
\begin{document}
\begin{lilypond}
  { c''4 }
  \paper {
#(define fonts
  (set-global-fonts
  #:music "improviso"
  #:factor (/ staff-height pt 20)
))
  }
\end{lilypond}
\end{document}
%  8< --

And I have the same result, attached.

2015-12-07 22:00 GMT+02:00 Dmytro O. Redchuk :
> 2015-12-07 19:55 GMT+02:00 James :
>> Hello Dmytro,
> Hello James :)
>
 I want lilypond to engrave it with "improviso" font,
 https://fonts.openlilylib.org/improviso/ --- I have set it up, it's
 ok.
> ... and the subject of this thread is: "lilypond-book: 'external'
> fonts and --pdf option problem" .)
>
> I have no any problem with lilypond-book and Emmentaler (lilypond's
> default) font. With or without --pdf, really.
>
> I am sorry to be unclear. That \include imports the stylesheet for
> improviso font (https://fonts.openlilylib.org/improviso/, an alternate
> font for lilypond).
>
> So, without --pdf I have nice result, with --pdf I have a score(s)
> with "improviso-related" objects missed.
>
> --
>   Dmytro O. Redchuk



-- 
  Dmytro O. Redchuk
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Manual bar breaks autoBeaming

2015-12-07 Thread Simon Albrecht

On 07.12.2015 14:32, Simon Albrecht wrote:

On 07.12.2015 13:45, Simon Albrecht wrote:
The report was (supposed to be) about the missing beam over the first 
two quavers, which are not separated by a bar line.


To clarify:

\version "2.19.32"
{
  \time 3/4
  8-"default" 8  16 16 16 16  8 8
  8-"with bars" 8 \bar "" 16 16 16 16 \bar "" 8 8
}


The fact that semiquavers are beamed correctly also indicates that it’s 
not an inherent limitation in the interaction of autobeaming and manual 
barlines.


Yours, Simon

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


Re: Manual bar breaks autoBeaming

2015-12-07 Thread Simon Albrecht

On 07.12.2015 13:45, Simon Albrecht wrote:
The report was (supposed to be) about the missing beam over the first 
two quavers, which are not separated by a bar line.


To clarify:

\version "2.19.32"
{
  \time 3/4
  8-"default" 8  16 16 16 16  8 8
  8-"with bars" 8 \bar "" 16 16 16 16 \bar "" 8 8
}

Yours, Simon
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Manual bar breaks autoBeaming

2015-12-07 Thread Trevor Daniels
Sorry; I retract this email.  It's rubbish!  All that does is invalidate the 
autobeaming.

Trevor

- Original Message - 
From: "Trevor Daniels" 
To: "David Kastrup" ; ; "Simon Albrecht" 

Sent: Monday, December 07, 2015 4:09 PM
Subject: Re: Manual bar breaks autoBeaming


> 
> Simon Albrecht wrote Monday, December 07, 2015 1:32 PM
> 
>>> The report was (supposed to be) about the missing beam over the first 
>>> two quavers, which are not separated by a bar line.
>> 
>> To clarify:
>> 
>> \version "2.19.32"
>> {
>>   \time 3/4
>>   8-"default" 8  16 16 16 16  8 8
>>   8-"with bars" 8 \bar "" 16 16 16 16 \bar "" 8 8
>> }
> 
> This is definitely a bug, and an interesting one!
> If I copy out the 3/4 beam exceptions data structure from
> scm/time-signature-settings.scm and place it in the score:
> 
> {
>   \time 3/4
>  \set Timing.beamExceptions = 
>#'((3 . 4) .
> ((beamExceptions . ((end . ((1/8 . (6))
> (1/12 . (3 3 3
>   8-"default" 8  16 16 16 16  8 8
>   8-"with bars" 8 \bar "" 16 16 16 16 \bar "" 8 8
> }
> 
> then the beams are correct.  So it seems the beam exceptions
> are not being accessed correctly.
> 
> Trevor
> ___
> bug-lilypond mailing list
> bug-lilypond@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Manual bar breaks autoBeaming

2015-12-07 Thread David Kastrup
Simon Albrecht  writes:

> Hello,
>
> is this a known issue?
>
> %%
> \version "2.19.32"
> {
>   \time 3/4
>   8 8 \bar "" 16 16 16 16 \bar "" 8 8
> }
> %%
>
> The type of bar doesn’t matter.

I read in the manual:


Manual beams


In some cases it may be necessary to override the automatic beaming
algorithm.  For example, the autobeamer will not put beams over rests or
bar lines, [...]


So the behavior is known, documented, and deliberate.

-- 
David Kastrup

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


Re: Manual bar breaks autoBeaming

2015-12-07 Thread Simon Albrecht

On 07.12.2015 10:21, David Kastrup wrote:

Simon Albrecht  writes:


Hello,

is this a known issue?

%%
\version "2.19.32"
{
   \time 3/4
   8 8 \bar "" 16 16 16 16 \bar "" 8 8
}
%%

The type of bar doesn’t matter.

I read in the manual:


Manual beams


In some cases it may be necessary to override the automatic beaming
algorithm.  For example, the autobeamer will not put beams over rests or
bar lines, [...]


So the behavior is known, documented, and deliberate.


I thought you were going to write something like this.

1. The report was (supposed to be) about the missing beam over the first 
two quavers, which are not separated by a bar line. So this is not 
covered by the doc excerpt above.
2. If we accept this as a limitation, then it is a severe one IMO. The 
only sensible way to allow mid-bar line breaks is adding a parallel 
track inserting these invisible bar lines in every measure, and if this 
breaks autoBeaming, then there is no way at all. Adding manual beams for 
the entire piece is too much work and completely undesirable.


I’m not speaking about cases like

<<
  { \time 3/4 s4 \bar "" s \bar "" s }
  { 8 8 8 8 8 8 }
>>

yet, where the beam should ideally extend over the whole measure except 
if there is a line break…


Yours, Simon

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


lilypond-book: "external" fonts and --pdf option problem

2015-12-07 Thread Dmytro O. Redchuk
Hello bug squad, hello list,

I've found a problem with this "book":

% test.lytex:
% 8<
\documentclass{article}
\begin{document}
\begin{lilypond}
  \include "improviso.ily"
  { c''4 }
\end{lilypond}
\end{document}
% 8<

I want lilypond to engrave it with "improviso" font,
https://fonts.openlilylib.org/improviso/ --- I have set it up, it's
ok.

Now: lilypond-book does well without --pdf option:

$ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out test.lytex
$ cd out
$ latex test && dvips -o test.ps test.dvi && ps2pdf test.ps

Now I have the desired result.

But it fails when I want to do it for pdflatex:
% 8<
$ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out --pdf test.lytex

Layout output to `b5/lily-09c4cef9.eps'...
попередження: cannot embed "improviso-20"="improviso-20"
Converting to `b5/lily-09c4cef9.pdf'...
Layout output to `b5/lily-09c4cef9-1.eps'...
попередження: cannot embed "improviso-20"="improviso-20"
Converting to `b5/lily-09c4cef9-1.pdf'...
Writing b5/lily-09c4cef9-systems.texi...
Writing b5/lily-09c4cef9-systems.tex...
Writing b5/lily-09c4cef9-systems.count...
Success: compilation successfully completed
Linking files...
Compiling /home/dor/tmp/ly-test/out/test.tex...
Writing `/home/dor/tmp/ly-test/out/test.tex'...
% 8<

Now I have pdf containing a score with no clef, key signature and notehead.

I've attached png files produced by
$ convert -density 150 -1.eps -flatten -1.png
for both ways, with and without --pdf.

Is this an issue? How to work around?

Thank you!

-- 
  Dmytro O. Redchuk
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-07 Thread Dmytro O. Redchuk
2015-12-07 15:12 GMT+02:00 Dmytro O. Redchuk :
> Hello bug squad, hello list,
>
> I've found a problem with this "book":
I am sorry, forgot to mention,
tested with 2.18.2 and 2.19.32, got the same result.

>
> % test.lytex:
> % 8<
> \documentclass{article}
> \begin{document}
> \begin{lilypond}
>   \include "improviso.ily"
>   { c''4 }
> \end{lilypond}
> \end{document}
> % 8<
>
> I want lilypond to engrave it with "improviso" font,
> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's
> ok.
>
> Now: lilypond-book does well without --pdf option:
>
> $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out test.lytex
> $ cd out
> $ latex test && dvips -o test.ps test.dvi && ps2pdf test.ps
>
> Now I have the desired result.
>
> But it fails when I want to do it for pdflatex:
> % 8<
> $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out --pdf test.lytex
> 
> Layout output to `b5/lily-09c4cef9.eps'...
> попередження: cannot embed "improviso-20"="improviso-20"
> Converting to `b5/lily-09c4cef9.pdf'...
> Layout output to `b5/lily-09c4cef9-1.eps'...
> попередження: cannot embed "improviso-20"="improviso-20"
> Converting to `b5/lily-09c4cef9-1.pdf'...
> Writing b5/lily-09c4cef9-systems.texi...
> Writing b5/lily-09c4cef9-systems.tex...
> Writing b5/lily-09c4cef9-systems.count...
> Success: compilation successfully completed
> Linking files...
> Compiling /home/dor/tmp/ly-test/out/test.tex...
> Writing `/home/dor/tmp/ly-test/out/test.tex'...
> % 8<
>
> Now I have pdf containing a score with no clef, key signature and notehead.
>
> I've attached png files produced by
> $ convert -density 150 -1.eps -flatten -1.png
> for both ways, with and without --pdf.
>
> Is this an issue? How to work around?
>
> Thank you!
>
> --
>   Dmytro O. Redchuk



-- 
  Dmytro O. Redchuk

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


Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-07 Thread Dmytro O. Redchuk
2015-12-07 19:55 GMT+02:00 James :
> Hello Dmytro,
Hello James :)

>>> I want lilypond to engrave it with "improviso" font,
>>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's
>>> ok.
... and the subject of this thread is: "lilypond-book: 'external'
fonts and --pdf option problem" .)

I have no any problem with lilypond-book and Emmentaler (lilypond's
default) font. With or without --pdf, really.

I am sorry to be unclear. That \include imports the stylesheet for
improviso font (https://fonts.openlilylib.org/improviso/, an alternate
font for lilypond).

So, without --pdf I have nice result, with --pdf I have a score(s)
with "improviso-related" objects missed.

-- 
  Dmytro O. Redchuk

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


Re: Kneed beam and subdivisions

2015-12-07 Thread Simon Albrecht



Yours, Simon

On 06.12.2015 13:10, Gilberto Agostinho wrote:

Hi all,

In the file lily/beam.cc, lines 231-232, we find the following comment:



We want a maximal number of shared beams, but if there is choice, we
take the one that is closest to the end of the stem.

I believe the maximal number of shared beams is indeed necessary, but the
problem is to always take the beam that is closest to the end of the current
stem, since I think this is what leads to the staircase effect. Probably a
better algorithm would be to consider the beam closest to the end of the
stem at the start of a subgroup. Basically, if a beam is added to a subgroup
above the initial beam(s), then all others must be added in the same
direction. Once we are back at the same number (or less) of beams as
initially, then the next group can be created either up or down once again.

E.g. in the image below, the beam for the fourth note in the lower staff
should have been an extension of the bottom beam of the third note, since
the previous subgroup was added above the initial beam:



One more example showing how the subgroups should have been beamed:



I also would like to offer a small bounty to get this fixed: I can pay 30
EUR to anyone who is able to fix this until February 2016. I know that
giving a deadline for a bounty isn't really the most elegant thing to do,
but this issue is greatly affecting my final work for my master's degree and
I must have the score ready by the end of February :(

Cheers,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Kneed-beam-and-subdivisions-tp184473p184520.html
Sent from the Bugs mailing list archive at Nabble.com.

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



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


Re: Kneed beam and subdivisions

2015-12-07 Thread Gilberto Agostinho
Thanks a lot, I really appreciate it, Simon.

Take care,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Kneed-beam-and-subdivisions-tp184473p184571.html
Sent from the Bugs mailing list archive at Nabble.com.

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


Re: lilypond-book: "external" fonts and --pdf option problem

2015-12-07 Thread James
Hello Dmytro,

On 07/12/15 13:16, Dmytro O. Redchuk wrote:
> 2015-12-07 15:12 GMT+02:00 Dmytro O. Redchuk :
>> Hello bug squad, hello list,
>>
>> I've found a problem with this "book":
> I am sorry, forgot to mention,
> tested with 2.18.2 and 2.19.32, got the same result.
>
>> % test.lytex:
>> % 8<
>> \documentclass{article}
>> \begin{document}
>> \begin{lilypond}
>>   \include "improviso.ily"
>>   { c''4 }
>> \end{lilypond}
>> \end{document}
>> % 8<
>>
>> I want lilypond to engrave it with "improviso" font,
>> https://fonts.openlilylib.org/improviso/ --- I have set it up, it's
>> ok.
>>
>> Now: lilypond-book does well without --pdf option:
>>
>> $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out test.lytex
>> $ cd out
>> $ latex test && dvips -o test.ps test.dvi && ps2pdf test.ps
>>
>> Now I have the desired result.
>>
>> But it fails when I want to do it for pdflatex:
>> % 8<
>> $ lilypond-book -I ${HOME}/lilyponds/local-includes --out=out --pdf 
>> test.lytex
>> 
>> Layout output to `b5/lily-09c4cef9.eps'...
>> попередження: cannot embed "improviso-20"="improviso-20"
>> Converting to `b5/lily-09c4cef9.pdf'...
>> Layout output to `b5/lily-09c4cef9-1.eps'...
>> попередження: cannot embed "improviso-20"="improviso-20"
>> Converting to `b5/lily-09c4cef9-1.pdf'...
>> Writing b5/lily-09c4cef9-systems.texi...
>> Writing b5/lily-09c4cef9-systems.tex...
>> Writing b5/lily-09c4cef9-systems.count...
>> Success: compilation successfully completed
>> Linking files...
>> Compiling /home/dor/tmp/ly-test/out/test.tex...
>> Writing `/home/dor/tmp/ly-test/out/test.tex'...
>> % 8<
>>
>> Now I have pdf containing a score with no clef, key signature and notehead.
>>
>> I've attached png files produced by
>> $ convert -density 150 -1.eps -flatten -1.png
>> for both ways, with and without --pdf.
>>
>> Is this an issue? How to work around?
>>
>> Thank you!
>>
>> --
>>   Dmytro O. Redchuk
>

I used your command, without the include (obviously as I don't have it)

$ lilypond-book out=out --pdf test.lytex


Then I cd into 'out' and run

$ texi2pdf text.texi

The resulting PDF shows me the clef, key signature etc.

So it seems - with my very limited experience -  to be something local
to your environment (or perhaps your 'include').

James

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