XusinboyBekchanov / VisualFBEditor

IDE for FreeBasic
Other
173 stars 39 forks source link

Punctuation does not work in editor for unicode characters #88

Open demosthenesk opened 3 years ago

demosthenesk commented 3 years ago

I tried to write a Print message in Greek. The editor shows the greek characters but without punctuation For example i get a greek α but not a greek ά

XusinboyBekchanov commented 3 years ago

Shows this symbol when copying and pasting. image

What keys do you press to get this character?

demosthenesk commented 3 years ago

For copy/paste it works. For keypress does not work. To print a Greek ά you need a Greek keyboard layout for Ubuntu-mate as mine. I wrote a small program to detect the ascii code of key i press to show the Greek ά.

Dim As Long key Do key = GetKey Print "key: " & Chr(key) & "=" & key Print "Press q for quit" Sleep Loop Until Chr(key) = "q" End

Output

key: ;=59 Press q for quit key: q=113 Press q for quit

The Greek ά is produced by pressing first ; and then a (;a=ά )

demosthenesk commented 3 years ago

Unicode characters are ok in code editor in Windows. This bug affects only linux version of code editor.

XusinboyBekchanov commented 3 years ago

On Windows (Windows API), standard events return the correct characters, but on Linux (GTK), standard events return a character without punctuation. I don’t know how other programs did it.