|
|
#1816 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55,965
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
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>
|
|
|
|
|
|
|
#1817 |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#1818 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>
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>
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>
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 |
|
|
|
|
|
#1819 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,779
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. |
|
|
|
|
|
#1820 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,779
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.
|
|
|
|
|
|
#1821 |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#1822 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>
|
|
|
|
|
|
#1823 | |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
|
|
|
|
|
#1824 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> |
|
|
|
|
|
#1825 | |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,877
Karma: 2220332
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
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. |
|
|
|
|
|
|
#1826 |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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... |
|
|
|
|
|
#1827 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#1828 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
|
|
|
|
|
#1829 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,779
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
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. |
|
|
|
|
|
|
#1830 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Quote:
Last edited by ottischwenk; 11-10-2026 at 03:19 PM. |
||
|
|
|
![]() |
| Tags |
| modify epub |
|
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 |