[NTG-context] Character spacing and url

Hans Hagen pragma at wxs.nl
Fri Apr 10 15:31:09 CEST 2015


On 4/10/2015 12:26 PM, Wolfgang Schuster wrote:
> Hi Hans,
>
> the character spacing mechanism should be disabled for certain commands because it produces unwanted spaces
> when you want to typeset a URL.
>
>
> \setcharacterspacing[frenchpunctuation]
>
> \useurl[google][https://www.google.com]
>
> \starttext
>
> text: «text»
>
> \goto{\hyphenatedurl{https://www.google.com}}[url(https://www.google.com)]\vrule
>
> \goto{\resetcharacterspacing\hyphenatedurl{https://www.google.com}}[url(https://www.google.com)]\vrule
>
> \url[google]\vrule
>
> \resetcharacterspacing\url[google]\vrule
>
> \stoptext

like this?

\appendtoks
     \resetfontfeature
     \resetcharacterspacing
\to \everyhyphenatedurl

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list