Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > Fictionwise eBookwise

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2008, 01:06 AM   #16
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 derrell View Post
There are a couple of GUI tk interface creators like Zooz but I find it easier to just add the code by hand as I build up the interface. One of the major drawbacks of Tk is that as the application gets larger and more complicated you tend to end up with global variables all over the place. There are object oriented solutions to this but I generally end up using hashes for them.
I was hoping you weren't going to say this!

Quote:
Oop and I don't get along well, one of the reasons that I still use perl for most things that I write and haven't really gotten into python where everything is an object.
I hear you loud and clear. Same with ME! When I updated PDFRead's python modules, I got brain freeze; still do. I think like perl is written, not like OOP! That's why my continued interest in writing some perl utilities.

Quote:
Here are a couple of links for some basic Tk info. There are many around the web.
Tk tutorial
Zooz My opion though is that it easier to just code the ui.
Some more advance widgets.
Thanks for these tutorials!

I tried the ActivePerl Tk widget.bat demo and others and all I can say is WOW!!! I've got to learn this (in between ebooks conversions)!

Quote:
Oh and I'm still tinkering with this some but I think I'll be moving to an epub like storage system for my books. Where the book is exploded into an oeb style structure with either mobi2oeb or convert lit then modify the opf file and build an imp with a short windows script that wrote that uses the BookMill com interface.
Mobi2IMP.pl and Lit2sb.pl will do this nicely for you, as a front-ends!

Quote:
From there I can store the imp file and all of the other files in a single zipped archive or possibly bzip2. That will give easy access to the created imp file so it can be copied to my bookshelf or to easily change the metadata in the opf and rebuild the imp. The impfindGUI script will most likely be the starting point with some modules added to handle manipulating the book files.

The sort for the path and the button on the shelf tab shouldn't be hard to add. I'll look at adding that to the what I have and post another version in a couple of days.
Great to hear; another developer to share the "laurels" with!
nrapallo is offline   Reply With Quote
Old 10-18-2008, 01:18 AM   #17
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Quote:
Originally Posted by nrapallo View Post
Mobi2IMP.pl and Lit2sb.pl will do this nicely for you, as a front-ends!
I've never been able to get mobi2IMP to work under wine. Thats why I wrote a script that would work with the BuildFromProject method from the BookMillX api. Just feed it an opf and viola imp file. Seemed like the simplest way to avoid a lot of work arounds with wine. Calibre and convert lit work fine under linux and with perl I can chop up the opf and redo it so that eBook Publisher likes it.
derrell is offline   Reply With Quote
Advert
Old 10-18-2008, 01:24 AM   #18
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 derrell View Post
I've never been able to get mobi2IMP to work under wine. Thats why I wrote a script that would work with the BuildFromProject method from the BookMillX api. Just feed it an opf and viola imp file. Seemed like the simplest way to avoid a lot of work arounds with wine. Calibre and convert lit work fine under linux and with perl I can chop up the opf and redo it so that eBook Publisher likes it.
Right, linux doesn't support native .imp creation.

What's BookMill com interface or BookMillX api? linux or Mac OS X modules?
nrapallo is offline   Reply With Quote
Old 10-18-2008, 03:43 AM   #19
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Should have said the eBook AutoPublisher from eti. The perl and VB interface that comes with eBook Publisher. The title that shows in a tab with the docs open is BookMillX - COM started thinking of it by that name. Using that I only have one call to a windows script running under wine to get an imp book from a set of files.
derrell is offline   Reply With Quote
Old 10-18-2008, 08:16 AM   #20
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
Oh, I see. That's where I got started programming in perl earlier this year! See my first mobileread post or the one with working perl scripts.

So after installing eBook Publisher using wine, what do you call to create the .imp? Is it detailed in your EBookwise-1150-Linux wiki page?

Mobi2IMP.pl uses the .imp creation routine I "lifted" from the SBPubX.doc COM interface doucmentation that ships with eBook Publisher. It basically calls '$builder->Build($project);' to create the .imp. You use 'BuildFromProject', but how is it different than what I'm calling that doesn't make it work!

BTW, lit2imp.pl DOES use '$builder->BuildFromProject($opf_file);', so does it create a .imp from a .lit in liunx for you?

Maybe you can try tweaking Mobi2IMP.pl to work properly in linux using 'BuildFromProject' instead of just 'Build'?

Can you confirm what works for you? and what script do you use?

I'll make the change permanent in Mobi2IMP.pl, if it works for both linux and windows!
nrapallo is offline   Reply With Quote
Advert
Old 10-18-2008, 07:49 PM   #21
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by nrapallo View Post
I hear you loud and clear. Same with ME! When I updated PDFRead's python modules, I got brain freeze; still do. I think like perl is written, not like OOP! That's why my continued interest in writing some perl utilities.
I kind of like the Perl's object orientation. For larger Perl programs I always use it. And I used it a bit in MobiPerl.

My PerlTK programs usually starts out non-OO but when they grow they become a mess so I ususally add OO at some point.
tompe is offline   Reply With Quote
Old 10-18-2008, 09:22 PM   #22
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Quote:
Originally Posted by nrapallo View Post
Mobi2IMP.pl uses the .imp creation routine I "lifted" from the SBPubX.doc COM interface doucmentation that ships with eBook Publisher. It basically calls '$builder->Build($project);' to create the .imp. You use 'BuildFromProject', but how is it different than what I'm calling that doesn't make it work!
The main problem that I've had is getting the extra perl modules the scripts need installed in the activestate perl that I've got installed under wine. Even the exe version that uses par to budle all of the stuff up fails under wine with errors from par. I fought with it all for awhile then just said to heck with it. There is a point where its just not worth all the extra effort trying to get windows software to work under linux. Thats why I started thinking along the lines getting most of the work done in a native linux environment and using wine as little as possible. The little script that I wrote to run under wine uses only the AutoPublisher api. You pass in a path to the opf and it creates the imp file.


Quote:
Originally Posted by nrapallo View Post
So after installing eBook Publisher using wine, what do you call to create the .imp? Is it detailed in your EBookwise-1150-Linux wiki page?
I haven't added any of this to the wiki yet because it is such a mess to try getting wine set up to work with the command line tools. Impmake works but you have to have two seperate bottles for wine with eBook Publisher installed in them. The first can just be standard with only the core fonts installed into it. The second, where impmake will run, has to have some other dll's installed that allow the api calls from AutoPublisher to work but completely break the gui version of eBook Publisher.


Quote:
Originally Posted by tompe View Post
I kind of like the Perl's object orientation. For larger Perl programs I always use it. And I used it a bit in MobiPerl.

My PerlTK programs usually starts out non-OO but when they grow they become a mess so I ususally add OO at some point.
Yeah, at some point I'm going to have to break down and get comfortable with writing OO but since this is a hobby I just haven't taken the time to do it. My day job, or I should say night job since I work the graveyard shift, is being a machinist.
derrell is offline   Reply With Quote
Old 10-18-2008, 09:51 PM   #23
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 derrell View Post
The main problem that I've had is getting the extra perl modules the scripts need installed in the activestate perl that I've got installed under wine. Even the exe version that uses par to budle all of the stuff up fails under wine with errors from par. I fought with it all for awhile then just said to heck with it. There is a point where its just not worth all the extra effort trying to get windows software to work under linux. Thats why I started thinking along the lines getting most of the work done in a native linux environment and using wine as little as possible.
Which .exe are you referring to? ebookpub or Mobi2IMP GUI? Just use the perl .pl scripts instead of the .exe, no?

Quote:
The little script that I wrote to run under wine uses only the AutoPublisher api. You pass in a path to the opf and it creates the imp file.
So if you gave mobi2imp.pl (perl script) the mobi.prc, wouldn't it generate a .imp if you used BuildFromProject? If you send me/post the script, I can try to see if it is different from what I do. I haven't yet used/setup wine in ubuntu since I primarily use windows for ebook creation.

