View Single Post
Old 12-26-2017, 11:48 AM   #58
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by compurandom View Post
Also, someone mentioned leveraging existing calibre library features that didn't exist when modify epub / quality check were created. I'd be interested in looking at that, is there a specific API reference somewhere that focuses on epub (or pdf) manipulation? If I do dig into this, that would be a good place to start.
I think you probably mean me. The calibre container classes, in calibre.ebooks.oeb.polish.container.py, handle the safe manipulation of epub/azw3 innards and can also be used for kepubs. I think new methods get added as needed. These classes don't handle PDF and I know almost nothing about PDF editing.

I know from personal experience there are calibre source .py files full of utilities regarding covers, TOCs, OPFs and much more. You'll find some of them in the same directory as container.py.

I think there is a logical structure to the way the calibre source is arranged but unfortunately it doesn't always help me zero in on what I'm looking for. I suspect the fault is all mine A good search tool gets you there in the end.
jackie_w is offline   Reply With Quote