08-23-2008, 12:55 PM | #1 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Original Lit2sb perl script RESURRECTED!
I've found using the Lit2sb program very rewarding over the last few years. It has been a 'work horse' program accepting almost everything thrown at it and producing elegant .imp ebooks!
That said, there are some quirks that I've come to live with, namely: 8.3 filename processing, o_sb.imp output filename, uncontrollable margins (and other CSS settings), ... I've always wanted to re-compile the program to do the things that I wanted it to do, but have been thwarted until just recently. That's right, I've managed to resurrect the perl script it was written in (and compiled into a .exe by ActiveState's perl2exe and further obfuscated by upx compression). Unfortunately all comments seem to have been stripped in the original compilation process. The perl script was written by reblibrarian (Philippe Rigaux of ebooksfrance.com) as evident in this posting in the REB1200 Yahoo group Quote:
Among the things fixed were: - uses source .lit filename as final .imp output filename and places resulting .imp in the same directory as the .lit source. - for resulting .imp and .opf, no longer uses 8.3 filenames. - uses "2%" left and right margins now, instead of "18pt" - properly scales GEB1150/EBW1150 cover image so as to avoid bottom margin bleeding. - fixed system calls to external programs to properly prefix path. TO DO: - make a GUI ala Mobi2IMP. The program will be called Lit2IMP! - for REB1200 and EBW1150, rescale all images referred to in the .html ebook so that there is no bottom margin bleeding. - fix the auto TOC entry insertion which usually duplicates the last entry in the <spine> section of the .opf. - add any user requested (simple) modifications... Have any? As always, enjoy! |
|
08-23-2008, 05:15 PM | #2 |
Technogeezer
Posts: 7,233
Karma: 1601464
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
|
Great work Nick. A real asset for our toolbag.
|
08-23-2008, 05:35 PM | #3 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Thanks, but just don't expect me to code Lit2lrf, Lit2mobi, Lit2rb, Lit2epub, etc. from this anytime soon...
I've already placed a lot of concurrent coding/experiments on my plate, though, this is exactly what I predicted when I start posting here on mobileread.com. See my bold predictions at the bottom of this message in Feb 2008! |
08-23-2008, 07:23 PM | #4 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
nick, you continue to amaze me !! thanks for yet another great contribution ! with your help our conversions to imp format are getting better and better (and easier !!). i've made this thread a sticky so people can easily find it.
|
08-23-2008, 09:16 PM | #5 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Wow, home page coverage and now a sticky; you know how to make a guy feel welcomed! So welcomed, that I'm afraid I'll never leave this place. |
|
08-23-2008, 09:19 PM | #6 |
zeldinha zippy zeldissima
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
|
07-09-2010, 11:17 AM | #7 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: xDDD
|
Thanks nrapallo
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question reguardering DRM, lit2sb and the orignial book file | askyn | IMP | 8 | 09-28-2008 11:41 PM |
Perl processing | alexxxm | Sony Reader | 3 | 11-26-2007 07:13 AM |
Perl Script to convert to .lrf for Sony PRS | chas | Sony Reader Dev Corner | 7 | 11-22-2007 06:22 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 12:49 PM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 02:24 PM |