Quote:
I haven't added any of this to the wiki yet because it is such a mess to try getting wine set up to work with the command line tools. Impmake works but you have to have two seperate bottles for wine with eBook Publisher installed in them. The first can just be standard with only the core fonts installed into it. The second, where impmake will run, has to have some other dll's installed that allow the api calls from AutoPublisher to work but completely break the gui version of eBook Publisher.
I understand from ashkulz that using impmake in linux requires you to jump through hoops, but if you don't with your script, then there could be a native way to generate a .imp from a .opf. I think we are on the right track here...

Quote:
Yeah, at some point I'm going to have to break down and get comfortable with writing OO but since this is a hobby I just haven't taken the time to do it. My day job, or I should say night job since I work the graveyard shift, is being a machinist.
Same here; programming is a hobby, not full-time job, but a fun/rewarding hobby nevertheless!
nrapallo is offline   Reply With Quote
Old 10-19-2008, 12:08 AM   #24
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Sorry for being unclear.

Quote:
Originally Posted by nrapallo View Post
Which .exe are you referring to? ebookpub or Mobi2IMP GUI? Just use the perl .pl scripts instead of the .exe, no?
The Mobi2IMP.exe. Can't get this to run under wine. It throws errors with something to do with the par packaging. This is a wine issue because the executeable works fine under windows.

Quote:
Originally Posted by nrapallo View Post
So if you gave mobi2imp.pl (perl script) the mobi.prc, wouldn't it generate a .imp if you used BuildFromProject? If you send me/post the script, I can try to see if it is different from what I do. I haven't yet used/setup wine in ubuntu since I primarily use windows for ebook creation.
The problem with trying to run this script under wine is that all of the perl modules that it needs are not installed in the ActiveState version of perl that I have running under wine. So it isn't so much a problem with the script as it is with the installation of perl under wine. For these windows perl scripts to work you have to install a version of perl for windows in wine and then the other perl modules that the scripts need. I haven't been able to get any modules installed.

Quote:
Originally Posted by nrapallo View Post
I understand from ashkulz that using impmake in linux requires you to jump through hoops, but if you don't with your script, then there could be a native way to generate a .imp from a .opf. I think we are on the right track here...
I have to jump through the same hoops to make the perl script that I wrote work with AutoPublisher. But those same hoops don't let the more complicated mobi2imp.pl script work due to the perl modules that I haven't been able to get installed under wine. There is most likely a solution for that I just got tired of fighting the whole mess.

The hoop jumping is only in the initial setup though so once I get it working, just installing some dll's, I don't have to jump through anymore hoops to use the simpler script that only relies on what ActiveState installs to begin with.

Your automated conversion scripts work just fine in a virtual box install of XP. That requires me to be running virtual box and working in XP which is not a big deal but requires a lot file moving to get the books onto my reader which I do through linux using eb1150 and ebookutils. I have to start the virtual machine move the mobi book into that environment through a directory that is mounted as a network drive for XP. Then do the conversion and move it back into linux through the same directory and then into my bookshelf directory then I can put it on my reader. It is a hassle and being like I am I will spend a lot of hours trying to figure out how to make that easier. Probably enough hours that if I spent the same amount of time converting books through the longer method I could convert more than I could ever read.

The most common work flow for converting a lit book or a mobi book for me is this.

1. Explode the book with either Convert lit or mobi2oeb
2. Open the opf file eBook Publisher.
3. Since the opf won't open in eBook Publisher add all the information and the html files to a new project in eBook Publisher.
4. Preview the Grayscale version of the book and hope that there aren't any weird and esoteric css formating problems.
5. Save the project which overwrites the original opf file and build the imp file.
6. Archive the whole thing with the original mobi or lit along with the exploded files and imp into a zip or bzip2 file.
7. Transfer a copy of the imp file to my reader.
8. FINALLY start reading my book that I most likely paid good money for.

Sorry for the long post but once I got started I couldn't stop.

Oh and here is the perl script that I'm using under wine. Still experimental and does not provide the ebook with a unique id number.

Code:
#!/perl/bin/perl -w

use strict;

use Win32::OLE; 

Win32::OLE->Initialize(Win32::OLE::COINIT_APARTMENTTHREADED); 


