I'm working on a streamlined way to use GeoGebra in problems. One of the ways this new tool can be used involves GeoGebra sending WeBWorK a text string for a GeoGebra object. Sometimes, these strings use characters that go beyond keyboard ASCII. For example, GeoGebra might provide these strings:
x ≤ π
x⁶ + y⁶ = 1
In some cases, I may be able to get GeoGebra to behave differently. For example, I may be able to get GeoGebra to send out that last one as "x^6 + y^6 = 1". But in other cases, like with the degree symbol, GeoGebra will not be able to provide that in an alternative form.
I am aware that there is a lot of work underway so that WeBWorK will support using general utf-8 characters. Can someone explain what this might mean for my GeoGebra project? Here are some specific questions.
- Will it be possible to add the character π to a MathObjects context as a constant equivalent to the constant "pi"?
- Will it be possible to add the character ≤ to a MathObjects context as an operator like how some contexts understand "<="?
- Will it be possible to add characters like ⁶ to a context as a unary operator with the appropriate associativity so that is equivalent to "^6"?
- Will it be possible to add ° to a context in some way that makes sense?
- Is any of this already possible in 2.14?
Obviously I am asking about adding these things to a context. As an alternative I could try to catalog all of these things in parserGeoGebra.pl and always translate them to more basic strings first. Would that be more wise?