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 02-23-2017, 09:13 AM   #1
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
ePub to Mobi Conversion in Calibre Problem

I've been using Calibre for years and never encountered any real conversion problems. However, lately, I've tried to convert some ePub books to Mobi to put them on my Kindle PaperWhite and, while they seem to convert just fine as far as Calibre is concerned when I view the Mobi file either in Calibre or on my Kindle all I see are rows and rows of dots.

I also tried to convert the ePub to just text or just PDF with the same result. Is there something special about the ePub file that would break Calibre for all conversions?

Thanks!
FredUruncle is offline   Reply With Quote
Old 02-23-2017, 09:17 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sho...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Advert
Old 02-23-2017, 09:28 AM   #3
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
Kovid,

Thanks for the quick reply. I was hoping that the "rows of dots" would be enough to indicate something silly I was doing. I've actually stumbled across a dozen or more ePubs where this happens lately. I'll try and give you more complete information when I get time to collect it all.
FredUruncle is offline   Reply With Quote
Old 04-28-2017, 12:00 AM   #4
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
Rows and Rows of DOTS!!!!!!

Quote:
Originally Posted by kovidgoyal View Post
Kovid,

I guess I'll finally have to try and get to the bottom of this. Today I bought a kindle book from Amazon. I used the Alf tools in Calibre to strip the DRM. Why? Well, I can obviously read the book on my Kindle Paperwhite but my eyes are not so good and I often convert my .azw files to ePub so I can load them into the wonderful IOS app "Voice Dream" which does a wonderful job of reading the books to me and also has many neat tools to focus my attention as I read the words while they are being read to me.

Anyway, as before, I'm having a terrible time converting things in Calibre. While Calibre says it has converted the book and the Table to Contents is all there and readable, the actual text body, regardless of output format looks like this....

......................................
......................................
......................................
......................................

etc., etc. The resultant file, regardless of output format, looks this way in the Mac Kindle reader, Calibre Viewer, on on the Kindle itself if converted to .mobi. I've had this problem for a while now with downloaded .azw files.

Note that the book I bought today converted perfectly on one of those online converter sites. I've also used the EPubsoft converter trial app and it has solved this problem in the past.

Something is apparently very wrong in my Calibre setup. I've tried the debug file creation but reading it doesn't help me much.....no skill here. I'll try and upload something useful.

