![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
|
Using lit2lrf
Hi, um, my name's Zander and i have a history of PMing Kovidgoyal in panic about something that isn't working, only to find that when i next log on it's sorted itself out. (Sorry, Kovid.) So i thought i'd try a different approach with this possible problem and see if it works the same magic cure.
![]() i have a bunch of LIT files that i want to convert using lit2lrf. i tried using the * wildcard first, and that didn't work for some reason that wasn't clear to me (it said "unable to read"...) so then i tried one particular file, and i got the help file for the command followed at the bottom by "No .lit file specified." So then, following a hunch, i renamed the file, removing the author's name and the space-hyphen-space before the actual title, and this time it seems to have worked. All these files have the author's name and space-hyphen-space in the names. So my question is: is that really the problem, and if so am i going to have to go through nine hundred files one by one and remove the space-hyphen-space manually ![]() Last edited by zander_nyrond; 07-29-2007 at 03:16 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
lit2lrf doesn't support wildcards and for a single file name, if it has spaces you need to enclose the name in quotes. Use the TAB key for completion, it should put the quotes automatically.
Someone that uses windows here can probably give you a two line bat script that will convert all the files in a directory. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2007
Device: Sony Reader PRS-500
|
I don't know if this'll work for you, but what I do is:
1) copy the file(s) in the same directory where Lit2Lrf is. 2) I open the Lit2Lrf folder and drag-and-drop the LIT files onto the Lit2Lrf.exe icon. Lit2Lrf automatically opens and converts all the files. I don't know what OS you're using, but it works for me on Windows XP. |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
|
Thank you, and sorry for my benighted ignorance.
![]() |
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But, if you do it that way, how do you specify any options other then the default options?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jul 2007
Device: Sony PRS500
|
Well, i'm still very new to all this, so i'll stick with the default options for the moment. After all, i'll still have the original files...i can always do it again.
i managed to write my own BAT file, and it only took one line: for %%f in (*.lit) do lit2lrf "%%f" It's still running at the moment, but i should know if it's worked any second... |
![]() |
![]() |
![]() |
#7 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
That should work just fine.
|
![]() |
![]() |
![]() |
#8 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
If you always wanted to use the same set of options, you could create a "shortcut" to lit2lrf and specify the options in the shortcut properties. You could have different shortcuts for different sets of options.
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I just found a need for an indent override with lit2lrf. Lit2lrf picks up the indent from the lit file. But sometimes, the indent is not enough. And there is no way to control the indent.
I found a bug in LIT conversion where the ToC is all screwed up when the LIT file has one of those ToC that is a seperate popup type page. lit2lrf just doesn't get the links correct. |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open ze bug reports and send me ze naughty lit.
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Ticket opened and LIT file attached.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-500 lit2lrf.exe | waykohler | Sony Reader Dev Corner | 38 | 12-25-2009 05:51 AM |
Calibre now includes MS LIT converter: lit2lrf | kovidgoyal | Calibre | 387 | 10-14-2009 12:42 AM |