sarim / ibus-avro

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

downloaded ibus on raspbian os but there's no "bengali" language #177

Closed theusurperofnilfgaard closed 3 years ago

theusurperofnilfgaard commented 3 years ago

after downloading ibus i went to input method method and selected ibus.Then i went to ibus preferences--> input Method--> add but when typed "b" on search bar the only language avaiable was bulgerian.bengali was missing.no idea what to do.is apt-pinning only way to get it on raspbian? im no superuser so i might end up breaking up the system.

archisman-panigrahi commented 3 years ago

ibus-avro is not available in Raspbian (Debian) Buster. It would be available in Bullseye and onwards.

Please compile this project from source after installing ibus to use ibus-avro.

archisman-panigrahi commented 3 years ago

Alternatively, try installing this .deb package from Bullseye. Note that I have not tried this method.

However I did compile ibus-avro from source on a Raspberry Pi a few years ago, and it worked.

theusurperofnilfgaard commented 3 years ago

Please compile this project from source after installing ibus to use ibus-avro.

i compiled it from the source in the first place and the issue was there.

archisman-panigrahi commented 3 years ago

Click on the three vertical dots to see the unlisted languages. Have a look at this comment for screenshots. https://github.com/sarim/ibus-avro/issues/175#issuecomment-832167576

Also, you may have to restart before it appears in the list.

theusurperofnilfgaard commented 3 years ago

Click on the three vertical dots to see the unlisted languages. Have a look at this comment for screenshots. #175 (comment)

i checked it again and there was no bengali language.

theusurperofnilfgaard commented 3 years ago

Also, you may have to restart before it appears in the list.

after first time i compile it?

archisman-panigrahi commented 3 years ago

after first time i compile it?

If you have already restarted since then, that should be fine. Also try installing the .deb package from the link I shared.

gunnarhj commented 3 years ago

@apandada1 wrote:

ibus-avro is not available in Raspbian (Debian) Buster. It would be available in Bullseye and onwards.

If it incidentally is Raspbian Testing, ibus-avro should be there and you can just do:

sudo apt install ibus-avro

@theusurperofnilfgaard wrote:

bengali was missing

If the IBus version is > 1.5.21 it may be shown as "Bangla" in the list instead of "Bengali" on an English system.

theusurperofnilfgaard commented 3 years ago

First i installed the .dev package from apandada1 and did sudo apt install ibus-avro .The output was:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ibus-avro is already the newest version (1.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

then i clicked ibus preferences which gave me dialog box saying "The IBus daemon is not running . Do you wish to run it?" i clicked yes and another dialog box said "IBus daemon could not be started in 5 seconds"

later i went to terminal and typed ibus and there was a option called ibus restart which claimed to "restart IBus daemon" i did it and here's the output:

Can't connect to IBus.

i dont know what to do now.

theusurperofnilfgaard commented 3 years ago

i found an identical issue https://github.com/ibus/ibus/issues/1973#issue-287328454

gunnarhj commented 3 years ago

i dont know what to do now.

I would suggest that you install the im-config package if it's not installed already (and then reboot).

sudo apt install im-config

That's a Debian package which should launch ibus-daemon at login and set some related environment variables.

i found an identical issue https://github.com/ibus/ibus/issues/1973#issue-287328454

Did you also rename /usr/bin/ibus-daemon to /usr/bin/ibus-daemon.bak?

theusurperofnilfgaard commented 3 years ago

I would suggest that you install the im-config package if it's not installed already (and then reboot)

it was already installed.

Did you also rename /usr/bin/ibus-daemon to /usr/bin/ibus-daemon.bak?

so i went to /usr/bin and did ls *ibus* .the output was :

ibus  ibus-daemon  ibus-setup

no,i didn't rename it.what that'd do?

gunnarhj commented 3 years ago

Did you also rename /usr/bin/ibus-daemon to /usr/bin/ibus-daemon.bak?

so i went to /usr/bin and did ls ibus .the output was :

ibus ibus-daemon ibus-setup

no,i didn't rename it.what that'd do?

Well, you claimed that you found an identical issue, and I noticed that the author of that issue had renamed ibus-daemon which probably explained their problem. ;)

As regards im-config: Can you please show the output of this command:

im-config -m
theusurperofnilfgaard commented 3 years ago

As regards im-config: Can you please show the output of this command:

here it is :

default
ibus
ibus
gunnarhj commented 3 years ago

It's odd that there is nothing between default and the first ibus. Do you have an ~/.xinputrc file? If you have, please remove it, reboot, and let us know if it makes a difference.

theusurperofnilfgaard commented 3 years ago

i did it and heres the output:

default
missing
ibus

ibus
gunnarhj commented 3 years ago

That looks better. Does possibly ibus-daemon run now? What's the output of:

ps x | grep ibus
theusurperofnilfgaard commented 3 years ago

output:

 6337 pts/0    S+     0:00 grep --color=auto ibus

btw i forgot to say thanks for helping me out of this. thank you for looking into this matter.

theusurperofnilfgaard commented 3 years ago

same issue? https://archived.forum.manjaro.org/t/i-want-ibus-daemon-to-run-all-the-time/105414

gunnarhj commented 3 years ago

So ibus-daemon is still not running, which is a mystery. Then try to start it manually:

ibus-daemon -dx

If that command succeeds you should be able to open ibus-setup and add Avro as an input method.

Btw, can you also show us the output of this command:

env | grep -E 'XMOD|_IM'

same issue? https://archived.forum.manjaro.org/t/i-want-ibus-daemon-to-run-all-the-time/105414

Can't really tell. Others with similar difficulties indeed. As regards the problem described in the beginning of that page, I have reported it to IBus upstream.

theusurperofnilfgaard commented 3 years ago

If that command succeeds you should be able to open ibus-setup and add Avro as an input method.

it didnt.

here's the output:

QT4_IM_MODULE=ibus
XMODIFIERS=@im=ibus
CLUTTER_IM_MODULE=ibus
QT_IM_MODULE=ibus
gunnarhj commented 3 years ago
ibus-daemon -dx

If that command succeeds you should be able to open ibus-setup and add Avro as an input method.

it didnt.

Note that if running that command didn't result in any output, it indicates that the command did succeed. It just starts a bunch of processes in the background. You can confirm afterwards by running:

ps x | grep ibus

Otherwise please show us any error messages you got when running the ibus-daemon -dx command.

As regards the related environment variables, GTK_IM_MODULE is missing in that output. That's also a mystery. im-config seems to run at login, but why doesn't it set GTK_IM_MODULE?

Well, one possible reason is that a couple of packages are missing. So please try:

sudo apt install ibus-gtk ibus-gtk3
theusurperofnilfgaard commented 3 years ago

Otherwise please show us any error messages you got when running the ibus-daemon -dxcommand.

no,there was no error message .later i did ps x | grep ibus which says:

1621 pts/0    S+     0:00 grep --color=auto ibus

Well, one possible reason is that a couple of packages are missing.

those packages are up-to-date.

when i did ibus-setup ,a dialog box came saying "The IBus daemon is not running . Do you wish to run it?" after i clicked "yes" it the terminal output was:

Can not execute default config program

(ibus-setup:5107): IBUS-WARNING **: 00:20:46.727: Unable to connect to ibus: Error receiving data: Connection reset by peer

note:"WARNING" was on yellow and time " 00:20:46.727 " was on blue color.i don't know if it means anything.

gunnarhj commented 3 years ago

It may be something in your $HOME directory. Try this command:

rm -rf ~/.cache/ibus

and reboot.

theusurperofnilfgaard commented 3 years ago

It may be something in your $HOME directory. Try this command:

rm -rf ~/.cache/ibus

and reboot.

i did it but nothing changed.

gunnarhj commented 3 years ago

Then I'm out of ideas. Sorry.

Whatever the problem is, it's not really an ibus-avro one, since ibus-avro is an IBus plugin, and it's ibus-daemon which refuses to start.

theusurperofnilfgaard commented 3 years ago

okay. i'm thinking of reinstalling raspbian. thanks for looking into this matter so far.