Hello. Your idea is very interesting and it's a great pity, that I can't see the source code. (afaik, attachments aren't working in that ML...) I realy need to see it, cause I'm working over InstaView (JS preview for MW, see http://en.wikipedia.org/wiki/User:Pilaf/InstaView) abilities extension and I've already made primitive templates preview... I'm also working over html2wiki js converter. At that very moment I've managed to process tables (with captions, rows, cells and attributes) and lists (nested dl's are still buggy...) So if these things will be implemented, it would be possible to create FCKeditor-based WYSIWYM editor for MW (I have almost working prototype...), that can be an optional substitution for wikitext-based editing. So the idea is the folowing: * When user edits the page he can switch between visual editing and wikitext * For visual editing FCKeditor will be used. The source for it will be generated by Instaview from the wikitext. * For back-switching to wikitext html2wiki converter will be used, so the text in DB will be saved as wikitext in any way.
So, thoughts and any feedback is appreciated!
From: "Felipe Sanches" felipe.sanches@gmail.com
Hello, I have made a (very) simple Ajax LaTeX editor for mediawiki. It is only proof of concept and could be a lot more improved. It does almost nothing more than show my intentions :-) and some nice greek letters and integrals. I am sending the snv patch so that you can try it and we can talk about the possibilities. I am still leaning Ajax (I am reading the book "Ajax in Action"), so, maybe there are better ways of implementing it. Please, take a look and tell me what you think about it.
Thanks, Felipe Sanches
well... I didn't know that attachments didnt work here in this list... sorry!
The patch is here: http://aluno.no-ip.info/juca/mw-AjaxMathPreview-idea.diff
It uses the texvc backend to generate the images, so I imagine that it is a 100% accurate preview. I intend to improve its usability, of couse. This version it too limited in usability and features:
*direct input to the inputbox is not implemented yet. *the functions menu is messy and non-user friendly (at least for LaTeX newbies) **I intend to make categories in the functions menu *I thought about mapping mouse events on the preview image so that the user can select the place in the formula where the next chosen math elements will be inserted. But I have no idea about how to generate these positions cordinates in the server. Maybe the backend must be modified to provide these cordinates. If that is not possible (or not practical) then we must find another solution for this issue. *I thought also about embedding the mathpreview image inside the edit box (just like gmail does with tables in "Rich formatting" mode) but I also have no idea about how to manipulate the editbox widget to achieve this effect.
Felipe "Juca" Sanches
mediawiki-l@lists.wikimedia.org