On Sun, 2011-05-22 at 10:55 -0500, Jeremiah Benham wrote: > I'll do the filechooser part. > > Jeremiah
There is enough in git now to allow you to start. You have to set Enable Thumbnails in the Misc section of the prefs dialog. Then on exiting Denemo a thumbnail will be created in ~/.thumbnails/large The file chooser can locate this using the filename (with .png attached): g_compute_checksum_for_string (G_CHECKSUM_MD5, fullpath, -1); where filepath is the path to the selected item in the filechooser. I still have work to do to make it obvious how to select what is to be used for the thumbnail, and to add the uri and modification time to the .png, but that needn't stop you. Richard > > On May 22, 2011, at 10:21 AM, Richard Shann <[email protected]> > wrote: > > > On Sun, 2011-05-22 at 09:37 -0500, Jeremiah Benham wrote: > >> > >>> > >>> If someone can point out to me how to extract the first few > >> measures, > >>> I'd like to try implementing them ;) > >>> > >> > >> You can write a script that selects the first few measure and then > >> runs print excerpt. > >> > > Yes. Then we need something to read the file in, scale it to thumbnail > > size, compute the MD5 name, install the mtime and write it out. > > (LilyPond seems to provide no means of specifying a pixel size only > > dots > > per inch). > > I think I have all this sorted out - I have in mind allowing the > > user to > > specify a selection to use for the thumbnail if they want to, and > > storing this selection information with the .denemo file. And then > > something to let the user place the thumbnail on the title page. > > Generation of the thumbnail would be at closing the score - we could > > save the thumbnail selection on load, and compare it before closing to > > save re-generating the thumbnail, but we would still need to re-write > > the mtime information to conform with the spec (we could ignore that > > but > > would lose the file explorer facility as the file explorer will check > > that the thumbnail is up to date). > > The bit I was hoping for a volunteer for is popping up the thumbnail > > in > > the filechooser widget... > > > > Richard > > > > _______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