my $builder = Win32::OLE->new("SBPublisher.Builder") or 

        die "Unable to get IBuilder interface\n";


 
my ($opf) = @ARGV;
$builder->{TargetDevice} = 2;

$builder->BuildFromProject($opf);

if (Win32::OLE->LastError() != 0) { 

        print "ERROR: Build method failed.\n";

} else { 

        print "Done!\n";

} 

print "Path to file " . $builder->{OutputFilename} . "\n"; 

Win32::OLE->Uninitialize(); 
exit;
And the wine command line.
Code:
wine perl c:\\bin\\opf2imp.pl Mass_Effect_Revelation.opf

Last edited by derrell; 10-19-2008 at 12:23 AM.
derrell is offline   Reply With Quote
Old 10-19-2008, 08:26 AM   #25
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 derrell View Post
Sorry for being unclear.

The Mobi2IMP.exe. Can't get this to run under wine. It throws errors with something to do with the par packaging. This is a wine issue because the executeable works fine under windows.
Ok understood now; the Mobi2IMP.exe is built using this command in my ActiveState Perl for Windows:
Code:
pp -o ..\bin\Mobi2IMP.exe mobi2imp.pl
If there is an alternative that works in wine then I could try using that, but it begs the question, why? Everything except the GUI part is coded in perl using tompe's mobiperl mobi2html as a base. I used his setup to get ActiveState Perl working with Mobi2IMP (see his install instructions here for the various operating systems mobiperl runs on).

Can you get mobiperl working? If so, you should be able to get mobi2imp.pl working then. I'm speaking generally/theorectically here as I know you have issues getting it to work.

However, if ActiveState Perl is supplemented with the (mobiperl) modules available at CSPAN, then it would appear that mobi2imp.pl might work except for the OLE calls to AutoPublisher, which are handled by you below and use BuildFromProject instead of Build.

Quote:
The problem with trying to run this script under wine is that all of the perl modules that it needs are not installed in the ActiveState version of perl that I have running under wine. So it isn't so much a problem with the script as it is with the installation of perl under wine. For these windows perl scripts to work you have to install a version of perl for windows in wine and then the other perl modules that the scripts need. I haven't been able to get any modules installed.


I have to jump through the same hoops to make the perl script that I wrote work with AutoPublisher. But those same hoops don't let the more complicated mobi2imp.pl script work due to the perl modules that I haven't been able to get installed under wine. There is most likely a solution for that I just got tired of fighting the whole mess.

The hoop jumping is only in the initial setup though so once I get it working, just installing some dll's, I don't have to jump through anymore hoops to use the simpler script that only relies on what ActiveState installs to begin with.
I may need your guidance setting this up in ubuntu. I couldn't find where to install wine from? Update Manager? Add Programs?

Quote:
Your automated conversion scripts work just fine in a virtual box install of XP. That requires me to be running virtual box and working in XP which is not a big deal but requires a lot file moving to get the books onto my reader which I do through linux using eb1150 and ebookutils. I have to start the virtual machine move the mobi book into that environment through a directory that is mounted as a network drive for XP. Then do the conversion and move it back into linux through the same directory and then into my bookshelf directory then I can put it on my reader. It is a hassle and being like I am I will spend a lot of hours trying to figure out how to make that easier. Probably enough hours that if I spent the same amount of time converting books through the longer method I could convert more than I could ever read.

The most common work flow for converting a lit book or a mobi book for me is this.

1. Explode the book with either Convert lit or mobi2oeb
2. Open the opf file eBook Publisher.
3. Since the opf won't open in eBook Publisher add all the information and the html files to a new project in eBook Publisher.
4. Preview the Grayscale version of the book and hope that there aren't any weird and esoteric css formating problems.
5. Save the project which overwrites the original opf file and build the imp file.
6. Archive the whole thing with the original mobi or lit along with the exploded files and imp into a zip or bzip2 file.
7. Transfer a copy of the imp file to my reader.
8. FINALLY start reading my book that I most likely paid good money for.

Sorry for the long post but once I got started I couldn't stop.

