Quote:
Originally Posted by Jellby
I'm generating an HTML file manually, and I would like to convert it to mobi/prc format with html2mobi. I generated a table of contents in the HTML file by using "<a name=...>" and "<a ref=...>" tags. I haven't yet tried this on my Cybook, but when I convert back the mobi file to HTML with mobi2html, the links don't work (as they are "href=000000000"). According to the README, my mobiperl is 0.0.37.
|
Strange. You should test your prc file with FBReader or Mobireader or the Cybook to see that the links really work to confirm that your html is correct. It should work converting back.
Quote:
|
The other thing is, is there a way to generate the links to "table of contents", "start reading" and similar things some mobipocket files have? I've seen they are inside a "<guide>" element when exploded to HTML, but they seem to include file offsets, which would be hard to write manually...
|
I think you have to use opf2mobi and have the items you want in the guide element in the opf file. The offset will be computed automatically I think. I was a long time since I implemented this and I kind of do not remember exactly what I implemented...