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) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________