Thanks for reading the diatribe...
FredUruncle is offline   Reply With Quote
Old 04-28-2017, 01:34 AM   #5
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,142
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
The only way I've found so far to replicate this effect is if I add a Search and Replace filter with a . in each field.
rashkae is online now   Reply With Quote
Advert
Old 04-28-2017, 04:31 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Could that be a line-height: 1 (or smaller number) stacking the <p>lines on top of each other?
theducks is offline   Reply With Quote
Old 04-28-2017, 04:41 AM   #7
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,507
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
When a DRMed Kindle file is imported to calibre (when Alf's tools installed), the file type should change to .mobi, .azw3 or .htmlz.

If it doesn't, the DRM has not been removed, and you need to get help at Alf's blog, or Harper's github repository.
pdurrant is offline   Reply With Quote
Old 04-28-2017, 12:13 PM   #8
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
Quote:
Originally Posted by rashkae View Post
The only way I've found so far to replicate this effect is if I add a Search and Replace filter with a . in each field.
God Bless you

When I first read your reply, I thought to myself that I had never done any search and replace and I even looked at that TAB in the conversion window to make sure. I didn't see it so I moved on. I redid the book several times using the BUG option. I was able to find that the input RAW-HTML result was fine but the parsed data was full of dots. On a lark I used the metadata.opf as the input to the conversion. When I tried to convert this to an EPUB it failed but the error report gave the changes from default values and low and behold, it said I was trying to search and replace a "." with ". " I went back to the Search and Replace page and there it was. Do you know how hard it is to even notice that you have two periods in the search/replace boxes?

I didn't realize that these definitions were persistent across all formats forever. Now, I recall that the Dream Voice app I mentioned in an earlier post was having trouble reading a file and basically, that file had no space after the period at the end of each sentence. I used this search and replace and fixed that file and then promptly forgot about it. It sat there causing me grief for months.

All is well now.... The only remaining confusion is that when, on the search and replace tab, I hit "Restore Defaults" its putting periods there. At any rate, I know how to make it work and I'll figure that out as I need to ....

FredUruncle is offline   Reply With Quote
Old 04-28-2017, 12:15 PM   #9
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
Quote:
Originally Posted by theducks View Post
Could that be a line-height: 1 (or smaller number) stacking the <p>lines on top of each other?

Thanks for the reply. I've figured it how with help from you folks. Fonts and line heights were my first thought also, but they were default. It was and errant search and replace that was killing me!

FredUruncle is offline   Reply With Quote
Old 04-28-2017, 12:19 PM   #10
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
Quote:
Originally Posted by pdurrant View Post
When a DRMed Kindle file is imported to calibre (when Alf's tools installed), the file type should change to .mobi, .azw3 or .htmlz.

If it doesn't, the DRM has not been removed, and you need to get help at Alf's blog, or Harper's github repository.
Thanks for chiming in. The DRM was indeed being removed so that wasn't the issue this time. I was able to convert the file without error but it was just all periods. I made the mistake of assuming this was a formatting/font issue defaulting to periods on view when it was a really a search/replace issue that replaced every character with an actual ".". Anyway, I"m good....

Thanks again....
FredUruncle is offline   Reply With Quote
Old 04-28-2017, 03:04 PM   #11
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,142
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by FredUruncle View Post
All is well now.... The only remaining confusion is that when, on the search and replace tab, I hit "Restore Defaults" its putting periods there. At any rate, I know how to make it work and I'll figure that out as I need to ....

You have to go into preferences -> Common Options, From there, you will change the *default* Search and Replace.

As a further note, the search portion of Search and replace is a Regex expression. In Regex, . is a symbol that means *any* character. If you really wanted to search replace every . in a conversion, you would search for \. . (The backlash escapes the special meaning of characters, so \. means to search for . literally.)
rashkae is online now   Reply With Quote
Old 04-28-2017, 05:44 PM   #12
FredUruncle
Member
FredUruncle began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2009
Device: Kindle 2
Quote:
Originally Posted by rashkae View Post
You have to go into preferences -> Common Options, From there, you will change the *default* Search and Replace.

As a further note, the search portion of Search and replace is a Regex expression. In Regex, . is a symbol that means *any* character. If you really wanted to search replace every . in a conversion, you would search for \. . (The backlash escapes the special meaning of characters, so \. means to search for . literally.)
Yes, I figured the former out shortly after posting the last time. The further gotcha is that Calibre seems to remember what you used the first time on each book in the library, so when reconverting all the "rows of dots books" I have to remember to hit "Restore to Defaults" for each book to get it to remove the replace rule each time. Not a biggie. Once I've re-done the bad conversations, new books will be OK from the beginning.

And, thanks for the Regex tip about dealing with .'s. I think I looked that up when I was doing it that one time that messed me up but I had forgotten it so the reminder is welcome.

Thanks All of the tips....

FredUruncle is offline   Reply With Quote
Reply

Tags
calibre, conversion for epub, epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub to Mobi conversion problem joshuax Conversion 5 02-14-2016 10:39 AM
Problem conversion epub to mobi with calibre zmihi Conversion 3 09-28-2015 07:16 PM
Problem with conversion .mobi to epub with Calibre Imdman Conversion 13 02-02-2013 11:51 AM
Problem with conversion epub to mobi johnnyb Conversion 20 06-09-2011 11:19 AM
epub to mobi conversion problem. lutwey Calibre 0 09-18-2010 11:51 AM


All times are GMT -4. The time now is 08:55 AM.


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