![]() |
#1 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Links to URLs work, internal links don't?
I have a ton of hyperlinks in a single doc that all refer to different locations within the doc. Upon uploading to iBooks (via my own desktop, iTunes) I see that these don't work, though they look as if they should. Epub validator brings back the dreaded Error message referencing the anchors, "fragment identifier is not defined." Hyperlinks connecting to URLs work just fine. What gives and how can I fix it?
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
A whole load of things could have happened, impossible to be sure as you don't show us any code. My guess is your epub has been split into separate files and the links fail to specify the relevant file as well as the fragment id.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Be back with the code in a couple of hours. Really appreciate your help.
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
OK, here's the error message, followed by the code in the xhtml file it refers to:
'abalone-chowder-anchor': fragment identifier is not defined in 'OEBPS/Cast Iron Cuisine ePub-48.xhtml' They make an excellent<span class="link-style"><a href="#abalone-chowder-anchor"> Abalone Chowder</a></span>.)</p> |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Another example:
error message: 'dried-wild-mushrooms-anchor': fragment identifier is not defined in 'OEBPS/Cast Iron Cuisine ePub-48.xhtml' code in 48.xhtml: <p class="ingredients" xml:lang="en-us">1 cup dried chanterelle mushrooms (see <span class="link-style"><a href="#dried-wild-mushrooms-anchor">Resources</a></span>)</p> |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
href="#abalone-chowder-anchor"
href="#dried-wild-mushrooms-anchor" These aren't specifying a file before the fragment id. From the spurious lang attribute I'm guessing you've exported this from InDesign and run into InDesign's link bug. Try exporting it without checking the box which splits it at first-level headings, though that means you'll need to use Sigil to do the ToC. |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Had a hunch it was an InDesign bug. More than a few I've encountered in CS5. And then there are the iBook bugs. Anybody got a good can of bug spray?
Thanks, charleski. Appreciate the input. |
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Yeah Charleski is correct.
Is isn't an iBooks bug though, it a CS5 issue All the links will work going there, but the return trip back all the links will be broken. you can run a search and replace on the xhtml files to fix this though, it only take a few minutes. For example I had one with hundreds and hundreds of footnote/endnotes. all the links from the text to the "notes" worked but the going from the "notes" file back to main text were broken... you just need to insert the correct xhtml file before the # href="filename.xhtml#dried-wild-mushrooms-anchor" |
![]() |
![]() |
![]() |
#9 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
The shameful fact is that InDesign CS5 has received 3 patches since it was launched and this bug still isn't fixed - it's still there in 7.0.3. Adobe was informed of the bug back in May, so you get the feeling that they don't really care about InDesign's epub export facilities.
Then again, InDesign really is focussed on print production - there are far better tools for creating reflowable formats and publishers need to get out of the habit of correcting galley proofs. |
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
That's not the only CS5 bug, and I agree with you, charleski, it's absolutely shameful and irresponsible of Adobe not to have this software up to the task of correctly outputting epub files. Why should we have to chase our tails fixing code they should have gotten right in the first place? Epub book designers have better things to do.
|
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Adjust, thank you very much. I'm gonna go try that right now. Sure glad you guys are out there to ask.
|
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Adjust, I tried inserting the correct xhtml file as you expressed it and as my files gave it, but it's still not connecting. I must have missed something. What am I doing wrong here?
<a href="Cast Iron Cuisine ePub-48.xhtml#short-ribs-of-beef-anchor">Short Ribs of Beef</a> <a href="Cast Iron Cuisine ePub-53.xhtml#mountain-bread-33-anchor">Mountain Bread</a> |
![]() |
![]() |
![]() |
#14 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,527
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Having filenames with spaces is possible, but it's asking for trouble (as is having non-ASCII characters). It might be that the files use "%20" instead of a space or something like that.
|
![]() |
![]() |
![]() |
#15 |
Connoisseur
![]() ![]() Posts: 59
Karma: 100
Join Date: Aug 2010
Location: Northern California, in the redwoods by the ocean
Device: iPad
|
Jelby, I took the file designation literally, stroke by stroke, from the xhtml files as they are expressed in the OEBPS. Should I add hyphens between words in the file name?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-650 Internal TOC Links in Sony readers | AlexBell | Sony Reader | 3 | 09-24-2010 06:03 AM |
internal links and chapter division | .mau. | Sigil | 23 | 07-28-2010 04:01 PM |
Internal Links??? | Guns4Hire | PocketBook | 11 | 04-18-2010 02:25 AM |
PDF bookmarks and internal links on iPhone | frabjous | Apple Devices | 4 | 09-04-2009 08:51 AM |
Internal links in ePub-files broken? | Portnull | Calibre | 2 | 08-17-2009 11:00 AM |