On Fri, Apr 10 2015, joasyannick@gmail.com wrote:
I am writting a French document. I would like to turn off the French character spacing temporarily in order to typeset English document title or URL. For instance, I would like to define the commands
\def\englishtitle#1{\turnofffrenchcharacterspacing{\em #1}\turnonfrenchcharacterspacing} \def\url#1{\turnofffrenchcharacterspacing{\em #1}\turnonfrenchcharacterspacing}
so that a title link “Example: English Title” will be italicised and will not have a space before “:”; and a URL like “http://www.example.com” neither.
\usemodule[french] \setupurl[style=\tt\en] \def\EnglishTitle#1{\start\en\em#1\stop} \useURL[myURL][http://website/] \starttext Voilà: \EnglishTitle{Voilà: Voilà?} URL: \url[myURL] \stoptext -- Peter