View Single Post
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