Quote:
Originally Posted by tompe
Version 0.0.26 with Windows binaries is available from:
http://www.ida.liu.se/~tompe/mobiperl/
Changes in 0.0.26:
- --prefixtitle now works for mobi2mobi and when input is a PalmDOC file.
- Fixed bug with mobi2mobi and --coverimage. It did not work if the file did not contain any images.
- Fixed rescaling bug. Now also images whose height is greater than 640 are rescaled. This is done because of a bug in the Gen3.
- Fixed bug in mobi2mobi --fiximagesizes. In Linux the wrong tmp file was read.
- Introduced a flag --gen3imagefix to mobi2mobi that can be used if you have a book that hang the Gen3. These kind of hangings are often caused by a large image in the book. This is a firmware bug in the Gen3.
- Added call to fix_pre_tags in lit2mobi
- Now it is possible to add author information to a Mobipocket file that does not have an EXTH.
|
Code:
lit2mobi example1.lit
Unpack file example1.lit in dir ctmp
+---[ ConvertLIT (Version 1.8) ]---------------[ Copyright (c) 2002,2003 ]---
ConvertLIT comes with ABSOLUTELY NO WARRANTY; for details
see the COPYING file or visit "http://www.gnu.org/license/gpl.html".
This is free software, and you are welcome to redistribute it under
certain conditions. See the GPL license for details.
LIT INFORMATION.........
DRM = 1
Timestamp = a6b86513
Creator = 00000058
Language = 00001009
Writing out "Farmer,_Philip_Jose_-_Riverworld_06_-_(_Shorts)_Tales_of_Riverworld" as "Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld.htm" ...
Successfully written to "ctmp/Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld.htm".
Writing out "RW_~Cover01" as "~Cover01.jpg" ...
Successfully written to "ctmp/~Cover01.jpg".
Writing out "RW_~Cover02" as "~Cover02.jpg" ...
Successfully written to "ctmp/~Cover02.jpg".
Writing out "RW_~Cover03" as "~Cover03.jpg" ...
Successfully written to "ctmp/~Cover03.jpg".
Writing out "RW_~Cover04" as "~Cover04.jpg" ...
Successfully written to "ctmp/~Cover04.jpg".
Writing out "RW_~Cover05" as "~Cover05.jpg" ...
Successfully written to "ctmp/~Cover05.jpg".
Exploded "example1.lit" into "ctmp/".
Read in HTML tree from opf
Opf: Initialize from file: example1.opf
CONTENT: <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE package
PUBLIC "+//ISBN 0-9673008-1-9//DTD OEB 1.0.1 Package//EN"
"http://openebook.org/dtds/oeb-1.0.1/oebpkg101.dtd">
<package unique-identifier="OverDriveGUID">
<metadata>
<dc-metadata xmlns:dc="http://purl.org/dc/elements/1.0/" xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
<dc:Title>Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld</dc:Title>
<dc:Creator role="aut">Philip Jose Farmer</dc:Creator>
<dc:Identifier id="OverDriveGUID" scheme="GUID">{54B56D18-7D64-42EB-AE2A-3D55AC2117DF}</dc:Identifier>
</dc-metadata>
<x-metadata>
<meta name="rwver-ReaderWorks-SDK-Control" content="1.0.1.817 (08/17/2001)" />
<meta name="rwver-HTML-Input-Filter" content="1.0.1.0817 (08/17/2001)" />
<meta name="rwver-Image-Input-Filter" content="1.0.1.817 (08/17/2001)" />
<meta name="rwver-Text-Input-Filter" content="1.0.1.817 (08/17/2001)" />
<meta name="rwver-LIT-file-generator" content="1.5.1.0280 (10/05/2000)" />
<meta name="rw-License-Key" content="RWPTL" />
</x-metadata>
</metadata>
<manifest>
<item id="Farmer,_Philip_Jose_-_Riverworld_06_-_(_Shorts)_Tales_of_Riverworld" href="Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld.htm" media-type="text/html" />
<item id="RW_~Cover01" href="~Cover01.jpg" media-type="image/jpeg" />
<item id="RW_~Cover02" href="~Cover02.jpg" media-type="image/jpeg" />
<item id="RW_~Cover03" href="~Cover03.jpg" media-type="image/jpeg" />
<item id="RW_~Cover04" href="~Cover04.jpg" media-type="image/jpeg" />
<item id="RW_~Cover05" href="~Cover05.jpg" media-type="image/jpeg" />
</manifest>
<spine>
<itemref idref="Farmer,_Philip_Jose_-_Riverworld_06_-_(_Shorts)_Tales_of_Riverworld" />
</spine>
<guide>
<reference type="other.ms-thumbimage-standard" href="~Cover01.jpg" />
<reference type="other.ms-coverimage-standard" href="~Cover02.jpg" />
<reference type="other.ms-titleimage-standard" href="~Cover03.jpg" />
<reference type="other.ms-thumbimage" href="~Cover04.jpg" />
<reference type="other.ms-coverimage" href="~Cover05.jpg" />
</guide>
</package>
OPF: TITLE: Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld
OPF: CREATOR: Philip Jose Farmer
Init from manifest
Farmer,_Philip_Jose_-_Riverworld_06_-_(_Shorts)_Tales_of_Riverworld - Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld.htm - text/html
RW_~Cover01 - ~Cover01.jpg - image/jpeg
Could not read image file: ~Cover01.jpg
RW_~Cover02 - ~Cover02.jpg - image/jpeg
Could not read image file: ~Cover02.jpg
RW_~Cover03 - ~Cover03.jpg - image/jpeg
Could not read image file: ~Cover03.jpg
RW_~Cover04 - ~Cover04.jpg - image/jpeg
Could not read image file: ~Cover04.jpg
RW_~Cover05 - ~Cover05.jpg - image/jpeg
Could not read image file: ~Cover05.jpg
Warning, RW_~Cover01 missing from spine, adding
Warning, RW_~Cover02 missing from spine, adding
Warning, RW_~Cover03 missing from spine, adding
Warning, RW_~Cover04 missing from spine, adding
Warning, RW_~Cover05 missing from spine, adding
Init from guide
OPFTITLE: Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld
OPFAUTHOR: Philip Jose Farmer
Coverimage: ~Cover02.jpg
SPINE: adding Farmer,_Philip_Jose_-_Riverworld_06_-_(_Shorts)_Tales_of_Riverworld - Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld.htm - text/html
Adding: Farmer, Philip Jose - Riverworld 06 - ( Shorts) Tales of Riverworld.htm - Farmer,_Philip_Jose_-_Riverworld_06_-_(_Shorts)_Tales_of_Riverworld
+++.+SPINE: adding RW_~Cover01 - ~Cover01.jpg - image/jpeg
SPINE: adding RW_~Cover02 - ~Cover02.jpg - image/jpeg
SPINE: adding RW_~Cover03 - ~Cover03.jpg - image/jpeg
SPINE: adding RW_~Cover04 - ~Cover04.jpg - image/jpeg
SPINE: adding RW_~Cover05 - ~Cover05.jpg - image/jpeg
All spine elements have been added
Have Read in HTML tree from opf
FIX PRE TAGS
Saving mobi file (version 4): example1.mobi
COVEROFFSET: 0
THUMBOFFSET: 1
EXTH setting data: author - 100 - Philip Jose Farmer - 0x5068696c6970204a6f7365204661726d6572
EXTH add: author - 100 - Philip Jose Farmer
EXTH setting data: coveroffset - 201 - 0 - 0x30
EXTH add: coveroffset - 201 - 0 - 0x30
EXTH setting data: thumboffset - 202 - 1 - 0x31
EXTH add: thumboffset - 202 - 1 - 0x31
MOBIHDR: imgrecpointer: 207
EXTH setting data: author - 100 - Philip Jose Farmer - 0x5068696c6970204a6f7365204661726d6572
EXTH add: author - 100 - Philip Jose Farmer
EXTH setting data: coveroffset - 201 - 0 - 0x30
EXTH add: coveroffset - 201 - 0 - 0x30
EXTH setting data: thumboffset - 202 - 1 - 0x31
EXTH add: thumboffset - 202 - 1 - 0x31
New record for image 207: ~Cover02.jpg
Reading data from file: ~Cover02.jpg - 510 x 680
[Image::BMP] ERROR: Not a bitmap: [~Cover02.jpg] at /usr/local/bin/MobiPerl/Util.pm line 488
Thanks for this update!
For me it still crashes on:
http://www.elkins.org/example1.lit
and
http://www.elkins.org/example3.lit
Both fail with a hard crash at /usr/local/bin/MobiPerl/Util.pm line 488
edit:
http://www.elkins.org/example4.zip
Add coverimage fails:
Code:
mobi2mobi oldmobi.mobi --coverimage cover.jpg --outfile newmobi.mobi
When exploded, the coverimage .jpg has been included in the newmobi.mobi file
However, the globbed text seems to be corrected.
BTW, Think about setting up a paypal tip jar on your site. At the very least I'm sure you'll gain beer money...I know I owe you a case of your favorite