Any suggestions anyone?

Milind

-------- Original message --------
From: Milind Gupta <milind.gu...@gmail.com> 
Date: 08/16/2013  4:03 PM  (GMT-08:00) 
To: wxlua-users@lists.sourceforge.net 
Subject: Re: [wxlua-users] Writing equations 
 
Hi John,
     For the equation I am interested in rendering the equation on screen not 
on evaluating it. Somewhat like a browser renders MathML or these math packages 
like Mathematica, Maxima or just the equation writer of Microsoft Word. Do you 
have any pointers for that?

Thanks,
Milind



On Fri, Aug 16, 2013 at 2:52 PM, John Labenski <jlaben...@gmail.com> wrote:
On Fri, Aug 16, 2013 at 3:21 PM, Milind Gupta <milind.gu...@gmail.com> wrote:
Hi,
      I am trying to find out if there is an easy way I can add mathematical 
equation writing support to my page. I have never done this before so any 
pointers would be helpful. Can I use any existing library with wxlua to achieve 
this? Or would it be easier to make it from scratch. 


I have used this library before and it works as advertised :
http://warp.povusers.org/FunctionParser/

However, a pure Lua solution is probably what you want and I have not attempted 
to do that either. I would think that if you get a string from a user then run 
it through some checks to make sure it doesn't have 'if', 'for', 'os.execute', 
or any other nastyness, prepend "return" to it then use pcall() to run it that 
should work. The hard part is getting all the check rights so you don't have 
any security holes and the user can't crash/lock-up your program.

Regards,
    John


ps. I'll check the controls later tonight when I can get to a MS Win machine 
and respond in your other thread.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to