View Single Post
Old 05-01-2019, 06:54 PM   #1215
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by BeckyEbook View Post
This function not fix guide section in OPF file (links to .html files remain)
That... is a good point.

Here's a version that also updates <guide><reference> tags pointing to renamed .xhtml files.

Quote:
Originally Posted by JimmXinu View Post
@Bilal93 approached me to add some features to Modify ePub. Which I have.

Bilal93 has asked that I also make a public version containing the added features in case others find them useful.

Features added:
  • Add spine rtl - Make sure <spine> tag has attribute page-progression-direction="rtl".
  • Remove spine rtl - Make sure <spine> tag doesnt have attribute page-progression-direction="rtl".
  • Rename .html files .xhtml - Change any .html files to .xhtml.
  • Remove files named - Remove files with any of the names (comma separated) below. Case insensitive.

I also bumped the version number. I leave it up to the community whether these features are worth including in the general release.

This version also addresses the _remove_files_if_exist() issue from my previous post.
EDIT: BTW, yes, .htm is also changed with that option.

And actually, no I didn't do a name collision check. In theory, it would be nice, but seriously, if your epub has chap01.htm and chap01.xhtml in the same dir in the same epub, you have bigger problems.

EDIT2: Implementation rejected by the current maintainer. Test version removed.

Last edited by JimmXinu; 05-03-2019 at 09:49 AM.
JimmXinu is offline   Reply With Quote