Having recently discovered two fine applets (the JMol filter for Moodle and the more widely applicable CabriJava applet), I had the modest idea to take the JMol filter as a basis to develop a similar Cabri filter for Moodle, which takes advantage of the CabriJava technology.
For those who don't know Cabri, it is a geometry program developed by the French company Cabrilog. I think a lot of schools and universities work with this piece of software. It's use extends far over the "simple" domain of geometry, as you can find out on the CabriJava homepage or on this (French) site demonstrating the power of the CabriJava applet (often physics laws).
Download the zip file here.
How to install ?
- Remember to first change the 2 variables at the beginning of the $callbackfunction in the file "filter.php".
- Place the "cabri" folder in your Moodles "filter" folder.
- Then, to activate this filter, go to admin and enable 'cabri'.
How to use ?
The filter wil replace all text linked to a Cabri-file (.fig) uploaded to the server. At the end of this linked text, you can specify Width and Height between brackets, separated by an "x"
e.g. figure 1 (400x250)
(Below are two images, showing the source text in a "web page" resource, and the result when looked at)
Being new to PHP programming I know this filter maybe isn't the best example of good practice, so feel free to comment or ask questions ...