I have just modified a bit the Mathzilla add-ons to experiment with writing arabic math...

Arabic math in Mathzilla