math equation editor

47 views
Skip to first unread message

Oscar Gerardo Lazo Arjona

unread,
May 30, 2010, 12:36:22 PM5/30/10
to sage-...@googlegroups.com
I am very impressed with the math equation editor at:

* http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/editor.html

I would like to spend some time this summer working on it. In
particular, i'd like to adapt it to work within the Sage notebook.

I have begun to learn javascript, which I understand is the main
language in which the editor in the link was developed. If somebody here
has some knowledge about how it works, I would love to hear about it. I
tried to contact the author, but so far he hasn't replied, so i thought
maybe I could get some help here.

I have lots of ideas about the things an expression editor should do. I
specially like the idea of symbols to appear automatically while typing
their code.

I opened a ticket about this at
http://trac.sagemath.org/sage_trac/ticket/9092

Thank you!

Oscar Lazo

William Stein

unread,
May 30, 2010, 1:40:22 PM5/30/10
to sage-...@googlegroups.com, sage-notebook
On Sun, May 30, 2010 at 9:36 AM, Oscar Gerardo Lazo Arjona
<algebra...@gmail.com> wrote:
> I am very impressed with the math equation editor at:
>
> * http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/editor.html
>
> I would like to spend some time this summer working on it. In particular,
> i'd like to adapt it to work within the Sage notebook.

Excellent! If I can help some, I will.

I've corresponded with David (the author) about the that math editor before,
and he was very discouraging, saying it wasn't done yet, might be done soon,
etc. (years ago). Make sure you make a copy, in case the above webpage
disappears.

William

>
> I have begun to learn javascript, which I understand is the main language in
> which the editor in the link was developed. If somebody here has some
> knowledge about how it works, I would love to hear about it. I tried to
> contact the author, but so far he hasn't replied, so i thought maybe I could
> get some help here.
>
> I have lots of ideas about the things an expression editor should do. I
> specially like the idea of symbols to appear automatically while typing
> their code.
>
> I opened a ticket about this at
> http://trac.sagemath.org/sage_trac/ticket/9092
>
> Thank you!
>
> Oscar Lazo
>

> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>
> I am very impressed with your math equation editor at:


>
> * http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/editor.html
>
> I would like to spend some time this summer working on it. In particular,
> i'd like to adapt it to work within the Sage notebook.
>

> * http://www.sagemath.org/
> * http://www.sagenb.org/


>
> I have begun to learn javascript, which I understand is the main language in

> which you've developed it. So, I would like to ask for your help to get
> myself started with the code you've developed. Also some help with
> javascript would be nice.
>
> I have lots of ideas about stuff similar to what you've done. I specially


> like the idea of symbols to appear automatically while typing their code.
>

> Thank you!
>
> Oscar Lazo
>
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Oscar Lazo

unread,
May 30, 2010, 2:02:24 PM5/30/10
to sage-devel
On 30 mayo, 12:40, William Stein <wst...@gmail.com> wrote:
> Excellent!  If I can help some, I will.
>
> I've corresponded with David (the author) about the that math editor before,
> and he was very discouraging, saying it wasn't done yet, might be done soon,
> etc. (years ago).   Make sure you make a copy, in case the above webpage
> disappears.
>
> William
>

I am very sorry to hear that. I tried to save the site but the editor
won't work from a
file in my computer. I get an error message:

Unknown control sequence '\cssId'

It will be a lot more difficult to do everything again (which will
very likely be necessary
if I can't get some explanations about how the code works). If that is
the case, then
I would like to hear some suggestions about how to implement things
(language, approach,
etc.)

Also, I can't seem to find decent JavasScript material. If you people
can provide some that
would also be very helpful.

Thank you

Oscar

William Stein

unread,
May 30, 2010, 2:35:28 PM5/30/10
to sage-...@googlegroups.com

For learning the Javascript *language*, I like this book:

http://oreilly.com/catalog/9780596517748

>
> Thank you
>
> Oscar


>
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

--

Oscar Lazo

unread,
May 30, 2010, 8:52:34 PM5/30/10
to sage-devel
It now seems evident to me that this is no trivial task. Davide has
replied to my mail and wisely adviced me not to take this as my first
JavaScript project. Although I am used to learning the hard way, I
find that there are few free resources (as in beer) for learning
JavaScript, so I don't really know how to start with the existing
code.

I made a program that takes text in firefox, processes it, and
displays it in realtime. But I have no idea how to make nice
mathematical expressions to appear.

Nevertheless I feel like this should be a top priority for developers,
as it would make Sage a lot more usable. Does anybody want to develop
this?

I guess I'll go back to writing plotting stuff for sage.

thanks!

Oscar

On 30 mayo, 13:35, William Stein <wst...@gmail.com> wrote:
> > For more options, visit this group athttp://groups.google.com/group/sage-devel

Pablo Angulo

unread,
May 31, 2010, 4:22:46 AM5/31/10
to sage-...@googlegroups.com
> Although I am used to learning the hard way, I
> find that there are few free resources (as in beer) for learning
> JavaScript, so I don't really know how to start with the existing
> code.
These are nice, though not definitive:

https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference

Reply all
Reply to author
Forward
0 new messages