Max - 2011-03-05 09:58:40
Hello,
I am working on converter FB2TOEPUB.
As I discover iBook and Stanza do not show Cover page.
My changes to fix this:
function finalize()
if ($this->isCoverImageSet){
$this->opf .="\n<meta name=\"cover\" content=\"coverImage\" xmlns=\"\" />\n";
}
coverImage - is ID of cover image.
BTW
Information about subject missed in class, my changes:
private $subject = "";
function __destruct() {
$this->zip = null;
$this->title = "";
$this->author = "";
$this->publisher = "";
$this->publishDate = 0;
$this->bookId = "";
$this->opf_manifest = "";
$this->opf_spine = "";
$this->ncx_navmap = "";
$this->chapterCount = 0;
$this->subject = "";
$this->imgPath = "cover.jpg";
}
function setSubject($subject) {
if ($this->isFinalized) {
return;
}
$this->subject = $subject;
}
function finalize()
if (!empty($this->subject)) {
$this->opf .= "\t\t<dc:subject>" . $this->subject . "</dc:subject>\n";
}
Thank You for Great job!!!