Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2009, 08:12 PM   #31
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As of calibre 0.6.3 the HTML2ZIP plugin can now be customized with an input encoding. Just go to Preferences->Pluging->File Type plugins. Select the HTML2ZIP plugin. Click "Customize this plugin". Type in cp1252 and press OK.

It should now just work.
kovidgoyal is offline   Reply With Quote
Old 07-30-2009, 06:07 PM   #32
Statch
Connoisseur
Statch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it isStatch knows what time it is
 
Statch's Avatar
 
Posts: 96
Karma: 2084
Join Date: Aug 2008
Location: Georgia, USA
Device: Kindle PW2, Samsung Galaxy 3, Kindle Fire HD
Beautiful!

I downloaded Calibre 0.6.3, and of course the change works beautifully. Thanks so much.

And now I've done what I should have done a month ago when I first downloaded Calibre: I donated to support Calibre. Thanks for all your hard work on a wonderful program.
Statch is offline   Reply With Quote
Advert
Old 09-19-2009, 03:50 AM   #33
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
Ok, what am I doing wrong? I'm trying to convert liberated html from ereader2html to mobi. I followed the instructions and customized the html2zip plugin with cp1252, but it's still removing apostrophes and dashes. Do I need to repackage the html and files that er.exe explodes the ereader file into before converting?
phenomshel is offline   Reply With Quote
Old 09-19-2009, 10:37 AM   #34
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are the HTML files actually in cp-1252?
kovidgoyal is offline   Reply With Quote
Old 09-19-2009, 01:59 PM   #35
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
Heck if I know? LOL sorry, Kovid...I'm a complete dummy about encoding and how to tell what is which. All I know is if I tell Calibre in the GUI to do it cp1252, instead of apostrophes I get a capital A with a hat on (no, I don't know what the official name is), and that same A before dashes. That makes me think there's an encoding issue, but I have no idea WHAT the encoding issue might be.

Last edited by phenomshel; 09-19-2009 at 02:02 PM.
phenomshel is offline   Reply With Quote
Advert
Old 09-19-2009, 06:54 PM   #36
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try a few other encodings like utf8, latin1 cp1251, etc
kovidgoyal is offline   Reply With Quote
Old 09-19-2009, 08:33 PM   #37
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
I've tried every encoding you mentioned, and a few more. No luck. I either have no apostrophes or weird characters in place of apostrophes. How do I tell what encoding the HTML file is? I right clicked and hit "encoding" and got Western European (Windows), which according to Wikipedia is CP1252. I'm stumped. The HTML file is fine, but when I try to convert it to .mobi using Calibre it loses those darned apostrophes. Sorry for being a nuisance, Kovid.
phenomshel is offline   Reply With Quote
Old 09-19-2009, 08:40 PM   #38
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Open a ticket and attach the html file, I'll have a look at it when I have a spare moment.
kovidgoyal is offline   Reply With Quote
Old 09-19-2009, 08:47 PM   #39
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
Thanks Kovid
phenomshel is offline   Reply With Quote
Old 09-20-2009, 12:19 AM   #40
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
Ok, this is just weird. I tried converting to ePub from the html - no apostrophes. I tried converting to .lit from the html...apostrophes. *throws hands up*
phenomshel is offline   Reply With Quote
Old 10-21-2009, 01:26 PM   #41
kazbates
Wizard
kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.kazbates ought to be getting tired of karma fortunes by now.
 
kazbates's Avatar
 
Posts: 2,627
Karma: 406616
Join Date: Dec 2008
Location: Northern Virginia
Device: SurfacePro, SurfaceBook 2
Quote:
Originally Posted by mjmcleod View Post
To fix the ereader2html.py script itself, open it in a text editor and look for the line that contains:

final = '<html><body>\n'

There should be only one such line.

Change it to read:

final = '<html><head><META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; c
harset=cp1252"/></head><body>\n'

(all one line.)

Now the HTML files it produces will properly declare themselves to be in cp1252 and the Calibre GUI will handle them correctly.
Okay, it's my turn. This fix worked great to put back all the missing punctuation. However, I still have the funky Center Justification and no blank lines between paragraphs (or indents at the beginning of paragraphs). I've tried converting it to both Epub and LRF through Calibre. Is there a fix to the python script (or something I can include in Calibre) that could correct this? Bare in mind that it has been decades (ouch) since I did any programming and no nothing about python. Thanks.
kazbates is offline   Reply With Quote
Old 10-27-2009, 01:13 PM   #42
Rachel
Zealot
Rachel has a complete set of Star Wars action figures.Rachel has a complete set of Star Wars action figures.Rachel has a complete set of Star Wars action figures.
 
Posts: 115
Karma: 260
Join Date: Sep 2008
Location: Suffolk, England
Device: sony prs505, kindle, ithing
Can I second KazBates query - the fix has been brilliant at putting the speech marks in, which makes it so much easier to read. But it would be good to realign the centred text to the left. Is there a code to enter into calibre for this? Thanks
Rachel is offline   Reply With Quote
Old 10-27-2009, 01:50 PM   #43
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: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
centering I cant really comment on without looking at sample files. paragraph spacing you can control by simply using the insert blank lines between paragrpahs or remove pragraph spacing options.
kovidgoyal is offline   Reply With Quote
Old 10-29-2009, 05:04 AM   #44
Rachel
Zealot
Rachel has a complete set of Star Wars action figures.Rachel has a complete set of Star Wars action figures.Rachel has a complete set of Star Wars action figures.
 
Posts: 115
Karma: 260
Join Date: Sep 2008
Location: Suffolk, England
Device: sony prs505, kindle, ithing
Thanks Kovid, that would be helpful. We have just tried a new ereader2html script, but I still got centred output when I converted to lrf. I have checked and converting to epub is fine. Is it the html file or final output that will help you? (Do I upload it as an attachment or is there a better way to send it to you?)

Thanks

Rachel
Rachel is offline   Reply With Quote
Old 10-29-2009, 05:41 AM   #45
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I would have thought opening a ticket at http://calibre.kovidgoyal.net/ and attaching the files would be the best way to proceed. That way the item does not get forgotten and you have tracking facilities.
itimpi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
converting sony books or B&N books for ipad? cavi General Discussions 2 04-25-2010 11:45 PM
Converting to Palm Digital Ereader rocojo Calibre 5 12-27-2009 08:31 AM
Converting Fictionwise's Secure eReader to something my 505 will read RWJ Calibre 12 09-11-2009 04:33 PM
converting long, somewhat complex docs to eReader Richard Maseles Other formats 4 01-07-2009 05:28 PM
Converting books to eReader with Dropbook Robotech_Master Workshop 1 12-23-2008 12:46 PM


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


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