Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats > IMP

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2008, 12:55 PM   #1
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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
Thumbs up 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:
RE: [REB1200] Lit2SB source code

When I written lit2sb, it was only intended to automate the conversion of
.lit files, I mean that lit2sb don’t do any html conversion. In fact you
should see it more as a batch file written in perl…

So for your remarqs:

1) ??
2) I don’t touch the source html (I only add margins)
3) Lit2sb don’t add any line breaks, probably the gemstar publisher do
that or the ms$reader ignore those?

If you know perl I can send you a copy of the source script but the script
perl is compiled for the convenience of end users…

Phil
I have re-compiled a windows executable (Lit2sb.exe) based on a modified copy of that perl script to allow proper conversions. Just replace the original lit2sb.exe executable with the one in the below .zip file. Of course, do so after following the instructions previously given Convert .lit directly into .IMP formats.

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!
Attached Files
File Type: zip lit2sb.zip (1.01 MB, 2629 views)
File Type: pl lit2sb.pl (9.3 KB, 1851 views)
File Type: pl lit2sb-orig.pl (9.2 KB, 1783 views)
nrapallo is offline   Reply With Quote
Old 08-23-2008, 05:15 PM   #2
RWood
Technogeezer
RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.
 
RWood's Avatar
 
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.
RWood is offline   Reply With Quote
Advert
Old 08-23-2008, 05:35 PM   #3
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by RWood View Post
Great work Nick. A real asset for our toolbag.
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!
nrapallo is offline   Reply With Quote
Old 08-23-2008, 07:23 PM   #4
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
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.
zelda_pinwheel is offline   Reply With Quote
Old 08-23-2008, 09:16 PM   #5
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
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:
Originally Posted by zelda_pinwheel View Post
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.
Thanks ZP!

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.
nrapallo is offline   Reply With Quote
Advert
Old 08-23-2008, 09:19 PM   #6
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
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?
Quote:
Originally Posted by nrapallo View Post
So welcomed, that I'm afraid I'll never leave this place.
oh good, our cunning plan is working...
zelda_pinwheel is offline   Reply With Quote
Old 07-09-2010, 11:17 AM   #7
tautas
Junior Member
tautas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: xDDD
Thanks nrapallo
tautas is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 01:18 AM.


MobileRead.com is a privately owned, operated and funded community.