# Re: [NTG-context] modifying URL wrapping rules

Lars Huttar wrote:
> On 11/19/2008 2:35 PM, Lars Huttar wrote:
>> However, I have a few unsolved problems here.
>>
>> 1) I don't see a way, with the '\sethyphenatedurlbefore' or 'after'
>> mechanism, to tell it not to break a URL between two slashes, as in
>> "http://";. At first I thought that since our text only had a few URLs,
>> we'd likely never care. But ... you guessed it. One URL got broken
>> between the slashes: "http:/
>> /www.sil.org/..."
>
> I found a way to deal with this... Based on a tip from
> http://xpt.sourceforge.net/techdocs/language/latex/latex03-LaTexUsage/ar01s04.html,
> I used
>       {\lefthyphenmin=64 http://}\hyphenatedurl{www.sil.org/...}
> It seems to work in practice -- hyphenation and breaking are disabled
> for the "http://"; chunk. And hyphenation seems to successfully resume
> afterwards.
> This also fixes the problem of a URL breaking before the "//".
>
> The other problems are still outstanding though (wanting to break a URL
> after a slash, not before; and before a hyphen, not after).
>
> Thanks for any ideas...

cleaner than the lefthyphenmin hackery .,..

{\hbox{http://}\hyphenatedurl{www.sil.org/...

in context mkiv i can provide a hyphenater based on the url syntax
(after all, mkiv already has an analyser for urls)

-----------------------------------------------------------------
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________