<p>Dear Steffan,</p>
<p>Thanks for that.</p>
<p>I come from more a Delphi (Turbo Pascal) background so please excuse anything I say as not working from a purely C workspace.</p>
<div>The incorporation of a scripting language is a stroke of genius, so many distributed editors do not do that or in Win32/64 were in the past just plugging VBA in.</div>
<div> </div>
<div>PHP</div>
<div>In Delphi we can extend an application&#39;s functionality using a PHP extension which opens up all the libraries and code of PHP (<a href="http://users.telenet.be/ws36637/php4delphi.html" target="_blank">http://users.telenet.be/ws36637/php4delphi.html</a>) this plugs into the PHP Zend C API - you can think what I am going to ask here, can TW being a C written application better do this as well as LUA? Or could LUA be asked to handle this for TW - its just that there is such a wealth of string libraries and other  platform independant libaries already available under PHP.</div>

<div> </div>
<div>Dynamic Menu / Sub-Menu Items</div>
<p>I think I suggested privately to Alain (again form my Delphi background) that the Scripts (LUA) names be utilised to show where they should go on the Scripts menu.</p>
<p>I was thinking that the Scripts will be more important than many realise at first, in that they will provide a lot of stringhandling utilities and placement of custom tags (custom LaTeX commands), so they will probably increase in number for many users very quickly.</p>

<p>This made me think from previous experiences that the Script menu would become cumbersome and over full,  very quickly.</p>
<div>As (in Delphi) I am used to being able to make new sub-menus and menu items dynamiacally at run time, I wondered whether this was possible in TW as well?  </div>
<div> </div>
<div>Thinking perhaps that the LUA script name could place it on the menu tree and call for the making of new sub-menu(s) as needed.</div>
<p>I.e. lua script name:  Insert-LaTeX_Pictures_Righthand-Logos.lua</p>
<p>- for space<br> _ for new Sub menu</p>
<p>Would go on Menu     Scripts/Insert LateX/Pictures/Righthand Logos <br></p>
<p>Or perhaps it could be a property of the script  in the Script Management tool, plcaement on which (sub)(sub)Menu?<br></p>
<p>It would be a great help to us users!</p>
<p>Paul<br><br>2009/9/6 Stefan Löffler <span dir="ltr">&lt;<a href="mailto:st.loeffler@gmail.com" target="_blank">st.loeffler@gmail.com</a>&gt;</span><br></p>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br>
<div><br>On 2009-09-02 11:44, GMAIL wrote:<br>&gt;<br>&gt; message from TeXworks user<br>&gt;<br>&gt; I am very new to Lua as no doubt the following will confirm, but I<br>&gt; have been able to hobble this together from the Tutorials and chm help<br>
&gt; and other Lua Wiki resources.<br>&gt;<br>&gt; Share it in case it inspires any one else...<br>&gt;<br><br></div>Thanks for putting the time into this and for sharing. I haven&#39;t tested<br>it intensively, but the first impression is great. It&#39;s good to see<br>
people testing the new (experimental) features of TeXworks.<br>
<div><br>&gt; (Also wondering, does TW object expose any more properties or methods<br>&gt; please?<br>&gt;<br><br></div>Yes, that&#39;s definitely planned. So far, the Lua implementation is very<br>experimental and basically just a prove of concept. After the first<br>
official release, we&#39;ll brainstorm new development plans for Tw, and Lua<br>will certainly be in there. Then we&#39;ll probably also be drafting a<br>reasonable API with more properties, methods, etc. so that it gets<br>
really usable. The methods provided so far are only quick hacks to show<br>that it can be done (as you proved with your scripts ;)).<br><font color="#888888"><br>Stefan<br></font></blockquote></div><br>