"; ?> Dokuwiki Khaganat Tutorial to RyzomForge Mediawiki Helper

Dokuwiki Khaganat Tutorial to RyzomForge Mediawiki Helper

This is a php script to convert Docuwiki text to the Mediawiki syntax. This script has been made to help the ryzomforge project and transfert somes tuto from the khaganat project to the ryzomforge wiki. The script is based on the "mediawiki to docuwiki" converter from Johannes Buchner.
Dokuwiki Khaganat Tutorial to RyzomForge Mediawiki Helper, Dokuwiki Khaganat Tutorial to RyzomForge Mediawiki Helper, converting Wiki Text from Docuwiki to Mediawiki.
'

${1}', '([^=])=[ ]*$'=>'${1}

', '^[ ]*==([^=])'=>'

${1}', '([^=])==[ ]*$'=>'${1}

', '^[ ]*===([^=])'=>'

${1}', '([^=])===[ ]*$'=>'${1}

', '^[ ]*====([^=])'=>'

${1}', '([^=])====[ ]*$'=>'${1}

', '^[ ]*=====([^=])'=>'
${1}', '([^=])=====[ ]*$'=>'${1}
', '^[ ]*======([^=])'=>'
${1}', '([^=])======[ ]*$'=>'${1}
', '<\/?h1>'=>'======', '<\/?h2>'=>'=====', '<\/?h3>'=>'====', '<\/?h4>'=>'===', '<\/?h5>'=>'==', '<\/?h6>'=>'=', '^ \* '=> '***** ' , '^ \* '=>'**** ', '^ \* '=>'*** ', '^ \* '=>'** ', '^ \* '=>'* ', '^ \- '=>'#### ', '^ \- '=>'### ', '^ \- '=>'## ', '^ \- '=>'# ', '(.)\*\*'=>'${1}\'\'\'', '\/\/'=>'\'\'', ''=>'
',
        '<\/code>'=>"<\/pre>"

    );


    $_POST['docuwiki'] = stripslashes($_POST['docuwiki']);
    //echo "\"'" . $_POST['docuwiki'] . "\"'" ;
    $mediawiki = split("\r\n",stripslashes($_POST['docuwiki']));

    //print_r($mediawiki) ;

    if(!empty($mediawiki)) foreach($replacements as $k=>$v){
        for($i=0;$i

Docuwiki:

Mediawiki:

Dokuwiki Khaganat Tutorial to RyzomForge Mediawiki Helper, Dokuwiki Khaganat Tutorial to RyzomForge Mediawiki Helper, converting Wiki Text from Docuwiki to Mediawiki.