Re: Detecting first and last pages of a score

2019-09-06 Thread Leah Velleman
This is a very interesting approach! It wouldn't have occurred to me to handle it like this — thank you for taking the time to spell it out and code it up. I'll give it a try! Thanks, LV On Fri, Sep 6, 2019 at 8:01 PM Thomas Morley wrote: > Am Sa., 7. Sept. 2019 um 01:42 Uhr schrieb Thomas Morl

Re: Detecting first and last pages of a score

2019-09-06 Thread Thomas Morley
Am Sa., 7. Sept. 2019 um 01:42 Uhr schrieb Thomas Morley : > > Am Fr., 6. Sept. 2019 um 23:55 Uhr schrieb David Kastrup : > > > > On 06/09/19 17:00, David Kastrup wrote: > > (short of some > > multi-pass algorithm writing out table-of-content like information on > > each run) > > David, > > we have

Re: Detecting first and last pages of a score

2019-09-06 Thread Thomas Morley
Am Fr., 6. Sept. 2019 um 23:55 Uhr schrieb David Kastrup : > > On 06/09/19 17:00, David Kastrup wrote: > (short of some > multi-pass algorithm writing out table-of-content like information on > each run) David, we have a prob-property 'last-in-score, iiuc it's set far too late to be of any use h

Re: Detecting first and last pages of a score

2019-09-06 Thread David Kastrup
Wols Lists writes: > On 06/09/19 17:00, David Kastrup wrote: >> I am not saying "it never will be able to do" things like that but the >> mechanisms are not there even in rudimentary form, so the manner in >> which it may be done at some prospective future time is not clear. > > Is this the sort

Re: Detecting first and last pages of a score

2019-09-06 Thread Wols Lists
On 06/09/19 17:00, David Kastrup wrote: > I am not saying "it never will be able to do" things like that but the > mechanisms are not there even in rudimentary form, so the manner in > which it may be done at some prospective future time is not clear. Is this the sort of thing the editions engrave

Re: Detecting first and last pages of a score

2019-09-06 Thread David Kastrup
Leah Velleman writes: > Well, although my knowledge of the internals is quite limited, it looks to > me like there is precedent for this, involving page headers. As you say, a > score can be placed multiple times. And each time it is placed, it can be > interrupted at different points by page hea

Re: Detecting first and last pages of a score

2019-09-06 Thread Leah Velleman
Well, although my knowledge of the internals is quite limited, it looks to me like there is precedent for this, involving page headers. As you say, a score can be placed multiple times. And each time it is placed, it can be interrupted at different points by page headers. I could see this being qui

Re: Detecting first and last pages of a score

2019-09-06 Thread David Kastrup
Andrew Bernard writes: >> On 3/9/19 7:48 am, Leah Velleman wrote: >>> In >>> https://github.com/lilypond/lilypond/blob/master/ly/titling-init.ly there >>> are predicates that detect if the current page is the first or last >>> one of a /book/, or of a /bookpart/. But it's not clear to me how to >

Re: Detecting first and last pages of a score

2019-09-06 Thread Andrew Bernard
Hello Leah, I have been looking into this. Searching the archives I see you have been asking about this since at least 2015. I don't think it is possible. The control stops art bookparts where you can use the on the fly functions. Next level down at \score - either impossible or not document

Re: Detecting first and last pages of a score

2019-09-03 Thread David Bowen
The Sacred Harp hymnbooks I'm familiar with are set in landscape mode with two systems per page, so you won't have three songs on a page. Dave Bowen On Tue, Sep 3, 2019 at 7:19 AM Andrew Bernard wrote: > Lovely! Do you use the shape heads? > > Are you trying to make a book like the 19c origina

Re: Detecting first and last pages of a score

2019-09-03 Thread Andrew Bernard
Lovely! Do you use the shape heads? Are you trying to make a book like the 19c originals? Is there an example we can take a look at? I'm confused about what the page title should be if you have say three songs on one page, or does that not happen? Andrew On Tue, 3 Sep 2019 at 21:51, Leah Velle

Re: Detecting first and last pages of a score

2019-09-03 Thread Leah Velleman
> To do what? So here's the situation. I'm writing a template for collections of Sacred Harp–style songs. (Templates for individual songs already exist, but not openly available ones that handle an entire collection.) In this tradition, when a song runs over a page break, "SONGTITLE Continued" o

Re: Detecting first and last pages of a score

2019-09-02 Thread Andrew Bernard
To do what? Andrew On 3/9/19 7:48 am, Leah Velleman wrote: In https://github.com/lilypond/lilypond/blob/master/ly/titling-init.ly there are predicates that detect if the current page is the first or last one of a /book/, or of a /bookpart/. But it's not clear to me how to generalize from the

Detecting first and last pages of a score

2019-09-02 Thread Leah Velleman
In https://github.com/lilypond/lilypond/blob/master/ly/titling-init.ly there are predicates that detect if the current page is the first or last one of a *book*, or of a *bookpart*. But it's not clear to me how to generalize from there. How would I detect if the current page was the first or last p