<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Stefan,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">you solved my issue with lpeg on windows and many users using my program with texworks were happy (<a href="https://github.com/cdevalland/cmathluatex/wiki/Configuration-TeXworks">https://github.com/cdevalland/cmathluatex/wiki/Configuration-TeXworks</a>)<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">But one tells me that with 0.6.1 version of texworks, the lpeg.dll you provide doesn't work anymore (see below your link on the old google drive).<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Perhaps did you compile with lua 5.3 ?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">It would be great if you were including lpeg statically inside texworks but I also understand your point of vue about modularity.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thank's for any help.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Best regards,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Christophe<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-23 15:46 GMT+01:00 Stefan Löffler <span dir="ltr"><<a href="mailto:st.loeffler@gmail.com" target="_blank">st.loeffler@gmail.com</a>></span>:<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>
On 16.12.2014 23:37, Christophe Devalland wrote:<br>
> it's nice to provide lua scripts inside texworks but it would be great<br>
> to be able to use the lpeg library (a parsing expression grammars for<br>
> lua) in lua scripts.<br>
<br>
</span>Good to hear that Lua is actually used ;).<br>
<span class=""><br>
> On linux there is no problem because texworks-lua scripts use the lua<br>
> installed by the user.<br>
> On windows, the lua interpreter is included in texworks executable<br>
> during compilation but without lpeg. Would it be possible you compile<br>
> the next version with lpeg inside ? Many windows users tell me they<br>
> can't use my package because of this library missing.<br>
<br>
</span>Generally, I don't want to compile in (too many) modules because it<br>
somewhat contradicts the idea of modules (i.e., something that you can<br>
plug in and out depending on what you need). Also, it increases the<br>
download size with something that is probably not used by a majority of<br>
users.<br>
<br>
That said, lpeg seems like a very general and useful extension in the<br>
context of an editor such as TeXworks (providing text parsing<br>
functionality). Therefore, I changed the build process for Lua to now<br>
use dlls. This again somewhat contradicts the idea of having everything<br>
in a single exe file to avoid "dll hell", but seemed the only (easy)<br>
way. lpeg is not included by default, but a suitable dll can be<br>
downloaded from Google Drive<br>
(<a href="https://drive.google.com/folderview?id=0B5iVT8Q7W44pNDlQVm9uRGpEWHc&tid=0B5iVT8Q7W44pMkNLblFjUzdQUVE" rel="noreferrer" target="_blank">https://drive.google.com/folderview?id=0B5iVT8Q7W44pNDlQVm9uRGpEWHc&tid=0B5iVT8Q7W44pMkNLblFjUzdQUVE</a><br>
> Lua 5.2 Modules). Just drop the dll in the same directory as<br>
TeXworks.exe and lua52.dll and it should work.<br>
Note that it should in principle be possible to use other modules as<br>
well, but I don't know exactly about the possible compatibility issues<br>
(e.g., does it need to be compiled with the same compiler? Does it need<br>
to be the same Lua version?). I tried briefly with some precompiled Lua<br>
5.1 libraries I got off the internet which caused Tw to crash.<br>
<br>
Future Windows builds (i.e., later than r1390) should all use the new<br>
framework.<br>
<br>
Kind regards,<br>
Stefan<br>
</blockquote></div><br></div></div>