antonmedv / numbr

Notepad + calculator
https://numbr.dev
497 stars 32 forks source link

Variables with surrounding text #3

Open ajitid opened 2 years ago

ajitid commented 2 years ago

Take this Numbr doc, I expected the following output instead of what Numbr gave to me:

Soulver 2 difference Above screenshot is from Soulver 2 used on a phone.

vs Numbr:

image

antonmedv commented 2 years ago

I see. I did this kind of parser as in Chinese language spaces not so common around letters. Probably will refactor this.

ajitid commented 2 years ago

Thanks! Just to give more context about suffix, I'm actually fine with Numbr to consider the text after <var name>_ (var name followed by underscore) as plain text. Here are NoteCalc and OpalCalc for example:

image

The issue is that Numbr parses variable name no matter what the text is written after the var name:

image