Bug 2255492

Summary: Marathi Phonetic keyboard has not provided essential characters to type rather unused characters are given.
Product: [Fedora] Fedora Reporter: santosh-anantwal <santosh7anantwal>
Component: m17n-dbAssignee: Mike FABIAN <mfabian>
Status: CLOSED DEFERRED QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: i18n-bugs, mfabian, petersen, pnemade, shawn.p.huang, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-22 08:12:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pdf file none

Description santosh-anantwal 2023-12-21 09:22:23 UTC
Marathi Phonetic keyboard has not provided essential characters to type rather unused characters are given.
1) for example instead of ॲ the characters ऍ is given which is not in the language.
2) Marathi and Hindi uses different Devnagri scripts. (Marathi uses Balbodh style of Devnagri. But in keyboard Hindi Devnagri is given for example the vertical bar is used as fullstop in Hindi but in Marathi uses the dot.
3) While clicking on show "keyboard layout", it is expected to show characters on keyboard shown but English characters keyboard layout is shown.

More details in attachment file.

Reproducible: Always

Steps to Reproduce:
1.include Phonetic Marathi as input method
2.select Marathi from language bar
3.

Comment 1 santosh-anantwal 2023-12-21 09:26:28 UTC
Created attachment 2005258 [details]
pdf file

Comment 2 santosh-anantwal 2023-12-21 09:40:00 UTC
In Balbodh style of Devnagri, The 'Nukta' (Dot under the character) is not used. But In phonetic Marathi keyboard, characters with dots are given which are never used in Marathi.

Comment 3 fujiwara 2023-12-21 23:18:16 UTC
> 1) for example instead of ॲ the characters ऍ is given which is not in the
> language.
> 2) Marathi and Hindi uses different Devnagri scripts. (Marathi uses Balbodh
> style of Devnagri. But in keyboard Hindi Devnagri is given for example the
> vertical bar is used as fullstop in Hindi but in Marathi uses the dot.

Which ibus engines do you try? You can check the current engine name with `ibus engine` command.

I observed #1 issue with '!' key in /usr/share/m17n/mr-phonetic.mim and I guess you use "m17n:mr:phonetic" engine.

Which do you mean the expected result or the actual behavior in #2?
I see both "m17n:mr:phonetic" and "m17n:hi:phonetic" engine output '|' key for '.' key.

> 3) While clicking on show "keyboard layout", it is expected to show
> characters on keyboard shown but English characters keyboard layout is shown.

The similar issue was reported in bug #1790554 and I think we don't treat #3 in this issue.
If you run `ibus list-engine`, you could see "m17n:mr:phonetic" and "m17n:hi:phonetic" shows "default" layout.
And "default" layout means to inherit the current session layout.
Our expected fix is to show the current session layout but not handle "default" so our resoluion will be different from your expectation.
Because ibus-m17n converts the keys on "US" layout to the language keys and your "US" layout is the correct result.

So probably we need additional fix for your epected result after bug #1790554  is fixed, E.g. ibus-m17n needs to provide the layout list between m17n names and layouts.

Comment 4 fujiwara 2023-12-21 23:24:07 UTC
I guess /usr/share/m17n/config.mic or $HOME/.m17n/config.mic could be a custom configuration file reading m17n-lib/src/input.c

Comment 5 Mike FABIAN 2024-07-22 08:12:24 UTC
(In reply to santosh-anantwal from comment #1)
> Created attachment 2005258 [details]
> pdf file

Looking at the picture in your pdf file, I think you are talking about the mr-phonetic.mim input method in m17n-db.

Could you please report this upstream on the m17n mailing list?:

https://savannah.nongnu.org/mail/?group=m17n
https://lists.nongnu.org/mailman/listinfo/m17n-list

This is the file you want to change:

https://git.savannah.nongnu.org/cgit/m17n/m17n-db.git/tree/MIM/mr-phonetic.mim

You can make a patch to that file and send it to the mailing list.

It is pretty easy to edit that file, there is nothing complicated in it, it just contains simple lines like

  ("!" ?ऍ)
  ("1" ?१)

which means if one types the ! the result is ऍ, if one types 1 the result is १, ...

So if you can, please make a patch and send it to the m17n mailing list.

I can also help you make a patch, if you don’t know how to do that, but then please start a discussion on the m17n mailing list and explain exactly what key typed on the US keyboard layout should give which result. The m17n mailing list is the right place to do this, I can help you there and  other people can also give their input.

I want to close that bug here, not sure what status is appropriate, closing as DEFERRED.