05-18-2009, 07:51 PM | #751 |
Resident Curmudgeon
Posts: 74,585
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Will opf2mobi convert an ePub to Mobipocket?
|
05-20-2009, 01:22 PM | #752 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
I tried another mobi file with mobi2html with the raw option and everything worked fine. Perhaps there was something wrong with the firs file I tried. Thanks for the fast responses!
Bob |
Advert | |
|
05-21-2009, 09:01 AM | #753 |
Resident Curmudgeon
Posts: 74,585
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is there anyway to import a cover that has a resolution of 510x680 without changing the resolution? If not, then I have a bug to report.
I've found a bug that really needs squashing.. the cover... when adding a cover I get the following... CREATING COVER IMAGE WITH ID: 7307727 Reading data from file: cover.jpg - 510 x 680 - JPG SCALE GD: 510 680 -> 480 640 I don't want it scaled. I want it in the original resolution. Last edited by JSWolf; 05-21-2009 at 09:13 AM. |
05-26-2009, 09:32 AM | #754 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
05-26-2009, 10:56 AM | #755 |
Resident Curmudgeon
Posts: 74,585
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Thanks!
|
Advert | |
|
05-26-2009, 04:23 PM | #756 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2009
Device: kindle1
|
mobi2html error
Trying mobi2html on WinXP, I first installed ActivePerl 5.8.9 and the required packages. I added the .pl file extention and tried it but the script aborted at line 25:
C:\Documents and Set tings\Owner\Desktop\New Folder\mobi2html.pl line 25. BEGIN failed--compilation aborted at C:\Documents and Settings\Owner\Desktop\New Folder\mobi2html.pl line 25. UPDATE: I found the html2mobi.exe version and tried this and it work FAR more easily than this other approach with ActivePerl, etc, etc. Thanks for making this application! Toby Last edited by enhan222; 05-26-2009 at 04:45 PM. |
05-26-2009, 04:47 PM | #757 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Or maybe you have to run it with "perl mobi2html..." |
|
06-06-2009, 11:00 AM | #758 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2009
Device: hp ipaq
|
This is going to sound completely stupid, but I had never seen such a thing as perl before. So if you could help me...
This is my request: I run on Windows XP, and installed the newest version of ActivePerl. Then I installed these packages: * p5-Palm * TimeDate * Getopt-Mixed * Image-Size * XML-Parser-Lite-Tree * GD * Encode * image-BMP Then I went to preferences and wrote this repository: http://theoryx5.uwinnipeg.ca/ppms/package.lst (though it has 0 packages...) So, what do I do next to install MobiPerl? I want to use Lit2Mobi, but I can't execute anything yet... Can anyone help me, please? |
06-06-2009, 11:31 AM | #759 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
There are pre-built Windows binaries that don't require Perl, here. You want mobiperl-win-0.0.41.zip.
Note that Calibre (has its own Forum here) can also convert from LIT to MOBI, and it does not require any other software (it is written in Python, but comes pre-built) and also comes with a GUI so you don't need to use the command line (although Calibre's any2mobi --compress ebook.lit will work from the command line like MobiPerl's lit2mobi). |
06-08-2009, 04:01 AM | #760 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Hi Tommy,
I've just tried "opf2mobi" for the first time, and I have a question. Apologies if this has been asked before, but I really don't want to read all 50+ pages of this thread . The end result is excellent, but I've found that it doesn't appear to use the items in the "Guide" section of my OPF file, which work fine with Mobi Creator. I don't get a cover image unless I use the "--coverimage" option, and the "Table of Contents" link in the resulting file takes me to the first page of the file, rather than the "TOC" link defined in the "Guide" section of the file. |
06-08-2009, 06:31 AM | #761 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2009
Device: hp ipaq
|
Quote:
|
|
06-08-2009, 07:52 AM | #762 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
That TOC and coverimage does not work is probably a bug or a limitation. The code looks like: Code:
if ($type eq "toc") { $self->set_toc_href ($c->{"attributes"}->{"href"}); print STDERR "TOCHREF: ", $self->get_toc_href (), "\n"; } if ($type eq "other.ms-coverimage-standard") { my $href = $c->{"attributes"}->{"href"}; $self->set_cover_image ($href); } |
|
06-08-2009, 09:10 AM | #763 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Example file
Here's an example.
The file "book.prc" was created from "book.opf" using Mobi Creator. As you'll see when you open it, it has both a cover image, and a "Table of Contents" link which takes you to the TOC. The file "test.mobi" was created from the same OPF file using the command line: opf2mobi --mobifile test.mobi book.opf You will find that it has no cover image, and, although it has a "Table of Contents" link, that link takes one to the first page of the book, rather than to the TOC. I believe that the Guide items in the OPF file are specified as you describe, so any light that you could shed on this would be most welcome. Thanks! |
06-08-2009, 09:39 AM | #764 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Minor change request:
Any OPF file created by Mobi Creator seems to start with the 3 byte sequence: EF BB BF immediately before the opening tag <?xml ... These three bytes make "opf2mobi" give a "junk before XML element" error. Would it be possible to make the tool ignore them? A little research shows that this is a Unicode "Byte Order Mark" sequence indicating that the file has UTF-8 encoding. See: http://en.wikipedia.org/wiki/Byte-order_mark for details. |
06-08-2009, 09:50 AM | #765 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
The XML dom processor that perl has should certainly be able to support this accordingly. But I do admit I don't use perl at all...been quite a while. BOb |
|
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 |