bugDenemo - Bugs: bug #26141, Remove excerpt field

 
 

bug #26141: Remove excerpt field

Submitter:  Richard Shann <rshann>
Submitted:  Fri 10 Apr 2009 08:44:55 AM UTC
   
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  None
Privacy:  Public Assigned to:  rshann
Originator Name:  Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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>
Group 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>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-10 rshann SummaryRemove execerpt field Remove excerpt field

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code