#993971 kate: Kate puts a space when using some dead keys

Package:
kate
Source:
kate
Description:
powerful text editor
Submitter:
Adilson dos Santos Dantas
Date:
2021-09-11 13:33:03 UTC
Severity:
important
#993971#5
Date:
2021-09-08 20:39:48 UTC
From:
To:
Dear Maintainer,

I have some problemas today using Kate and Kwrite. It puts a
space before when I write some characters in a Brazilian ABNT keyboard.
I found this problem with the characters ' and ".

Here are some examples:

When I write Paraná, kate shows Paran á
When I write conseqüências, kate shows conseq üências.

This problem does not occour with the characters `, ^,~ and the problem only
happens with kate and kwrite. Other editors and apps does not show this problem.

#993971#10
Date:
2021-09-09 00:12:39 UTC
From:
To:
Hi

Hmmm, I am not sure what a Brazilian ABNT kbd is, but I tried "compound"
characters like ö ä ü etc which I usually use, and they don't produce
any space.

Maybe something in the input layer (ibus/fcitx/fctix5) or someone else
is doing this. I don't think kate transforms the characters received
from the input layer in any way.

Have you tried other **Qt** applications, too?

Best

Norbert

#993971#15
Date:
2021-09-09 02:37:54 UTC
From:
To:
Em qua., 8 de set. de 2021 às 21:12, Norbert Preining <norbert@preining.info>
escreveu:
fine.

Best regards

#993971#20
Date:
2021-09-09 19:51:41 UTC
From:
To:
I did a test creating a file with the accented letters (my language is
LANG=it_it), getting these results:

$ date > prova-accentate-àèéìòù-test

$ ls -ll
-rw-r--r--  1 root   root     31  9 set 21.34 prova-accentate-àèéìòù-test

$ ls prova-accentate-àèéìòù-test | hd
00000000  70 72 6f 76 61 2d 61 63  63 65 6e 74 61 74 65 2d 
|prova-accentate-|
00000010  e0 e8 e9 ec f2 f9 2d 74  65 73 74 0a |àèéìòù-test.|

This test is ok
--- $ kate prova-accentate-àèéìòù-test $ ls -ll -rw-r--r--  1 root   root     31  9 set 21.35 prova-accentate-ᅵᅵᅵᅵᅵᅵ-test $ ls prova-accentate-ᅵᅵᅵᅵᅵᅵ-test | hd 00000000  70 72 6f 76 61 2d 61 63  63 65 6e 74 61 74 65 2d  |prova-accentate-| 00000010  ef bf bd ef bf bd ef bf  bd ef bf bd ef bf bd ef |ᅵᅵᅵᅵᅵï| 00000020  bf bd 2d 74 65 73 74 0a |¿œ-test.| This test has an unexpected result, It seems that Kate does not manage these characters...
#993971#25
Date:
2021-09-09 22:50:33 UTC
From:
To:
Hi all,
- filename is encoded in latin1
- kate expects utf8
- kate replaces the non-interpretable characters from latin1 with
	�	(Unicode "REPLACEMENT CHARACTER")
  which has hex utf-8 bytes
	EF BF BD
  which you see in the hd output:


I have never tried running KDE in a *non UTF-8* locale, that might be
problematic.

I tried to reproduce this with
	LANG=de_AT@euro kate
(this is a iso locale defined on my computer) but kate always uses utf8.

So I suggest that you make sure that your locales are properly set up,
and match with the settings of kde.

Best

Norbert

#993971#30
Date:
2021-09-11 02:45:58 UTC
From:
To:
Hi.

I have done a few tests on a virtual machine and I have discovered that the
problem is with ibus latest package.  I have problems with ibus 1.5.25  and
it is only fixed when I downgrade it to 1.5.24.

So I think that we should reassign this bug to ibus.

Regards,

Adilson

Em qui., 9 de set. de 2021 às 19:50, Norbert Preining <norbert@preining.info>
escreveu:

#993971#35
Date:
2021-09-11 13:30:38 UTC
From:
To:
I tried downgrade but the problem remains. If for you it works, it means
that you have solved only a part of the problem.

Norbert's deductions are correct, I also saw the source code and it
looks internally Kate work only in utf-8, so it does not seem to be an
environment problem but of application or of libraries (and for this
reason it may also concern more applications).

The confirm of this: if I try to open the same file with LibreOffice
Writer from console (with "lowriter filename"), instead it works properly.


Il 11/09/21 04:45, Adilson dos Santos Dantas ha scritto: