![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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). |
![]() |
![]() |
![]() |
#2 |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
Should I raise a ticket for this or is there a calibre housekeeping option that I should be running? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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). |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |