Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anki doesn't support anymore ibus-anthy #2794

Closed
KRSHK opened this issue Sep 15, 2018 · 9 comments
Closed

anki doesn't support anymore ibus-anthy #2794

KRSHK opened this issue Sep 15, 2018 · 9 comments

Comments

@KRSHK
Copy link

KRSHK commented Sep 15, 2018

System

  • xuname:
    Void 4.18.7_2 x86_64 GenuineIntel uptodate rrrmFFFF
  • package:
    anki-2.1.4_3
    ibus-1.5.19_1
    ibus-anthy-1.5.10_1

Expected behavior

When switching language with , I can write in Japanese
(worked well in anki 2.0.52)

Actual behavior

Nothing happens, it works for all the gtk application.
Unfortunately, I have no other Qt5 application.

@CameronNemo
Copy link
Contributor

Can you test with env QT_IM_MODULE=ibus anki? I would also suggest testing with other Qt5 applications. If that does not work you may wish to file an issue with https://github.com/ibus/ibus-anthy.

@mvf
Copy link
Contributor

mvf commented Sep 17, 2018

Working fine over here with these environment variables:

GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

I recommend switching to the superior Mozc backend though.

@KRSHK
Copy link
Author

KRSHK commented Sep 17, 2018

@mvf I got the same in my .xinitrc, but I still have the same issue.
I had to downgrade to the previous version to use it.

@mvf
Copy link
Contributor

mvf commented Sep 18, 2018

Hm, sounds like an issue with your qt5 then. Which is odd because IBus support is shipped with the qt5 package itself. For starters you could check if the IBus plugin is loaded:

  • Start Anki 2.1
  • Find the PID of Anki's python3 process, e.g.:
$ ps x|grep anki
 9857 pts/3    tl     0:00 /usr/bin/python3 /usr/bin/anki
  • List Anki's loaded platform input contexts:
$ grep platforminput /proc/9857/maps
7f8bc892d000-7f8bc8959000 r-xp 00000000 fe:00 2490549                    /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
7f8bc8959000-7f8bc8b58000 ---p 0002c000 fe:00 2490549                    /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
7f8bc8b58000-7f8bc8b5a000 r--p 0002b000 fe:00 2490549                    /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
7f8bc8b5a000-7f8bc8b5b000 rw-p 0002d000 fe:00 2490549                    /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so

If the grep produces no output, the plugin is not loaded.

@maxice8
Copy link
Contributor

maxice8 commented Jan 18, 2019

Works here, please comment if it still happens

@maxice8 maxice8 closed this as completed Jan 18, 2019
@buhtz
Copy link

buhtz commented Oct 24, 2019

@ KRSHK never gave feedback about the question if the IBus plugin is loaded (grep output).

I have similar issue on Debian 10. IBus do not work with Anki and JabRef but with all other applications.

Looks like the plugin is loaded, or not?

$ ps x|grep anki
 2633 ?        S      0:00 anki
 2634 ?        Sl     0:01 anki
 2647 ?        S      0:00 /usr/local/share/anki/bin/PyQt5/Qt/libexec/QtWebEngineProcess --type=zygote --webengine-schemes=qrc:sLV --lang=de
 2666 ?        Sl     0:00 /usr/local/share/anki/bin/PyQt5/Qt/libexec/QtWebEngineProcess --type=renderer --disable-gpu-memory-buffer-video-frames --enable-threaded-compositing --use-gl=desktop --enable-features=AllowContentInitiatedDataUrlNavigations --disable-features=MojoVideoCapture,SurfaceSynchronization,UseVideoCaptureApiForDevToolsSnapshots --service-pipe-token=16830525389478654353 --lang=de --webengine-schemes=qrc:sLV --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=16830525389478654353 --renderer-client-id=3 --shared-files
 2685 ?        Sl     0:00 /usr/local/share/anki/bin/PyQt5/Qt/libexec/QtWebEngineProcess --type=renderer --disable-gpu-memory-buffer-video-frames --enable-threaded-compositing --use-gl=desktop --enable-features=AllowContentInitiatedDataUrlNavigations --disable-features=MojoVideoCapture,SurfaceSynchronization,UseVideoCaptureApiForDevToolsSnapshots --service-pipe-token=15147927836790610252 --lang=de --webengine-schemes=qrc:sLV --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=15147927836790610252 --renderer-client-id=4 --shared-files
 2686 ?        Sl     0:00 /usr/local/share/anki/bin/PyQt5/Qt/libexec/QtWebEngineProcess --type=renderer --disable-gpu-memory-buffer-video-frames --enable-threaded-compositing --use-gl=desktop --enable-features=AllowContentInitiatedDataUrlNavigations --disable-features=MojoVideoCapture,SurfaceSynchronization,UseVideoCaptureApiForDevToolsSnapshots --service-pipe-token=6013967191318686864 --lang=de --webengine-schemes=qrc:sLV --num-raster-threads=2 --enable-main-frame-before-activation --service-request-channel-token=6013967191318686864 --renderer-client-id=5 --shared-files
 2757 pts/0    S+     0:00 grep anki

$ grep platforminput /proc/2633/maps

$ grep platforminput /proc/2634/maps
7fe6045f1000-7fe6045fc000 r-xp 00000000 08:11 6967022                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
7fe6045fc000-7fe6047fb000 ---p 0000b000 08:11 6967022                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
7fe6047fb000-7fe6047fc000 r--p 0000a000 08:11 6967022                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
7fe6047fc000-7fe6047fd000 rw-p 0000b000 08:11 6967022                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
7fe6047fd000-7fe604819000 r-xp 00000000 08:11 6967023                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
7fe604819000-7fe604a18000 ---p 0001c000 08:11 6967023                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
7fe604a18000-7fe604a19000 r--p 0001b000 08:11 6967023                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
7fe604a19000-7fe604a1a000 rw-p 0001c000 08:11 6967023                    /usr/local/share/anki/bin/PyQt5/Qt/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so

I reported this also in the Anki support plattform
https://anki.tenderapp.com/discussions/ankidesktop/36513-ibus-anthy-not-working

And in JabRef
JabRef/jabref#5255

@buhtz
Copy link

buhtz commented Oct 24, 2019

@CameronNemo
Copy link
Contributor

looks like a different issue. debian bug references regression from z.19 to z.21. This bug was wiled against z.19.

@buhtz
Copy link

buhtz commented Nov 2, 2019

Side information:
On Debian 10 some modifications where done and JabRef works again witih ibus-anthy. But Anki (2.1.15) still not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants