changeset 2609:7aac9e2ecb3a

1.6 converter: more quote triggering chars, document more problem cases
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 05 Aug 2007 23:05:13 +0200
parents 3ff3beef1edf
children ffe8c2d9a4ba
files MoinMoin/script/migration/_conv160_wiki.py MoinMoin/script/migration/_tests/test_conv160_wiki.py
diffstat 2 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160_wiki.py	Sun Aug 05 19:19:49 2007 +0200
+++ b/MoinMoin/script/migration/_conv160_wiki.py	Sun Aug 05 23:05:13 2007 +0200
@@ -110,7 +110,7 @@
 
     # LINKS ------------------------------------------------------------------
     def _intelli_quote(self, name):
-        quote_triggers = ' "()' # XXX add more
+        quote_triggers = u''' "\'}]|:,.()?!''' # see also wiki parser
         quote_it = [True for c in quote_triggers if c in name]
         if quote_it:
             return wikiutil.quoteName(name)
--- a/MoinMoin/script/migration/_tests/test_conv160_wiki.py	Sun Aug 05 19:19:49 2007 +0200
+++ b/MoinMoin/script/migration/_tests/test_conv160_wiki.py	Sun Aug 05 23:05:13 2007 +0200
@@ -16,6 +16,21 @@
     * converter does not touch macro arguments, they will have to get handled
       manually
 
+Remaining problems:
+
+ [wiki:/RecommendPage]
+ [wiki:/farms farms]
+
+ [wiki:MacroMarket/EmbedObject EO]
+ [wiki:SeaPig/BrianDorsey]            ambiguity!!! can be resolved with some interwiki map lookup
+                                      and transformed to wiki:SeaPig:BrianDorsey if SeaPig is in 
+                                      interwiki map, but no page SeaPig exists.
+
+ [:MeatBall:CleanLinking meatball-wiki: clean linking]
+ [:Infrastructure:Infrastructure] optimize to ["Infrastructure"]
+ [attachment:My%20Attachment.jpg:it works]
+ [wiki:LinuxWiki: LinuxWiki.de] 
+
     @copyright: 2007 MoinMoin:ThomasWaldmann
     @license: GNU GPL, see COPYING for details.
 """