Discussion:
Feature request: paper variable for odd-only or even-only pagination
Simon Albrecht
2018-09-11 10:03:04 UTC
Permalink
Hello everybody,

this is a suggestion by Urs from a user list thread on 2018-08-30: for
putting together scores of four-hand music with the typical primo right
page, secondo left page layout it would be useful to select through a
paper variable whether the music of a \book be typeset on only odd or
only even pages, with according page numbers and margins (in case of
twosided = ##t).

Best, Simon
Peter Toye
2018-09-11 10:35:49 UTC
Permalink
Simon,

I would certainly vote for it!

Best regards,

Peter
mailto:***@ptoye.com
www.ptoye.com

-------------------------
Post by Simon Albrecht
Hello everybody,
this is a suggestion by Urs from a user list
thread on 2018-08-30: for
putting together scores of four-hand music with
the typical primo right
page, secondo left page layout it would be
useful to select through a
paper variable whether the music of a \book be typeset on only odd or
only even pages, with according page numbers
and margins (in case of
twosided = ##t).
Best, Simon
_______________________________________________
bug-lilypond mailing list
https://lists.gnu.org/mailman/listinfo/bug-lilypond
James Lowe
2018-09-11 12:44:56 UTC
Permalink
Hello Simon,
Post by Simon Albrecht
Hello everybody,
this is a suggestion by Urs from a user list thread on 2018-08-30: for
putting together scores of four-hand music with the typical primo
right page, secondo left page layout it would be useful to select
through a paper variable whether the music of a \book be typeset on
only odd or only even pages, with according page numbers and margins
(in case of twosided = ##t).
Best, Simon
Added as https://sourceforge.net/p/testlilyissues/issues/5416/

James
Aaron Hill
2018-09-11 14:32:38 UTC
Permalink
Post by Simon Albrecht
this is a suggestion by Urs from a user list thread on 2018-08-30: for
putting together scores of four-hand music with the typical primo
right page, secondo left page layout it would be useful to select
through a paper variable whether the music of a \book be typeset on
only odd or only even pages, with according page numbers and margins
(in case of twosided = ##t).
Just to clarify, is this request strictly about page numbering and
margins (something I believe LilyPond already supports albeit via
manual* configuration), or does it also encompass the automatic
synchronization between the primo and secondo parts at each page break
(also something that requires manual** intervention to achieve at the
moment)?

* Each part's margins can be customized uniquely to achieve the desired
mirroring, and the page numbering needs only a little arithmetic to show
up as odd-only or even-only.

** Providing things do not align by chance, adding explicit \pageBreak
commands would ensure that page turns happen at the same moment.

-- Aaron Hill
Simon Albrecht
2018-09-12 00:06:23 UTC
Permalink
Post by Aaron Hill
Post by Simon Albrecht
this is a suggestion by Urs from a user list thread on 2018-08-30: for
putting together scores of four-hand music with the typical primo
right page, secondo left page layout it would be useful to select
through a paper variable whether the music of a \book be typeset on
only odd or only even pages, with according page numbers and margins
(in case of twosided = ##t).
Just to clarify, is this request strictly about page numbering and
margins (something I believe LilyPond already supports albeit via
manual* configuration), or does it also encompass the automatic
synchronization between the primo and secondo parts at each page break
(also something that requires manual** intervention to achieve at the
moment)?
* Each part's margins can be customized uniquely to achieve the
desired mirroring, and the page numbering needs only a little
arithmetic to show up as odd-only or even-only.
** Providing things do not align by chance, adding explicit \pageBreak
commands would ensure that page turns happen at the same moment.
This is not about automatic synchronization. That’s of course a far
longer shot, and there’s already an issue for it (don’t want to search
it right now).
If adding a simple switch for odd-only/even-only is only syntactic sugar
of sorts for functionality that with some effort is already available,
that’s all the better, then this is only about designing the interface.

Best, Simon
Urs Liska
2018-09-12 06:05:56 UTC
Permalink
Hi Aaron,

I fully agree with Simon's description but want to add one more question
Post by Aaron Hill
Post by Simon Albrecht
this is a suggestion by Urs from a user list thread on 2018-08-30: for
putting together scores of four-hand music with the typical primo
right page, secondo left page layout it would be useful to select
through a paper variable whether the music of a \book be typeset on
only odd or only even pages, with according page numbers and margins
(in case of twosided = ##t).
Just to clarify, is this request strictly about page numbering and
margins (something I believe LilyPond already supports albeit via
manual* configuration),
One side is overlooking something here. Those of us who sponsor the
feature request are thinking that there currently is _no_ viable
solution to produce the intended outcome of two scores that can be
zipped to a primo/secondo volume.

As a workaround the issue that LilyPond doesn't provide proper support
for this kind of score the idea is to

* define (page) breaks in an external file
* create one score for the "prima" part with *even* page numbers only
and the margins set for *left* pages
* create another score for the "seconda" part with *odd* page numbers
* apply the same break set to both files to have synchronized (page)
breaks.
* externally zip the PDFs together

Do you know of a way to create a score with a page numbering of 2, 4, 6
etc. ?
If there's a *reasonable* solution to that we could figure out a way of
achieving the whole workflow without changing LilyPond, either as some
external scripted solution or from within a Scheme library.

Urs
Peter Toye
2018-09-12 08:17:16 UTC
Permalink
Hello Urs and others,

-------------------------
Post by Urs Liska
Hi Aaron,
I fully agree with Simon's description but want
to add one more question
Post by Aaron Hill
Post by Simon Albrecht
this is a suggestion by Urs from a user list thread on 2018-08-30: for
putting together scores of four-hand music with the typical primo
right page, secondo left page layout it would be useful to select
through a paper variable whether the music of a \book be typeset on
only odd or only even pages, with according page numbers and margins
(in case of twosided = ##t).
Just to clarify, is this request strictly about page numbering and
margins (something I believe LilyPond already supports albeit via
manual* configuration),
One side is overlooking something here. Those of us who sponsor the
feature request are thinking that there
currently is _no_ viable
solution to produce the intended outcome of two scores that can be
zipped to a primo/secondo volume.
As a workaround the issue that LilyPond doesn't provide proper support
for this kind of score the idea is to
* define (page) breaks in an external file
* create one score for the "prima" part with
*even* page numbers only
and the margins set for *left* pages
* create another score for the "seconda" part with *odd* page numbers
* apply the same break set to both files to
have synchronized (page)
breaks.
* externally zip the PDFs together
Do you know of a way to create a score with a
page numbering of 2, 4, 6
etc. ?
If there's a *reasonable* solution to that we
could figure out a way of
achieving the whole workflow without changing
LilyPond, either as some
external scripted solution or from within a Scheme library.
Urs
_______________________________________________
bug-lilypond mailing list
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Best regards,

Peter
mailto:***@ptoye.com
www.ptoye.com
Urs Liska
2018-09-12 08:33:54 UTC
Permalink
Hello Peter,
Re: Feature request: paper variable for odd-only or even-only
pagination Hello Urs and others,
-------------------------
*> Hi Aaron,
Post by Urs Liska
I fully agree with Simon's description but want
to add one more question
...
*This link
http://lists.gnu.org/archive/html/lilypond-user/2016-05/msg00149.htmlseems
to do what you want for page numbering, although it puts the page
numbers in the centre of the page rather than the left & right corners
and doesn't adjust margins. Thanks to "Hwaen Ch'uqi"
Thank you for this link, which indeed provides a workable part of a
solution.
I think one can create a streamlined tool for this task. But that
doesn't make the feature request invalid, just less urgent.

Best
Urs
*> Urs
Post by Urs Liska
_______________________________________________
bug-lilypond mailing list
https://lists.gnu.org/mailman/listinfo/bug-lilypond
<https://lists.gnu.org/mailman/listinfo/bug-lilypond>
Best regards,
Peter
www.ptoye.com <http://www.ptoye.com>
Aaron Hill
2018-09-12 09:54:38 UTC
Permalink
Post by Urs Liska
Post by Urs Liska
I fully agree with Simon's description but want
to add one more question
...
*This link
http://lists.gnu.org/archive/html/lilypond-user/2016-05/msg00149.htmlseems
to do what you want for page numbering, although it puts the page
numbers in the centre of the page rather than the left & right corners
and doesn't adjust margins. Thanks to "Hwaen Ch'uqi"
Thank you for this link, which indeed provides a workable part of a
solution.
I think one can create a streamlined tool for this task. But that
doesn't make the feature request invalid, just less urgent.
I was not questioning the validity of the request, but rather I wanted
to double-check its scope.

From what I have seen, there is nothing that LilyPond *needs* to be
modified for, as setting margins and indicating page numbers is already
there. The problem is that it is not *easy* to do. One has to manually
set the margins for the primo and secondo parts and ensure they mirror
the values correctly. Also, it may be non-obvious to some using Scheme
to adjust the page numbering as rendered. But regardless of this
non-obviousness, LilyPond is quite malleable and up to the task.

NOTE: When doing primo/secondo layout by hand, you would also need to
make sure that LilyPond uses the same settings for "odd" and "even"
paper variables, since each part is intended to be strictly left or
right-facing. LilyPond would have no idea that you ultimately intend to
intermingle the pages of two PDFs together.

So, I am all for adding in support to make the process more direct and
accessible. And it seems like something that should be easy enough to
do, given a suitable interface with appropriate semantics defined.
Well, I say "easy enough", because as far as page numbering and margins
are concerned, I am thinking this *should* be fairly straightforward.
Of course for me to say something like that, I have probably just put my
name into the hat for doing the engineering work. ;-)

But to circle back, I wanted to ensure that we were capturing the
entirety of what is entailed in primo/secondo layout in either within
the scope of a single request or a series of related requests, whichever
scheme is appropriate for how this project runs. It sounds like the
latter is preferred here, with finer grain/narrower scope on requests.

You in fact mentioned yet another issue which is the collating of the
two parts' pages into a single output document. I am fairly certain
that external tooling can handle this task, but again it might be
something that LilyPond could support. For instance, if LilyPond can be
made to coordinate the automatic synchronization of page breaks, then it
makes sense for LilyPond also to output the parts interleaved. This
though assumes that folks *want* collation. It could very well end up
an optional feature to enable/disable as desired.

P.S. My Italian is rather lacking, so I only just realized I have been
saying "primo/secondo" as opposed to "prima/seconda". Is this a case of
grammatical gender, or have I been using the wrong part of speech?

-- Aaron Hill
Peter Toye
2018-09-12 10:18:19 UTC
Permalink
Hi Aaron,



-------------------------
Post by Aaron Hill
P.S. My Italian is rather lacking, so I only
just realized I have been
saying "primo/secondo" as opposed to
"prima/seconda". Is this a case of
grammatical gender, or have I been using the wrong part of speech?
I think this would depend on the gender of the pianist. My printed duos mostly say "Primo/secondo" but some have the "a" termination - presumably aimed at Victorian young ladies :-)
Post by Aaron Hill
-- Aaron Hill
Best regards,

Peter
mailto:***@ptoye.com
www.ptoye.com
Post by Aaron Hill
_______________________________________________
bug-lilypond mailing list
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Federico Bruni
2018-09-12 10:40:23 UTC
Permalink
Il giorno mer 12 set 2018 alle 11:54, Aaron Hill
Post by Aaron Hill
P.S. My Italian is rather lacking, so I only just realized I have
been saying "primo/secondo" as opposed to "prima/seconda". Is this a
case of grammatical gender, or have I been using the wrong part of
speech?
I guess it's related to part, which in italian is "parte" (female
noun). Female adjectives ends with -a as in "prima/seconda".

Loading...