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 Wolfgang
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 -----------------------------------------------------------------
Am 10.04.2015 um 15:31 schrieb Hans Hagen
: 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
participants (2)
-
Hans Hagen
-
Wolfgang Schuster