2017-01-04 16:01 GMT+01:00 Chris Yate <chrisy...@gmail.com>:
> On Wed, 4 Jan 2017 at 14:25 Thomas Morley <thomasmorle...@gmail.com> wrote:
> Well, it's odd. I'm not sure this is anything to do with /overrideProperty.
>
> Referring back to my original tests, I can change your definitions to the
> following, and it will crash on each of your test cases:
>
> Uncomment the \override line-break-permission and it renders OK.
>
> Chris
>
> ------------
> myAutoBreaksOn = {
> %\override Score.NonMusicalPaperColumn.line-break-permission = #'allow
> \override Score.NonMusicalPaperColumn.page-break-permission = #'allow
> }
>
> myAutoBreaksOff = {
> %\override Score.NonMusicalPaperColumn.line-break-permission = ##f
> \override Score.NonMusicalPaperColumn.page-break-permission = ##f
> }
Hi Chris,
meanwhile I'm at the end of my knowledge.
So I limited myself to the attempt of creating a meaningful test-file.
It should display in terminal which Staff is currently compiled.
I hope lilypond will proceed with the next score once an assertion
failure happens (not sure about that, though)
In order not to clutter the terminal output you could compile it with
lilypond --loglevel=WARN manual-breaking-assertion-failure-04.ly
I'd expect some assertion failures, but at least some scores should
work for you (hopefully).
Please post the terminal output.
Cheers,
Harm
\version "2.19.52"
%% probably compile in terminal with:
% lilypond --loglevel=WARN manual-breaking-assertion-failure-04.ly
% or
% lilypond --loglevel=ERROR manual-breaking-assertion-failure-04.ly
\pointAndClickOff
compileWhat =
\applyContext
#(lambda (ctx) (format #t "\n\n\t\tCompiling: ~a\n" (ly:context-id ctx)))
\layout { \context { \Staff \compileWhat } }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEST only line-break-permission
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEST 1a, line-break-permission in layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 1a, line-break-permission in layout" }
testMusicI = {
R1 R1\fermataMarkup
\repeat unfold 320 b2
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 1a" \testMusicI
\layout { \override Score.NonMusicalPaperColumn.line-break-permission = ##f }
}
%%%%%%%%%%%%%%%%%
%% TEST 1b
%%%%%%%%%%%%%%%%%
%%{
\markup
\rounded-box
\fill-line { "TEST 1b, line-break-permission first in music" }
testMusicI = {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 1b" \testMusicI
}
%%%%%%%%%%%%%%%%%
%% TEST 1c
%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 1c, line-break-permission in music, with manual break" }
testMusicI = {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
\break
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 1c" \testMusicI
}
%%%%%%%%%%%%%%%%%
%% TEST 1d
%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 1d, line-break-permission in music, switching #f and #t" }
testMusicI = {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
\override Score.NonMusicalPaperColumn.line-break-permission = #'allow
R1 R\fermataMarkup
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 1d" \testMusicI
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEST only page-break-permission
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEST 2a, page-break-permission in layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 2a, page-break-permission in layout" }
testMusicI = {
R1 R1\fermataMarkup
\repeat unfold 320 b2
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 2a" \testMusicI
\layout { \override Score.NonMusicalPaperColumn.page-break-permission = ##f }
}
%%%%%%%%%%%%%%%%%
%% TEST 2b
%%%%%%%%%%%%%%%%%
%%{
\markup
\rounded-box
\fill-line { "TEST 2b, page-break-permission first in music" }
testMusicI = {
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 2b" \testMusicI
}
%%%%%%%%%%%%%%%%%
%% TEST 2c
%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 2c, page-break-permission in music, with manual pageBreak" }
testMusicI = {
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
\pageBreak
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 2c" \testMusicI
}
%%%%%%%%%%%%%%%%%
%% TEST 2d
%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 2d, page-break-permission in music, switching #f and #t" }
testMusicI = {
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
\override Score.NonMusicalPaperColumn.page-break-permission = #'allow
R1 R\fermataMarkup
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 2d" \testMusicI
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEST both, page-break-permission and line-break-permission
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEST 3a, both in layout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 3a, both in layout" }
testMusicI = {
R1 R1\fermataMarkup
\repeat unfold 320 b2
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 3a" \testMusicI
\layout {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
}
}
%%%%%%%%%%%%%%%%%
%% TEST 3b
%%%%%%%%%%%%%%%%%
%%{
\markup
\rounded-box
\fill-line { "TEST 3b, both first in music" }
testMusicI = {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 3b" \testMusicI
}
%%%%%%%%%%%%%%%%%
%% TEST 3c
%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 3c, both in music, with manual pageBreak" }
testMusicI = {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
R1 R1\fermataMarkup
\repeat unfold 320 b2
\pageBreak
R1 R\fermataMarkup
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 3c" \testMusicI
}
%%%%%%%%%%%%%%%%%
%% TEST 3d
%%%%%%%%%%%%%%%%%
\markup
\rounded-box
\fill-line { "TEST 3d, page-break-permission in music, switching #f and #t" }
testMusicI = {
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
R1 R\fermataMarkup
\repeat unfold 320 b2
\override Score.NonMusicalPaperColumn.line-break-permission = #'allow
\override Score.NonMusicalPaperColumn.page-break-permission = #'allow
R1 R\fermataMarkup
\override Score.NonMusicalPaperColumn.line-break-permission = ##f
\override Score.NonMusicalPaperColumn.page-break-permission = ##f
\repeat unfold 320 b2
}
\score {
\new Staff = "TEST 3d" \testMusicI
}
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel