|  01-22-2021, 07:23 PM | #1 | 
| Enthusiast  Posts: 43 Karma: 70 Join Date: Jan 2012 Location: Brazil Device: Galaxy A16 5G | 
				
				ePub to HTMLZ
			 
			
			I recently started getting errors when I attempt to convert an ePub to HTMLZ format. It seems to be a fairly recent regression; I have a copy of my epub collection in an external drive (under Portable Calibre, which was updated just before Christmas), and it works fine there.
		 Last edited by MCBastos; 01-22-2021 at 07:26 PM. | 
|   |   | 
|  01-22-2021, 10:11 PM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | |
|   |   | 
| Advert | |
|  | 
|  01-25-2021, 11:49 PM | #3 | 
| Enthusiast  Posts: 43 Karma: 70 Join Date: Jan 2012 Location: Brazil Device: Galaxy A16 5G | 
			
			Right. OK, let's see: 1. The file. Actually, it has happening to *any* ePub I try, but for the sake of argument, I'll use as example a file I downloaded from Standard Ebooks -- that would be the first Sherlock Holmes novel, "A Study in Scarlet" (compatible ePub version), which can be downloaded free from here: https://standardebooks.org/ebooks/ar...udy-in-scarlet 2. The log: Spoiler: 
 3. The output file: none 4. Conversion aborts with a big red error saying "Failed: Convert Book 1 of 1 (A Study in Scarlet)" -- details below (seems to me to be a copy of the log, but I'm posting it anyway) Spoiler: 
 5. AFAIK, I didn't change any option for the conversion to HTMLZ. I even went to the "HTMLZ Output" dialogue and clicked on "Restore defaults." I also disabled every user-installed plugin that allowed disabling. Still got the error. Last edited by PeterT; 01-26-2021 at 07:11 AM. | 
|   |   | 
|  01-26-2021, 12:04 AM | #4 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Look at your log, right at the top is the option you have changed from defaults htmlz_class_style: 'inline' change that back to default and you will be fine. As for the bug with that option it will be fixed in the next release. And read: https://manual.calibre-ebook.com/con...for-conversion to understand hw to reset conversion options to defaults. | 
|   |   | 
|  01-27-2021, 01:47 PM | #5 | 
| Enthusiast  Posts: 43 Karma: 70 Join Date: Jan 2012 Location: Brazil Device: Galaxy A16 5G | 
			
			Right, thank you, it is now working correctly. I now understand what I did wrong in my attempt to reset to defaults here -- the button in the conversion dialog resets to default as set by the user in the Preferences dialog, not to default-as-it-was-originally-on-first-install. My mistake, thanks for your help. Well, apparently my cluelessness helped to reveal a bug, so it was not a total loss. | 
|   |   | 
| Advert | |
|  | 
|  01-29-2021, 03:07 AM | #6 | 
| Fanatic            Posts: 568 Karma: 32228 Join Date: Feb 2012 Device: Onyx Boox Leaf | 
				
				Markdown to Epub: Questions on Footnotes
			 
			
			I have a number of markdown documents, the codes are quite stadardized. All seems to work fine. But I have a few questions All the footnotes are as follows: Code: Here's a simple footnote,[^note] and here's a longer one.[^anote] [^note]: This is the first footnote. [^anote]: Here's one with multiple paragraphs and code. 1) They are appended to the last html file. Can can it be a separate file? I used this to break the files which work with h2. //*[name()='h2' or div[@class="footnote"]]. 2) I inserted ".footnote ol {padding: 0;}" to the "Look and Feel" before converting, but this has no effect.  PS: I do all this on the Content Server. Last edited by nqk; 01-29-2021 at 03:10 AM. | 
|   |   | 
|  01-29-2021, 03:11 AM | #7 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			No I dont think the markdown input processor has any way to insert page breaks before outputting footnotes. You can probably do it yourself by using extra css, something like footnote-selector::first-of-type {page-break-before: always} What's .footnote?? | 
|   |   | 
|  01-29-2021, 03:16 AM | #8 | |
| Fanatic            Posts: 568 Karma: 32228 Join Date: Feb 2012 Device: Onyx Boox Leaf | Quote: 
 The .footnote is an interesting one. Before I converted to epub, i just tap READ and Browser Viewer let me read it (by converting it on the fly). I prepared simple css to the Styles and .footnote works. That's why I copied the css for conversion. It has no TOC though, I had to convert to epub. Since this document is in md and is updated regularly, I think I need a way to avoid dealing with the epub directly. And the .footnote a { display: none;} is actually effective (the back-link is indeed hidden) Last edited by nqk; 01-29-2021 at 03:23 AM. | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Converting from ePUB to HTMLZ with Calibre | JulienDym | Conversion | 31 | 03-01-2016 10:32 AM | 
| Epub (or other) to HTMLZ attributes renamed | shotsky | Conversion | 15 | 09-06-2014 11:41 PM | 
| EPUB -> MOBI -> HTMLz margin/blockquote annoyance | therealjoeblow | Conversion | 2 | 07-20-2012 01:20 PM | 
| htmlz to epub? | shootist | Other formats | 1 | 03-19-2012 10:28 PM | 
| HTMLZ > ePub gives Page Error on PRS-600 | FlyFree | Conversion | 8 | 09-27-2011 07:36 PM |