View Single Post
Old 09-03-2018, 01:18 AM   #1154
Timboli
Sharpest Tool On Shelf
Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.Timboli ought to be getting tired of karma fortunes by now.
 
Timboli's Avatar
 
Posts: 661
Karma: 2587836
Join Date: Feb 2009
Location: Downunda
Device: Kindles, Kobo & Samsung Tablet
Smile

[Plugin Idea for calibre Editor]
JOB MODE button = A button that is depressible and stays that way when activated/clicked. It puts the Editor into a state, where Jobs can be created and run.
APPLY button = A button to run any listed Jobs.

Example
An epub file is opened in the Editor.
It has many split files, that are grouped by common numbers.
part0015_split_000.html to part0015_split_027.html
part0016_split_000.html to part0016_split_035.html
and so on.
Somehow part0015 and part0016 (etc) are chapters that have been split into files based on paragraphs, which is undesirable and needs fixing, using the Editor's Merge command. After which, you also need to rename each sole remaining main file.
part0015_split_000.html to part0015.html
part0016_split_000.html to part0016.html
etc
Currently, to do that in the calibre Editor (or even Sigil) is a very laborious process, and greatly impacted by the power of your PC. So it can take quite a long while and require constant interaction. Just imagine what it would be like if you have something like 40 chapters (or more), that need this treatment/fix.

So I propose a way around that awful process.

Implement a Job Mode, where instead of an action occurring, it is added to a Job list for actioning at a later time, when the APPLY button is clicked. So with this it is possible to build up a Batch process, where you build up a number of Jobs (i.e. Job 1, Job 2, etc), that occur in order when APPLY is clicked.

This would mean, for the example I listed, that I could quite quickly setup different groups of related split files, to be merged and each remaining single file to be renamed, and when I clicked APPLY, the whole process would be automated. I could then go off and do something else, while the time consuming process happens.

P.S. I am a coder, but alas not a Python one, or I would whip this up myself. You can find examples of my calibre related programs at KindEbook Suite.
Timboli is offline   Reply With Quote