View Single Post
Old 09-14-2022, 08:56 AM   #5
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: 80,598
Karma: 150249619
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 DiapDealer View Post
Sounds like the calibre plugin (or calibre) is removing the doctype. That's not really in keeping with the declared goal of the Modify Epub plugin. Which is to allow very specific, user-defined epub tweaks without performing a full calibre epub-to-epub conversion.

A couple of solutions come to mind:

1) if someone takes over maintaining the calibre Modify Epub plugin after davidfor's death, ask them if it's possible for the plugin to stop silently removing the doctype.

2) change your workflow so that there is no back and forth between calibre/sigil when editing epubs. Whichever editor you use the least, use it first and move on to editing with the one you use the most. i.e. do everything you need to do with Modify Epub and then Mend and Prettify with Sigil. Afterwhich, don't run Modify Epub on that book again. Or vice versa.
There is no problem running Modify ePub after editing in Sigil. I just give it a go and this I did not have this problem. Here is header for one of the HTML files after being run through Sigil and then Modify ePub.

I am running Calibre 6.4 and the latest Modify ePub.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en">
<head>
<title>The Rising Tide</title>
<link href="../styles/stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
JSWolf is offline   Reply With Quote