![]() |
#1 |
Member
![]() Posts: 22
Karma: 10
Join Date: Jan 2008
Device: n/a
|
Lit files display a little odd
I have a bunch of books on .lit that I want to read on the kindle. I use convertLit to make them .htm and then put them into mobipocket creator to convert them into .mobi files.
However, the results I get are always oddly-justified and lack any indents and linebreaks. When I do PDFs in mobipocket creator, I get proper (full) justification, but oftentimes the paragraph indents and line breaks are removed. Am i doing something wrong or is this the best I can hope to get? Here is an example of a .lit file converted to .mobi and how it displays on my kindle: ![]() |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,541
Karma: 64201357
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
I used one of [dark reverser's] tools mentioned herein and got my books into an html format. Then I used html2mobi on a PC (the exe version) to create a file for my Kindle. Alignment clauses that are normally cancelled by an end paragraph mark </p> (dunno if that will display here, or not) were not cancelled. Thus, the chapter titles specified one thing, and the rest of the book carried it onward.
I wound up reading the whole book in right-justified mode. Ragged left, justified right. Boy, was that weird..... But at least I got to read it. I wonder if mobiperl should do something to cancel formatting that normally disappears after end-paragraph? |
![]() |
![]() |
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,206
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When you made the Mobi format eBook, did you load the OPF file into Mobipocket Publisher?
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 22
Karma: 10
Join Date: Jan 2008
Device: n/a
|
I don't have the computer I that for handy, but I think I did the "open HTM(L?) file" and opened that. The OPF was in the same directory as that after convertLit ran, but I opened it as an HTML. Should I be using a different option?
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,541
Karma: 64201357
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
|
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
lit2html has two undocumented flags --fixhtml and --fixhtmlbr. I do not remember exactly what they do but I introduced them to fix problems I discovered in some lit files I had. Maybe the problem I had is common. use one of the flags and see if it helps.
|
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,541
Karma: 64201357
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
That might help Cory, but it won't help me. I didn't start with a LIT file; I started with an eReader file. (the format, not the device)
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,206
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Cory, next time run Mobipocket Creator and then on the initial screen, select the open icon from the icon bar at the top. Then it will ask for you for the OPF file. Load that and then build and see what it is you end up with.
It is possible that there is a problem with the HTML that is causing the problem. But if using the OPF works, then that is a simple fix. If it still doesn't fix the problem, you can try tompe's suggestion and see how that goes. |
![]() |
![]() |
![]() |
#9 | |
Member
![]() Posts: 22
Karma: 10
Join Date: Jan 2008
Device: n/a
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
If you give me an example of the HTML code in your file that is problematic I can probably add a flag for it if the above flags do not work. |
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,541
Karma: 64201357
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
Here's a sample of the oddity of reading a book center justified (not too bad) or right justified. Tompe -- mobiperl is yours, isn't it? I was able to fix this by inserting <p align="left"> after each chapter heading, but I'd hate to do that to all my books. Maybe I'll just enjoy reading strangely!
Oh, I'll attached a small sample of the html for a chapter heading, and the align left line I added to fix it. Last edited by badgoodDeb; 02-22-2008 at 04:58 PM. |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
HarryT's Tutorial - How to Create a MobiPocket eBook may be of some help. It includes a section on editing HTML, although the HTML is from Book Designer.
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,541
Karma: 64201357
Join Date: Jan 2008
Location: Harrisburg outskirts
Device: Palms, K1-4s, iPads, iPhones, KV, KO1
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 22
Karma: 10
Join Date: Jan 2008
Device: n/a
|
Unfortunately, this didn't work. Thanks anyway.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-600 PRS-600 doesn't display correct fonts in ePub files. | MSJim | Sony Reader | 29 | 08-07-2010 06:06 PM |
Odd Files On Kindle 2 | leonardfrye | Amazon Kindle | 2 | 08-24-2009 10:14 AM |
Possible Bug: Odd Glitches in Formatting .lit to .lrf | RJ_Cruze_Jr | Calibre | 7 | 08-02-2009 11:25 AM |
PRS-500 doesn't display .pdf files | Big Brother | Sony Reader | 1 | 10-12-2007 10:02 PM |
Converting LIT to LRF Woes (or: Trouble with Images in LIT Files) | JEMelby | Sony Reader | 0 | 07-27-2007 09:18 PM |