Quote:
Originally Posted by KevinH
Let me see if I can get at least the right line of the file to come up. Would that help?
|
Jumping to the correct line is a "good enough" solution (at least for all of the use-cases I could think of). When I noticed Calibre jump directly to the <a> link I just took that as icing on the cake!
The real thing that was making me pull my hair out was Sigil just jumping to the top of the HTML files.
Quote:
Originally Posted by BetterRed
I occasionally edit texts with a lot of links to endnotes, references etc. I never did 'get' what Sigil's Links Report was supposed to do for me, but when Kovid produced his Links report I 'got' it immediately.
I'd have to do a side-by-side comparison to say anything further as its been a while since I've used either.
|
Just like the Word List, the Links Report can be used to catch all the inconsistent usages in the <a> tags.
See attached EPUB for all these examples:
Example #1: Take your FBI example, maybe they link throughout the book as:
Spaces very easily creep their way into <a> when using the mouse + WYSWIG editors. These things stand out like a sore thumb when sorted. :P
And a typo (fib.gov) can also easily sneak in the href (this is very hard to spot just looking through the Code View).
Example #2: In the case of this specific book I was working on, there was an article that referenced (Author Year) with a link to the specific book/paper:
After sorting, you could see it show up in the list as:
Example #3: It is also very helpful when you do things like changing footnotes from <sup>##</sup> -> [##].
If I sort and see a giant list of:
I can go take a closer look. That single digit number should not be there!
Example #4: The "Target Exists?" column is also fantastic for catching missing footnotes:
you can sort "Target Exists?" and see "no" in the column, then you can investigate.
Example #5: You can also sort all the links by "Target File" and take a very close look at external websites.
For example, if there are lots of Youtube links, you may want to check to see if those still exist, what the titles are, etc. etc.
(This particular article pointed to a Youtube Embed link instead of just pointing directly to the normal Youtube video.)
This sort of stuff is EASILY spotted in the Report.
Side Note: Calibre's Links Report also lets you click on the links right there and open them up in your browser. Pretty helpful.
Side Note #2: I don't know when it was added, but Calibre's
Tools > External Links > Check External Links is absolutely fantastic for catching HTTP 403/404 Errors.
When you import/work from a collection of web articles it helps you can then go hunting and replacing with newer/working ones (for example, there may be broken Facebook/Twitter links, or a site has updated and hasn't redirected links properly).
Quote:
Originally Posted by KevinH
I checked the code and 'Target Text', 'Target's Target File', 'Target's Target ID' or 'Match' are only filled in when the target of a link is itself an achor tag with a link someplace else (or back).
So that appears to work as designed. I will test this tomorrow and verify that.
|
Yep, they work as intended. See attached EPUB. I put together a variety of different links.
Those columns are used if you do something like link to a separate Endnotes file: