Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
323 stars 39 forks source link

Special symbols in variable names #182

Open Itenium opened 9 months ago

Itenium commented 9 months ago

Good day.

This is a very special request, and I do not know if it can be done.

In Compressible flow, we have various variables named for example T/T_0, P/P_0 etc

At this stage, Calcpad cannot accommodate this as this means divided by and it is not seen as a variable.

I have also tried T\T_0 which works in my other software, but not Calcpad, as Calcpad sees "\" as an integer division by Calcpad.

At this stage, I write TT_0, which is not as elegant as I would like it to be.

I don't know what the solution is, a very special case.

I hope you are more creative then I am.

Regards

Proektsoftbg commented 9 months ago

Hi @Itenium.

You can not do it with this version of Calcpad. Maybe we can implement this in the next version, similar to your previous suggestions, say: T.div.T_0 or T_div_T_0 that can be rewritten as T/T_0 in the output.

idealkindom commented 9 months ago

Hi @Itenium.

You can not do it with this version of Calcpad. Maybe we can implement this in the next version, similar to your previous suggestions, say: T.div.T_0 or T_div_T_0 that can be rewritten as T/T_0 in the output.

Hi, Is it possible to support CJK character as subscription of a variable?

Proektsoftbg commented 9 months ago

Yes, it is possible to implement it. But it will be for the whole variable name. Currently, there is no difference if a character is in the subscript or not. If needed, I can enable the Unicode character range in the Calcpad lexer.

Proektsoftbg commented 8 months ago

@idealkindom I allowed letters from any languages to be used in subscripts. It is not officially published yet, but you can download and try it from here:

https://github.com/Proektsoftbg/Calcpad/blob/main/Setup/calcpad-setup-en-x64.exe

idealkindom commented 8 months ago

Thks a lot.

Thks a lot.

在 2023-09-27 23:49:57,"Ned Ganchovski" @.***> 写道:

@idealkindom I allowed letters from any languages to be used in subscripts. It is not officially published yet, but you can download and try it from here:

https://github.com/Proektsoftbg/Calcpad/blob/main/Setup/calcpad-setup-en-x64.exe

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>