public
Description: Tool to generate dot file based on wikipedia usage
Clone URL: git://github.com/schleyfox/wikimapper.git
So apparently you can just quote nodes in .dot and handle many more char 
types
schleyfox (author)
Fri Apr 25 16:57:42 -0700 2008
commit  6bfce10d771e8705a2b294076abd30315c9dee55
tree    5110c5b5405a34af58bf44f3a82be15d229f375d
parent  4e71043f2c606704e13f3e3435e8a87d15e3ea86
...
28
29
30
31
 
32
33
34
...
39
40
41
42
 
43
44
45
 
46
47
48
...
28
29
30
 
31
32
33
34
...
39
40
41
 
42
43
44
 
45
46
47
48
0
@@ -28,7 +28,7 @@ end
0
 
0
 
0
 def stripdot(txt)
0
- CGI::unescape(txt).gsub(/[^A-Za-z0-9_]/, '_')
0
+ CGI::unescape(txt).gsub('"', "''")
0
 end
0
 
0
 
0
@@ -39,10 +39,10 @@ class WikiLoggerHandler < Mongrel::HttpHandler
0
       vars = Mongrel::HttpRequest.query_parse(request.params['QUERY_STRING'])
0
 
0
       if vars['single']
0
- Line.new(:line => "#{stripdot vars['single']};").save
0
+ Line.new(:line => "\"#{stripdot vars['single']}\";").save
0
       else
0
         Line.new(
0
- :line => "#{stripdot vars['from']} -> #{stripdot vars['to']};").save
0
+ :line => "\"#{stripdot vars['from']}\" -> \"#{stripdot vars['to']}\";").save
0
       end
0
     end
0
   end
...
1
2
3
 
4
5
 
6
7
8
...
1
2
 
3
4
 
5
6
7
8
0
@@ -1,8 +1,8 @@
0
 // ==UserScript==
0
 // @name  WikiMapper
0
-// @namespace http://ben.pixelmachine.org
0
+// @namespace http://code.pixelmachine.org
0
 // @description  makes a graph of your Wikipedia Use
0
-// @include http://en.wikipedia.org/*
0
+// @include http://en.wikipedia.org/wiki/*
0
 // ==/UserScript==
0
 
0
 var title_re = /http:\/\/en.wikipedia.org\/wiki\/(.*)$/

Comments

    No one has commented yet.