Andrey,
I'm not sure if your intention is to make SMath files compatable with MathCAD through the xmcd export feature. I know it may be difficult to translate programs and if block because there is a significant difference between the way SMath and MathCAD implement these.
But I tried to import a MathCAD file with subscripts and there appears to be a difference in how they are writen in xmcd form. A simple change in format will improve portability.
SMath
<ml:id xml:space="preserve">a.1</ml:id>
MathCAD
<ml:id xml:space="preserve" subscript="1">a</ml:id>
Also I noticed that a value with units of
ft is written by SMath and MathCAD as:
Code:
<ml:define>
<ml:id xml:space="preserve">a</ml:id>
<ml:apply>
<ml:mult />
<ml:real>1</ml:real>
<ml:id xml:space="preserve">ft</ml:id>
</ml:apply>
</ml:define>
Which doesn't readback as units of
ft but variable ft.
Code:
<ml:define>
<ml:id xml:space="preserve">a</ml:id>
<ml:apply>
<ml:mult />
<ml:real>1</ml:real>
<ml:id xml:space="preserve">'ft</ml:id>
</ml:apply>
</ml:define>
With
'ft it is recognized by SMath as units
ftPerhaps the xmcd engine can see if
ft is a unit or a variable.