[reportlab-users] Turn off automatic mailto links?

Roberto Alsina ralsina at netmanagers.com.ar
Wed Jul 29 09:36:55 EDT 2009


On Wednesday 29 July 2009 10:33:30 Robin Becker wrote:

> Roberto Alsina wrote:

> > On Wednesday 29 July 2009 07:25:36 Robin Becker wrote:

> >> I'm fairly sure that is being done by the display application rather

> >> than anything we do. I looked at what's produced by your example

> >>

> >> > BT 1 0 0 1 0 5.17 Tm /F2 10 Tf 12 TL (example at example.com) Tj T* ET

> >>

> >> so our code isn't doing anything to promote the idea that we want a

> >> link. Even so, acrobat demented reader insists on showing it as a

> >> clickable mailto link. I've tried a few experiments and nothing obvious

> >> seems to do the right thing.

> >

> > How about replacing the @ with a unicode homograph? I am not even sure

> > there is one, and the font problems would be ghastly, though.

>

> I'm almost sure that would work as would using an image of the right size.

> I've tried fakery like person<font/>@<font/>email.com, but though the text

> is broken up into separate chunks, acrobat still sees it as a link.

>

> The only problem with the homograph ide is that most fonts won't have one

> easily. I suppose we could modify the encoding to support the right

> behaviour and or embed a single glyph etc etc.

>

> Even if we over come that we then have a document where if we search for

> example at example.com then it wouldn't be found even though it's in plain

> view.


And if you copy that into a mail program it will give the most confusing error
ever.

--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)


More information about the reportlab-users mailing list