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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2012, 12:03 PM   #1
Ti-Ron
Connoisseur
Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
Errors with hyperlinks

Hi there,

I'm coding an ePub with many hyperlinks in it. Things are going great but I've found two bugs with no (to me) solutions:

1)http://www4.agr.gc.ca/AAFC-AAC/displ...7176899&lang=f

2)http://www.agrivision.ca/pdf/factsheets/herb&spice.pdf

Both of them have "&" in it and Sigil thinks it's a call for a command and I have several errors and I can't save my file.

Is there any way to keep my hyperlink active and keep the infos avaible for the reader?
Ti-Ron is offline   Reply With Quote
Old 11-20-2012, 01:06 PM   #2
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,992
Karma: 4633978
Join Date: Dec 2010
Device: Kindle PW2
Try replacing all ampersands in llinks with &
Doitsu is offline   Reply With Quote
 
Enthusiast
Old 11-21-2012, 06:46 AM   #3
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
You could also use a URL shortening service. MURLS is a free desktop app that helps a lot with this http://code.google.com/p/murls/
PageLab is offline   Reply With Quote
Old 11-21-2012, 11:41 AM   #4
Ti-Ron
Connoisseur
Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.Ti-Ron ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
Problem solved!

Quote:
Originally Posted by Doitsu View Post
Try replacing all ampersands in llinks with &
COOL! Thanks, I didn't know I was able to use &amp into a hyperlink!
Thanks a lot!
Ti-Ron is offline   Reply With Quote
Old 11-21-2012, 09:18 PM   #5
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 304
Karma: 1028382
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Not just "able to". For standards compliance, you're required to use either & or one of the equivalent numerical entities whenever you want an ampersand literal to appear in HTML, whether it's in an attribute value or in the body of the text.

Most web browsers will silently turn improper ampersands into literals for you because so many web developers get it wrong so frequently (which ironically contributes to more and more developers getting it wrong), but it's still wrong.

It would probably be a good idea to run xmllint on your content. It's a great tool for catching these sorts of mistakes, and IIRC would have flagged that as an invalid entity.
dgatwood 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
Flightcrew says Errors, but Sigil says no Errors… Barcelona Sigil 4 02-09-2012 07:13 AM
Hyperlinks jtdolphins Which one should I buy? 3 06-18-2011 12:29 AM
Hyperlinks Help ^^ Anarel Workshop 2 08-16-2010 09:12 AM
Hyperlinks/Footnotes Anarel Calibre 7 08-16-2010 04:23 AM
Hyperlinks MsAstoria Amazon Kindle 0 03-12-2009 07:40 PM


All times are GMT -4. The time now is 12:02 PM.


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