![]() |
#1 |
Groupie
![]() ![]() ![]() Posts: 181
Karma: 232
Join Date: May 2006
|
Errors in .Lit files
Using wordpad I have found a way to quickly "repair" a badly made (as far as I can see) .Lit ebook I bought for over $10 (I have 2 others with the same problem but all the rest, the vast majority, are fine)
Why I thought it needed repairing: - book designer and lit2lrf would both only generate the first few pages and then stop without an error message. In a nutshell here is the situation: - exploded .lit to all it parts (a number of .jpg, html files and 1 opf and i css file and 1 .htm for the cover) - found that all links (I mean 100%) referred to a .html called XXXfront.html when it should have been XXX.html. So clicking on the links in the html always came back to the xxxfront.html which is a single page with publisher details only. - i used a find and replace in wordpad to change all the xxxfront.html links to xxx.html and now all the links 100%work....great so far. My initial thoughts were to: 1) convert the exploded .Lit back to a .Lit for conversion to correct .Lrf 2) or.....convert the exploded files to .Lrf but I could not find a way to do either. Am working using Book designer to fix this now - anyone else encountered this? Last edited by shousa; 01-29-2008 at 04:23 AM. |
![]() |
![]() |
![]() |
#2 |
Groupie
![]() ![]() ![]() Posts: 181
Karma: 232
Join Date: May 2006
|
Have used mobicreator which confirms that the original exploded .lit had a massive number of unresolved links but my new version was error free.
Have made a .prc, now looking to convert the .prc to .rtf or something. Installing converter now http://www.processtext.com/abcpalm.html If this pans out it is an easy fix for links that are bad. Last edited by shousa; 01-29-2008 at 04:33 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() Posts: 181
Karma: 232
Join Date: May 2006
|
Using the above tools it seems possible to explode a .Lit then edit the .html files then convert to a single .prc then convert back to a .Lit.
The fixed .Lit could then be changed to a .Lrf. Or could change the .prc to a .rtf - Trying it now.....oops that was a mess! |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just run html2lrf --use-spine on any html file from the .lit file.
|
![]() |
![]() |
![]() |
#5 | |
Groupie
![]() ![]() ![]() Posts: 181
Karma: 232
Join Date: May 2006
|
Quote:
![]() They take over 1 hour to load each though (pictures and hundreds of links) using the Lrf viewer. I chose the Sony Reader for one reason Kovid (over the others) - your support tools are awesome. Seeing as how that worked with multiple .html files I was wondering whether a website downloaded using HTTrack could be converted to a .Lrf the same way? I will give it a go anyway!! What fun!! This conversion stuff is generally much faster than ripping CDs!! Last edited by shousa; 01-29-2008 at 09:28 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
look at web2disk and web2lrf
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If I convert the unexpanded LIT file, I did get the proper indents. The command I used was... Code:
html2lrf --use-spine --left-margin=0 --right-margin=0 --top-margin=0 --bottom-margin=0 --base-font-size=10 --wordspace=1 contents.html |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Wow that's strange. lit2lrf basically explodes the lit file and calls html2lrf with the --use-spine option (and any options you pass to lit2lrf). It's probably got something to do with not finding the CSS file. Attach this lit file here.
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'll create a ticket and post it on your site.
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Ticket #497 created and the LIT attached.
Using version 0.4.34. |
![]() |
![]() |
![]() |
#11 |
Groupie
![]() ![]() ![]() Posts: 181
Karma: 232
Join Date: May 2006
|
Hey JSWolf, have you tried using a .bat file rather than typing it in?
I call it ExplodedLit2Lrf (ExLit2Lrf.bat) No need to use commandline - just right-click attached .bat file to choose edit then save. Can double-click from Windows to run. (finally I have done something worth a tiny bit of karma?) Last edited by shousa; 01-29-2008 at 06:37 PM. |
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
html2lrf --use-spine --left-margin=0 --right-margin=0 --top-margin=0 --bottom-margin=0 --base-font-size=10 --wordspace=1 %1 In this case, the code would be... Code:
lit2lrf --left-margin=0 --right-margin=0 --top-margin=0 --bottom-margin=0 --base-font-size=10 --wordspace=1 %1 |
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I just remembered another bug with lit2lrf. It doesn't put the ToC in the actual eBook. All you get is the inline ToC. And sometimes they way the ToC is done, it's nice to have it in the actual eBook.
Ticket #498 created. |
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The indent problem I think I just figured out....
Code:
.para { display: block; margin-bottom: 0%; text-indent:5%; } But if I replace the 5% with 20px, it works. Code:
.para { display: block; margin-bottom: 0%; text-indent:20px; } |
![]() |
![]() |
![]() |
#15 |
Groupie
![]() ![]() ![]() Posts: 181
Karma: 232
Join Date: May 2006
|
Great JSWolf!
By the way using your options fixed my .lrfs so now they load in a few seconds! Thanks ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPad .Lit files on the iPad | clockworkzombie | Apple Devices | 4 | 09-13-2010 06:51 AM |
Which format should I convert .lit files to? | Joe Schmoo | Astak EZReader | 16 | 01-30-2010 12:23 PM |
What about LIT files? | scylla2 | HanLin eBook | 6 | 04-20-2009 06:51 AM |
Lit files? | Jaie | Which one should I buy? | 11 | 02-21-2009 07:52 AM |
Converting LIT to LRF Woes (or: Trouble with Images in LIT Files) | JEMelby | Sony Reader | 0 | 07-27-2007 09:18 PM |