Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Apple Devices

Notices

Reply
 
Thread Tools Search this Thread
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
Old 05-23-2009, 02:28 PM   #2
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Iirc, it's not a good idea to use spaces in name/id. Same with filenames for anything that will be put on the web.

Did some research, allowed characters for attribute id:
[A-Za-z][A-Za-z0-9:_.-]

http://www.w3.org/TR/xhtml1/

Per http://www.w3.org/TR/html4/types.html#h-6.2
Quote:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").

Last edited by ilovejedd; 05-23-2009 at 02:39 PM.
ilovejedd is offline   Reply With Quote
Advert
Old 05-23-2009, 04:53 PM   #3
gescom
Junior Member
gescom began at the beginning.
 
gescom's Avatar
 
Posts: 6
Karma: 10
Join Date: May 2009
Device: Ipod Touch g2
Thanks for your reply and info ilovejedd, yes you are correct. It is definetly an issue when using the automatic conversion of filenames and chapter titles from the start of text files in ecub. Something to look out for and hopefully this thread helps someone with the same issue.

I wonder why its just Stanza that has issues with spaces and not other readers?
gescom is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apple: Creating ePub files with Pages kjk Apple Devices 1 08-26-2010 05:46 PM
Help - epub files too large for Stanza? Nonstickron Calibre 2 05-17-2010 10:47 PM
Problem transfering large files to Stanza bobotto Calibre 1 05-11-2010 12:26 PM
Problem with epub display on stanza AtlanVIII Calibre 4 01-01-2010 05:34 PM
Creating ePub files crutledge Calibre 4 12-29-2009 08:48 AM


All times are GMT -4. The time now is 02:37 AM.


MobileRead.com is a privately owned, operated and funded community.