08-31-2021, 10:46 PM
In case a page is almost completely filled with chords and lyrics, adding a {new_page} directive adds not only the intended page break but also an additional unwanted empty page.
The following steps reproduce this behaviour on my 7.9'' tablet with a 1024 x 768 pixel 4:3 display.
It should be possible to reproduce the issue on any device.
I import the attached DerMondIstAufgegangen.pro
Text Display Settings > Auto-Size Font
proposes
Title Size: 47
Meta Size: 40
Lyric Size: 40
Chord Size: 40
The longest line
'der Wald steht schwarz und schweiget'
determines the value for Lyric Size as expected
With the new_page directive still commented out
#{new_page}
reducing size values to
Title Size: 35
Meta Size: 10
allows keeping
Lyric Size: 40
Chord Size: 40
and getting the desired page break with
'verschlafen und vergessen sollt!'
as the last line of page 1 and
'Seht ihr den Mond dort stehen?'
as the first line of page 2
As soon as I remove the # so that
{new_page}
becomes active the mentioned unwanted empty page 2 is created and
'Seht ihr den Mond dort stehen?'
is moved to page 3
It seems that {new_page} is considered to be the first line of page 2, leaves page 2 empty and creates the page break after page 2 instead of after page 1
reducing Lyric Size (keeping all other size values unchanged) until the empty page disappears ends up with
Lyric Size: 37
removing the { before new_page proves that the space required by the new_page directive is the cause of the issue,
new_page} is displayed as the last lyric line of page 1
Expected behaviour:
the line height of the {new_page} directive shall be assumed as =0 like line comments (lines starting with #) so that {new_page} does not need vertical space
Background
My second device has a 16:10 display. Sometimes I want to keep the same page breaks and rather accept unused empty space at the bottom of the page.
The following steps reproduce this behaviour on my 7.9'' tablet with a 1024 x 768 pixel 4:3 display.
It should be possible to reproduce the issue on any device.
I import the attached DerMondIstAufgegangen.pro
Text Display Settings > Auto-Size Font
proposes
Title Size: 47
Meta Size: 40
Lyric Size: 40
Chord Size: 40
The longest line
'der Wald steht schwarz und schweiget'
determines the value for Lyric Size as expected
With the new_page directive still commented out
#{new_page}
reducing size values to
Title Size: 35
Meta Size: 10
allows keeping
Lyric Size: 40
Chord Size: 40
and getting the desired page break with
'verschlafen und vergessen sollt!'
as the last line of page 1 and
'Seht ihr den Mond dort stehen?'
as the first line of page 2
As soon as I remove the # so that
{new_page}
becomes active the mentioned unwanted empty page 2 is created and
'Seht ihr den Mond dort stehen?'
is moved to page 3
It seems that {new_page} is considered to be the first line of page 2, leaves page 2 empty and creates the page break after page 2 instead of after page 1
reducing Lyric Size (keeping all other size values unchanged) until the empty page disappears ends up with
Lyric Size: 37
removing the { before new_page proves that the space required by the new_page directive is the cause of the issue,
new_page} is displayed as the last lyric line of page 1
Expected behaviour:
the line height of the {new_page} directive shall be assumed as =0 like line comments (lines starting with #) so that {new_page} does not need vertical space
Background
My second device has a 16:10 display. Sometimes I want to keep the same page breaks and rather accept unused empty space at the bottom of the page.
first language: German
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de
Acer A1-830, Android 4.4.2 - HP x2 210 G2 Detachable, Win 10 22H2 - Huawei Media Pad T5, Android 8.0 - Boox Tab Ultra C, Android 11
www.moonlightcrisis.de - www.basdjo.de - www.frankenbaend.de