Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2022, 12:40 PM   #1666
DaveLessnau
Addict
DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.
 
Posts: 323
Karma: 695162
Join Date: Sep 2013
Device: Kobo Forma
I'm experimenting with having the calibre editor convert epub2s to epub3. When I do so and then run Modify ePub on the book, it always seem to find a problem with the cover that doesn't happen with epub2:
Code:
The cover image has an id != "cover". Renaming to work around bug in Nook Color
It fixes the issue by duplicating the cover and giving it a new name (cover.jpeg -> cover_u1.jpeg) and doing the same with the cover page (titlepage.xhtml -> titlepage_u1.xhtml). I've got two trivial questions:

1. Why is "_u1" appended to the file names? Is there a meaning there that I'm just missing?
2. Where is that id (that's not equal to "cover") set? I can't seem to find any kind of id in any of those files.

EDIT 1: Also, once Modify ePub creates that new cover/titlepage, running EPUBCheck against the book gives me the following error:
Code:
The property "svg" should be declared in the OPF file.
and I have to add:
Code:
properties="svg"
to the text/titlepage_u1.xhtml line of content.opf file. With the Semantic cover page set, the whole line looks like:
Code:
}</meta>
  </metadata>
  <manifest>
    <item href="text/titlepage_u1.xhtml" id="titlepage1" media-type="application/xhtml+xml" properties="svg calibre:title-page"/>
EDIT 2: Ooh. And running Modify ePub again removes the "properties" bit from the content.opf entirely. I'll have to turn off whatever's doing that in the plugin.

