DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:perspective

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:perspective [2013-06-07 00:20] 65.243.46.2tips:perspective [2014-04-14 19:39] (current) 65.244.148.222
Line 22: Line 22:
 doku_name = GetNode(fields, "name", "page.display-name").firstChild.data doku_name = GetNode(fields, "name", "page.display-name").firstChild.data
 </code> This will also allow you to search for a full page name with spaces in the search term instead of only being able to find the page by searching for the full name without spaces or one word from the page title. </code> This will also allow you to search for a full page name with spaces in the search term instead of only being able to find the page by searching for the full name without spaces or one word from the page title.
 +
 +  * Found that the BOM messes up the conversion, and then a few more characters in my ten-year-old PerspectiveWiki weren't liked either, so added to ParsePage:<code.py>
 +            s = s.replace(u'\ufeff',"")
 +            s = s.replace(u'\uf06c',"o")
 +            s = s.replace(u'\xad', "<<")
 +            s = s.replace(u'\xae', ">>")
 +            s = s.replace(u'\xa7', " degrees ")
 +            s = s.replace(u'\xe0', "-")
 +            s = s.replace(u'\xef', "i")
 +</code>
  
 **Requirements**:  **Requirements**: 
tips/perspective.1370557216.txt.gz · Last modified: 2013-06-07 00:20 by 65.243.46.2

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki