![]() |
#106 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
#107 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Version 0.0.21
I put a web page at http://www.ida.liu.se/~tompe/mobiperl/ describing MobiPerl and I tried to document how to install Perl and required modules.
There is also a version 0.0.21 available (no Windows binaries for this version). Changes in 0.0.21:
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
--addcoverlink
How exactly does this work?
From the console: Code:
lit2mobi --addcoverlink myfile.lit |
![]() |
![]() |
![]() |
#109 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
Code:
lit2mobi --coverimage cover.jpg myfile.lit |
|
![]() |
![]() |
![]() |
#110 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Found a bug. --coverimage will not work for lit2mobi. But you can use mobi2mobi to add a cover image. Will fix this to the next release.
|
![]() |
![]() |
Advert | |
|
![]() |
#111 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
|
![]() |
![]() |
![]() |
#112 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Version 0.0.22 with Windows Binaries
Version 0.0.22 with Windows binaries are now available via:
http://www.ida.liu.se/~tompe/mobiperl/ Changes in 0.0.22:
lit2mobi will try to figure out if there is a cover image available. If none is found or if you want to override the choice use the --coverimage flag. If a cover image is found in some way it will be used as cover image and as thumb nail image (used in MobiPocket desktop version for example). --addcoverlink will add the coverimage first in the document so it is visible in for example FBReader. In Gen3 you will get double cover images with this flag. |
![]() |
![]() |
![]() |
#113 |
Enthusiast
![]() Posts: 25
Karma: 78
Join Date: Dec 2007
Device: Kindle
|
Tompe, quick question. I purchased a Harvard Classic ebook from Amazon (before I found them on this site, unfortunately), and the title is not what I'd like it to be. With other .azw files I've been able to change the extension to prc, run it through the mobi2mobi script, and then rename the .mobi file that results with .azw, and everything has been working.
The problem I'm having now is that I can't seem to change the title on this file, it still shows up in my Kindle wrong. In the Command Prompt it is showing the title as correct, and the author as correct. The name that I don't want but that is showing is listed in mobi2mobi under EXTH item: 503-503-80- Harvard Classics, Vol. 23: Two years before the mast and twenty-four years after and; LONGTITLE: Harvard Classics, Vol. 23: Two years before the mast and twenty-four years after Do you have any idea which of these strings is the one I need to change? Also, does mobi2mobi allow me to change it? Thanks! Jiiri |
![]() |
![]() |
![]() |
#114 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
mobi2mobi --exthtype 503 --exthdata "New title" --outfile new.awz in.awz So I wonder what the intended meaning of item 503 is? |
|
![]() |
![]() |
![]() |
#115 |
Enthusiast
![]() Posts: 25
Karma: 78
Join Date: Dec 2007
Device: Kindle
|
I downloaded the latest version, and tried the string you suggested, with no luck. It's impossible for me to troubleshoot it since I have no idea what the strings even mean or do, not being a programmer. If the problem is the drm of the .azw file, I'd just as soon not spend a lot of time just to find out that I can't do it anyway. If you care at all, I can send you the azw file and let you look at it.
|
![]() |
![]() |
![]() |
#116 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
I got a testfile for this problem and I think I have fixed the problem. The problem occured if item 401 was in the EXTH header and had length 1. I had mistakenly assumed it should have length 4. Things that happens when the format is not documented.
it is probably good to make these assumption. They willl cause bugs but I will get feedback and more data to use to try to figure out what is wrong. So whenever you see something like: Code:
ERROR: generated EXTH does not match original MISMATCH POS:878:0x9:0xc MISMATCH POS:883:0x93:0x0 MISMATCH POS:885:0x0:0x1 MISMATCH POS:886:0x0:0x93 MISMATCH POS:887:0x9:0x0 MISMATCH POS:890:0x0:0x9 There is a version 0.0.23 available as tar file but the only change is the one described here so no need to update if you do not have this problem. |
![]() |
![]() |
![]() |
#117 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
Code:
Treasure_Box - Treasure Box.htm - text/html RW_~Cover01 - ~Cover01.jpg - image/jpeg Could not read image file: ~Cover01.jpg Can't call method "getBounds" on an undefined value at /usr/local/bin/MobiPerl/Util.pm line 25, <OPF> chunk 1. |
![]() |
![]() |
![]() |
#118 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
#119 |
Enthusiast
![]() Posts: 25
Karma: 78
Join Date: Dec 2007
Device: Kindle
|
Downloading the latest version is causing me some issues. The link at http://www.ida.liu.se/~tompe/mobiperl/ sends me to http://www.ida.liu.se/~tompe/mobiperl/downloads/, which is the same page. When I click on the link there, it takes me to
http://www.ida.liu.se/~tompe/mobiper...oads/downloads Which is broken. As soon as I can get it v0.23, I'll test the new work you've done and see if it works on the Kindle. Thanks, Tompe. |
![]() |
![]() |
![]() |
#120 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
![]() |
![]() |
![]() |
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 |