Re: Titles on external links
"David W. Talmage" <[email protected]> Sun, 9 Apr 2006 08:34:41 -0400
| Newsgroups | gmane.comp.web.wiki.awkiawki.user |
|---|---|
| Message-ID | <[email protected]> |
On Saturday 08 April 2006 5:27 pm, Stephen Patterson wrote: > On 08 Apr 06, David W. Talmage ([email protected]) wrote: > > You found this in parser.awk: > > > > sub(/((https?|ftp|gopher):\/\/|(mailto|news):)[^\t]*[^.,?;:'")\t]/, "<a > > href=\"&\">&</a>",field) > > Yes, thats what I was looking at. > > > Is there a standard Wiki markup for naming the title of an external link? > > Well, the original WikiWikiWeb http://c2.com/cgi/wiki?TextFormattingRules > uses the same link formatting as awkiawki. Though wikipedia[0] uses the > syntax [http://www.foo.com The Foo Page] Instiki uses "linkname":URL. If you chose syntax like that, then it should be relatively easy to recognize in parser.awk. The pattern should be something like the pattern that matches https, ftp, and gopher but it would begin with an expression that matches quoted strings. Something like this: \"[[:print]]\":(https?|ftp|gopher|mailto|news):/ I haven't tested this. If you're interested, http://www.gnu.org/software/gawk has the GNU AWK manual on line. It's good. David Talmage ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642