← Back to team overview

ubforums2ubwiki team mailing list archive

Re: Feedback code markdown from non moin to moin

 

Hannie: Try the script I wrote. I think it either changed or fixed all the issues you raised.

Try converting a few pages, if you find something for me to improve / change pass it on.

My script has a few "sanity checks" and some (primitive) error handling. I figure you all are not going to try to crash it *too* hard.



----- Original Message -----
From: "Hannie Dumoleyn" <lafeber-dumoleyn2@xxxxxxxxx>
To: ubforums2ubwiki@xxxxxxxxxxxxxxxxxxx
Sent: Monday, May 7, 2012 1:54:59 AM
Subject: [Ubforums2ubwiki] Feedback code markdown from non moin to moin

After having played with the code I come to the following conclusions:
1. Part 1: Installing dependencies > sudo apt-get --yes install dialog 
markdown libhtml-wikiconverter-moinmoin-perl
This is the only line that matters. When running the script it should be 
checked if these dependencies have already been installed. If so, skip 
this command.
I have typed this command in the terminal manually.

Part 2: Making a sandbox. This works fine with one exception: when you 
have Ubuntu installed in another language, the folder name /Desktop is 
translated. On my pc it is called /Bureaublad.

Part 3: Changing the code
This works fine, although I am not sure what it does exactly (what 
information is gathered?).

Part 4:
Making Backup
I think it works, but most part of the code is comment (#). I suppose 
the source code is translated to MoinMoin here, html2wiki --dialect 
MoinMoin $yourfile > $yourfile.new.

I haven't tested the last action explained in the video (creating a wiki 
page and pasting the translated source code there) because the example, 
kdetut.txt, has already been transferred to the wiki. I intend to test 
it with another thread/tutorial from the forums.

It also is very important to make the script executable with the command 
chmod +x.

Regards,
Hannie

-- 
Mailing list: https://launchpad.net/~ubforums2ubwiki
Post to     : ubforums2ubwiki@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ubforums2ubwiki
More help   : https://help.launchpad.net/ListHelp


Follow ups

References