Quote:
Originally Posted by tompe
I tested the opf file above but cannot reproduce the error. But in:
isn't "\x[a}" some strange character so this miight be related to UTF8. I am not runnint UTF8 myself in the machine I tested on. Test to set LANG to en_US maybe?
|
Hi,
my system does *not* have the "en_US" locale; nearest thing are "en_us.utf8" and plain old "C".
I tried both but nothing changed.
The "strange" "\x{a}" characters I guess they are just plain linefeed encoded in an XML-friendly way.
If I just run lit2mobi I get the following:
=========================================
mauro@heimdall:/tmp$ LC_ALL=C PATH=~/bin/mobiperl-0.0.39:$PATH lit2mobi Gianni\ Pilo\ -\ La\ Maschera\ Di\ Cthulhu.lit
Unpack file Gianni Pilo - La Maschera Di Cthulhu.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 = 24d8c9eb
Creator = 00140000
Language = 00000410
Writing out "Gianni_Pilo_-_La_Maschera_Di_Cthulhu" as "Gianni Pilo - La Maschera Di Cthulhu.htm" ...
Successfully written to "ctmp/Gianni Pilo - La Maschera Di Cthulhu.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 "Gianni Pilo - La Maschera Di Cthulhu.lit" into "ctmp/".
Read in HTML tree from opf
Opf: Initialize from file: Gianni Pilo - La Maschera Di Cthulhu.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

ebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
<dc:Title>La Maschera Di Cthulhu</dc:Title>
<dc:Creator role="aut">Gianni Pilo</dc:Creator>
<dc:Identifier id="OverDriveGUID" scheme="GUID">{1FF51F09-CD18-43CA-AF7A-83734D9EE29A}</dc:Identifier>
</dc-metadata>
<x-metadata>
<meta name="rwver-ReaderWorks-SDK-Control" content="2, 0, 2, 0215 (02/15/2002)" />
<meta name="rwver-HTML-Input-Filter" content="2, 0, 3, 1212 (12/12/2003)" />
<meta name="rwver-Image-Input-Filter" content="2, 0, 2, 0215 (02/15/2002)" />
<meta name="rwver-Text-Input-Filter" content="2, 0, 2, 0215 (02/15/2002)" />
<meta name="rwver-LIT-file-generator" content="1.5.1.0280 (12/19/2003)" />
<meta name="rw-License-Key" content="RWPTL" />
</x-metadata>
</metadata>
<manifest>
<item id="Gianni_Pilo_-_La_Maschera_Di_Cthulhu" href="Gianni Pilo - La Maschera Di Cthulhu.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="Gianni_Pilo_-_La_Maschera_Di_Cthulhu" />
</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:
OPF: CREATOR:
OPFTITLE:
OPFAUTHOR:
GUESSING COVERIMAGE: ~Cover02.jpg
Coverimage: ~Cover02.jpg
All spine elements have been added
Have Read in HTML tree from opf
FIX PRE TAGS
Saving mobi file (version 4): Gianni Pilo - La Maschera Di Cthulhu.mobi
COVEROFFSET: 0
THUMBOFFSET: 1
MobiFile.pm: before get_data()
EXTH setting data: author - 100 - - 0x
EXTH add: author - 100 -
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: 2
EXTH setting data: author - 100 - - 0x
EXTH add: author - 100 -
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
MobiFile.pm: after get_data()
Reading data from file: ~Cover02.jpg - 510 x 680 - GIF
SCALE GD: 510 680 -> 480 640
Reading data from file: ~Cover02.jpg - 510 x 680 - GIF
SCALE GD: 510 680 -> 480 640
MobiFile.pm: before Write()
Can't write a database with no name
mauro@heimdall:/tmp$
=========================================
I suspect I have some problem with XML::Parser::Lite::Tree.
I will do some experimenting.
Regards
ZioNemo