ConfluenceConverter

Changeset

64:76b4aad9ffac
2013-04-28 Paul Boddie raw files shortlog changelog graph Updated the "to do" list, adding a mod_rewrite hack for limited hosting. Added another notation translation to the Confluence syntax parser.
TO_DO.txt (file) wikiparser.py (file)
     1.1 --- a/TO_DO.txt	Sun Apr 14 21:50:02 2013 +0200
     1.2 +++ b/TO_DO.txt	Sun Apr 28 00:33:59 2013 +0200
     1.3 @@ -1,3 +1,16 @@
     1.4 +DOC/4.42 I installed or upgraded Mailman%2C but now I get the error "NameError global name 'True' is not defined". What can I
     1.5 +
     1.6 +  Page appears to be missing
     1.7 +
     1.8 +DEV/Google Summer of Code 2013 (15564903)
     1.9 +
    1.10 +  <br /> in preformatted regions should be converted to newlines
    1.11 +
    1.12 +DEV/A 5 Minute Guide to Get the Mailman Web UI Running (only for development) (13303877)
    1.13 +
    1.14 +  Preformatted regions on their own line might be converted into proper sections
    1.15 +  This affects both markup types
    1.16 +
    1.17  DEV/MailmanOnLaunchpad (589838)
    1.18  
    1.19    (Preformatted regions are not being formatted
    1.20 @@ -38,6 +51,7 @@
    1.21  
    1.22    (Absorb the default parameter used by the anchor macros in headings)
    1.23    This needs implementing for Confluence syntax
    1.24 +  Anchors also need emitting outside the headings
    1.25  
    1.26  COM/donate to the GNU Mailman project (4816967)
    1.27  
    1.28 @@ -67,9 +81,23 @@
    1.29  
    1.30    BodyContent #112 -> In the Spam Defense section...
    1.31  
    1.32 -Question marks in titles. (mod_rewrite issue)
    1.33 +Question marks in titles (mod_rewrite issue)
    1.34 +
    1.35 +  Nasty hack to work around the problem:
    1.36 +
    1.37 +  RewriteCond %{REQUEST_FILENAME} !-f
    1.38 +  RewriteCond %{REQUEST_FILENAME} !-d
    1.39 +  RewriteRule ^(.*)\?(.*)\?(.*)\?(.*) /moin.cgi/$1\%3f$2\%3f$3\%3f$4 [PT,L,QSA]
    1.40 +
    1.41 +  RewriteCond %{REQUEST_FILENAME} !-f
    1.42 +  RewriteCond %{REQUEST_FILENAME} !-d
    1.43 +  RewriteRule ^(.*)\?(.*)\?(.*) /moin.cgi/$1\%3f$2\%3f$3 [PT,L,QSA]
    1.44 +
    1.45 +  RewriteCond %{REQUEST_FILENAME} !-f
    1.46 +  RewriteCond %{REQUEST_FILENAME} !-d
    1.47 +  RewriteRule ^(.*)\?(.*) /moin.cgi/$1\%3f$2 [PT,L,QSA]
    1.48  
    1.49  &mdash; and &ndash; in XML format. (used htmlentitydefs)
    1.50  
    1.51 -Child, parent, ancestor page relationships support. Maybe implement this in
    1.52 -lists in special regions, or just insert lists of child pages into the content.
    1.53 +(Child, parent, ancestor page relationships support. Maybe implement this in
    1.54 +lists in special regions, or just insert lists of child pages into the content.)
     2.1 --- a/wikiparser.py	Sun Apr 14 21:50:02 2013 +0200
     2.2 +++ b/wikiparser.py	Sun Apr 28 00:33:59 2013 +0200
     2.3 @@ -215,6 +215,7 @@
     2.4      (r"\-", "-"),
     2.5      (r"\\""\n", "<<BR>>"),
     2.6      (r"\\ ", "<<BR>>"),
     2.7 +    (r"\~", "~"),
     2.8      ]
     2.9  
    2.10  # Translation helpers.