![]() |
#1 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2013
Location: Kumamoto, Japan
Device: Kindle, MacOS, Win7
|
XHTML internal link checker
Every so often I need to make an ebook with zillions of footnotes or other cross-references, and while various utilities exist to help me make them all, I haven't been able to find one that can scan through the XHTML stack and show me a list of every link>target pair so I can verify them.
Does such a utility exist? Technically it wouldn't be that hard to make, but I'm hoping there already is one somewhere. Various bells and whistles could be added to make it even more useful, but basically just displaying every link>target pair would be wonderful. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,732
Karma: 103020299
Join Date: Apr 2011
Device: pb360
|
grep, if footnote links and targets match patterns that other links and targets do not.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2013
Location: Kumamoto, Japan
Device: Kindle, MacOS, Win7
|
Hmm. Links have href, making them easy to spot, but targets may have only ids, and lots of other things also have ids.
The only way to get a matching set would be to search for all ids, which would return a lot of random ids that are NOT targets. Or am I missing something? |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,732
Karma: 103020299
Join Date: Apr 2011
Device: pb360
|
No, not missing anything. If footnote targets are not distinct from other targets, my idea would not work.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2013
Location: Kumamoto, Japan
Device: Kindle, MacOS, Win7
|
Thanks, it's good to know I'm not wrong, but it would actually have been better to discover your idea worked!
EPUB-check and the IDPF Validator (which is back online again, for now at least) return some information, but obviously cannot check if a link points to the correct target or not. Maybe I'll have it developed... it's basically just a text handler, and shouldn't be that complicated. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Tools > Reports > Links They break down all <a> links, the text inside, and whether the destination actually exists. You're able to sort by columns, and it lets you easily spot inconsistencies. Calibre also even has a Tools > External Links > Check External Links which visits every URL and lets you know if it's alive or not. Very helpful for catching dead links so you can update them. |
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2013
Location: Kumamoto, Japan
Device: Kindle, MacOS, Win7
|
Well, that's a pleasant surprise!
I have Calibre but rarely use it for much... I'll have to take a closer look. Thank you very much for heads-up! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] reLink : Link unspecified href to the right XHTML file. | hantsaniala | Plugins | 4 | 05-22-2017 05:21 AM |
Some files.html & toc.xhtml (also Cover.xhtml) | chaot | Workshop | 23 | 02-13-2017 12:20 PM |
url link checker needed | lindaw2396 | ePub | 2 | 01-22-2013 12:30 PM |
How to link to a XHTML Table in a epub. | ebookn00b | ePub | 5 | 06-05-2012 12:35 PM |