Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2008, 11:04 AM   #91
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 64,815
Karma: 42802537
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
That sounds perfect!
HarryT is offline   Reply With Quote
Old 01-01-2008, 11:39 AM   #92
TallMomof2
Kindlephilia
TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.
 
TallMomof2's Avatar
 
Posts: 2,009
Karma: 1139255
Join Date: Nov 2007
Location: Snowpacolypse 2010
Device: Amazon K4, Fire, Droid 2
Quote:
Originally Posted by Jiiri View Post
Just thought I'd pass this along for whatever it's worth - I've been playing with your (wonderful) mobiperl tools all day, getting my books to look right in the Kindle Home page. I had bought Bertrand Russell's "History of Western Philosophy" in Amazon's proprietary .azw format, and I guess whenever the publisher's did the conversion, they typed in 'Bertrand Russell' under author instead of 'Russell, Bertrand'.

The result of this was when I sorted by author, every author showed up correctly by last name except Russell, who showed up under 'B' for Bertrand instead of under 'R' for Russell. I'm anal, and it annoyed me greatly. At any rate, I took the .azw file off of my Kindle, changed the extension to .prc, and ran mobi2mobi to change the metadata. After the file spit out, I changed it back to .azw, and sure enough, it worked like a charm.

So, if anyone else has metadata they don't like in a protected .azw file, it works.

Enjoy, and thanks tompe!

Jiiri
Thanks, Jiiri!

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.
TallMomof2 is offline   Reply With Quote
 
Advertisement
Old 01-01-2008, 12:04 PM   #93
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,121
Karma: 4315826
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, 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 ....
and then just run nmake in the directory where you put the Makefile.

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!
tompe is online now   Reply With Quote
Old 01-01-2008, 12:05 PM   #94
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 64,815
Karma: 42802537
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
What's the benefit of this over simply using a batch file?
HarryT is offline   Reply With Quote
Old 01-01-2008, 12:14 PM   #95
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,121
Karma: 4315826
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by HarryT View Post
What's the benefit of this over simply using a batch file?
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.
tompe is online now   Reply With Quote
Old 01-01-2008, 03:08 PM   #96
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,725
Karma: 5072190
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by tompe View Post
In the next version of mobi2mobi it will print out warnings for the images. For your Dicken's book it looks like:

Code:
FIRST IMG Record 168
WARNING:  Record 174 - Image data size might be to large: 63708
ERROR:    Record 176 - Image data size definitely to large: 71488
WARNING:  Record 177 - Image data size might be to large: 65324
ERROR:    Record 178 - Image data size definitely to large: 72376
WARNING:  Record 179 - Image data size might be to large: 64440
ERROR:    Record 183 - Image data size definitely to large: 72632
ERROR:    Record 184 - Image data size definitely to large: 68676
WARNING:  Record 188 - Image data size might be to large: 63136
And you can now use mobi2html to unpack your file. You will ge a directory with images and you can just inspect the file size.
It would be better if you said: Image data size might be too large
DaleDe is offline   Reply With Quote
Old 01-04-2008, 05:43 AM   #97
adelheid
Zealot
adelheid began at the beginning.
 
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.
adelheid is offline   Reply With Quote
Old 01-04-2008, 08:36 AM   #98
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,121
Karma: 4315826
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by adelheid View Post
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.
Which modules did you download? Which Perl are you using?

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.
tompe is online now   Reply With Quote
Old 01-04-2008, 09:32 AM   #99
adelheid
Zealot
adelheid began at the beginning.
 
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.
adelheid is offline   Reply With Quote
Old 01-04-2008, 10:48 AM   #100
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,121
Karma: 4315826
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by adelheid View Post
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.
Could you point me to where you read about the line endings?

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
and see if it works. I think this is the complete list of modules that you need to install.

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.
tompe is online now   Reply With Quote
Old 01-04-2008, 11:40 AM   #101
adelheid
Zealot
adelheid began at the beginning.
 
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.
adelheid is offline   Reply With Quote
Old 01-04-2008, 01:01 PM   #102
adelheid
Zealot
adelheid began at the beginning.
 
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 01:15 PM.
adelheid is offline   Reply With Quote
Old 01-04-2008, 01:24 PM   #103
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,121
Karma: 4315826
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, 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...
tompe is online now   Reply With Quote
Old 01-04-2008, 01:30 PM   #104
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,121
Karma: 4315826
Join Date: Oct 2007
Location: Link÷png, Sweden
Device: Nexus 7, Nexus 5, iPad 2, Kindle PW
Quote:
Originally Posted by adelheid View Post
"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 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.
tompe is online now   Reply With Quote
Old 01-04-2008, 02:52 PM   #105
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,314
Karma: 5382313
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.
kovidgoyal is online now   Reply With Quote
Reply

Tags
mobi2mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools Jad Kindle Formats 461 03-26-2014 01:59 PM
Tools for Editing Kindle .mobi Files? GJN Kindle Formats 33 12-26-2013 03:05 PM
Handy Perl Script to convert HTML0 files to smartquotes maggotb0y Sony Reader 0 04-12-2007 12:49 PM
PRS-500 Perl tools to generate Reader content TadW Sony Reader Dev Corner 0 01-08-2007 06:55 AM
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 03:45 AM.


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