Parsers

Requests

If you are not familiar with Python and/or the MoinMoin code base, but have a need or an idea for a parser, this is the place to ask for it. Someone might find it useful, too, and implement it.

Dot Parser

There's a dot processor for older MoinMoin, and AFIK that functionality is gone since processors are no longer supported. So I still have pages with dot diagrams that no longer draw. Is there a way to convert a processor into a parser?

HTML Parser

I'm trying to work out how to parse HTML source code, basically colourising it and adding line numbers as happens with parser/PHP. The HTML parsers on the market at the moment seem to actually parse the HTML and return to the browser. Is there already a parser that does what I'm after?

BTW - I've had a quick go at hacking together something based on Eduard Baun's PHP parser to do the job - any advice on this / whether this is the right way to work here would be appreciated. Thanks!

MySQL Parser

As per the HTML parser request above I am also looking to parse MySQL snippets in my documentation wiki. Any advice would be appreciated, thanks!

Table header

Does anybody know how to use "<=>" at a row to make it a header row (bold tex, gray background)? e.g.

Name

Last name

Joe

Black

PHP Parser

I tried to use the PHP parser listed above under version 1.3 and received an error that there is a syntax error on line 22. I do not know enough about python to fix it. Can anyone tell me what I need to do or update the php parser?

If it is that line starting with reserved_words please look if it is alligned to the same level as the lines before, it looks for me there are to much spaces before this var.

I checked it out, I can not seem to fix the syntax in any way that makes it work. I'm not familar with python, but I even attempted to re-write it without sucess. I simply ended up moving the line the sytax error was on.

Have a look at this PHP parser

Thank you very much, that worked perfectly!


I've tried getting Eduard Baun's PHP parser to work, but haven't had any luck. I copied the code on the parser page into ColorizedPhp.py and copied it into data/plugin/parser. Using a code display region as described in HelpOnParsers gave me a "No module named ParserBase" error. ColorizedPhp.py was not compiled, either. Using #FORMAT made ColorizedPhp.py compile, but it just displays the php code itself. See http://lascrucesacademy.org/wiki.cgi/TestPhp. Any help would be appreciated.

The location of ParserBase has changed in more recent versions. Change the import line in the PHP.py to MoinMoin.parser._ParserBase and it should work.

The PHP parser has been updated to work with newer versions, so if anyone's reading this it should now hopefully be a non-issue

Align Parser

Background: On FeatureRequests/BetterControlOverIncludedImages I have started a discussion with ReimarBauer, that it would be fine to have some better ways to align images in Moin. Reimar showed me, that you can do some alignment already by using tables and html-like commands. We both agreed, that this is poorly documented in Moin and that it is maybe the time to have a new help file like HelpOnImages. I have already started to collect code samples for that help file. Some code worked fine, others didn't. E.g. I could not center images on a page. Then I came up with the idea, to have some new marco ImageAlign so that the user gets rid of all that syntax stuff. Reimar now has come up with the idea, that I would be better, to solve that by introducing a new align parser.

Request: With the new align parser at hand, it should be easily possibel to align different objects on a wikipage like images, imagelinks, embeded objects, gallery2 objects, image maps and so on.

{ { {
#!Align center
[[ImageLink(image.png)]]
} } }

When aligning things, you usually want to do the follwing

Discussion: Solving alignment problems by introducing a new parser is a great idea. Maybe for the unexperienced user, this coding is too complicated. Compare  = Heading 1 =  to the code above with the Shebang statment and so on. Other wikis for example do image align by the code as follows.

To include: {{image.png}}
To resize: {{image.png?50*50}}
To add a tooltip {{image.png |Tooltip text}}
To align left {{image.png }}
To align right {{ image.png}}
To align center {{ image.png }}
Float align is not supported

For more on that see already /Frame by ReimarBauer, who is faster in implementing a first prototyp than me in writing this request! -- OliverSiemoneit 2006-08-12 10:03:44

Parser Priorities?

However, I need the DeadlineMarker to be executed _before_ Sorter.

embed parsers?

Perl parser

Markdown parser

Textile parser

I am with ThomasWaldmann when he complains above about intermingled HTML. Plus, Textile http://www.textism.com/tools/textile/index.php seems to me a better syntax than Markdown. In particular, I find the _emphasis_ and *strong* rules much more adequate than either Moin's or Markdown's (honestly, the single quotes of c2's original syntax are a usability disaster). And it has table support. Here the Python parser http://dom.eav.free.fr. Somebody made it work with Moin 1.3, but on grepping Moin's source code I see no support for Textile. -- AlvaroTejero 2006-08-10 09:15:28

Copy & Paste from Outlook, Word, Excel, etc

VBcode/BBcode

hide/show elements

I'm not too familiar with the MoinMoin codebase, but it sounds to me like what you want (e.g. what most modern editors call folding) would be achived with an Action. Can anyone confirm this? I have partially implemented this, please see my homepage -- JohannesBerg 2004-03-09 11:00:01

new colorizer

Mealmaster Recipes

It would be nice if one could import a recipe in Mealmaster format into a MoinMoin wiki.

Google Maps ?

Hi, ist it possbile to integrate Google Maps into Moin? -- ThiloPfennig 2006-06-01 21:44:53

Regular Expression Colourizer?

It would be nice to have a regular expression coulourizer for articles about this topic. -- LedgerBob

BASH/SH

Anybody here use/doc (not-so) simple BASH or sh shell script ? -- PatrickCaoHuuthien

T/SQL

I am in desperate need of a T/SQL parser to display syntax colors in a wiki page. I'm sure that I'm not the only one out there that would find this useful. Thanks.

PowerShell

I am in need of a PowerShell parser to display syntax colors in a wiki page. I'm sure that I'm not the only one out there that would find this useful. Thanks.

MoinMoin: ParserMarket/ParserRequests (last edited 2009-07-10 20:19:29 by JasonFruit)