Dear
MarkDilley, dear friends of
WardsWiki as you know the Wiki of the inventor
WardCunningham, you might appreciate a
BookMarklet that allows you to write anywhere in the Web your text contribution (posting, comment, (micro-) blog, document) with a
WikiTitle and
WikiWord s, copy and
BiLink it with a corresponding value enriched
WikiPage.
In this case we choose (imho) the most favorable Wiki for accumulating
CollectiveIntelligence :-)
I am going to publish a special
BookMarklet
(alc2) that converts your text immediately in the browser view into a clickable
WikiLike text. The bookmarklet additionally supports,
- lowerCamelCase with numbers for different programming languages
- German Umlaute
If you want to write a C2Compatible contribution anywhere in the Web, then restrict yourself to classical
CamelCase as used in
WardsWiki.
The Licence for alc2 is
CcBySa, using the same licence as the
WikiPedia.
Here it is (but you have to clean up from spurious insertions, we need something like <nowiki>...</nowiki>) :
javascript:function alc2(){var WikiMap = ['http://c2.com/cgi/wiki?','http://google.com/search?q='],i,j,k,len,llen,link,linkpatt,linkText,linkTextArray=[],msg,myArray,node,txt,href,a,reg,span,lastLastIndex,textNodeXpath,textNodes;textNodeXpath='.//text()[not(ancestor::a) and not(ancestor::head)and not(ancestor::option) and not(ancestor::textarea)]';textNodes=document.evaluate(textNodeXpath,document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);len=textNodes.snapshotLength;reg=/^\s+$/g;linkpatt=/\b(?:([a-z0-9äöü]*(?:[A-ZÄÖÜ_]|_)[a-z0-9äöü_]*){2,})\b/g;for(i=0;i<len;i++){node=textNodes.snapshotItem(i);txt=node.nodeValue;txt=txt.replace(reg,);if(linkpatt.test(txt)){span=document.createElement('span');lastLastIndex=0;linkpatt.lastIndex=0;try{while(true) {myArray=linkpatt.exec(txt);if (!myArray)break;link=myArray[0];linkTextArray=[link,'➜°',' ¹',' ²',' �'];span.appendChild(document.createTextNode(txt.substring(lastLastIndex,myArray.index)));lastLastIndex=linkpatt.lastIndex;linkText=myArray[1];link=myArray[0];llen=link.length;if(link.substring(0,2)==&&link.substring(llen-2,llen)==''){link=link.substring(2,llen-2);}for (j=0; j<Math.min(WikiMap.length,linkTextArray.length); j++) {href=WikiMap[j]+link;a=document.createElement('a');a.setAttribute('href',href);a.appendChild(document.createTextNode(linkTextArray[j]));span.appendChild(a);}}span.appendChild(document.createTextNode(txt.substring(lastLastIndex)));node.parentNode.replaceChild(span,node);}catch(e){alert(e);}}}msg='steno enabled with:\n'+'\nMainLink:'+WikiMap[0]+'\n0:'+WikiMap[1]+'\n1:'+WikiMap[2]+'\n2:'+WikiMap[3]+'\n3:'+WikiMap[4]+'\n:'+'\n:'+ 'Intermediate Webpages:'+'\n:'+document.location;}alc2();
For your convenience I put this bookmarklet on
http://www.aypwip.org/webnote/AutoLink for reading, testing and using it out of the box. Disclaimer: Do it on your own risk. If you know to read Javascript, you can easily see, that you
have full control over the targets.
If you like it drag the link
AutoLinkWardsWiki there onto your bookmark bar of your browser and use it freely in your postings or comments in
FaceBook,
GooglePlus, etc. ...