View Single Post
Old 05-23-2009, 01:42 PM   #1
gescom
Junior Member
gescom began at the beginning.
 
gescom's Avatar
 
Posts: 6
Karma: 10
Join Date: May 2009
Device: Ipod Touch g2
Stanza Link problem and solution (creating own epub files)

Hello, my first post to this great site! Just adding this problem and solution, hope it helps someone. It took me ages to work out.

The problem:

When you hold/select a link in Stanza (ipod/iphone) you get the following error message within an epub file-

Quote:
Invalid Link
Sorry, the link is invalid or leads to an external file.
Solution:

Make sure the link or chapter heading is one single word. Any (x)html files linked to within the epub zip container cannot have spaces in the filename. (ie. should be 'oneword.html' not 'one word.html').

Also the same problem occurs within anchor links when converting plain html documents to epub using Calibre, for example:
<a href="#Chapter One on Emptiness">Seventy Verses on Emptiness</a>
<a name="Chapter One on Emptiness">Seventy Verses on Emptiness</a>

The above link works perfectly in any browser, perfectly when converting and viewing the the html to epub in Calibre, but when selecting the link in Stanza you get an error message!

So therefore make sure the anchor name is only one word for Stanza as below...
<a href="#Chapter1">Seventy Verses on Emptiness</a>
<a name="Chapter1">Seventy Verses on Emptiness</a>



If you are using ecub to create epub files for viewing in Stanza and importing mulitple text files to use as chapters, make sure again that the first line with line break in each text file is only one word. Otherwise your *.html files generated will contain spaces and your links in your table of contents will fail under Stanza (but again will work everywhere else just fine).

I will be interested in your comments because if this is a bug or limitation within Stanza's epub reader then we might have to contact Lexcycle and tell them. If anyone has time try to reproduce it and tell me if the same thing happened to you, than we will know for sure if it is a bug/problem. Anyway its working now so i'm off to read!
gescom is offline   Reply With Quote