PDA

View Full Version : A trouble with what is like a minus symbol



primo
26-09-2019, 09:48
i have copied a formula in line 20 in https://www.purplemath.com/modules/sqrcircle.htm
let us say it is 5–2 , pasting it in thinbasic IDE and also in Freebasic ide , they outputs an error. i first suspect there is a hidden characters, i copied the formula to the notepad saving it to ansi then copied it again, the same error.
what is wrong with this minus sign !!. then finding that its asc = 8211 while the normal minus asc = 45. so this is the problem. i find also another symbol with asc = 8722
the real minus sign appears shorter than this symbol
in fact i always not happy with the usual minus sign , and who have poor eyes vision like me see it like a dot, they should make it taller by one or two pixels
compare here the 2 symbols: (the taller is the fake minus):
4x2 + 4y2 – - 16x – - 24y + 51 = 0

this code will output error in line 10


'---Load Console Module
Uses "Console"
Long a
a = 5-2
printl a

printl asc("-") '45
printl asc("–") '8211
printl asc("−")'8722
a = 5–2 ' will output error

PrintL "Press a key to end program"

'---Wait for a key press
WaitKey

more about math symbols:
https://www.rapidtables.com/math/symbols/Basic_Math_Symbols.html

DirectuX
26-09-2019, 11:53
in fact i always not happy with the usual minus sign , and who have poor eyes vision like me see it like a dot, they should make it taller by one or two pixels

Hi Primo,

maybe you could change the font face and/or size in thinAir.
"thinAir Options\Editor\Font face" doesn't take changes into account. As themes override these settings, you can edit the xml themes files to set your preferred display : "Right-click \ Themes..."

Also :https://www.thinbasic.com/community/showthread.php?12881-thinAir-Themes

primo
26-09-2019, 12:49
Thank you DirectuX , i have edited the Default.theme to
<item name = "font.size">14</item>
and when restarting the IDE the fonts is big enough, thank you.
yes it seems the themes overriding the editor setting
it seems to me that some web sites uses that relatively big symbol instead of the minus symbol for this reason to display it better for the readers, may be.

DirectuX
26-09-2019, 14:03
you're welcome Primo :)

for web reading, I frequently use the Firefox's reader view function (https://support.mozilla.org/en-US/kb/firefox-reader-view-clutter-free-web-pages), even more when on mobile device : this greatly improve comfort and readability but sometimes it is not available (it seems to depend on website's content, as example it works with purplemath.com but not always on google.com).

ErosOlmi
26-09-2019, 20:00
Sorry for the delay and confusion.

Yes, thinAir options are no more valid and themes are the way for the future.
I'm creating a theme editor that will let change themes options.