Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2022, 02:42 PM   #1
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,738
Karma: 26006874
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
Convert from HTML - minor problem

My daughter asked if I could find an eBook (in French) for her. I found it online at Gutenberg.

http://gutenberg.net.au/ebooks03/0300771h.html

I used the "Save as" option in my browser (Chromium, running on Linux) to create the webpage.html file and webpage_files directory containing the gifs, jpgs, etc.

I then added the html file to Calibre (version 5.4.4) and ran a convert to AZW3. That worked fine. Then I used Calibre's editor to open the AZW3 and deleted the page with links to the various chapters - those were pointing to URLs, not to locations in the converted book. I also removed the initial page with the Gutenberg blurb.

That all worked great and viewing the newly created AZW3 file in Calibre's internal viewer worked fine.

Then I attempted to convert the AZW3 into an EPUB. This failed in Calibre. It came up with some error message about the source file not containing a book or something. Unfortunately I did not save this error message and can't remember its exact wording - only the gist of it that I just mentioned.

My fix was to do another conversion from the initial HTML into an EPUB and edit that result to remove the chapter links page. So one conversion HTML to AZW3 plus edit, then a totally separate conversions of HTML to EPUB plus edit worked fine. But HTML to AZW3 to EPUB failed on the EPUB part.

I'm just reporting this in case anyone cares. Maybe I did something incorrect in my conversions. I just used all the default settings in Calibre when converting. But I'm good to go now on this specific book, AFAIK. This is just an FYI post.
haertig is offline   Reply With Quote
Old 11-24-2022, 06:15 AM   #2
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,161
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I'd usually paste the HTML into LO Writer, fix styles, save odt, extra Save As docx and add docx to Calibre and convert to epub.
Gives perfect results.
I might paste special as "Unformatted text" if a website is really bad, or even paste into KATE and run regex fixing and then paste to LO Writer. I used Notepad++ for years and find KATE similar but better and more featured than stock editors on my Linux Mint + Mate.
I always convert to epub2 first, then I'd remove the docx and only use epub for conversion source to other formats, because I might hand edit any CSS for images (Either width some % and height auto or vice versa).

Last edited by Quoth; 11-24-2022 at 06:18 AM.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minor HTML/CSS problem AlexBell Marvin 3 01-25-2014 10:46 PM
Problem when I convert a processed recipe html to mobi inllana Recipes 5 12-31-2011 12:55 PM
minor bug report - html conversion cybmole Calibre 18 09-30-2010 11:26 AM
ebook-convert HTML to EPUB and problem with <pre><code> mikegr Calibre 2 03-09-2010 02:27 PM
\minor problem trout Sony Reader 11 12-09-2009 07:27 AM


All times are GMT -4. The time now is 10:09 AM.


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