[NTG-context] hyphenated url

Aditya Mahajan adityam at umich.edu
Sun Oct 31 21:25:47 CET 2010


On Sun, 31 Oct 2010, Steffen Wolfrum wrote:

>
> Am 31.10.2010 um 07:06 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
>>
>> This is more a proof of concept so I did not take care of the optional argument of \footnote.
>>
> A very nice and clean solution!
>
> Is it also possible to adapt it to useURL?
>
> \setasciicommand\useURL
>
> test \useURL[one][http://www.google.com/some%20thing][][http://www.google.com/some%20thing] text

It starts getting more confusing...the control passes from tex to luatex 
and then back to tex and at the last step ctxcatcodes are restored. I just bypassed the 
whole last leg. See the attached file for a working example.

A proper fix is much more involved.

Aditya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 2618 bytes
Desc: 
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20101031/5fccbfed/attachment.tex>


More information about the ntg-context mailing list