From: SourceForge.net <no...@so...> - 2005-05-06 04:19:21
|
Plugins item #1101132, was opened at 2005-01-12 13:53 Message generated for change (Comment added) made by usr_wifi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1101132&group_id=235 Category: None Group: None Status: Open Priority: 5 Submitted By: dg (dangrey) Assigned to: Nobody/Anonymous (nobody) Summary: Wikilink (Wikipedia) plug in Initial Comment: It would be great to have a plug-in that made Wiki links (eg. [[gaim]]) clickable. There'd need to be an option for the URL of the Wiki to use (eg. en.wikipedia.org), and then the plugin would make up the full URL and open a new tab in a browser. Would be tres handy! ---------------------------------------------------------------------- Comment By: marion (usr_wifi) Date: 2005-05-06 00:18 Message: Logged In: YES user_id=1272654 This expression works...sorta # WikiPedia ([A-z0-9]+) http://en.wikipedia.org/wiki/$1 If you use the expression above, you'll get every word returned as a link to it's wikipedia match (presuming that it has one.) What really needs to be done from what I can make of the Linkify plugin is the following. 1) Create a data file containing the key words and phrases to be wikilinked via regex. 2) Createing an array from the data file and parsing the messages sent/received through it. 3) Wikipedia already converts blank spaces to underscores, so would Linkify need to be modifed to do so? I would say yes, but I can't figure out where to put the code. s/\s/_/g; Just to make sure I had it right I processed a simple script via command line and it ran as expected. ---------------------------------------------------------------------- Comment By: David Perry (perryda) Date: 2005-03-10 12:13 Message: Logged In: YES user_id=77962 Linkify does similar transformations, though not quite what you want: http://sourceforge.net/tracker/index.php?func=detail&aid=1026860&group_id=235&atid=390395 A linkify.cfg line that would probably work for single words (can't test it right now) is \[\[(\S+)\]\] http://en.wikipedia.org/wiki/$1 Linkify would have to be modified to change spaces into underscores for multi-word links though. ---------------------------------------------------------------------- Comment By: Luis M (lems1) Date: 2005-03-03 09:40 Message: Logged In: YES user_id=239796 Trillian does this already... I was hoping it was done for Gaim, but... time to do some Perl digging... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1101132&group_id=235 |