Closed MarcoCostantini closed 4 years ago
for instance, the string "<"
must became "<OMOBJ><OMSTR>&lt;</OMSTR></OMOBJ>"
and vice versa
Hi,
Are you sure? I mean your example seems to work:
In> OMForm("<")
<OMOBJ>
<OMSTR>&lt;</OMSTR>
</OMOBJ>
Out> True
In> FromString("<OMOBJ><OMSTR>&lt;</OMSTR></OMOBJ>")OMRead()
Out> "<"
And with respect to ordering of the substitution cases, they are actually independent of each other, or at least I believe they are :) If no, could you please provide an example when the ordering does matter?
Cheers, Grzesiek
When converting from openmath to yacas (see #298), the line
If (ec = "&", s := s : "&");
must be after the other escapesWhen converting from yacas to openmath (see https://github.com/grzegorzmazur/yacas/commit/42b7c8a53da5c0b7f2593180092c9d95f0c03079 ) add the line
c := If (c = "&", "&", c);
before the other escapes