<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 3:14 PM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<span class=""><br>
2014-09-25 12:22 GMT+02:00 Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>>:<br>
>> here is the conversation. About the examples, we can add horizontal scroll<br>
>> bar, example is here:<br>
>> <a href="http://fatra.cnr.ncsu.edu/temporal-grass-workshop/#time-series-registration-and-visualization" target="_blank">http://fatra.cnr.ncsu.edu/temporal-grass-workshop/#time-series-registration-and-visualization</a><br>
><br>
> the GUI and Bash tabs are also cool... Martin<br>
<br>
</span>would be possible to intergrated into GRASS manual? Martin<br>
<div class=""><div class="h5"><br></div></div></blockquote><div>I surely would. But there are some considerations and work involved. Milestone would be 7.1. Tabs in the workshop page are in fact two things (each with 3 subitems).<br><br></div><div>1 A<br>JavaScript and CSS machinery to create the tabs and do the switching. You have to have JS for this. It is better to use jQuery to make things easier.<br><br></div><div>1 B<br>How the HTML should look like. I'm now using<br><br><pre><br><code class="gui"><br>Menu: Temporal -> GUI tools -> Timeline tool<br>Select dataset tempmean<br></code><br><code class="bash"><br>g.gui.timeline tempmean<br></code><br></pre><br><br>But it is not ideal in all cases. For the tabs, some other elements are actually added (using JS, jQuery in particular).<br><br></div><div>1 C<br></div><div>The syntax can/should be highlighted. Now I'm using highlight.js, so I have simple HTML and coloring is done on the fly. Maybe for GRASS, it would be better to use pygments or something desktop/command line, so we would have the simple HTML but no need to ship JS library.<br></div><div><br></div><div>2 A<br></div><div>Completely different thing (but related to generating) is the content of the tabs. It seems that it is quite advantageous to generate some commands automatically from one of the versions. I'm doing it now only for simple cases in JS. Again, it might be better to do it during compilation using Python.<br><br></div><div>2 B<br></div><div>One of the main questions is which languages to include and how GUI should be handled. Note the difference between Standard (platform neutral) and Bash; consider maintenance of GUI instructions; for Python, grass.script or grass.pygrass; add also others such R or QGIS? You can perhaps generate different ones on different occasions.<br><br></div><div>2 C<br></div><div>How will this influence the manual inside wxGUI rendered by wxPython? With the CSS changes we are quite lucky, it simple supports nothing. But it will not ignore additional HTML, so perhaps we would need to generate separate manual without the multiple languages (maybe on the fly).<br></div><div><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">
--<br>
Martin Landa * <a href="http://geo.fsv.cvut.cz/gwiki/Landa" target="_blank">http://geo.fsv.cvut.cz/gwiki/Landa</a><br>
</div></div></blockquote></div><br></div></div>