Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moinmoin reader #185

Open
jgm opened this issue Jun 10, 2011 · 18 comments
Open

moinmoin reader #185

jgm opened this issue Jun 10, 2011 · 18 comments

Comments

@jgm
Copy link
Owner

jgm commented Jun 10, 2011

Hello!

we use the trac wiki for our documentation. It would be helpful
to convert the wiki pages to docbook. How could this be archived?

I know I can write rst in trac, but all our pages are already written
in the moinmoin syntax.

best regards,

sven



Google Code Info:
Issue #: 170
Author: sven.ste...@gmail.com
Created On: 2009-10-19T08:09:43.000Z
Closed On: 
@ghost ghost assigned jgm Jun 10, 2011
@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Simon Michael simon@joyful.com has started work on a moinmoin reader. I'm not sure
how far he has gotten, but you might contact him. I'm sure he could use some help,
as well.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2009-10-19T22:25:03.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

I need a moinmoin reader as well for exactly the same reason, to convert trac wiki content into other formats. I just emailed Simon to ask what the status is of his work. Keep your fingers crossed.

Google Code Info:
Author: gregb...@gmail.com
Created On: 2010-11-02T00:41:46.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

I heard back from Simon. He has graciously released his MoinMoin.hs implementation, see attachments. Now we simply need this to be integrated into the main release and tested a bit more. He indicated that it was ALPHA code, so use at your own risk. :)

-greg

Google Code Info:
Author: gregb...@gmail.com
Created On: 2010-11-02T18:08:25.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

History is here: http://joyful.com/darcsweb/darcsweb.cgi?r=pandoc-moin
The reader converted wiki.darcs.net with only minor manual fixups. It does not convert 100% of MoinMoin markup (eg macros), and does not include a full test suite.

Google Code Info:
Author: simon@joyful.com
Created On: 2010-11-02T21:44:06.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

I've added a moinmoin branch to the source on github.

This includes Simon's reader, with some minimal modifications to get it to compile against the latest pandoc. This branch allows you to specify 'moinmoin' as reader.

It's not yet quite complete enough to include in a release, and it doesn't include a test suite, which we'll need. (This might be derived from something like http://moinmo.in/HelpOnMoinWikiSyntax.) But at least you can compile the code and use what's there.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2010-11-03T23:50:44.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Thanks! I'm not a Haskell hacker so I'm not going to be able to do much with this to help get it into the master branch. I will try to use it as it is now and let you know how it goes. :)

Google Code Info:
Author: gregb...@gmail.com
Created On: 2010-11-03T23:55:44.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Greg, would you be able to share your steps for others who will take anything they can get on the MoinMoin->markdown (my case) path? I have a MoinMoin wiki that only uses basic syntax (mostly headers, lists, and preformatted blocks) that I'd like to migrate to markdown, or some other more popular/modern syntax. I'm also not a Haskell hacker so I'd need instructions that don't involve writing or modifying Haskell code (python or shell are doable though)

Google Code Info:
Author: mrpeterl...@gmail.com
Created On: 2011-01-06T06:16:13.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Peter, I just today corresponded with John MacFarlane about MoinMoin. He's added in all my changes into the main Git repository in the "moinmoin" branch. Check that out and see if it works for your case. I'm not a Haskell hacker, but I am motivated to get this working. I'm using it at work for a critical project, so it has to work. If there is someone else out there with more Haskell-mojo please take up this branch and finish it so John can merge it onto the main branch.

Google Code Info:
Author: gregb...@gmail.com
Created On: 2011-01-13T20:22:42.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

OK, I'll try to schedule a time to get that git branch of pandoc running and run some moinmoin data through it and look at the results.

Google Code Info:
Author: mrpeterl...@gmail.com
Created On: 2011-01-13T20:31:53.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Seems to not build for me.

[14 of 36] Compiling Text.Pandoc.Readers.MoinMoin ( src/Text/Pandoc/Readers/MoinMoin.hs, dist/build/Text/Pandoc/Readers/MoinMoin.o )

src/Text/Pandoc/Readers/MoinMoin.hs:565:71:
Not in scope: data constructor `Underline'

Google Code Info:
Author: mrpeterl...@gmail.com
Created On: 2011-01-15T03:10:36.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

Greg's latest changes broke the build. I have reverted them.

Try it now.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2011-01-15T03:24:39.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

OK, I built it now. Thanks for the quick fix. Running some test moinmoin input pages with markdown output. Here are some issues I've seen so far. I'm using this as a reference. http://moinmo.in/HelpOnMoinWikiSyntax

  • It seems not to handle nested lists like this. Both bulleted and numbered lists have this problem. The list gets flattened.
    • Item A
    • Subitem A1
  • it seems to not handle indented text, which MoinMoin considers a blockquote
  • It treats !WikiName as a hyperlink instead of plain text. That is one of several syntaxes in MoinMoin do disable treating a WikiName as a hyperlink

The markdown output does bulleted lists with "- blah" with those extra intermediate spaces which is not my personal preference but it's fine. The other problems I found I think are just that markdown does not provide as many features as moinmoin so they just get left alone or escaped, which is fine.

Google Code Info:
Author: mrpeterl...@gmail.com
Created On: 2011-01-15T03:51:56.000Z

@jgm
Copy link
Owner Author

jgm commented Jun 10, 2011

It seems that this moinmoin reader was based on the markdown reader. It would have been better to start with the RST reader, since RST seems much closer to moinmoin: in particular, in RST, indented blocks are blockquotes, and link nesting is caused by any indentation, as opposed to four spaces in markdown.

Google Code Info:
Author: fiddloso...@gmail.com
Created On: 2011-01-15T06:23:28.000Z

@jgm
Copy link
Owner Author

jgm commented Jul 14, 2013

See #19 for a workaround via moin2rst.

@malcook
Copy link

malcook commented Oct 23, 2014

is there any chance of getting moinmoin2 changes resurrected and applied to main? I've succeeded installing haskell and building pandoc, but can't do the same for the old stale branch and I'm tryig to get moinmoin support for a moinmoin migration. Would be much obliged!

@jgm
Copy link
Owner Author

jgm commented Oct 23, 2014

Sorry, the code is just too ancient (and it was never in great shape to
begin with). One would do better to start over, using the mediawiki
reader as a starting point.

+++ Malcolm Cook [Oct 22 14 18:34 ]:

is there any chance of getting moinmoin2 changes resurrected and applied to main? I've succeeded installing haskell and building pandoc, but can't do the same for the old stale branch and I'm tryig to get moinmoin support for a moinmoin migration. Would be much obliged!


Reply to this email directly or view it on GitHub:
#185 (comment)

@arademaker
Copy link

Sorry, but what is the status of this issue? If I understood right, the code needs to be started from scratch, right? I am migrating a MoinMoin wiki to GitHub wiki using https://github.com/mgaitan/moin2git. It uses https://github.com/dwf/moin2rst to convert MoinMoin syntax to reStructuredText but it does not deal with tables... Trying to decide what is my alternatives, I have ~300 tables to convert..

@jugmac00
Copy link

@arademaker Thanks for pointing out some alternatives until pandoc has first-class support for MoinMoin syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants