benetech / Inactive-Math-Description-Engine

The Math Description Engine (MDE) helps blind and visually impaired students learn Math.
http://benetech.github.com/Math-Description-Engine/
4 stars 4 forks source link

output MathML of input'ed algebraic expressions #5

Open gcapiel opened 12 years ago

gcapiel commented 12 years ago

http://www.w3.org/Math/Software/mathml_software_cat_converters.html

TerryHodgson commented 12 years ago

I also have many bookmarks for converters. Some look quite promising.

gcapiel commented 12 years ago

One approach is to leverage the ASCIIMathML.js library within the Rhino Java-based JavaScript interpreter:

http://www.mozilla.org/rhino/ (JavaScript interpreter for Java) http://www1.chapman.edu/~jipsen/mathml/asciimath.html

gcapiel commented 12 years ago

We should synchronize AsciiMath.js input syntax matches with MDE input syntax.

alexsyang commented 12 years ago

I installed MathJax in my local Tomcat server, did some experiments, and I verified MathJax takes input in asciiMath, Tex, or MathML format, and can render math in three ways:

  1. HTML + CSS
  2. SVG
  3. Using a browser’s native MathML support For asciiMath support, MathJax uses an internal asciiMathML library. I also tested the MDE input format, it seems MDE only takes asciiMath input/output. So MathJax should be enough for MDE.

MathJax uses special delimiters $ or ' to indicate math formulas. So if the math equation output from the Rhino adapter for MDE which I implemented is quoted with the special delimiters, it will be rendered nicely in browser.

I'm thinking of demonstrating the whole workflow. I have ui in the browser taking in user input in ascii and displaying the equation using MathJax; on the server side, I created the rhino adapter to the MDE. The missing part is the servlet for http request/response handling. You mentioned using backbone.js for UI, so I did some research and it looks like node.js is the matching solution for backbone.js on the server side. After node.js integrates with Rhino, the solution from client to server would be complete. I guess it would be relevant to the issue you created last week.

Please correct me if I'm wrong. Thanks.

TerryHodgson commented 12 years ago

Hi Alex! You've been busy. Do you ever sleep? ;-)

I would love to see a demo. Maybe we could set up a web meeting, Gerardo?

Terry

On Wed, Jun 27, 2012 at 4:20 AM, alexcasual < reply@reply.github.com

wrote:

I installed MathJax in my local Tomcat server, did some experiments, and I verified MathJax takes input in asciiMath, Tex, or MathML format, and can render math in three ways:

  1. HTML + CSS
  2. SVG
  3. Using a browser’s native MathML support For asciiMath support, MathJax uses an internal asciiMathML library. I also tested the MDE input format, it seems MDE only takes asciiMath input/output. So MathJax should be enough for MDE.

MathJax uses special delimiters $ or ' to indicate math formulas. So if the math equation output from the Rhino adapter for MDE which I implemented is quoted with the special delimiters, it will be rendered nicely in browser.

I'm thinking of demonstrating the whole workflow. I have ui in the browser taking in user input in ascii and displaying the equation using MathJax; on the server side, I created the rhino adapter to the MDE. The missing part is the servlet for http request/response handling. You mentioned using backbone.js for UI, so I did some research and it looks like node.js is the matching solution for backbone.js on the server side. After node.js integrates with Rhino, the solution from client to server would be complete. I guess it would be relevant to the issue you created last week.

Please correct me if I'm wrong. Thanks.


Reply to this email directly or view it on GitHub:

https://github.com/benetech/Math-Description-Engine/issues/5#issuecomment-6598590

TerryHodgson commented 12 years ago

Alex,

Great work! Backbone.js is a client side JavaScript framework that enables the creation of highly interactive Ajax-based web apps that connect to RESTful web services. The RESTful service doesn't have to be implemented in Node.js, but it can be any server web application framework, such as Java/Spring or Ruby on Rails.

Can we do a web demo via a Google Hangout on Monday at 10am?

Gerardo

Gerardo Capiel cell: 415-577-3484 http://about.me/gerardo

On Jun 27, 2012, at 7:48 AM, "Terry Hodgson" terry.r.hodgson@gmail.com<mailto:terry.r.hodgson@gmail.com> wrote:

Hi Alex! You've been busy. Do you ever sleep? ;-)

I would love to see a demo. Maybe we could set up a web meeting, Gerardo?

Terry

On Wed, Jun 27, 2012 at 4:20 AM, alexcasual reply@reply.github.com<mailto:reply@reply.github.com> wrote: I installed MathJax in my local Tomcat server, did some experiments, and I verified MathJax takes input in asciiMath, Tex, or MathML format, and can render math in three ways:

  1. HTML + CSS
  2. SVG
  3. Using a browser’s native MathML support For asciiMath support, MathJax uses an internal asciiMathML library. I also tested the MDE input format, it seems MDE only takes asciiMath input/output. So MathJax should be enough for MDE.

MathJax uses special delimiters $ or ' to indicate math formulas. So if the math equation output from the Rhino adapter for MDE which I implemented is quoted with the special delimiters, it will be rendered nicely in browser.

I'm thinking of demonstrating the whole workflow. I have ui in the browser taking in user input in ascii and displaying the equation using MathJax; on the server side, I created the rhino adapter to the MDE. The missing part is the servlet for http request/response handling. You mentioned using backbone.js for UI, so I did some research and it looks like node.js is the matching solution for backbone.js on the server side. After node.js integrates with Rhino, the solution from client to server would be complete. I guess it would be relevant to the issue you created last week.

Please correct me if I'm wrong. Thanks.


Reply to this email directly or view it on GitHub: https://github.com/benetech/Math-Description-Engine/issues/5#issuecomment-6598590

alexsyang commented 12 years ago

I have Linear Algebra class at 10:30AM on Monday. Can we reschedule sometime on Monday? Thanks.