Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2010, 02:05 AM   #1
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Setting Path for Tweak ePub

Is it possible to specify the path that calibre will use when exploding an ePub for Tweak ePub? Calibre generates a different path for each explosion and it would be useful for me to specify a fixed location, e.g. C:\Books\Work\.

(I have some ToC tools which work best if the toc.ncx file is in a known location).
Agama is offline   Reply With Quote
Old 12-02-2010, 05:17 AM   #2
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
It explodes the ePub into a temporary directory, which is deleted when you finish the tweak.

G
GRiker is offline   Reply With Quote
Advert
Old 12-02-2010, 08:38 AM   #3
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
This temp directory is fine but unfortunately the path changes slightly every time. I have a script which processes toc.ncx, (so that it can be easily edited), and it would be handy to specify a fixed path so that my script could know where to find this file.

At the moment I - 1) explode the ePub, 2) copy the toc.ncx to C:\Books\Work, 3) run the script, 4) make the edits, 5) copy the rebuilt toc.ncx back to the temp folder, 6) rebuild the exploded ePub.

Having a fixed path would eliminate steps 2 and 5.

I can probably add some code to process the temp path to find the toc.ncx file.
Agama is offline   Reply With Quote
Old 12-02-2010, 08:41 AM   #4
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by Agama View Post
I can probably add some code to process the temp path to find the toc.ncx file.
That's the better solution.

G
GRiker is offline   Reply With Quote
Old 12-02-2010, 03:46 PM   #5
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by GRiker View Post
It explodes the ePub into a temporary directory, which is deleted when you finish the tweak.
This delete does not seem to be happening. I have a lot of calibre subfolders in the temp area, (with names like calibre_0.7.31_tmp_rszsj6), and each subfolder contains 2 log files, (with names like calibre_0.7.31_ouyimw_worker_redirect.log).

Should I raise a ticket for this or is there a calibre housekeeping option that I should be running?
Agama is offline   Reply With Quote
Advert
Old 12-02-2010, 06:37 PM   #6
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Temp dirs and files are deleted when you exit calibre. If you have an abnormal exit, you may have some leftover orphans, but they will be gone after a reboot, and they are harmless.

G
GRiker is offline   Reply With Quote
Old 12-03-2010, 02:06 AM   #7
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
I don't recall having any abnormal exits, and these these folders persist after a reboot. I have just deleted about 30 of them. I realise that they are harmless but it gives my script more work to do processing them all to find the toc.ncx file from the active ePub Tweak explosion.

(Other apps are also leaving stuff in temp so maybe Windows has an option somewhere for doing a purge. I'll have a dig around).
Agama is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Tweak ePub - new feature (0.7.20) GRiker Calibre 35 03-07-2012 08:56 AM
Tweak epub and Simple CSS Editor Shadowman123 Calibre 11 09-30-2010 10:07 AM
Sorting Tweak atjnjk Calibre 6 08-31-2010 06:36 AM
Illegal character in path in ePub file Guido Henkel Calibre 2 05-27-2010 10:10 AM
Setting Calibre to prefer ePub? Xenophon Calibre 4 02-13-2009 03:50 AM


All times are GMT -4. The time now is 07:54 PM.


MobileRead.com is a privately owned, operated and funded community.