sarim / ibus-avro

Avro phonetic bangla typing layout for ibus
Mozilla Public License 2.0
240 stars 92 forks source link

What does it mean and how to fix? #206

Open sh-bd opened 11 months ago

sh-bd commented 11 months ago

In response to my issue, Sarim Khan bhai replied something like this. I've already tried some basic stuff such as– restarting ibus and all but it doesn't help. Does anyone know— how to solve this?

image

Translation: Whenever I am writing something using Avro phonetic layout and adding space at the end of the word, sometimes it automatcally goes to the beginning of the word! Do you know any solutions for this issue? Thanks in advance.

archisman-panigrahi commented 11 months ago

Which OS and which Desktop Environment are you using?

Also, please translate the issue in English, because some of the contributors to this project cannot read Bangla, and the text from the image you posted cannot be copied into Google translate (because it is an image).

sh-bd commented 11 months ago

Well, its Ubuntu 23.10 64-bit (Wayland)

gunnarhj commented 11 months ago

Please let us know the output from this terminal command:

gsettings get org.gnome.desktop.input-sources sources
sh-bd commented 11 months ago

Thank you @gunnarhj for your comment. It shows me–

[('xkb', 'us'), ('ibus', 'ibus-avro')]

Please let us know the output from this terminal command:

gsettings get org.gnome.desktop.input-sources sources
sarim commented 11 months ago

It was an old problem where gtk/qt immodule was not set to ibus and ibus then runs in xim (Xserver) mode. But in recent gnomes that shouldn't be possible. @gunnarhj are you aware of similar problems in modern gnome with wayland?

@sh-bd Can you provide a screen capture video showing the issue?

sh-bd commented 11 months ago

Yeah, sure! Thank you again @sarim bhai for replying. Here is the screen recording– Screencast from 2023-12-12 20-49-26.webm

gunnarhj commented 11 months ago

@sarim wrote:

It was an old problem where gtk/qt immodule was not set to ibus and ibus then runs in xim (Xserver) mode. But in recent gnomes that shouldn't be possible. @gunnarhj are you aware of similar problems in modern gnome with wayland?

No I'm not. GNOME sets these variables only:

$ env | grep -E 'XMOD|_IM'
XMODIFIERS=@im=ibus
QT_IM_MODULE=ibus

Gtk is handled internally by GNOME, and in Wayland it's wrong to set the GTK_IM_MODULE variable explicitly.

@sh-bd: To check the variables for you, can you run this command: env | grep -E 'XMOD|_IM'

sh-bd commented 11 months ago

@sarim wrote:

It was an old problem where gtk/qt immodule was not set to ibus and ibus then runs in xim (Xserver) mode. But in recent gnomes that shouldn't be possible. @gunnarhj are you aware of similar problems in modern gnome with wayland?

No I'm not. GNOME sets these variables only:

$ env | grep -E 'XMOD|_IM'
XMODIFIERS=@im=ibus
QT_IM_MODULE=ibus

Gtk is handled internally by GNOME, and in Wayland it's wrong to set the GTK_IM_MODULE variable explicitly.

@sh-bd: To check the variables for you, can you run this command: env | grep -E 'XMOD|_IM'

@gunnarhj, it shows me:

XMODIFIERS=@im=ibus
QT_IM_MODULE=ibus
gunnarhj commented 11 months ago

@sh-bd: That's as it should be.

sh-bd commented 11 months ago

@gunnarhj, should I uninstall and reinstall or what?

gunnarhj commented 11 months ago

should I uninstall and reinstall or what?

I don't know. I can't reproduce the issue on my machine.

archisman-panigrahi commented 11 months ago

@sh-bd How did you configure Avro after installing the ibus-avro package from APT?

sh-bd commented 11 months ago

@archisman-panigrahi I followed a medium tutorial that made me follow the instructions that are down below:

  1. Open terminal and write sudo apt-get install ibus-avro
  2. Run IBus (Applications -> System Tools -> IBus) from Dash
  3. Open IBus Preferences from the top panel icon
  4. Go to Input method
  5. Select an input method -> Bengali -> Avro

But here in number 5, I didn't find Avro even after restarting the PC and ibus restart, so I had to go the App Center and install Avro Phonetic. And after restarting this time, I found the option to select Avro as an input method. Then I followed the next instructions

  1. Now Click Add button to add Avro to the list
  2. Now restart IBus from the top panel icon (Right Click -> Restart)
  3. Now Press Ctrl+Space to toggle between English and Avro (Bengali)

Please let me know if you find anything wrong or can be modified!

archisman-panigrahi commented 11 months ago

@gunnarhj I have not used GNOME for several years, and cannot say if the steps followed by @sh-bd still work in recent versions of Ubuntu with GNOME. Can you please comment on that?

gunnarhj commented 11 months ago

Hmm.. Those steps do not apply to Ubuntu with GNOME. Please note that IBus runs behind the scenes by default when using Ubuntu, and you normally do NOT need to bother with IBus Preferences.

These steps should be sufficient:

  1. Install the ibus-avro package: sudo apt install ibus-avro
  2. Log out and log in again
  3. Go to Settings -> Keyboard and add Avro Phonetic to the input sources (you already did this deeming from this comment)

Then you can switch to Avro Phonetic via the input source indicator in the top bar, or by using the Super+Space shortcut.

sh-bd commented 11 months ago

@gunnarhj it doesn't help! After reinstalling, it works as it did before. How can I completely remove the previous package?

gunnarhj commented 11 months ago

I'm out of ideas, sorry.