2008-10-19T05:40:11  <dreimark> moin
2008-10-19T05:40:23  * dreimark greetings from arizona
2008-10-19T06:20:22  <dreimark> TheSheep: http://moinmo.in/ReimarBauer?action=AttachFile&do=view&target=TheSheep1.png
2008-10-19T06:20:47  <dreimark> found in joshua tree NP
2008-10-19T08:16:45  <TheSheep> dreimark: :)
2008-10-19T14:53:53  <zen_> Hi folks
2008-10-19T14:54:13  <zen_> I'm looking for help with moin markup
2008-10-19T15:03:40  <TheSheep> http://moinmo.in/HelpOnEditing
2008-10-19T15:03:57  <TheSheep> (or better, the same page on your wiki)
2008-10-19T15:35:30  <zen_> ;)
2008-10-19T15:35:32  <zen_> thanks
2008-10-19T15:36:04  <zen_> i know the markup syntax
2008-10-19T15:36:14  <zen_> i'm looking for dev help
2008-10-19T15:36:25  <zen_> may i explain what im trying to achive
2008-10-19T15:36:43  <zen_> in short, im looking for moin -> (x)html converter
2008-10-19T15:37:05  <zen_> i tried to extract code responsible for html generation from moin code
2008-10-19T15:37:16  <zen_> but it seems to be complicated job
2008-10-19T15:37:41  <zen_> i also found some parsers/converters, but they don't seem to apply to moin syntax
2008-10-19T15:38:23  <zen_> your creole2html among them, by the way (it's giving me NotImplemented error on any markup i try to parse)
2008-10-19T15:39:33  <zen_> Im working on some translation project, where text is maintained on moin wiki (ubuntu wiki, btw). but Im publishing some stuff on internet portals, ad it would be much easier for me to generate that automatically from wiki body
2008-10-19T15:48:19  <TheSheep> zen_: for the creole2html, you need to provide your own functions for handling links
2008-10-19T15:48:40  <TheSheep> zen_: as the parser itself cannot do it without some additional knowledge from the wiki
2008-10-19T15:48:56  <TheSheep> zen_: as for moin markup, it comes in two parts, parser and fromatter
2008-10-19T15:48:59  <TheSheep> formatter
2008-10-19T15:49:38  <TheSheep> zen_: you have to create a request object first (probably with a cli request), add a formatter to it and then call the parser with it
2008-10-19T16:00:34  <zen_> thanks, that's what I was expecting
2008-10-19T16:00:50  <zen_> but using moin function/classes is a bit "thik"
2008-10-19T16:00:53  <zen_> thick
2008-10-19T16:01:27  <zen_> I'll try to implement link handling, as we don't use wiki markup for links
2008-10-19T16:01:52  <zen_> Traceback (most recent call last):
2008-10-19T16:01:52  <zen_>   File "./creole2html.py", line 189, in <module>
2008-10-19T16:01:52  <zen_>     sys.stdout.write(HtmlEmitter(document).emit().encode('utf-8', 'ignore'))
2008-10-19T16:01:52  <zen_>   File "./creole2html.py", line 184, in emit
2008-10-19T16:01:52  <zen_>     return self.emit_node(self.root)
2008-10-19T16:01:53  <zen_>   File "./creole2html.py", line 179, in emit_node
2008-10-19T16:01:55  <zen_>     return emit(node)
2008-10-19T16:01:57  <zen_>   File "./creole2html.py", line 82, in document_emit
2008-10-19T16:01:59  <zen_>     return self.emit_children(node)
2008-10-19T16:02:01  <zen_>   File "./creole2html.py", line 173, in emit_children
2008-10-19T16:02:05  <zen_>     return u''.join([self.emit_node(child) for child in node.children])
2008-10-19T16:02:07  <zen_>   File "./creole2html.py", line 179, in emit_node
2008-10-19T16:02:09  <zen_>     return emit(node)
2008-10-19T16:02:11  <zen_>   File "./creole2html.py", line 91, in paragraph_emit
2008-10-19T16:02:13  <zen_>     return u'<p>%s</p>\n' % self.emit_children(node)
2008-10-19T16:02:15  <zen_>   File "./creole2html.py", line 173, in emit_children
2008-10-19T16:02:17  <zen_>     return u''.join([self.emit_node(child) for child in node.children])
2008-10-19T16:02:19  <zen_>   File "./creole2html.py", line 179, in emit_node
2008-10-19T16:02:21  <zen_>     return emit(node)
2008-10-19T16:02:23  <zen_>   File "./creole2html.py", line 157, in macro_emit
2008-10-19T16:02:25  <zen_>     raise NotImplementedError
2008-10-19T16:02:27  <zen_> that's what is your code throwing
2008-10-19T16:02:29  <zen_> im just wondering why it even reaches macro_emit, while we don't use macros?
2008-10-19T16:55:37  <dreimark> moin
2008-10-19T18:56:53  <zen_> ok, sorry, went too far ;)
2008-10-19T18:57:26  <zen_> any idea on thinner approach with moinmoin code from cli?
2008-10-19T19:04:32  <zen_> got it right, thanks for help

MoinMoin: MoinMoinChat/Logs/moin-dev/2008-10-19 (last edited 2008-10-19 03:45:02 by IrcLogImporter)