bugDenemo - Bugs: bug #26141, Remove excerpt field

 
 

bug #26141: Remove excerpt field

Submitted by:  Richard Shann <rshann>
Submitted on:  Fri 10 Apr 2009 08:44:55 AM UTC  
 
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Richard Shann <rshann>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 21 Apr 2009 04:59:10 PM UTC, comment #2:

This bug is just to remind me to do this - that's why I assigned it to myself. The score_directive_put_prefix function can't be grepped because it is hidden in a #define in lilydirectives.c
You would need to grep the post-preprocessor compiler output, or look in the symbol table (there is some elf utitlity to do this). This is one of the downsides of using the preprocessor like this, but there are hundreds of these functions (directive_put/get) and will be even more when MIDI fields are put into the directives.

This getting rid of the excerpt field is just a code tidy up. It is just nicer to add and remove a directive than to before doing a png print, rather than signalling exportlilypond to output special lilypond. That is why I have put its severity as minor.

But you report in passing that something in png printing is broken for you. If so please log it as a bug. My print view is fine - you do have to click on it and select refresh print view.

Richard Shann <rshann>
Project AdministratorIn charge of this item.
Tue 21 Apr 2009 04:25:44 PM UTC, comment #1:

I am a bit lost on how to do this. score_directive_put_prefix? I am assuming this a scheme function because grep -r score_directive_put_prefix * didn't really come up with anything.

So I write a script to apply this directive? Then when does this script get applied? Should the script replace File->Print Excerpt? I suppose it would have to move somewhere else if not. Does the script then call run_lilypond_and_viewer or whatever is our scheme equivalent? I guess that would make it easy to create variations on this. Menu->Save Excerpt->eps, Menu->Save Excerpt->svg, Menu->Save Excerpt->png, Menu->Save Multiple formats, Menu->Save Mulitple Measures as seperate files etc.....

At the moment print excerpts, saving as .png, and print view seems totally broken.

Jeremiah Benham <jjbenham>
Project Administrator
Fri 10 Apr 2009 08:44:55 AM UTC, original submission:

we can get rid of the "excerpt" field, which
is used as a flag to tell exportlilypond to output a different header
for printing excerpts. Instead, the excerpt print routine can use
directives to insert the required header & then remove it after. Thus
(roughly):

score_directive_put_prefix("internal_excerpt_tag", "....the header needed")

before the exportlilypond routine is called and

score_directive_delete("internal_excerpt_tag")

once it returns.

Richard Shann <rshann>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jjbenham (Posted a comment)
  • -unavailable- added by rshann (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 10 Apr 2009 08:47:44 AM UTCrshannSummaryRemove execerpt field=>Remove excerpt field

    Back to the top


    Powered by Savane 3.1-cleanup1