Re: [NTG-context] Clickable url problem with \useurl and \url
On 10/12/2021 03:44, Taco Hoekwater wrote: Hi, On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context 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: t...@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 ___
Re: [NTG-context] Clickable url problem with \useurl and \url
Hi, > On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context > 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: t...@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 ___
[NTG-context] Clickable url problem with \useurl and \url
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 ___ 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 ___