asciimathml... same questions

Re: asciimathml, JSXGraph and Geonext... some answers

by Livia Spini -
Number of replies: 4
Thanks, Mauno!
I read other discussion about Geonext. I didn't understand if we will have an integration of Jsxgraph and Geonext with the stable release of Moodle 2.0.
Also I didn't understand if a tinyMCE plugin (of Geonext) on Moodle 1.9 is already available.
In reply to Livia Spini

Re: asciimathml, JSXGraph and Geonext... some answers

by Mauno Korpelainen -

Not in "stable release" of moodle 2.0 - core moodle 2.0 - but I will create an additional package of math plugins and activities that can be used with core moodle 2.0 without replacing any files of moodle 2.0.

I created a sort of "prototype" of JSXGraph/Geonext plugin both for default editor of moodle 1.9 (HTMLArea) and a theme based test integration of tinymce already 9 months ago - they were downloadable for some months as a part of full moodle 1.9.6 package with a couple of math filters and math plugins from a link in one of those JSXgraph discussions for testing purposes - but the main problem with moodle 1.9.x editor plugins has all the time been the lack of "pluggability": if you need to add some plugins to HTMLArea you need to hack core code or use theme based integrations and upgrading files is a never ending task...

Moodle 2.0 should finally "fix" this issue because almost everything in moodle 2.0 will be pluggable and changable - it has just taken a pretty long time from core developers to add those new useful features that allow us to add new useful things to moodle without ugly core code replacements.

In reply to Livia Spini

Re: asciimathml, JSXGraph and Geonext... some answers

by Mauno Korpelainen -

Livia,

I did upgrade most files of my plugindemo site http://korpelainen.net/plugindemo and you can test those not-yet-finished plugins with username 'test' and password 'test' there...

I had some info about using those plugins in http://korpelainen.net/mediawiki and you can download either all the latest files with moodle 1.9.9+ from http://korpelainen.net/plugindemo.zip or just the mathplugin files that can be unzipped over existing package (of moodle 1.9.X) from http://korpelainen.net/mathplugins.zip

Once you have unzipped the files (and installed moodle) you need to enable first jsxgraph filter from Administration > Modules > Filters > Manage filters and if you want to test those other plugins you can select them from the same place and settings of math filter. Math filter can be disabled - I used it mainly for getting new settings to moodle 1.9.x - in moodle 2.0 there will be different settings.php files for this purpose.

Next you need to change theme to Math from Administration > Appearance > Themes > Theme Selector to get TinyMCE (Theme base integration) and those editor plugins. I did add script tags to standard theme meta.php and styles of jsxgraphs to standard theme styles_layout.css but usually it's not necessary if you use custom theme like "Math" with extra settings.

Note that these plugins and filters are not bug free or finished for production sites.

JSXgraph core scripts seem to have conflict with overlib.js in IE and they have other problems with IE6 and IE7 - IE8 almost works...therefore I did delete 2 lines from my test files lib/javascript.js:

<script type="text/javascript" src="<?php echo $CFG->httpswwwroot ?>/lib/overlib/overlib.js"></script>
<script type="text/javascript" src="<?php echo $CFG->httpswwwroot ?>/lib/overlib/overlib_cssstyle.js"></script>

It may have some influence to missing mouseover events in calender or some quizzes - I have not tested those places where overlib.js is used in moodle.

Firefox and Chrome have no major problems. Opera and Safari have problems with showing applets (Dragmath or Geonext) in popups of tinymce.

-------------------------------

Note that it is always possible to save / export graphs from Geonext applet as gxt code, applets, html, svg or png images so even if the current code is buggy in IE you can use the applets for creating graphs and use other formats for showing the graphs in moodle...

Try for example the attached applet (as an administrator you can add script or applet tags directly to HTMLArea - tinymce may not allow or show them in editor without some changes to init code of tinymce). If you change (user/course/session) themes you can also change editor if needed...

In reply to Mauno Korpelainen

Re: asciimathml, JSXGraph and Geonext... some answers

by Livia Spini -
Tanks, Mauno!
As soon as I can, I'll test it. Now I'm very busy because we have the end of school...
In reply to Livia Spini

Re: asciimathml, JSXGraph and Geonext... some answers

by Mauno Korpelainen -
Eventually I must combine those current test plugins to a minimal set of cross browser supported plugins and move most settings to actual plugins - I did disable "draglatex" and "dragmaths" plugins from settings of math filter on my plugin demo site because IE stops responding with them for some buggy code. Googletex plugin is the most functional right now...
Attachment editorpl.gif