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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2009, 03:11 PM   #1
whitearrow
Guru
whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.
 
Posts: 725
Karma: 1871172
Join Date: Apr 2008
Device: Kindle 3G/WiFi
Mobi2html troubles

I liberated an Amazon .azw file -- just to fix the formatting, which had double-spaces between each paragraph and quadruple spaces between sections.

The dedrm went fine, and that file looks good when I open it in Mobi reader. But when I ran the file through mobi2html to get the html, the file had problems. Random characters were thrown all over the place, and at least in one place, a paragraph simply cuts off at least 4 sentences before its supposed to.

Any ideas, or alternative methods for digging out the html? I was hoping to just do a quick search and replace on whatever html markup was causing the double-spacing.
whitearrow is offline   Reply With Quote
Old 07-16-2009, 03:44 PM   #2
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: 37,089
Karma: 18147936
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Try using Calibre to convert to HTML and then back to Mobipocket.
JSWolf is online now   Reply With Quote
Old 07-16-2009, 04:23 PM   #3
whitearrow
Guru
whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.whitearrow ought to be getting tired of karma fortunes by now.
 
Posts: 725
Karma: 1871172
Join Date: Apr 2008
Device: Kindle 3G/WiFi
Thanks, will give that a try.
whitearrow is offline   Reply With Quote
Old 07-17-2009, 07:37 AM   #4
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,054
Karma: 3993884
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by whitearrow View Post
I liberated an Amazon .azw file -- just to fix the formatting, which had double-spaces between each paragraph and quadruple spaces between sections.

The dedrm went fine, and that file looks good when I open it in Mobi reader. But when I ran the file through mobi2html to get the html, the file had problems. Random characters were thrown all over the place, and at least in one place, a paragraph simply cuts off at least 4 sentences before its supposed to.

Any ideas, or alternative methods for digging out the html? I was hoping to just do a quick search and replace on whatever html markup was causing the double-spacing.
That might be an UTF-8 problem. If you can give me the file I can see if this can be fixed in mobi2html.
tompe is offline   Reply With Quote
Old 07-18-2009, 04:41 PM   #5
wayrad
Fanatic
wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.
 
Posts: 547
Karma: 1121392
Join Date: May 2008
Location: USA
Device: Galaxy Nexus
I'm having the same problem with a Mobi (.prc) book I just bought from Diesel. I don't see the issue when viewing the unDRM'd .prc file in Calibre, so it seems to be mobi2html that is having a problem with the encoding.
wayrad is offline   Reply With Quote
Old 07-18-2009, 05:19 PM   #6
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,054
Karma: 3993884
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by wayrad View Post
I'm having the same problem with a Mobi (.prc) book I just bought from Diesel. I don't see the issue when viewing the unDRM'd .prc file in Calibre, so it seems to be mobi2html that is having a problem with the encoding.
I totally hate to program for and solve problem for UTF-8 so Calibre is much better on handling UTF-8 coded files.
tompe is offline   Reply With Quote
Old 07-18-2009, 09:05 PM   #7
wayrad
Fanatic
wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.
 
Posts: 547
Karma: 1121392
Join Date: May 2008
Location: USA
Device: Galaxy Nexus
Unfortunately Calibre refused to convert my deDRM'd file.
Wait, I just tried one last time, and didn't get an error message this time...hmmm...

OK, I got a file, but all the hyphens and quote marks (single and double) are replaced by question marks. I think the mobi2html output will be easier to clean up than that.

Last edited by wayrad; 07-18-2009 at 09:14 PM.
wayrad is offline   Reply With Quote
Old 07-18-2009, 09:31 PM   #8
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,054
Karma: 3993884
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by wayrad View Post
OK, I got a file, but all the hyphens and quote marks (single and double) are replaced by question marks. I think the mobi2html output will be easier to clean up than that.
Question marks might be the correct UTF-8 characters. Make sure that your font or program displaying the file can handle UTF-8. If it cannot it is common to get question marks.

Last edited by tompe; 07-19-2009 at 07:42 PM.
tompe is offline   Reply With Quote
Old 07-19-2009, 07:41 PM   #9
wayrad
Fanatic
wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.
 
Posts: 547
Karma: 1121392
Join Date: May 2008
Location: USA
Device: Galaxy Nexus
Thanks, that helped! I still haven't been able to get an error-free .rtf (my original goal), but after a bit of googling I was able to tweak Word to convert a plain text file to an error-free version. Which isn't all that bad since .rtf and .txt look about the same in PalmFiction anyway.

Edited to add: Got the .rtf. PRC to Epub and back to .mobi with Calibre as suggested by JSWolf earlier, then mobi2html, then convert to .rtf and final cleanup of "hellip"s and "mdash"s in Word.

Last edited by wayrad; 07-19-2009 at 10:38 PM.
wayrad is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mobi2html generates a 1 kb html file newConverter Kindle Formats 7 06-17-2010 04:12 AM
Mobiperl mobi2html changesetR84.zip won't unzip cyberbaffled Kindle Formats 0 06-15-2010 10:25 PM
Mobi2HTML suecsi Kindle Formats 1 12-10-2009 05:35 PM
Mobiperl Mobi2html not working pearlheartgtr Kindle Formats 5 11-19-2008 09:21 AM
Mobi2html questions and issues. DeathtoToasters Sony Reader 2 05-12-2008 02:11 PM


All times are GMT -4. The time now is 12:32 PM.


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