![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
Mohamed Bana wrote:
Hi all,
a) I've reported this before; I ca1n't seem to wrap long URLs across lines in XeTeX
\useURL[doilink][http://dx.doi.org/10.1109/32.689404][][ http://dx.doi.org/10..1109/32.689404][][\hyphenatedurl{http://dx.doi.org/10.1109/32.689404}]
\from[doilink]
in mkiv you probably don't need the \hyphenatedurl as is more clever
in pdftex your example works ok but not in xetex ... maybe something messy with catcodes or discretionaries ... weird
we have this (in mkii): \def\dohyphenatedurlbefore#1{\discretionary{\hyphenatedurlseparator}{}{}\char#1\relax}% if you change this to \def\dohyphenatedurlbefore#1{\discretionary{!}{?}{*}\char#1\relax}% you'll see that indeed something is inserted so, something fishy in xetex; maybe a difference in disc handling due to utf hyphenation? anyhow, we have to live with it (so better use mkiv) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------