ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Clickable url problem with \useurl and \url
@ 2021-10-12  2:30 Rik Kabel via ntg-context
  2021-10-12  7:44 ` Taco Hoekwater via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Rik Kabel via ntg-context @ 2021-10-12  2:30 UTC (permalink / raw)
  To: NTG-ConTeXt; +Cc: Rik Kabel


[-- Attachment #1.1: Type: text/plain, Size: 1926 bytes --]

Hello List,

I notice an inconsistency in the clickable area when using \useurl. With 
the following example, both the \from and the \url are clickable in some 
lines (as noted iin the value of \from) but in others, the \from is 
clickable but not the \url.

It does seem sensitive to the urlL, but I cannot see a pattern.

Example:

    \setupinteraction [state=start]
    \useurl[earlBA] [https://www.bartleby.com/sv/welcome.html]
                  [] [Not clickable]
    \useurl[earlPD] [https://www.perseus.tufts.edu/hopper/]
                  [] [Not clickable]
    \useurl[earlWC] [https://www.worldcat.org/]
                  [] [Not clickable]
    \useurl[earlFC] [https://www.futilitycloset.com/]
                  [] [Not clickable]
    \useurl[earlQU] [http://www.quote-unquote.org.uk/]
                  [] [Not clickable]
    \useurl[earlAL] [https://www.aldaily.com/]
                  [] [Not clickable]
    \useurl[earlTL] [http://stephanus.tlg.uci.edu/]
                  [] [Not clickable]
    \useurl[earlQI] [https://quoteinvestigator.com/]
                  [] [Clickable]
    \useurl[earlLH] [https://languagehat.com/]
                  [] [Clickable]
    \useurl[earlSF] [https://stancarey.wordpress.com/]
                  [] [Clickable]
    \starttext
    \from[earlLH]  (\url[earlLH]) \par
    \from[earlQI]  (\url[earlQI]) \par
    \from[earlFC]  (\url[earlFC]) \par
    \from[earlWC]  (\url[earlWC]) \par
    \from[earlQU]  (\url[earlQU]) \par
    \from[earlAL]  (\url[earlAL]) \par
    \from[earlSF]  (\url[earlSF]) \par
    \from[earlBA]  (\url[earlBA]) \par
    \from[earlPD]  (\url[earlPD]) \par
    \from[earlTL]  (\url[earlTL]) \par
    \stoptext

Should I use something other than \url[earlXX] here to get the clickable 
literal url from useurl?

-- 
Rik Kabel

[-- Attachment #1.2: Type: text/html, Size: 3317 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Clickable url problem with \useurl and \url
  2021-10-12  2:30 Clickable url problem with \useurl and \url Rik Kabel via ntg-context
@ 2021-10-12  7:44 ` Taco Hoekwater via ntg-context
  2021-10-12 14:32   ` Rik Kabel via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater via ntg-context @ 2021-10-12  7:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Taco Hoekwater

Hi,

> On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context <ntg-context@ntg.nl> wrote:
> 
> Hello List,
> 
> I notice an inconsistency in the clickable area when using \useurl. With the following example, both the \from and the \url are clickable in some lines (as noted iin the value of \from) but in others, the \from is clickable but not the \url.
> 
> It does seem sensitive to the urlL, but I cannot see a pattern.

It is the pdf viewer program that automatically interprets the \url-produced text and 'invents' a link, it is not
ConTeXt itself. The exact rules may therefore vary depending on the pdf viewer you use. 

In Apple's Preview, all items are in fact clickable. But only \from produces actual pdf hyperlink annotations.

> Should I use something other than \url[earlXX] here to get the clickable literal url from useurl?

This, maybe

\goto{\url[earlLH]}[url(earlLH)]

(perhaps wrapped in a short macro)

Best wishes,
Taco

— 
Taco Hoekwater              E: taco@bittext.nl
genderfluid (all pronouns)



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Clickable url problem with \useurl and \url
  2021-10-12  7:44 ` Taco Hoekwater via ntg-context
@ 2021-10-12 14:32   ` Rik Kabel via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Rik Kabel via ntg-context @ 2021-10-12 14:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Rik Kabel


On 10/12/2021 03:44, Taco Hoekwater wrote:
> Hi,
>
>> On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Hello List,
>>
>> I notice an inconsistency in the clickable area when using \useurl. With the following example, both the \from and the \url are clickable in some lines (as noted iin the value of \from) but in others, the \from is clickable but not the \url.
>>
>> It does seem sensitive to the urlL, but I cannot see a pattern.
> It is the pdf viewer program that automatically interprets the \url-produced text and 'invents' a link, it is not
> ConTeXt itself. The exact rules may therefore vary depending on the pdf viewer you use.
>
> In Apple's Preview, all items are in fact clickable. But only \from produces actual pdf hyperlink annotations.
>
>> Should I use something other than \url[earlXX] here to get the clickable literal url from useurl?
> This, maybe
>
> \goto{\url[earlLH]}[url(earlLH)]
>
> (perhaps wrapped in a short macro)
>
> Best wishes,
> Taco
>
> —
> Taco Hoekwater              E: taco@bittext.nl
> genderfluid (all pronouns)
>
Indeed, that is the issue. I use Sumatra by default, but I see different 
results with other viewers. I will follow up, if needed, elsewhere.

And yes, for consistency I will look at something based on \goto to make 
explicit what should and should not be clickable.

Thank you for the explanation and suggestion.

-- 
Rik

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-12 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12  2:30 Clickable url problem with \useurl and \url Rik Kabel via ntg-context
2021-10-12  7:44 ` Taco Hoekwater via ntg-context
2021-10-12 14:32   ` Rik Kabel via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).