Just for grins, here's the whole Modify ePub log:
Code:
Modify ePubs version (1, 7, 3)
Logfile for book ID 1239 (The Abolition of Man / CS Lewis)
Job details 1239
  Modifying:  C:\Users\Dave\AppData\Local\Temp\calibre_smt9rh27\hslu2xep_modify_epub\1239.epub
	Updating metadata and cover
	  Parsing xml file: content.opf
	Looking for redundant entries in manifest
	Looking for unmanifested files
	Looking for broken links in the NCX
	  No NCX found
	Looking for Adobe xpgt files and links to remove
	Looking for pagemaps
	Looking for Google Play pagemaps
	Looking for Adobe DRM meta tags to remove
	Looking for legacy jackets
	Adding or updating jacket
	 Current jacket removed:  jacket.xhtml
	  Manifest item removed: jacket.xhtml (calibre_jacket)
	  Spine itemref removed: calibre_jacket
	  Manifest item added: jacket.xhtml (calibre_jacket)
	  Spine item inserted: calibre_jacket at pos: 1
	Looking for html pages containing only broken image links
	Looking for non dc: elements in manifest
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	  Removing child: {http://www.idpf.org/2007/opf}meta
	Looking for html files to remove charset meta tags/encode to utf-8
	  Switched to UTF-8 encoding for: nav.xhtml
	  Switched to UTF-8 encoding for: toc.xhtml
	  Switched to UTF-8 encoding for: text/aboutauthor.html
	  Switched to UTF-8 encoding for: text/aboutpublisher.html
	  Switched to UTF-8 encoding for: text/appendix.html
	  Switched to UTF-8 encoding for: text/booksby.html
	  Switched to UTF-8 encoding for: text/copyrightpage.html
	  Switched to UTF-8 encoding for: text/credits.html
	  Switched to UTF-8 encoding for: text/epigraph.html
	  Switched to UTF-8 encoding for: text/notes.html
	  Switched to UTF-8 encoding for: text/part0004_split_001.html
	  Switched to UTF-8 encoding for: text/part0005_split_001.html
	  Switched to UTF-8 encoding for: text/part0006.html
	  Switched to UTF-8 encoding for: text/tauthorpage.html
	  Switched to UTF-8 encoding for: text/titlepage.xhtml
	  Switched to UTF-8 encoding for: text/tpage.html
	Looking for embedded fonts
	Looking for css @font-face style declarations
	Looking for inline @font-face style declarations
	Looking for CSS margins
	Looking for inline javascript blocks to remove
	Looking for .js files to remove
	Applying smarten punctuation
	Stripping Kobo remnants
	  Stripped Kobo spans in: text/booksby.html
	  Stripped Kobo spans in: text/notes.html
	  Stripped Kobo spans in: text/part0004_split_001.html
	  Stripped Kobo spans in: text/part0005_split_001.html
	  Stripped Kobo spans in: text/part0006.html
	Looking for files to remove: ['iTunesMetadata.plist', 'iTunesArtwork']
	Looking for files to remove: ['META-INF/calibre_bookmarks.txt']
	Looking for files to remove: ['.DS_Store', 'thumbs.db']
	Looking for unused images
	Stripping spans
	Unprettying files
	  De-indented: nav.xhtml
	  De-indented: text/titlepage.xhtml
	Insert or replace cover
	...Looking for guide cover reference
	...Looking for meta cover
	...Looking for other.ms-* guide references to clean out
	...Writing new cover image and titlepage html
	  New cover image written to: images/cover_u1.jpeg
	  New titlepage html written to: text/titlepage_u1.xhtml
	...Updating manifest and TOC for the new cover
	  Manifest item added: text/titlepage_u1.xhtml (titlepage1)
	  Manifest item added: images/cover_u1.jpeg (cover1)
	  Meta item inserted: cover:cover1
	  Spine item inserted: titlepage1 at pos: 0
	  No guide parent element found - inserting one
	  Guide item inserted: text/titlepage_u1.xhtml:Cover:cover
	...Remove any orphaned guide images
	...Apply device specific fixes
The cover image has an id != "cover". Renaming to work around bug in Nook Color
	...Cover modifications completed
ePub updated in 0.36 seconds

Last edited by DaveLessnau; 06-28-2022 at 01:11 PM.
DaveLessnau is offline   Reply With Quote
Old 06-28-2022, 01:34 PM   #1667
DaveLessnau
Addict
DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.DaveLessnau ought to be getting tired of karma fortunes by now.
 
Posts: 323
Karma: 695162
Join Date: Sep 2013
Device: Kobo Forma
Trying to stop the plugin from removing those properties, I turned off all the options under Manifest and Metadata. It's still removing them. Any ideas on which option would be doing that?

EDIT: Found it. It's the Covers > Insert or Replace Cover option.

Last edited by DaveLessnau; 06-28-2022 at 01:39 PM.
DaveLessnau is offline   Reply With Quote
Old 08-03-2022, 09:43 AM   #1668
CheeseJam
Member
CheeseJam began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Dec 2016
Device: PW3
Is there a way to automatically run this plugin when epubs are either imported into Calibre or every time an epub is emailed to a Kindle in Calibre? With Kindle's latest requirement of epub instead of mobi for emailing books, I am getting a lot of weird errors that this plugin seems to be able to fix (like encoding the HTML in UTF-8).
CheeseJam is offline   Reply With Quote
Old 08-03-2022, 09:47 AM   #1669
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 66,877
Karma: 109791295
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by CheeseJam View Post
Is there a way to automatically run this plugin when epubs are either imported into Calibre or every time an epub is emailed to a Kindle in Calibre? With Kindle's latest requirement of epub instead of mobi for emailing books, I am getting a lot of weird errors that this plugin seems to be able to fix (like encoding the HTML in UTF-8).
I don't know if this will work or not, but if this can be done, it would be done using the Action Chains plugin.
https://www.mobileread.com/forums/sh...d.php?t=334974
JSWolf is offline   Reply With Quote
Old 08-03-2022, 12:10 PM   #1670
CheeseJam
Member
CheeseJam began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Dec 2016
Device: PW3
Quote:
Originally Posted by JSWolf View Post
I don't know if this will work or not, but if this can be done, it would be done using the Action Chains plugin.
https://www.mobileread.com/forums/sh...d.php?t=334974
I will give that a shot and report back if I have any success--thanks!
CheeseJam is offline   Reply With Quote
Old 08-05-2022, 09:01 PM   #1671
dunhill
Fanatic
dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.
 
dunhill's Avatar
 
Posts: 511
Karma: 196652
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
I have translated the plugin into Spanish, I leave a screenshot for some terms that I do not master to see if the translation is correct
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	20
Size:	152.8 KB
ID:	195644  
dunhill is offline   Reply With Quote
Old 08-05-2022, 10:39 PM   #1672
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 27,632
Karma: 45365388
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dunhill View Post
I have translated the plugin into Spanish, I leave a screenshot for some terms that I do not master to see if the translation is correct
Is Help supposed to be translated?
theducks is offline   Reply With Quote
Old 08-06-2022, 03:33 PM   #1673
dunhill
Fanatic
dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.dunhill can program the VCR without an owner's manual.
 
dunhill's Avatar
 
Posts: 511
Karma: 196652
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by theducks View Post
Is Help supposed to be translated?
That is why I am asking
In case I have overlooked something or misplaced a term.
Thanks for the indication.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	9
Size:	153.1 KB
ID:	195675  
Attached Files
File Type: zip modify epub español.zip (91.6 KB, 1 views)

Last edited by dunhill; Yesterday at 09:50 PM.
dunhill is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Manage Series kiwidude Plugins 160 08-02-2022 10:30 AM
[GUI Plugin] Quality Check kiwidude Plugins 1114 06-05-2022 03:12 PM
[GUI Plugin] Open With kiwidude Plugins 389 02-02-2022 06:03 AM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 06:29 PM.


MobileRead.com is a privately owned, operated and funded community.