Bug 323143 - Backspace behaves unintuitively in Tamil keyboard layout
Summary: Backspace behaves unintuitively in Tamil keyboard layout
Status: RESOLVED FIXED
Alias: None
Product: calligracommon
Classification: Applications
Component: text-tool (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-03 16:32 UTC by beojan
Modified: 2022-03-20 10:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description beojan 2013-08-03 16:32:44 UTC
Letters in tamil are typed by entering the consonant-a letter, then a combining character to replace the 'a' with the appropriate vowel. For example, the sound 'ku' would be represented by ka - க and the '-u' combining character ு to give கு.

The vowel is suppressed by using the ் combining character to give 'k' (or 'ik') - க்.

When the backspace key is pressed, it deletes the consonant and the combining vowel. E.g. the entire letter கு would be removed. This is annoying, but in a way, logical.

However, if a vowel with suppressed consonant is typed, followed by another consonant (perhaps with combining vowel), e.g. ண்டை, both the second consonant and the first are deleted when backspace is pressed. This is very unintuitive.

Reproducible: Always
Comment 1 Christoph Feck 2013-08-10 23:04:34 UTC
Which application or text input field is this? Does it happen in Kate/KWrite, Calligra, or KMail? Does it also affect simple text line input fields, such as Alt+F2 KRunner?
Comment 2 beojan 2013-08-11 12:18:37 UTC
It appears to be in Calligra Words, and in the Calligra multiline text shape (and so, presumably, in all other Calligra applications). Elsewhere, it acts as expected, removing only the last entered keyboard character.
Comment 3 Camilla Boemann 2013-08-30 07:23:58 UTC
Can you tell me if you have specifially tested this in kate or kwrite, or in kmail composer.

Also I fear this is something that will go unfixed for a long time - unless you fix it yourself - which will be hard if yu are not a programmer
Comment 4 beojan 2013-08-30 09:55:04 UTC
It works as expected in both kwrite and kmail composer.

If you can give an indication of where the backspace logic is in the calligra code, I can have a go at fixing it myself.
Comment 5 Camilla Boemann 2013-08-30 10:21:47 UTC
plugins/testshape/TextTool.cpp

keyEvent() to be more specific, but it's rather convoluted code even then
Comment 6 Jagannathan Tiruvallur Eachambadi 2017-07-26 08:19:39 UTC
I can confirm that this happens in kate as well and I was just talking to some on IRC about in #kate this year. I had forgotten to file a bug, sorry. This seems to affect all application that use same backend for handling input. Can this issue be considered again.
Comment 7 Camilla Boemann 2017-07-26 08:31:45 UTC
Hmmmm kate and calligra doesn't use the same backend - except Qt and possibly some input helper app you have installed.

This indicates to me that the bug well not be be fixed here - but again as Cristoph said it's very low on our list of bugs.

But please gather more info like what other apps have the issue, and if some setting somewhere can prevent it
Comment 8 Jagannathan Tiruvallur Eachambadi 2017-07-26 09:02:42 UTC
I am using the Tamil layout from ibus/ibus-m17n and set it at boot time to switch between US and IN(TAM) using CAPS. I wanted to set it up globally to make sure it works in other WMs as well and it works inside plasma as well.

For example the intended behaviour described in the first comment works in Firefox and for a pure Qt example, clementine search has this behaviour. I am testing clementine's Qt5 experimental branch. Please do suggest any other test I could perform to narrow it down.
Comment 9 Camilla Boemann 2017-07-26 11:11:32 UTC
The hint about clementine is relevant as it is probably then a problem in both Kate and Calligra. Not the same directly but we seem to both have made a similar mistake

The next thing is finding a tamill speaking developer and have them get in contact with us.

Without a tamill keyboard and knowledge etc it's rather hard for us to know if we are doing the right thing - let alone that we don't have time to work on it
Comment 10 beojan 2017-07-26 11:58:07 UTC
QtCreator doesn't exhibit this bug, neither does VLC. KWrite (17.04) does.
Comment 11 beojan 2017-07-26 12:07:19 UTC
In fact, there's an easy way for anyone to reproduce this without knowing Tamil. The bug is in how Unicode combining characters are handled.

Here is a Unicode combining acute accent:  ́
Here is an 'e' followed by the above character: é

Type an e in your chosen application, then copy and paste the acute accent from above. If you then press backspace, only the accent should be deleted. If the bug is present, the e will also be deleted.
Comment 12 Jagannathan Tiruvallur Eachambadi 2017-08-05 18:34:03 UTC
I can confirm the behaviour mentioned by beojan. I see that both kwrite and kate use ktexteditor but I can't figure out how delete is handled. Am I correct in assuming that ktexteditor handles it or is done by lower level library?
Comment 13 Christoph Feck 2017-08-07 23:09:06 UTC
This ticket is for the Calligra office suite. If KTextEditor based applications, such as Kate, KWrite, Kile, or KDevelop show the same error, please file a separate ticket for Kate.
Comment 14 Jagannathan Tiruvallur Eachambadi 2018-01-19 08:42:04 UTC
This seems to fixed in Kate but not in Calligra.I don't know what changed though.
Comment 15 Kishore Gopalakrishnan 2022-03-20 10:11:35 UTC
I now get the expected behaviour in Calligra Words. Please reopen if you can still reproduce this.

SOFTWARE INFORMATION:
IM: ibus 1.5.25 / keyman 13.0.103
Calligra version: 3.2.1
Operating System: Arch Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Graphics Platform: X11