Oh and here is the perl script that I'm using under wine. Still experimental and does not provide the ebook with a unique id number.
This is the .imp generating code used in lit2sb.pl:
Code:
sub html2geb2150 {
	$opf_file = shift;
	$builder=Win32::OLE->new("SBPublisher.Builder") or
	    die "Unable to get Softbook Personal Publisher\n";
	if ($GEB1150) {$builder->{TargetDevice}="2";}
	else {$builder->{TargetDevice}="1";}
	$builder->BuildFromProject($opf_file);
}
Very similar to your script, so does lit2sb.pl work for you in linux i.e. lit2sb.pl ebook.lit yields a .imp? how about Lit2sb.exe (I know pushing it )?

Thanks for the heads up; I am now going to try all of this in ubuntu and use (well try to use ) wine with mobi2imp.pl!

Last edited by nrapallo; 10-19-2008 at 08:34 AM.
nrapallo is offline   Reply With Quote
Old 10-19-2008, 10:19 AM   #26
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Quote:
I may need your guidance setting this up in ubuntu. I couldn't find where to install wine from? Update Manager? Add Programs?
Umm, add programs I think. I use fluxbox as my window manager and not gnome most of the time so the menus look different. Whatever command starts synaptic, the package manager for ubuntu. Once that is running just search for wine its in it the repositories.

I haven't tried lit2sb. After trying to get the mobi2imp.pl to work I sort of gave up on using windows apps. I've been trying to use them as little as possible during the conversion. Things are simpler that way

Mobiperl works fine under just linux. It would run into the same problems though under wine. I can't install any perl modules from activestate into the windows perl installation. As I said there is most likely a way around that but I didn't ever find it.
derrell is offline   Reply With Quote
Old 10-22-2008, 09:53 AM   #27
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 derrell View Post
And the wine command line.
Code:
wine perl c:\\bin\\opf2imp.pl Mass_Effect_Revelation.opf
OK, I'm stuck here!

To use mobi2imp.pl, I started by first setting up eBook Publisher and the imp viewer as per your wiki writeup, and it's working just fine!

I downloaded and installed tompe's mobiperl and used cspan to get the required modules. I couldn't get GD to install, so I had to download and install libgd first (all done using sudo!).

Then I had to move the MobiPerl and Palm libs to /usr/local/lib/perl/5.8.8 for them to be recognized by my ubuntu 8.04 default perl setup! Mobiperl now also works!!!!

OK, how do I use just mobi2imp.pl? If I issue, perl mobi2imp.pl, I get that it couldn't find Win32/OLE.pm.

I think you said you have to install ActivePerl under wine to use your opf2imp.pl script above. Is that right, I have to download the windows version of ActivePerl and install under wine, even though I already have perl installed on this linux box?

I just want to get your script and my mobi2imp.pl working, but both are missing the OLE.pm. It's not possible to just copy OLE.PM to the linux installation, right?

I issued your wine command above, but it complained that perl.exe could not be found, hence the need for ActivePerl to be installed there using wine, right?

Sorry for all the basic questions, but I'm learning this as I go.

Last edited by nrapallo; 10-22-2008 at 09:56 AM.
nrapallo is offline   Reply With Quote
Old 10-22-2008, 11:50 AM   #28
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Ok hold on if you are checking this thread for an answer. I'm working on it but involves a lot of typing its going to take a bit.
derrell is offline   Reply With Quote
Old 10-22-2008, 12:30 PM   #29
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 derrell View Post
Ok hold on if you are checking this thread for an answer. I'm working on it but involves a lot of typing its going to take a bit.
OK, I know all of this is , so post here or to a new thread.

Oh, by the way, no hurray for the response; I'll wait until you've got the time to write it up (what other choice do I have )

Thanks, derrell!
nrapallo is offline   Reply With Quote
Old 10-22-2008, 12:44 PM   #30
derrell
Jack O' Apes
derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.derrell once ate a cherry pie in a record 7 seconds.
 
derrell's Avatar
 
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
Started a new thread here.
derrell is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 06:37 PM.


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