Re: [frogs] [PATCH]: Tracker 836 - Allow output filename and output-suffix to be specified for a \book block

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


This is a multi-part message in MIME format.
Graham Percival wrote:
On Mon, Oct 26, 2009 at 03:53:55PM -0600, Carl Sorensen wrote:
  
On 10/26/09 3:09 PM, "Graham Percival" <graham@xxxxxxxxxxxxxxxxx> wrote:

    
Nooooo!  Having \set vs. \setBlahBlah is a nightmare for newbies.
Sorry, my brain is fried at the moment, so I have no alternative
suggestions.
      
The problem is that Ian wants to really have a revert option (and we can't
use revert either, because of confusion with \revert).

\bookOutputSuffix
\bookOutputName
\bookOutputNameUsePrevious  (I hate the english of this, but it sorts where
it belongs and it captures the intent).
    
I like these.  And it fits with some proposals for GLISS, which
will start when GUB or the new website is finished.

Cheers,
- Graham

  

I've now sorted the scoping out in the parser so subsequent \book blocks are no longer affected by prior \bookOutputName and \bookOutputSuffix calls.

This gets rid of the need for \bookOutputNameUsePrevious so I've ditched it.

That means that book-filename can be a string and not a queue/stack structure.  That's a shame because I reckoned the (ice-9 q) stuff was rather cool.

I've now found out at long last where and how the filename gets set for \midi blocks.  It has a satisfactory mechanism for adding a version count internally if needed; it's already getting the name generated from within print-book-with.  So I no longer need to bother about files getting opened at \score level.

I've attached the patch and some test files I've been using.

Cheers,
Ian










Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/