>> what should be the end character for a link? Space? If we agree, Maxim >> can implement it in a minute, I guess. What RFC says? > Space should always terminate the link - but it shouldn't be the only > character that does it, depending on what's in front of the link. Take > a look at the following examples: > foo http://čšž.ena.si/abc(de) bar <http://čšž.ena.si/abc(de)> baz > ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ > foo (http://čšž.ena.si/) bar [http://čšž.ena.si/abc(de)] baz > ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ > The ^'s mark parts of the URLs that should be clickable. Even > something like (http://čšž.ena.si/abc(de)) shouldn't be too hard to > get right, even if it could cause a few problems when the user > actually forgot a space after the closing parenthesis (I tested these > examples in my newsreader [Dialog], and it does the right thing, so I > see no reason why The Bat couldn't).
So....: 1. Find the http:// (www.,ftp://, etc.) part 2. Look, what character(s) precedes it until the first char in the line OR until the space a. If < is there, space OR > stops the link b. If [ is there, space OR ] stops the link a+b. If [ and < are there, space OR ] OR > stops the link c. If ( is there, calculate the number of (-s and then space OR the right number of ) stops the link a+c,b+c,a+b+c: see a+b 3. Cutoff the preceding chars and send the link. Is it a good method? -- Vili ________________________________________________________ Current beta is 3.99.03 | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html

