[NTG-context] Character spacing and url
Wolfgang Schuster
schuster.wolfgang at gmail.com
Mon Apr 13 21:02:58 CEST 2015
> Am 10.04.2015 um 15:31 schrieb Hans Hagen <pragma at wxs.nl>:
>
> 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
Looks good.
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150413/51f6b403/attachment-0001.html>
More information about the ntg-context
mailing list