#3 Make paraparser recognize href links

platypus (4)

This is probably better as a maillist post, but I'm
having trouble signing up to egroups (it doesn't want
to send me a confirmation mail). :-(

I'd like to be able to have platypus recognize some
symbology for external like references. To do so, I'd
like to be able to modify the RL paraparser to
recognize inline external links <a href="">link</a>.
As far as I can tell from the source, after modifying
the parser to create a new kind of "link" paragraph
fragment I'd also need to maybe modify the playpus
Paragraph class' drawPara method and some of the
ParaLines/FragLines logic to be able to identify the
new kind of fragment and draw a link rectangle around
it using the canvas' linkURL method.

The problem is that I don't know at what point during
processing to call linkURL or how I know where in the
current coordinate system that the URL-bearing
fragment will be drawn and how big it will be when it
is drawn. :-(

Can anyone from ReportLab or otherwise provide some
narrative as to how you might go about doing this in
broad strokes, ala a "hook this method here", "get the
coordinates from here" and "subclass from this class"
kind of explanation.

Many thanks!


  • Dinu C. Gherman

    Dinu C. Gherman - 2002-04-17
    • labels: --> platypus
    • assigned_to: nobody --> andy_robinson
  • Dinu C. Gherman

    Dinu C. Gherman - 2002-04-17

    Logged In: YES

    Andy, maybe you can comment on this?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks