Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2016, 09:28 AM   #1
troubledMan
Connoisseur
troubledMan began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jun 2016
Location: Best place in the World: my house.
Device: Kindle 3, Kindle Voyage
Faulty ePub to mobi conversion

Hi all,

I normally use kindlegen to make the conversion from epub to mobi in files previously ddrmed, in Spanish language. From time to time, I find that the conversion is far to be perfect: every accented word is not correctly converted, displaying accented vowels by weird symbols. The same epub is flawlessly converted by Calibre, however. I use both programs using the defaults. And that is baffling me ¡a lot!
I am on a MacBook Pro running 'El Capitan', DeDRM ver 6.4.3, kindlegen V 2.9 build 1028-0897292 and calibre 2.60.
I'd like to know the reason for this, as I'd like to be as far as possible from calibre (for the purpose of conversion) and keep on using kindlegen.

Thank very much in advance and forgive me: English is not my mother tongue.

Check these snapshots, kindlegen conversion (left), calibre conversion (right)
Attached Thumbnails
Click image for larger version

Name:	Kindlegen.jpg
Views:	371
Size:	32.6 KB
ID:	149725   Click image for larger version

Name:	Calibre.jpg
Views:	336
Size:	35.1 KB
ID:	149726  
troubledMan is offline   Reply With Quote
Old 06-27-2016, 11:35 AM   #2
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
That looks like an encoding issue. Try the following:

Open the book with Sigil and re-save it. That should fix all encoding issues.

BTW, there's also a Sigil KindleGen plugin (which I wrote) that allows you to generate books with Kindlegen.
Doitsu is offline   Reply With Quote
Advert
Old 06-27-2016, 11:56 AM   #3
troubledMan
Connoisseur
troubledMan began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jun 2016
Location: Best place in the World: my house.
Device: Kindle 3, Kindle Voyage
It functions like a charm. Thanks, Doitsu!

Anyway, do you know how to do it without Sigil, just using an editor and Kindlegen? TIA
troubledMan is offline   Reply With Quote
Old 06-27-2016, 12:47 PM   #4
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by troubledMan View Post
Anyway, do you know how to do it without Sigil, just using an editor and Kindlegen? TIA
That depends on the original encoding of the epub and whether the (X)HTML files are properly encoded.
You'd either have to unpack each epub, open each (X)HTML file and save it as utf-8 or use a script to unpack the epub and resave it as utf-8
Calibre also has command line tools that allows you to do an epub-to-epub conversion.
Doitsu is offline   Reply With Quote
Old 06-27-2016, 04:29 PM   #5
troubledMan
Connoisseur
troubledMan began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jun 2016
Location: Best place in the World: my house.
Device: Kindle 3, Kindle Voyage
Quote:
You'd either have to unpack each epub, open each (X)HTML file and save it as utf-8
That's one of the strangest things: when I unpack the epub, every page is utf-8 encoded, unix format... Everything seems to be OK, but the conversion is as shown in the attachment.
Well, I'll not lose any more time with this annoyance. Again, thank you very much.

Last edited by troubledMan; 06-28-2016 at 03:42 AM.
troubledMan is offline   Reply With Quote
Advert
Old 06-27-2016, 06:44 PM   #6
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by troubledMan View Post
That's one of the strangest things: when I unpack the epub, every page is utf-8 encoded, unix format... Everything seems to be OK, but the conversion is as shown in the attachment.
Maybe the HTML pages are missing the proper HTML declaration.

Sigil usually adds the following for epub2 files:

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">
Doitsu is offline   Reply With Quote
Old 06-28-2016, 03:44 AM   #7
troubledMan
Connoisseur
troubledMan began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Jun 2016
Location: Best place in the World: my house.
Device: Kindle 3, Kindle Voyage
Quote:
Maybe the HTML pages are missing the proper HTML declaration.
Exact! That was the problem, a missing proper HTML declaration.
troubledMan is offline   Reply With Quote
Old 06-29-2016, 10:15 AM   #8
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I've never had a problem uploading epubs to the KDP. They convert just fine, though it's best not to include a cover in an epub. Once in a rare while, you wind up with a double cover.

But then, I create my epubs with Sigil.
Notjohn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM
EPUB to MOBI Conversion sarafnikit Conversion 0 03-27-2012 04:40 AM
.epub to .mobi after conversion illustrata Conversion 9 05-10-2011 06:09 AM
Epub to Mobi conversion MichaelGray Calibre 2 08-12-2010 01:08 PM


All times are GMT -4. The time now is 02:14 PM.


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