Comma being always replaced by decimal point inside text input boxes
In Progress
Recently, I have noticed that if I use a comma to separate the decimal part inside a number input box (online, files in Spanish language), it is automatically replaced by a decimal point. This is most of the times a good idea.
But it also happens when the input box is associated to a text variable. And it is inconvenient in some cases. Any comma inside the text is replaced by a decimal point!
For other types of variables it works fine (points and lists).
(Try it for example, here https://www.geogebra.org/m/ex2yunrx )
Is there any way I can prevent this from happening?
Thank you.
I can't see an immediate solution, unless substituting the input box with a dropdown list, containing a suitable choice of answers.
Or provide a note text, telling users to enter names separated by "and".
Like "Teo and Francesca and Fabrizio"
But it is a general problem. In may case, I have used input text boxes to collect different answers from students.
For example, a list of divisors (without making them write the "{" and "}" ).
In many of them, I think there is a workaround, but if think it would be an unnecessary limitation for GeoGebra to have input text boxes where no commas are allowed!!
Maybe a solution would be as simple as not make the substitution in those types of inputboxes. For example, for lists or points it is not made either.
Thank you for your answer.
Seems like the comma is always treated special, just differently in different languages. In some languages it is replaced by a dot. In others (incl. English) it's even worse, the comma is simply removed (so if someone doesn't leave a space after the comma, everything is smushed together).
As far as I can tell, most other special characters are fine and properly appear in the text variable. Only other exception I found was the quotation mark, but that's not really a problem.
You'll be able to use the new Symbolic Input Boxes for text objects soon where this is OK
Comments have been locked on this page!