Quote:
Originally Posted by HarryT
Hi Tommy,
I've just tried "opf2mobi" for the first time, and I have a question. Apologies if this has been asked before, but I really don't want to read all 50+ pages of this thread  .
The end result is excellent, but I've found that it doesn't appear to use the items in the "Guide" section of my OPF file, which work fine with Mobi Creator. I don't get a cover image unless I use the "--coverimage" option, and the "Table of Contents" link in the resulting file takes me to the first page of the file, rather than the "TOC" link defined in the "Guide" section of the file.
|
As I remember the implementation is a bit limited in functionality. Looking at the code now it seems like it does use the guide section only for TOC and cover image. If you give me an example file with more tags I can probably add more functionality to a future release.
That TOC and coverimage does not work is probably a bug or a limitation. The code looks like:
Code:
if ($type eq "toc") {
$self->set_toc_href ($c->{"attributes"}->{"href"});
print STDERR "TOCHREF: ", $self->get_toc_href (), "\n";
}
if ($type eq "other.ms-coverimage-standard") {
my $href = $c->{"attributes"}->{"href"};
$self->set_cover_image ($href);
}
So if the identifier is not "toc" and "other.ms-coverimage-standard" it will not work. And example file that does not work would be good to have...