01-01-2008, 10:04 AM | #91 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
That sounds perfect!
|
01-01-2008, 10:39 AM | #92 | |
Kindlephilia
Posts: 2,017
Karma: 1139255
Join Date: Nov 2007
Location: Snowpacolypse 2010
Device: Too many to count
|
Quote:
It worked great for me too on a file I'd used Igorsk's Kindle hack to add the Kindle PID. The only problem was that for 95% of the files I'd converted the title info was completely lost not to mention the author. Too bad I have a gazillion files to run through Mobi2Mobi. |
|
Advert | |
|
01-01-2008, 11:04 AM | #93 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
When I do something that I might have to repeat because there is a better version of a program available (like som bug fixed in mobi2mobi ) I usually put the commands in a make file so I can repeat them.
In Windows that seems to mean that you install nmake and then you create a file Makefile that can contain just: Code:
all: <TAB> mobi2mobi ... <TAB> mobi2mobi .... Jut wanted to mention this since I worry a bit that my programs contain some bug so people have to repeat the application of them. Also save the original file! |
01-01-2008, 11:05 AM | #94 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
What's the benefit of this over simply using a batch file?
|
01-01-2008, 11:14 AM | #95 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Ah, maybe none I use make files since I know the syntax for them. Also it is a standardized way to do things so the file will work on different platforms and the file always has the same name. But a batch file will work as well on Windows I suppose.
|
Advert | |
|
01-01-2008, 02:08 PM | #96 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
|
|
01-04-2008, 04:43 AM | #97 |
Zealot
Posts: 108
Karma: 49
Join Date: Dec 2007
Location: Nederland
Device: iPad
|
Could anyone point me to an instruction to get this to work on a Mac? I have downloaded the tar file, the necessary perl modules for mobi2html (which is the program I would like to use), but on the cpan site I am told that I need to make sure that the line endings are suited for the Mac (in all files, which seems a lot of work), that I need to compile some modules, but some perhaps not.
I am a bit confused about what I have to do exactly. Any help would be much appreciated. |
01-04-2008, 07:36 AM | #98 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
On a Mac I would try to install modules with "perl -MCPAN -e shell" which will give you a shell and "help" or "?" works there. If you google on: installing perl modules using CPAN tutorial you will get some tutorials and explanations. Later today when I have some time I will try to list all "install" commands that should be enough on a Unix system running an ordinary Perl. |
|
01-04-2008, 08:32 AM | #99 |
Zealot
Posts: 108
Karma: 49
Join Date: Dec 2007
Location: Nederland
Device: iPad
|
The point is, that I have to go through all the files to change the line endings and cpan is not clear about how I can determine if a module is compiled or not.
|
01-04-2008, 09:48 AM | #100 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I would test to just write "perl -MCPAN -e shell" and then do: Code:
install Palm::PDB install Palm::Doc install XML::Parser::Lite::Tree install GD install Image::BMP install Image::Size install HTML::TreeBuilder install Getopt::Mixed install Date::Parse install Date::Format I am writing a web page to document how to install on different platforms but I do not have a Mac available so I cannot test on that platform. |
|
01-04-2008, 10:40 AM | #101 |
Zealot
Posts: 108
Karma: 49
Join Date: Dec 2007
Location: Nederland
Device: iPad
|
OK, I will try it it on the Mac and let you know how it works out.
|
01-04-2008, 12:01 PM | #102 |
Zealot
Posts: 108
Karma: 49
Join Date: Dec 2007
Location: Nederland
Device: iPad
|
Installing Palm::PDB following you instruction gives:
"make had returned bad status, install seems impossible" Info about install: http://www.cpan.org/modules/INSTALL.html "C. BUILD Does the module require compilation? 1. If it does," No info on how to determine if it does :-( "D. INSTALL Make sure the newlines for the modules are in Mac format, not Unix format. Move the files manually into the correct folders." I don't know what "the correct folders" are :-( So, a lot of questions on my part. edit: I don't seem to have the make program on my machine. So I probably need to install that. Do people on Windows also have to go trough installing dependencies like this? Otherwise I had perhaps better fire up my Windows virtual machine and try there. Last edited by adelheid; 01-04-2008 at 12:15 PM. |
01-04-2008, 12:24 PM | #103 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
What version of the operating system are you using and what version of Perl are you using?
You need to install make and have a compiler. I am surprised you did not have them but I do not know anything about Macs so maybe you have to install some developers package? There are Windows binaries but it is better to use the non-binary version since then you can get updates faster. The release of the binary version depends on my willingness to boot my laptop to Windows... |
01-04-2008, 12:30 PM | #104 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I read this now and is a bit surprised that this is the status of Perl on a Mac. I will check around a bit. Maybe ActiveStates Perl version is a better alterative for Mac if they have pre-built binaries for modules as the Windows version had.
|
01-04-2008, 01:52 PM | #105 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@tompe: From my experience with libprs500, OSX is a royal pain in the ass. It's far and away the worst of the three to support. By default OS X has no compiler installed, your users would have to download Xcode. If you're serious about supporting OSX, I would recommend looking at some solution that allows you to distribute an embedded Perl interpreter.
|
Tags |
mobi2mobi, mobils |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM |
Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |
PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |