View Single Post
Old 11-16-2007, 11:06 AM   #70
shoggot
Junior Member
shoggot began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2007
Device: sony prs-505
When I convert an html file to lrf via libprs (or via any2lrf, or via html2lrf on commandline, I get an interesting situation:

Not liking the short-bus fonts of the 'true' Table of Contents display, I instead use simple html links, roughly like so:

Quote:
<p><a href="#position1">chapter 1</a></p>
<p><a href="#position2">chapter 2</a></p>
<p><a href="#position3">chapter 3</a></p>
<p><a href="#position4">chapter 4</a></p>

...

<a name="position1"></a><b>chapter 1</b><br>
Content
...
<a name="position2"></a><b>chapter 2</b><br>
Content
...
<a name="position3"></a><b>chapter 3</b><br>
Content
...
<a name="position4"></a><b>chapter 4</b><br>
Content
...
This turns into a nice lrf, with links, etc - but! When I choose, say, 'chapter 3', I will, instead, be transported to the page which contains 'chapter 2' and the name tag 'position2'. IE, it always goes to the tag prior, for inexplicable reason.

I can work around this, via offsetting links / anchors, but it's annoying, patently.

prs-505 = reader, librs500 is being used for conversion, movement/maintenance I'm doing manually, so haven't moved up in version (haven't noted anything in changed which would seem to pertain to this).
shoggot is offline   Reply With Quote