[NTG-context] hyphenated url

Steffen Wolfrum context at st.estfiles.de
Mon Oct 25 22:25:04 CEST 2010


Am 25.10.2010 um 19:30 schrieb Aditya Mahajan:

> On Mon, 25 Oct 2010, Steffen Wolfrum wrote:
> 
>> Hi,
>> 
>> the "%" is a frequently used character in URL.
>> But \hyphenatedurl{} can deal with it ...
>> 
>> Does someone has a fix?
>> 
>> 
>> \starttext
>> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text.
>> \stoptext
> 
> An extreme solution:
> 
> \startcatcodetable \txtcatcodes
>    \catcode`\^^I = 10
>    \catcode`\^^M =  5
>    \catcode`\^^L =  5
>    \catcode`\    = 10
>    \catcode`\^^Z =  9
>    \catcode`\\   =  0
>    \catcode`\{   =  1
>    \catcode`\}   =  2
> %   \catcode`\%   = 14
> \stopcatcodetable
> \starttext
> \asciimode
> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text.
> \stoptext



As I don't have any experience with "\asciimode" "I am not sure if I can map this entirely on a complex book project...

Any known side-effects?

Steffen


More information about the ntg-context mailing list