Merge links on text with adjacent boxes #1249
Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
If someone wants to take a stab at this:
So to make this work one has to check whether two adjacent fragments haven links ( |
Beta Was this translation helpful? Give feedback.
-
Excellent analysis. I checked to see what the browser would do when generating the PDF (in this case Chrome) for the case Alexander cited. The result is...rather peculiar. It seems to split the difference. I have no doubt it would be incredibly difficult to mimic the browser, but it could be a good reference for anyone attempting to tackle this challenge. |
Beta Was this translation helpful? Give feedback.
-
@pointlessone @gettalong Thanks for your explanation. |
Beta Was this translation helpful? Give feedback.
-
I'm a user of asciidoctor-pdf, which uses Prawn to generate its PDF. I have no knowledge of Prawn itself, so I hope I express myself correctly. Yesterday I reported asciidoctor/asciidoctor-pdf#1688 to asciidoctor-pdf. I was asked to report the problem here.
The problem is that creating a link on text with multiple styles creates a link text on the individually styled blocks. This has the effect that instead of a single link, you actually have multiple links. In Adobe Acrobat, this has the effect that clicking on a link will only highlight part of the link, while in the PDF viewer of Firefox, hovering over the link will only highlight part of the link (see example at end).
Would it be possible for adjacent links to the same target to be merged into a single link?
As an example (in Firefox):
Beta Was this translation helpful? Give feedback.
All reactions