View Single Post
Old 10-03-2008, 07:30 PM   #596
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Thumbs up

Quote:
Originally Posted by ZioNemo View Post
I suspect I have some problem with XML::Parser::Lite::Tree.

I will do some experimenting.
Ok.
Got it.

It seems my version of XML::Parser::Lite::Tree (0.08) doe not use "tag" but uses "element" as "type" (see: XML::Parser::Lite::Tree.pm) so I had to modify in Opf.pm wherever You had "if ($type eq "tag"..." to "if ($type eq "tag" or $type eq "element"..."

Essentially all the opf_get_xxx() and parse_yyy() functions in Opf.pl were failing miserably.

I can send You a patch, if You want, but the changes are really trivial.

Another glitch I found:
opf2mobi should look for the various files referenced relative to the location of the .opf file. This is not done so I'm forced to cd to the directory containing the .opf file in order to make it work.
Something like "opf2moby ctmp/Pippo.lit" dies because it is unable to find the files it needs.
I did not look to see how hard would be to fix this.

Please let me know what version of XML::Parser::Lite::Tree You are using.

Best Regards
ZioNemo
ZioNemo is offline   Reply With Quote