htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
math add-on


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


franchino
Novice

Apr 19, 2004, 3:33 AM

Post #1 of 8 (22976 views)
Shortcut
math add-on Can't Post

I'm starting (today) a math add-on to htmlarea (I'm using it for a wiki derived from twiki).

The idea is quite simple. I've written a perl script that accepts an url containing a latex snippet, computes the MD5 digest, checks if there exists a file with that name in the cache dir and if yes returns the contents (png), otherwise creates it. The perl program is attached. It is so fast (thanks to dvipng -- sourceforge) that can be used on the fly.

Now, I'd like to add to htmlarea a button like the "add img" one,except that it allows the input of latex code (possibly with buttons like kile). The javascript has just to escape the latex, and build an url pointing to the perl script:


Code
<img src="/perl/lateximg.pl?latex=$f(x)$" />


and the latex appears as an image.

I want also to add an "expert mode": writing a "$: should accept the math and perform the conversion, and by clicking on the latex image it should be converted to text.

Hints and suggestions are welcome.


(This post was edited by franchino on Apr 19, 2004, 6:43 AM)
Attachments: lateximg.pl (1.06 KB)


franchino
Novice

Apr 26, 2004, 3:01 AM

Post #2 of 8 (22917 views)
Shortcut
Re: [franchino] math add-on [In reply to] Can't Post

I've almost finished a very first version of a math-enabled htmlarea, find it attached (it is not well packed, it replaces htmarea.js for the moment). It has only be tested with firefox (mozilla) under linux.

There are two things that I'm not able to cope with:

1) caret do not step over images (whereas line selections does). Since formulas are images, I would like to have this possibility.

2) the insertHTML function leaves the inserted text selected. I would like to move the caret so that I can insert something like <math>$ $</math> and have the caret
left in the middle, ready to insert LaTeX.

Hints?


(This post was edited by franchino on Apr 26, 2004, 3:02 AM)
Attachments: math.zip (23.5 KB)


nikotto
User

Apr 26, 2004, 6:17 AM

Post #3 of 8 (22911 views)
Shortcut
Re: [franchino] math add-on [In reply to] Can't Post

would be nice to have somewhere a demo-page for your plugin :D
(yes, i'm lazy)


franchino
Novice

Apr 30, 2004, 9:00 AM

Post #4 of 8 (22865 views)
Shortcut
Re: [nikotto] math add-on [In reply to] Can't Post

try

http://kepler.dma.unifi.it/WebWrite/bin/view/Lavagna/HtmlArea

username/password=htmlarea

Sorry, but the site is in Italian. after logging in, you can edit the page using the [Edita] button.


nikotto
User

Apr 30, 2004, 9:09 AM

Post #5 of 8 (22863 views)
Shortcut
Re: [franchino] math add-on [In reply to] Can't Post

wow, amazing!
great plugin :D

how bad that i don't need stuff like that :D


franchino
Novice

Apr 30, 2004, 10:16 AM

Post #6 of 8 (22861 views)
Shortcut
Re: [nikotto] math add-on [In reply to] Can't Post

The same approach can be used whenever you want to generate an image from a textual description. For instance: fancy buttons, dynamic images, flash animations, etc. The plugin itself may hinder the textual description from the user (e.g: using a latex editor with buttons).

In the next future I'm planning to add a gnuplot plugin, for scientific graphs, and maybe a draw plugin (integrating a java front-end).


aurelien
New User

Nov 3, 2004, 9:28 AM

Post #7 of 8 (22263 views)
Shortcut
Re: [franchino] math add-on [In reply to] Can't Post


In Reply To
try

http://kepler.dma.unifi.it/WebWrite/bin/view/Lavagna/HtmlArea

username/password=htmlarea

Sorry, but the site is in Italian. after logging in, you can edit the page using the [Edita] button.


your demo website is down, where can we test this famous plugin ?

Thx


franchino
Novice

Nov 3, 2004, 10:55 AM

Post #8 of 8 (22259 views)
Shortcut
Re: [aurelien] math add-on [In reply to] Can't Post

We had a lot of disk crashes this summer, and I never rebuild this test site.

If I have time, I'll set up a new site in this weekend.

Have a look here again next week. Sorry per the delay.

 
 
 


Search for (options)