From: SourceForge.net <no...@so...> - 2005-06-25 22:49:34
|
Plugins item #1101132, was opened at 2005-01-12 18:53 Message generated for change (Comment added) made by omegatron You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1101132&group_id=235 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. 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: Omegatron (omegatron) Date: 2005-06-25 22:49 Message: Logged In: YES user_id=1069357 space are automatically converted to underscores by wikipedia. there are two ideas in this "thread": 1. convert [[wikilinks]] into actual links to wikipedia, which are often used in IRC chat and such. 2. convert every word to a wikilink, as was done in trillian for a little bit. I did number 1. See here: [[Wikipedia:Scripts#Gaim]] er... http://en.wikipedia.org/wiki/Wikipedia:Scripts#Gaim ---------------------------------------------------------------------- Comment By: marion (usr_wifi) Date: 2005-05-06 04: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 17: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 14: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 |