![]() |
#406 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#407 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2008
Device: Palm
|
![]()
I downloaded the MobiPerl tools today (version 0.0.36) and after a bit of playing around, got it to work with my 5.10 install of ActivePerl. Finding the Palm modules to install was the only difficult part, for those I had to use CPAN and compile them myself. In any case, mobi2mobi is working fine, and I expect to have no problem writing a quick perl script to wrap around this so I can convert the many .prc files I have into .mobi ones.
![]() The first question I have (and this may have been answered elsewhere) is about getting the cover images to display in my converted .mobi files. mobi2mobi identifies the images and sets the offsets fine, but MobiPocket Reader doesn't show the covers. Is the problem that the images in the .prc files are bitmaps and not .jpeg images? Is there a way to get this to work (other than manually extracting each one from the many ebooks I have, converting the image, and then rebuilding the ebook)? ![]() The other question involves using the --exthtype and --exthdata options. Is the type the number or the keyword? For example, the data from a newer .mobi shows: EXTH item: 100 - Author - 11 - Wen Spencer EXTH item: 101 - Publisher - 10 - Baen Books What options would set the publisher? Code:
--exthtype 101 --exthdata "Baen Books" Code:
--exthtype Publisher --exthdata "Baen Books" ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#408 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Quote:
--exthtype and --exthdata was added to be able to experiment if you knew what you do. It is the type name you have to use and for "Publisher" you should use "publisher". You have to look in MobiPerl/EXTH.pm and in the hash %typename_to_type to see what name to use. Pleae tell me if you want to set something that is missing. The intention was to add specific flags for everything that people wanted to set. |
||
![]() |
![]() |
![]() |
#409 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
http://www.ida.liu.se/~tompe/mobiperl/)? |
|
![]() |
![]() |
![]() |
#410 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2008
Device: Palm
|
Let's see. I got Encode, Getopt-Mixed, Image-BMP, Image-Size, Palm-PalmDoc, and TimeDate from ActiveState's repository. GD and XML-Parser I got from Bribes. HTML-Format, P5-Palm, and Palm-Doc I got as source code off of CPAN and compiled. So yes, the names are the same for the most part.
Thanks for the info on the publisher fix and how to use the EXTH flags. (I suppose I could have looked in the code myself on those. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#411 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 152
Karma: 772
Join Date: Mar 2008
Location: Perth, Western Australia
Device: Cybook Gen3
|
Got a query regarding the coverimage function of Mobi2Mobi. When adding a coverimage to a PRC while converting to MOBI it appears when looking at the converted file in Mobipocket or the Cybook, that you get a double coverpage image. In the original there is a small thumbnail on the Page 1 TOC page, but after the convert I get the Coverimage on Page 0 and the thumnail becomes a full size image on the Page 1 TOC.
On another track and for purely selfish reasons, is it possible to add to your todo for Mobi2Mobi a way to extract the Thumbnail/Coverimage images as a flag option. I know the Mobi2HTML code does this and was wondering if the same code existed in M2M. I could leverage this to populate the Coverimage display in the Mobi2Mobi Windows GUI or add a thumbnail preview. I was looking at leveraging off of Mobi2HTML do to this, but if time permits.... =8) |
![]() |
![]() |
![]() |
#412 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Are you really sure you get two images in Mobipocket Reader? I though the Mobipocket Reader did not display the cover image when opening the book. Quote:
Let me know if you need some other flags that are easy to add... |
||
![]() |
![]() |
![]() |
#413 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 152
Karma: 772
Join Date: Mar 2008
Location: Perth, Western Australia
Device: Cybook Gen3
|
I'm running Mobipocket 6.2 Beta and I definately get the initial coverpage then I next page to get the TOC. It looks like a double up, especially on the Cybook as the replaced thumbnail is oblivously the same size now as the coverimage. Its not a problem, JSWolf noticed while testing the GUI as did I, but I'm happy that its normal behaviour.
Adding an extraction flag would be great. If you could either extract the Thumnail/Coverimage to a supplied name each or just dump them out using the original filename with an appropriate identifier _TN / _CI that would be awesome. |
![]() |
![]() |
![]() |
#414 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But can that bug be fixed? Having two cover images the same size is not the way the cover is supposed to work.
|
![]() |
![]() |
![]() |
#415 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
With a Mobi book, the cover is specified as an entry in the "Guide" part of the OPF file (the "Guide" section is what controls navigation links). You only get a double image if you also display the cover by having an image link within the HTML of the book itself. Don't do this, and you won't get the double image. |
|
![]() |
![]() |
![]() |
#416 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
#417 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why do we end up with two cover images when we have no cover images to start with? So from what I am seeing, mobi2mobi puts in the extra link and therein lies the bug.
But I am not doing this for FBReader. I am doing this for Mobipocket. If you want, why not made a switch for FBReader. On Mobipocket, it just looks silly to have two cover images. And yes, it does make it look like a bug under mobi2mobi. |
![]() |
![]() |
![]() |
#418 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I thought I'd explained this, Jon. Let me have another go.
A normal "linked" image in a book is NOT a cover image - even if it appears on the first page of the book. A cover image is especially marked as such in the file. The "Cover Image" menu item in the Windows mobi reader will display it, and the library manager on the Gen3 will automatically display it as the book's "cover" in the library. When you use "mobi2mobi" to add a cover image to a book, you are adding that special flag to the file which says "this image is a cover image". What the tool CAN'T do is go through the HTML code of your book and remove any OTHER references to that same image that it might find - and nor would you want it to, in many cases. It's down to the book creator NOT to "link" the image that they want as a cover image within the normal HTML, but simply to add that image via the "Guide" section of the OPF. With the older creation tools such as BD, there was no way to properly designate an image as being a cover image; all you could do with such tools was simply have an image link for the picture on the first page of the book. If you use "mobi2mobi" to "re-add" that same image as a cover image in such a book, you will end up with it duplicated - it'll be there once as a "real" cover image, and again as an image link within the HTML. In such a case, the correct solution would be to "explode" the book to its OEB source, edit the HTML to remove the image reference, then rebuild the book as a Mobi file with its "real" cover image. |
![]() |
![]() |
![]() |
#419 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I agree about not manipulating the HTML. However, FBReader not recognizing a cover image is a bug in FBReader. I'll report it and see if this can be fixed. The iLiad's MobiPocket Reader has the same bug though (no way to show the cover image). I thought the "standard" behavior was to only show the cover image on request, which makes adding the same image to the start of the HTML a good thing, but apparently there is no standard behavior in this case - so someone is going to be unhappy.
|
![]() |
![]() |
![]() |
#420 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
text2mobi
Is there such a function?
|
![]() |
![]() |
![]() |
Tags |
mobi2mobi, mobils |
|
![]() |
||||
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 |