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" - Сообщения

#1 Опубликовано: 14.08.2021 18:14:03
Gilberto E. Urroz

Gilberto E. Urroz

21 сообщений из 36 понравились пользователям.

Группа: User

Файл не найден.Файл не найден.
#2 Опубликовано: 16.08.2021 15:26:04
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 16.08.2021 16:03:12
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: 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 Опубликовано: 20.08.2021 11:23:23
Engr

Engr

8 сообщений из 24 понравились пользователям.

Группа: 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 Опубликовано: 15.06.2022 03:18:14
Diego

Diego

1 сообщений из 7 понравились пользователям.

Группа: 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?
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений