Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Better regex for media tags an changed readme file #4

Merged
merged 4 commits into from

2 participants

@escalate

Better regex for media tags an changed readme file

@tetsuo13
Owner

Does the update to the shell script break it for MediaWiki 1.16.1 and DokuWiki 2011-05-25a?

@escalate

No it doesn't. So maybe it's better to write all testet versions in readme file.

@tetsuo13
Owner

Yeah, that would be best for others interested in using the script.

@escalate

Changed it to a list in the README

@tetsuo13 tetsuo13 merged commit d7f3e68 into tetsuo13:master
@tetsuo13
Owner

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 23, 2012
  1. @escalate

    Update README.md

    escalate authored
Commits on Mar 27, 2012
  1. @escalate

    Update mw2dw-conv_sed.sh

    escalate authored
Commits on Apr 5, 2012
  1. @escalate

    Update README.md

    escalate authored
  2. @escalate

    Update README.md

    escalate authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 6 deletions.
  1. +6 −5 README.md
  2. +1 −1  mw2dw-conv_sed.sh
View
11 README.md
@@ -3,11 +3,13 @@ MediaWiki2DokuWiki
Import MediaWiki into DokuWiki. Will also translate from MediaWiki syntax to
DokuWiki as best as it can (not all modifiers from MediaWiki are available in
-DokuWiki).
+DokuWiki). It processes pages and images/files.
-Tested against MediaWiki 1.16.1 and DokuWiki 2011-05-25a "Rincewind".
+Tested against:
+
+* MediaWiki 1.17.1 and DokuWiki 2012-01-25 "Angua".
+* MediaWiki 1.16.1 and DokuWiki 2011-05-25a "Rincewind"
-Project is unfinished. Only processes pages and not images.
Requirements
------------
@@ -15,8 +17,7 @@ Requirements
* Physical access to the MediaWiki and DokuWiki install on server.
* Read access to MediaWiki's LocalSettings.php script.
* PHP 5.1.0 or greater.
-* PDO extension with MySQL/PostgreSQL binding -- whatever DB type MediaWiki is
-using.
+* PDO extension with MySQL/PostgreSQL binding -- whatever DB type MediaWiki is using.
Usage
-----
View
2  mw2dw-conv_sed.sh
@@ -173,7 +173,7 @@ cat mediawiki10 \
# Images / Files
cat mediawiki11 \
- | sed -r "s/\[\[([mM][eE][dD][iI][aA]|[bB][iI][lL][dD]|[iI][mM][aA][gG][eE]|[dD][aA][tT][eE][iI]|[fF][iI][lL][eE]):([^\|\S]*)\|?\S*\]\]/{{mediawiki:\2}}/g" \
+ | sed -r "s/\[\[([mM][eE][dD][iI][aA]|[mM][eE][dD][iI][uU][mM]|[bB][iI][lL][dD]|[iI][mM][aA][gG][eE]|[dD][aA][tT][eE][iI]|[fF][iI][lL][eE]):([^\|\S]*)\|?\S*\]\]/{{mediawiki:\2}}/g" \
> mediawiki12
cat mediawiki11 > dokuwiki
Something went wrong with that request. Please try again.