CW-Type window

6 posts / 0 new
Last post
oh1mrr
CW-Type window

Anyone else noticed, when type letters into window, radio
sends letter twice?
Yes, I have removed IBUS from my Fedora 27...

oh1kh
CW-Type window

I tested this also with binary downloaded from official download (I know Jarmo uses my test binary).
But results are the same.
In letter mode only one character is printed to display, but sent 2x times with CW.

In word mode text is sent as it is seen on display. One letter only once.

In letter mode I tested a bit with source and TMemo's " OnKeyPress" action calls procerdure mKeyPress twice per one keypress!
So this problem is not inside the cqlog source itself.

It comes either from Lazarus/FPC compiler result or Xwindow manager. (Or combination of those).
Removing IBUS helped the visual side, but this may be more complicated to clear out.

This seems to be rather seldom used feature, or else that problem may not exist in ubutu.
We both have Fedoras. Jarmo has 27 nad I have 26.

Could someone tell how it works with ubuntu, please !

--
Saku
OH1KH

--
Saku
OH1KH

oh1kh
CW-Type window

Hi!

I think I found the root reason for double CW keys. Latest Lazarus uses UTF-8 charcter coding. That means one letter has 1-4 bytes character code.
If you type just numbers there will be just one CW character for one typed number. (Numbers have 1 byte char code)

For letters A -Z UTF-8 code is 2 bytes, so you will have two CW chars per letter.

At source side this is not valid any more and causes doubles:
key := UpperCase(key)[1];

I demonstrated it this morning with simple program and it is the root reason. Now I just have to find a way to convert letters to upper case with some other way and this will be fixed.

Maybe I need another night sleep to figure it out.

--
Saku
OH1KH

--
Saku
OH1KH

oh1kh
CW-Type window

hI
i'm trying to find proper way to convert UTF8 letter to upcase. No success yet.

After testing 10^n ways i noticed a quick fix.

If you use letter mode, try to put caps lock on. In my system (I just upgraded even Lazarus from 1.8.0 to 1.8.2) it seems to help.
Caps produce just one CW char, but lowcase letters produce 2 CW chars.

Interesting...

--
Saku
OH1KH

oh1mrr
As commented to Saku direct,

As commented to Saku direct, no matter, if you write lower case, fonts are
uppercase.

<p>Jarmo</p>

oh1kh
CW-Type window [SOLVED]

Hi!
Quick fix for current release: Use caps lock (upper case letters) when typing.

Fix for code is found and it will be on next release. Then also low case letters work.

--
Saku
OH1KH