Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2026, 03:47 PM   #1816
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 55,965
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kiwidude View Post
Release Notes:
https://github.com/kiwidude68/calibr...fy_epub-1.8.11

Fix for margins containing non numeric values such as auto.
Possibly due to an update in calibre but in the last while I have had a couple of oddities in Modify ePub. The cover generation code is adding '__lang__' instead of the expected ' xml:lang="en" and the title is showing as '<title>__title__</title>' instead of the expected book title. The Polish tool does not appear to have the same issue (first sample).

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>The Game of Empire</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
Code:
<html xmlns="http://www.w3.org/1999/xhtml"__lang__>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>__title__</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
DNSB is offline   Reply With Quote
Old 11-04-2026, 06:05 PM   #1817
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,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
None of the code has been changed in the plugin for cover generation, it calls calibre functions for that from memory.
kiwidude is offline   Reply With Quote
Old 11-04-2026, 06:41 PM   #1818
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 55,965
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
That was why I mentioned "possibly due to an update in calibre".

I disabled calibre run from source and installed calibre portable 9.16.0 and got this as part of the cover image code from Modify ePub and Polish:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>Cover</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
I then upgraded calibre portable to 9.17.0 and no changes were seen. I then re-enabled run from source. Polish now added the book title instead of Cover in the <title></title> and Modify ePub shows the __lang__ and __title__ items.

Polish:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>The Enemy Stars</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
Modify ePub:
Code:
<html xmlns="http://www.w3.org/1999/xhtml"__lang__>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>__title__</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
At this point, it seems like most people will not notice an issue until 9.18.0 is released.

There is a several commits on 2026-Oct-27 but Commit 91b5b81: Use the book title and language in generated cover pages looks like the most likely guilty party.

Last edited by DNSB; 11-04-2026 at 07:17 PM. Reason: Added the commit that appears to be the guilty party
DNSB is offline   Reply With Quote
Old 11-04-2026, 06:52 PM   #1819
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: 85,774
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post

Last edited by JSWolf; 11-07-2026 at 07:35 AM.
JSWolf is offline   Reply With Quote
Old 11-07-2026, 07:36 AM   #1820
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: 85,774
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can someone please point out the code that's used to talk to calibre to generate the cover? Thanks.
JSWolf is offline   Reply With Quote
Old 11-08-2026, 02:31 AM   #1821
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,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Modify ePub release

Release Notes:
https://github.com/kiwidude68/calibr...fy_epub-1.8.12

Add support for the changes to calibre 9.18 for cover replacement.
kiwidude is offline   Reply With Quote
Old 11-08-2026, 05:35 PM   #1822
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 55,965
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Sorry but the issue I was seeing with the language and title elements is still there after updating to 1.18.2

Code:
<html xmlns="http://www.w3.org/1999/xhtml"__lang__>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>__title__</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
DNSB is offline   Reply With Quote
Old 11-08-2026, 07:50 PM   #1823
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,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by DNSB View Post
Sorry but the issue I was seeing with the language and title elements is still there after updating to 1.18.2

Code:
<html xmlns="http://www.w3.org/1999/xhtml"__lang__>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="calibre:cover" content="true" />
        <title>__title__</title>
        <style type="text/css" title="override_css">
            @page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
        </style>
    </head>
Thanks DNSB - I rushed two plugin updates out the door as was late to go out for the day and messed both of them up by the looks with the "one last change" syndrome. In this case I thought I would try to reuse more calibre code rather than take some shortcuts and then spent my little time left after that testing it under 3.48 instead of again with 9.18 where it is broken...
kiwidude is offline   Reply With Quote
Old 11-08-2026, 08:09 PM   #1824
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 55,965
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Forgot to say thanks for adding
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
to the cover code.
DNSB is offline   Reply With Quote
Old 11-08-2026, 09:27 PM   #1825
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,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by DNSB View Post
Forgot to say thanks for adding
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
to the cover code.
Hah - funnily enough I am actually removing that again because it needs a much more complex fix than the crude hack I put in there for it. I think it should actually be detecting whether it is an epub2 or epub3 (which it doesn't do currently). And the whole "container write" logic currently doesn't do this, which means when Modify ePub updates files (rather than writing a brand new cover file like with the kludge code I added yesterday) it isn't including the xml declarations there. So for consistency I am removing my kludge on new cover files.

I would love to know how the calibre code handles this, I couldn't find where the magic is that has it inserting the declarations from my very quick search.
kiwidude is offline   Reply With Quote
Old 11-08-2026, 09:54 PM   #1826
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,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Modify ePub release

Release Notes:
https://github.com/kiwidude68/calibr...fy_epub-1.8.13

Does what it was supposed to do with yesterday's release of supporting the 9.18 changes in calibre.

I also modified the logic for where it decides whether an existing cover file should be overwritten or supplemented with a new titlepage_u# file (preserving any existing content). it will now ignore <style> and <title> tags in trying to determine if there is any body content that should be preserved in an existing cover page.

It does NOT add the xml/document declarations that DNSB mentions - if the plugin is going to support those I would rather do it properly. Right now that means not doing it at all which is the same behaviour as the last 15 years or so...
kiwidude is offline   Reply With Quote
Old 11-08-2026, 10:44 PM   #1827
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 55,965
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The language/date looks good now. I guess I'll still mend the file in Sigil for now to add the xml/document declarations which I've been doing for years.
DNSB is offline   Reply With Quote
Old 11-10-2026, 06:12 AM   #1828
ottischwenk
Wizard
ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.
 
ottischwenk's Avatar
 
Posts: 2,951
Karma: 4502519
Join Date: Sep 2012
Location: Salzburg, Burgenland, Wien, NÖ, AT
Device: Bigme 6, Boox 2/15, Pocketbook 1, Like-/Meebook 1/10, VW 1, X 0/21
Quote:
Originally Posted by kiwidude View Post
[*]Remove embedded fonts
If checked, the "modify ePub" option does not remove the fonts contained within the book.
ottischwenk is offline   Reply With Quote
Old 11-10-2026, 10:10 AM   #1829
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: 85,774
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ottischwenk View Post
If checked, the "modify ePub" option does not remove the fonts contained within the book.
Can you show us your settings when your fonts failed to remove? I just tried it and the fonts were removed.

While the fonts were removed. all of the font-family lines were left behind. font-family: "EBGaramond", serif; So if I read this on the computer and I have any of these fonts installed, they'll display when I don't want them.
JSWolf is offline   Reply With Quote
Old 11-10-2026, 02:02 PM   #1830
ottischwenk
Wizard
ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.
 
ottischwenk's Avatar
 
Posts: 2,951
Karma: 4502519
Join Date: Sep 2012
Location: Salzburg, Burgenland, Wien, NÖ, AT
Device: Bigme 6, Boox 2/15, Pocketbook 1, Like-/Meebook 1/10, VW 1, X 0/21
Quote:
Originally Posted by JSWolf View Post
Can you show us your settings when your fonts failed to remove? I just tried it and the fonts were removed.
Look. It happened after the last 2 updates
Quote:
calibre, version 9.18.0
FEHLER: Modify ePub changed no files: No ePub files were updated. If this isn't what you expected then press the Show details button to check for errors in the log.

Modify ePubs version (1, 8, 13)
Logfile for book ID 2373 (Lieferdienst / Hillenbrand, Tom)
Job details 2373

Modifying: C:\Users\xxxxxxxx\AppData\Local\Temp\calibre-c2vyu3_2\w1qoyuz1_modify_epub\2373.epub

Parsing xml file: OEBPS/content.opf

Parsing xml file: OEBPS/toc.ncx

Looking for redundant entries in manifest

Looking for NCX to flatten

No nested navPoints

Looking for broken links in the NCX

ncx name: OEBPS/toc.ncx

Looping over ncx entries

Looking for Adobe xpgt files and links to remove

Looking for Adobe DRM meta tags to remove

Looking for all jackets

Looking for html pages containing only broken image links

Remove cover

Lieferdienst - ERROR: Traceback (most recent call last):

File "calibre_plugins.modify_epub.modify", line 74, in process_book

File "calibre_plugins.modify_epub.modify", line 160, in _process_book

File "calibre_plugins.modify_epub.modify", line 866, in _remove_cover

TypeError: CoverUpdater.__init__() missing 1 required positional argument: 'opts'



ePub not changed after 0.15 seconds
With modify_epub-1.8.11.zip it works correct
Attached Thumbnails
Click image for larger version

Name:	Zwischenablage02.jpg
Views:	17
Size:	146.2 KB
ID:	227312  

Last edited by ottischwenk; 11-10-2026 at 03:19 PM.
ottischwenk is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1305 10-23-2026 10:46 PM
[GUI Plugin] Manage Series kiwidude Plugins 175 10-16-2026 11:38 PM
[GUI Plugin] Open With kiwidude Plugins 406 10-10-2026 01:59 AM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 06:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 01:08 PM.


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