[om] OM class

Paul Libbrecht paul at dfki.de
Mon Apr 19 14:36:12 CEST 2004


Hi Cédric,

What you're looking for is a converter or phrasebook... there are many 
out there.
I know the following:
- RIACA phrasebooks
- Jome (http://jome.sourceforge.net/)
     (see also the incomplete web-site 
http://www.activemath.org/projects/Jome/)
- QMath (http://www.matracas.org/)
- OQMath which wraps QMath in Java 
(http://www.activemath.org/projects/OQMath/
And there are many others.
Of them, I know Jome is the easiest, your java-code would look like:

Jome j = new Jome();
j.setLinear("3*a+2");
String xmlAsStringOohShame = j.getOpenMath();

You can even pull out MathML out of Jome... It may also be the most 
buggy among them... but for simple uses it's fantastic.

I think there are many others, in Java or something else.

paul



On 19-Apr-04, at 10:03 Uhr, Cédric Vidrequin wrote:
> Hello,
> I'm looking for a class (or a set of classes) that allows me to 
> generate an XML file (or XML tree object) from an input string.
>
> For example : I have the string y = a*x+b
> I'm looking for something like that : String str = "y=a*x+b";
> // in the next line, types are imaginated to explain better what I'm 
> looking for
> OpenMathObject omo = nex OpenMathObjetc(str);
> omo.writeXML(new outputStream("myFile.xml"));
>
> Thanks for helping.
>
> Cédric VIDREQUIN
> INRA Avignon (France)
> --
> om at openmath.org  -  general discussion on OpenMath
> Post public announcements to om-announce at openmath.org
> Automatic list maintenance software at majordomo at openmath.org
> Mail om-owner at openmath.org for assistance with any problems
--
om at openmath.org  -  general discussion on OpenMath
Post public announcements to om-announce at openmath.org
Automatic list maintenance software at majordomo at openmath.org
Mail om-owner at openmath.org for assistance with any problems



More information about the Om mailing list