Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-26-2017, 03:42 AM   #1
HisDudeness3008
Junior Member
HisDudeness3008 began at the beginning.
 
HisDudeness3008's Avatar
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: none
Converting htm to epub

I have an eBook in html format, and I wish to convert it in ePub. I'm on a GNU/Linux system and I'm using Calibre.

The file is displayed correctly in Firefox, despite having the "missing image" icon in the top left corner of every page for linking to jpgs that do not exist. However, after converting to ePub with default options, in each page every sentence is in the same line, so that they illegibly overlap. Calibre detects the file as "ZIP" and, if asked to display it, creates a duplicate of it in the library instead.

[Link deleted - MODERATOR] are the first 758 lines of the file (which include the first two paragraphs and everything that come before that, for a total of 11 pages) in case it could be useful to detect the problem. Please ask me for anything needed.

Last edited by Dr. Drib; 01-26-2017 at 07:40 AM.
HisDudeness3008 is offline  
Old 01-26-2017, 03:53 AM   #2
HisDudeness3008
Junior Member
HisDudeness3008 began at the beginning.
 
HisDudeness3008's Avatar
 
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: none
I figured it could depend line breaks are actually achieved by specifying absolute vertical position, and I've read the absolute position is not supported.

I've tried converting using heuristic processing. Section names appear about one word per page, with the first letter of a word overlapping with the second. A whole chapter is displayed in a page. Some line breaks are introduced (vertically, almost half page is filled), but the lines coming from different pages still overlap.
HisDudeness3008 is offline  
Advert
Old 01-26-2017, 04:27 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by HisDudeness3008 View Post
I have an eBook in html format, and I wish to convert it in ePub. I'm on a GNU/Linux system and I'm using Calibre.
It looks like you're trying to convert a poorly formatted pirated copy of James Ellroy's book Blood On The Moon.
Based on the code that you posted on Pastebin, the HTML file was most likely exported from MS Word using the wrong export option.
IMHO, it'd take forever to fix this mess. Why don't you simply buy the ebook on Amazon?
Doitsu is offline  
Old 01-26-2017, 05:51 AM   #4
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: 73,660
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Coming here to ask for help on a pirated book is not going to get you any help. Buy the book and if you still need help with the legal version, we'll be happyto help.
JSWolf is offline  
Old 01-26-2017, 07:40 AM   #5
Dr. Drib
Grand Sorcerer
Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.
 
Dr. Drib's Avatar
 
Posts: 44,712
Karma: 55613375
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
Moderator Notice

Mobileread does not offer assistance for anyone who pirates a copyrighted ebook.

Failure to observe copyright can cause your Mobileread access to be terminated.

This thread is now closed.


Last edited by Dr. Drib; 01-26-2017 at 07:44 AM.
Dr. Drib is offline  
Advert
Closed Thread

Tags
calibre, conversion, epub, html, overlap

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbers in ePub, converted from htm hollowayhouse Conversion 6 06-28-2012 04:41 PM
HTM to EPUB Loses images cacotigon Calibre 2 04-02-2012 07:04 PM
converting from HTM to ePUb - can't get TOC right davidm99 Conversion 1 04-12-2011 10:47 PM
converting htm to epub to mobi - lots of split words cybmole Calibre 1 12-14-2010 11:25 AM
converting htm(l) format books for kindle cybmole Calibre 7 09-29-2010 08:01 AM


All times are GMT -4. The time now is 03:24 AM.


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