View Single Post
Old 10-22-2011, 10:27 AM   #1
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
[GUI Plugin] Modify ePub

This plugin offers a way to perform certain modifications to your selected ePub files without performing a calibre conversion. This plugin was created a number of months ago and has a history documented in the Development forum on this thread.

Performing an ePub->ePub conversion will enforce a number of changes to your ePub, some of which can be undesirable for some users. Examples are the rewriting of CSS, margin modifications, file splitting in undesired places, changes to directory structure etc.

Instead this plugin allows a user specific subset of changes to be performed in isolation without otherwise touching the original ePub's file structure, CSS files etc. Frequently these changes have been performed manually by users either using the Tweak ePub feature (time consuming), by editing in Sigil (which introduces changes/side effects of its own), by doing ePub->ePub conversions, or by saving to disk and reimporting into calibre.

Users may also find it useful to install the Quality Check plugin, which offers the ability to identify ePubs in your library which qualify for many of the modifications this plugin can make.

Refer to the Help file accessed from the plugin dialog or below for full details on each of the modification options and when you might use them.

Main Features:
  • Remove iTunes artifact files
  • Remove Calibre bookmark files
  • Remove OS artifact files such as Thumbs.db
  • Remove unused image files
  • Removing missing file entries from the .opf manifest
  • Add unmanifested files to manifest
  • Remove unmanifested files from ePub
  • Remove non dc: metadata from manifest
  • Flatten TOC hierarchy in NCX file
  • Remove broken link TOC entries in NCX file
  • Remove margins from Adobe .xpgt files
  • Remove Adobe .xpgt files and links
  • Remove Adobe resource DRM meta tags
  • Remove all metadata jackets
  • Remove legacy metadata jackets
  • Add/replace metadata jacket
  • Encode HTML in UTF-8 to fix invalid HTML encodings.
  • Remove embedded fonts
  • Modify @page and body margin styles
  • Append extra CSS to each .css file
  • Smarten punctuation
  • Remove inline javascript and .js files
  • Remove html pages containing nothing but broken image links
  • Completely remove an existing cover
  • Insert a new cover or replace an existing one using your desired proportions/svg choice from Preferences->Output Options->EPUB
  • Update metadata
  • Save and restore your preferred settings with a single click
  • Optional script to run from command line
  • Remove Adobe pagemaps
  • Move metadata jackets to end of book
  • Remove excess whitespace and useless markup from HTML
  • Remove Kobo-specific artifacts from KEPUBs

Special Notes:
Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated!
Attached Files
File Type: zip Modify ePub.zip (332.8 KB, 2324 views)

Last edited by kiwidude; 03-16-2024 at 11:41 PM. Reason: New release
kiwidude is offline   Reply With Quote