Hyperlink Pro

Hyperlink Pro

URL-to-hyperlink conversion done properly – links, spacing and all…

Working on a publication in InDesign with long URLs (website addresses) and trying to convert those URLs to live hyperlinks with InDesign’s inadequate URL-to-hyperlink “feature” can reduce the brave to tears. Only the shortest URLs are converted (why?!), and there is no help at all in fixing the horrendous line spacing resulting from long, unbreakable URLs!

Hyperlink Pro will convert all URLs, no matter how long they are, into clickable hyperlinks. What’s more, it will break long URLs optimally, providing the smoothest possible line spacing! It will also get rid of those pesky hyphens that screw things up when the document is exported to PDF! Let Hyperlink Pro save you and your team time and energy for more important challenges!

Examples

Have a look at the text below. It contains very long, badly spaced website addresses.

badly spaced urls

If InDesign’s “Convert hyperlink” feature is run on this text it completely ignores these long website addresses.

When Hyperlink Pro is run on this text, the entire website address is converted into a live hyperlink (so when the document is exported to ePub, PDF or other electronic format it becomes a clickable link).

What’s more, notice how Hyperlink Pro has broken the long URL in the optimal places to ensure the smoothest and most natural looking paragraph spacing:

Well-spaced URLs

Hyperlink Pro will convert all the URLs in an InDesign document into hyperlinks without skipping the hard ones! And it will ensure perfect spacing throughout!

Hyperlink Pro is also smart enough to know that google.com is a website, but google.pdf is not, unlike InDesign’s rather stupid implementation, which tries to convert anything that has a dot in it (such as file names) into a hyperlink. For all such “incomplete” URLs, Hyperlink Pro will presume that the required prefix is www.

Incidentally, Hyperlink Pro follows the rules of the Chicago Manual of Style when setting line breaks for long URLs. As required, it avoids breaking a URL after the following characters: ~ . , – _ ? # % and /.

The latest version (currently 1.9) has been updated to comply with the 16th edition of the Chicago Manual. So it now allows breaks after a double-slash (//) but not after a single slash (/).

Screenshot

HyperlinkProUI

Video Tutorial

Click here to see Hyperlink Pro in action.

Features

  • Converts all URLs in the document to hyperlinks, even the long ones that InDesign misses!
  • New in version 1.9: Prevent breaks in the middle of URLs and allow them only after the special marks listed in the Chicago Manual.
  • Choose to convert “incomplete” URLs; that is, URLs that do not contain the www part, such as google.com (instead of www.google.com).
  • Optionally, breaks long URLs that span more than one line optimally, achieving the best possible line spacing. No more unsightly, super-wide spaces!
  • Choose whether to convert the entire document or just one story or just the text selected.
  • Optionally apply a character style to all converted URLs.

Tips, Tricks, and Known Limitations

  • Although Hyperlink Pro is far better than InDesign’s own hyperlink converter, it may be that some special URLs in the document are missed. 99% work fine though, with perhaps a small number of “false positives”.
  • Hyperlink Pro finds the optimal line breaks for a long URL from a spacing point-of-view. It also respects Chicago Manual rules regarding which characters should never appear at the end of a line. However, from an editing/language point-of-view, you may want to (a) edit some of the line breaks (e.g. to avoid splitting words in two, etc.), or (b) prevent Hyperlink Pro from breaking URLs between alpha-numeric characters by selecting that option.
  • To edit the line breaks set by Hyperlink Pro, cut the “discretionary line break” character from the end of the line, and paste it nearby in a preferable location. The video tutorial above shows how to do this.
  • Hyperlink Pro includes an internal list of all legal TLDs (top-level domains) as of 24 August 2015 (available here: data.iana.org/TLD/tlds-alpha-by-domain.txt). It uses this list to figure out that google.pdf is not a website, but google.com is! This list will be updated from time to time as new TLDs are authorized.

Acknowledgements

The heart of this script is a very clever, very long RegExp (regular expression) created by John Gruber that homes in on even the toughest URLs. The RegExp was originally posted on his blog here. A revised version is available here. John Gruber has placed the RegExp in the public domain. Kudos!

Instant Download

Hyperlink Pro is available in 2 editions:

Hyperlink Pro Free Edition works with InDesign documents up to 3 pages long only, but in every other way is identical to Hyperlink Pro. Click here to download Hyperlink Pro Free Edition.

Hyperlink Pro Unlimited Edition ($47) works with documents of any length.

To purchase the unlimited edition of Hyperlink Pro for only $47, click the “Buy Now” button. Your product and serial numbers will be available for instant download when you complete the purchase.

Money-back Guarantee

If you are not satisfied with Hyperlink Pro for any reason, simply let us know within 30 days of purchase for a full refund.

Buy Now

I found Hyperlink Pro after … correcting a 100+ page interactive document with dead links. We started by shortening the URLs via bitly, but InDesign still insisted on breaking the URL after the first / rendering EVERY SINGLE URL BROKEN. I found/purchased and installed your script and voila, worked like a charm!

Jay Simon (Assistant Art Director, The Heritage Foundation)

Buy Now

Hyperlink Pro: $47.00

For multiple licenses (5 or more), please contact us to arrange a discount.

Requirements

System Requirements

  • InDesign CS6 or higher
  • Windows or Mac computer

Download Free Edition

Click on the button to download the free edition of Hyperlink Pro.

Leave a Reply