![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 535
Karma: 972
Join Date: Jul 2009
Device: The new iPad
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | ||
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#19 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 2084
Join Date: Aug 2008
Location: Georgia, USA
Device: Kindle PW2, Samsung Galaxy 3, Kindle Fire HD
|
Thanks to both of you for the answer on how to make one record with all the formats.
I'm using Windows XP. |
![]() |
![]() |
![]() |
#20 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jul 2009
Device: kindle 2
|
My experience with ereader books is that some of them apparently "just work" because they don't use any of the offending characters: they use three periods instead of an ellipsis character, a hyphen instead of an em-dash, etc. I think it has more to do with the way the individual book than the fact that it comes from ereader.
I'm not brilliant with character encodings, it's not something I deal with often in my programming, but I would think that if we put in a function that would detect and replace unusual characters with their character entity encodings (for example, ampersand rsquo; for a right single quote) it might work a lot better. (I had been doing a little of this manually to make my books work better and was going to write a short program to do it for me, but am not going to bother now that I see that I can do it from the command line and it works fine.) |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#22 |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
I convert almost exclusively from eReader and the GUI works for me...but I'm still zipping my HTML and image files before importing them to Calibre. Would that make the difference? (I read your ticket notes and haven't had to do this...yet).
|
![]() |
![]() |
![]() |
#23 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you zip them up before hand, specifying the input encoding in the GUI will work, as the html is not processed when adding the book.
|
![]() |
![]() |
![]() |
#24 |
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
|
Is there a benefit to not zipping the files? What kind of pre-processing does Calibre do to the HTML that would make it beneficial to allow it to happen?
|
![]() |
![]() |
![]() |
#25 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Basically it collects all the linked to files for you
|
![]() |
![]() |
![]() |
#26 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2009
Device: PRS-505
|
Quote:
For me, I work around the issue with just a text editor. I use SubEthaEdit to open the document, use the select menu at the bottom of the window to Reinterpret as Windows Latin 1, and then use the same menu to Convert to UTF-8. It only takes a few seconds, and afterwards they import into Calibre and convert to ePub without difficulty. Sometimes I have found books that use weird &#XXX codes to specify quotes and dashes that display fine in a web browser, but do not display correctly on my PRS-505, in which case I just use the SubEthaEdit to find/replace the offending characters, then re-import and convert. A little laborious, but it gets the job done. |
|
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,409
Karma: 4132096
Join Date: Sep 2008
Device: Kindle Paperwhite/iOS Kindle App
|
All right, I have a new system
![]() 1) Run the macro to extract the html from the secure file 2) Open in Firefox, select all text, paste into Neo Office as unformatted text 3) Save as RTF 4) Open RTF file in Pages, turn on search for invisibles 5) Search for 3 paragraph marks, replace with 2 6) Save again as RTF, Select all and copy 7) Open Komposer (web editing program) 8) Paste in the RTF text 9) Give a final once-over, save as HTML 10) Import into Calibre, edit metadata, convert to LRF Kovid says I could probably convert the exploded file straight to epub and not get the line spacing issues and centering issues I get with LRF. Have not tried that yet. |
![]() |
![]() |
![]() |
#28 | |
Still wondering why
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
|
Quote:
Of course, you still would have to replace the 3 line breaks occurences by 2 before saving the file. |
|
![]() |
![]() |
![]() |
#29 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 11501
Join Date: Jul 2009
Location: Australia
Device: Galaxy Tab
|
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. |
![]() |
![]() |
![]() |
#30 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 2084
Join Date: Aug 2008
Location: Georgia, USA
Device: Kindle PW2, Samsung Galaxy 3, Kindle Fire HD
|
You're all so smart! Post #21, I looked at the resolution of the help ticket, and I'm afraid I just don't get it. What you said to add shows up for me as a slider bar?
#29, what a beautiful solution! I'm using a version of ereader2html that some nice person made into a little gui, so it doesn't work for me, but I wish it did. (Unfortunately, I don't remember where I downloaded the thing from, so can't credit the creator. I click on a file called "er" and just answer some questions.) #28, using MS Word and saving the file as a 'web page, filtered' worked for me. It loses some of the metadata, but it's easy to put that back in Calibre. Problem solved. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |