Recent

Author Topic: Еличка - a simple calculator with history  (Read 3580 times)

CM630

  • Hero Member
  • *****
  • Posts: 1094
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Еличка - a simple calculator with history
« Reply #15 on: March 16, 2024, 08:01:37 pm »
...Windows 10 italian version...
I tried to create a file named in Chinese and another one in Hebrew with a commander - everything went fine. I will try to do the same with Lazarus, maybe it has a problem ?!?



https://sourceforge.net/projects/trurl/

I see no resemblance between Turl and Еличка.
Turls has an on-screen keyboard, which in my opinion is a waste of space. About features I cannot tell, I tried to calculate 2 + 2 with no success  :-*
Actually Еличка is inspired by the abandoned Num Lock Calculator, which I found very comfortable, but lacking some essential features (for example when pasting "123 000" in it , it did not understand it because of the space).
« Last Edit: March 16, 2024, 08:09:23 pm by CM630 »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 14572
  • Sensorship about opinions does not belong here.
Re: Еличка - a simple calculator with history
« Reply #16 on: March 16, 2024, 08:16:12 pm »
The point is that jwdietrich wrote a very good rpn engine, which is the basis for any calculator.
« Last Edit: March 17, 2024, 06:39:08 am by Thaddy »
bitrate is always calculated like this:sample rate * bitdepth * number of channels.

CM630

  • Hero Member
  • *****
  • Posts: 1094
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Еличка - a simple calculator with history
« Reply #17 on: March 16, 2024, 09:08:46 pm »
The point is that jwdietrich wrote a very good rpn engine, which is the bases for any calculator.
Thanks for the info, I suppose it would be beneficitial for serious apps, which is not my case.
TFPExpressionParser is quite okay for me, its main drawback from my point of view is that it requires quotation marks for strings.
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

CM630

  • Hero Member
  • *****
  • Posts: 1094
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Еличка - a simple calculator with history
« Reply #18 on: March 18, 2024, 02:26:15 pm »

...
One thing: the app saves a .txt and a .ini files with name in cyrillic characters. That names appears as "????.txt" and "?????.ini" on a not-cyrillic fonts machine, as my pc.
It could be useful  to save using the local character set of the machine...

This sounds very odd to me.
I have set
const
  SettingsFile ='Еличка.ini';


Now I have changed it to  SettingsFile : string ='Еличка.ini';   to make sure that the compiler is not considering it an AnsiString.
But even before that, I tried to set the filename to a string in Chinese and a string in Devanagari and everything looked fine.
I wonder if it is possible that your Windows does not have Cyrillic letters?
Or could it be the filesystem? I tried it on NTFS and FAT32 - still no issues with the filename.
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

gidesa

  • Jr. Member
  • **
  • Posts: 72
Re: Еличка - a simple calculator with history
« Reply #19 on: March 18, 2024, 04:16:43 pm »
I wonder if it is possible that your Windows does not have Cyrillic letters?

You are right. The problem is that I use a file manager that doesn't recognize cyrillic characters. Indeed they are visible in other tools, for example in cmd window.
 


 

TinyPortal © 2005-2018