From: Fotis G. <ge...@ce...> - 2011-02-26 13:13:23
|
Hello all, first, thanks for wiki2beamer; it really appeals to minimalists of my type. I was recently able to accomplish a fairly non-trivial presentation thanks to wiki2beamer: http://www.linksceem.eu/joomla/index.php?option=com_content&view=article&id=150&Itemid=136 In slide 26 you may notice a particular diagram, actually that was made in ascii, using a nifty tool called ditaa: http://ditaa.org (give it a try, seeing is believing) I have also seen others, using eg. <dot> language (for graph description), from inside tools like twiki... perhaps that could also be possible within w2b. In short: Could it be perhaps possible to combine all these ideas, so that we can create complete presentation descriptions from within some w2b markup language? Or, employ some kind of generic extension framework to do the hacking ourselves. Furthermore, could perhaps one standard of the following be adopted? http://en.wikipedia.org/wiki/Lightweight_markup_languages (just to make it clear: I absolutely adore the current w2b markup) thank you in advance for any answer, Fotis |
From: Kai D. <ma...@cl...> - 2011-02-26 17:43:24
|
On Sat, 2011-02-26 at 15:13 +0200, Fotis Georgatos wrote: > Hello all, > > first, > thanks for wiki2beamer; it really appeals to minimalists of my type. :) ty > I was recently able to accomplish a fairly non-trivial presentation > thanks to wiki2beamer: > http://www.linksceem.eu/joomla/index.php?option=com_content&view=article&id=150&Itemid=136 > In slide 26 you may notice a particular diagram, actually that was > made in ascii, using a nifty tool called ditaa: http://ditaa.org > (give it a try, seeing is believing) > I have also seen others, using eg. <dot> language (for graph description), > from inside tools like twiki... perhaps that could also be possible within w2b. Graphics is one of the weak points of w2b/LaTeX. I took a look at ditaa and yes - that's really impressive stuff, but it's written in Java. Now, how could one or the other graphics language be integrated into w2b? 1. We'd need a parser that would be able to jump back and forth between plain LaTeX, wiki2beamer and ditaa (or graphics language X). 2. Additionally to the w2b->LaTeX compiler, we'd need a ditaa->LaTeX compiler (ditaa->TikZ?). Given a parser that could parse ditaa and provide some kind of an descriptive object structure or AST it should be fairly easy to find a way to convert that to TikZ. As val already explained, TikZ is a really powerful and high-quality graphics language on top of LaTeX that can already be used from w2b, but is fairly expressive (seeing is believing: http://www.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf ). Having something like ditaa in w2b - that would be really cool. Now ... all we need is a ditaa parser in Python.... ah, and while we are at it, a real w2b/LaTeX parser... so much to code, so little time... but go ahead, make a branch ... I didn't look at the ditaa Java code. Maybe it's not so complicated after all. If you can come up with a ditaa parser in python (which emits a suitable object/AST representation), I'll promise to integrate a <[ditaa] [ditaa]> tag into the existing wiki2beamer code and start working on TikZ output! :) |
From: Kai D. <ma...@cl...> - 2011-02-26 19:24:27
|
btw, I just found aafigure -- python, ascii-art 2 svg: http://docutils.sourceforge.net/sandbox/aafigure/ but I liked the input and output of ditaa more |
From: Fotis G. <ge...@ce...> - 2011-02-26 21:11:12
|
Hi, I'll try to address Valentin's questions in this response, too. TikZ I didn't know before and it is indeed impressive. +1 to consider as a case. >> I have also seen others, using eg. <dot> language (for graph description), >> from inside tools like twiki... perhaps that could also be possible within w2b. For <dot> language, I think an example twiki plugin would be good demo: https://twiki.cern.ch/twiki/bin/view/TWiki/HowtoDirectedGraphs > Graphics is one of the weak points of w2b/LaTeX. I took a look at ditaa > and yes - that's really impressive stuff, but it's written in Java. Now, > how could one or the other graphics language be integrated into w2b? > > 1. We'd need a parser that would be able to jump back and forth between > plain LaTeX, wiki2beamer and ditaa (or graphics language X). > > 2. Additionally to the w2b->LaTeX compiler, we'd need a ditaa->LaTeX > compiler (ditaa->TikZ?). Actually, I have something simpler in mind - and more generic maybe: Just make hooks in the w2b language for calling an external parser. eg. For ditaa it may be either a local install or, a web call to render the image (via ditaa.org website), then include the result inside w2b. eg. It should be easy to include the monospaced output of a figlet parser: http://www.network-science.de/ascii/ [...] > way to convert that to TikZ. As val already explained, TikZ is a really > powerful and high-quality graphics language on top of LaTeX that can > already be used from w2b, but is fairly expressive (seeing is believing: [...] > Now ... all we need is a ditaa parser in Python.... I'd say, let's keep things simple by using orthogonality, ie. incorporating but not duplicating functionality which exists elsewhere. It may turn out, that eg. for my case the simplest solution would be to have a kind of twiki/drupal plugin, which upon pressing a ".pdf" button automatically parses the source and spawns the tools as needed (w2b being one of them, perhaps as last one to synthesize all items). Before I vanish back in the hackspace, I'd like to ask you this: * which is the wiki language preferred by w2b? is it derived from docuwiki? cheers, Fotis |
From: Kai D. <ma...@cl...> - 2011-02-27 08:53:18
|
On Sat, 2011-02-26 at 23:11 +0200, Fotis Georgatos wrote: > > 1. We'd need a parser that would be able to jump back and forth between > > plain LaTeX, wiki2beamer and ditaa (or graphics language X). > > > > 2. Additionally to the w2b->LaTeX compiler, we'd need a ditaa->LaTeX > > compiler (ditaa->TikZ?). > > Actually, I have something simpler in mind - and more generic maybe: > > Just make hooks in the w2b language for calling an external parser. > eg. For ditaa it may be either a local install or, a web call to render > the image (via ditaa.org website), then include the result inside w2b. One of the advantages of w2b is that it's very portable python. It doesn't even need to be installed. You can just put the python script next to your slides and create a Makefile, a .bat or a .sh file and start working. If you do that inside a SCM/VCS you don't need to bother you colleagues to install anything more then the python runtime. This works on all platforms. Adding a Java dependecy to w2b would destroy that simplicity. It may be ok for a big CMS that has tons of dependencies anyway but with a java dependency we will not get packaged by maintainers in the linux world anymore (just too much trouble) let alone be used by users. And relying on the internet as a facility in a tool is erm ... I'll not go there ;) But I do like the idea of a graphics->TikZ facility in w2b. And I didn't know that parsing ascii art in this way is feasible. > Before I vanish back in the hackspace, I'd like to ask you this: > * which is the wiki language preferred by w2b? is it derived from docuwiki? I don't know. It's something that Michael, the former inventor, came up with and has evolved but not changed since. |
From: Valentin H. <val...@gm...> - 2011-02-26 14:40:34
|
Hi Fotis, * Fotis Georgatos <ge...@ce...> [110226]: > first, > thanks for wiki2beamer; it really appeals to minimalists of my type. Cheers! > I was recently able to accomplish a fairly non-trivial presentation > thanks to wiki2beamer: > http://www.linksceem.eu/joomla/index.php?option=com_content&view=article&id=150&Itemid=136 > In slide 26 you may notice a particular diagram, actually that was > made in ascii, using a nifty tool called ditaa: http://ditaa.org > (give it a try, seeing is believing) Nice, also, nice topic will have to read the slides, when i have some spare time. > I have also seen others, using eg. <dot> language (for graph description), > from inside tools like twiki... perhaps that could also be possible within w2b. An alternative might also be tikz: http://www.texample.net/tikz/examples/ You can use this now already since w2b can also include LaTeX syntax--obviously the disadvantage is that tikz is latex markup, so its quite heavyweight. > In short: Could it be perhaps possible to combine all these ideas, so > that we can create complete presentation descriptions from within some > w2b markup language? Or, employ some kind of generic extension > framework to do the hacking ourselves. Not sure what you mean by presentation system? You mean graphics? If you do mean graphics, thats a whole different story. Graphics, and their specification in a markup langauge is a whole different game of ball, to just a few bulletpoints. Graphics are, or can be, incredibly complex. If you have some ideas you wanna prototype, just create a public git developer repo, make a branch, hack away, and let us know. Its open-source, everything is possible! > Furthermore, could perhaps one standard of the following be adopted? > http://en.wikipedia.org/wiki/Lightweight_markup_languages > (just to make it clear: I absolutely adore the current w2b markup) You mean for the 'presentation system' you are proposing, or for w2b in general? best V- |