Text characters not passing correctly to Maxima plugin

Text characters not passing correctly to Maxima plugin - Text like "RED,red RED" is sent to Maxima as "RED\002C\red\0020\RED" - Messages

#1 Posted: 8/14/2021 6:14:03 PM
Gilberto E. Urroz

Gilberto E. Urroz

21 likes in 36 posts.

Group: User

File not found.File not found.
#2 Posted: 8/16/2021 3:26:04 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Thank you for reporting the issue. Could you please attach your .sm file to your post?

The problems seem to originate from the internal character encoding used by SMath Studio. The interface to Maxima and Maxima itself are unicode proof (as long SBCL is used). So there is no need for such encoding from my side and at development time of the plugin there was no such encoding.

I need to check if that encoding can be switched off or decoded within the plugin.

@developers: any recommendation on how to proceed?

A temporary mitigation could be adding a translation function in maxima.xml in the plugin directory. Some hints on how to setup custom translations or functions from user side are found in the german pdf handbook, online translators seem to produce pretty usable english versions.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 8/16/2021 4:03:12 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

To decode SMath text and variables/functions names to unicode strings, you have to use:

TermsConverter.DecodeText(text);

The opposite can be done with

TermsConverter.EncodeText(text);
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Posted: 8/20/2021 11:23:23 AM
Engr

Engr

8 likes in 24 posts.

Group: User

The same issue is also occurring in the "Excel (2003+) I/O with recalculation and PNG export" plugin. See the Smath Studio and Excel screen shots below for an example.

Smath Screenshot.png

Excel Screenshot.png

Would it be possible to fix the plug-in?

Thanks
engr

#5 Posted: 6/15/2022 3:18:14 AM
Diego

Diego

1 likes in 7 posts.

Group: User

I have the same issue and adding a translation function in maxima.xml in the plugin directory is not working. Can you anyone help us to make it right?
  • New Posts New Posts
  • No New Posts No New Posts