View Single Post
Old 11-23-2024, 06:45 PM   #1
Evil Overlord
Enthusiast
Evil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-booksEvil Overlord has learned how to read e-books
 
Posts: 43
Karma: 972
Join Date: Jul 2011
Device: Kobo Aura One, Kobo Libra Colour
Question Clean up various OEPBS references?

How can I clean up references to virtual OEBPS folders?

I used Calibre's EPUB merge feature to merge 9 EPUBs of a series for my own convenience.

(Because there were some overlapping file names?) Calibre created 9 virtual sub-folders. While I had the omnibus, I took the chance to harmonize style definitions, images, etc. across books in the omnibus.

There are a couple of recurring images (for scene breaks) across all volumes. I necessarily chose one iteration of the image for harmonization. For example: src="../../../9/OEBPS/Images/MyImage.png"

I'd like to get rid of the virtual folder, and just refer to, e.g., src="../../Images/MyImage.png"

I'm not sure how to go about that. Could I just use Regex to remove/simplify all the references in content.opf (e.g., to convert "1/OEBPS/Text" to "Text") and then recreate nav.html, or do I need to look elsewhere as well?

* I grant that this probably wasn't the best way to harmonize things. That effort grew out of the omnibus rather than being a primary purpose of the merger.

** I also grant that the virtual folders probably don't make much difference. But it will make me feel better if things are neat and tidy.
Evil Overlord is offline   Reply With Quote