korean-input / issues

한국어 입력 이슈 트래커
90 stars 0 forks source link

Chromium wayland IME 미지원 #11

Open OctopusET opened 2 years ago

OctopusET commented 2 years ago

문제가 있는 프로그램

Chromium 및 chromium 기반 프로그램 (etc. electron)

환경

Arch Linux wayland 1.19.0 sway-git (r6763.57ae7516)

요약

chromium 기반 프로그램 wayland ime 미지원으로 다국어 입력 불가능.

재현방법

--enable-features=UseOzonePlatform --ozone-platform=wayland flag와 함께 chromium을 wayland native로 실행 후 입력 시도.

임시 해결 방법

google input tools 확장 프로그램을 설치하면 임시로 한국어 입력기 해결가능.

edit: xwayland에서는 문제없이 잘 작동합니다. 위 flag 없으면 기본으로 xwayland에서 실행 됩니다.

문제

참고자료

https://bugs.chromium.org/p/chromium/issues/detail?id=1039161 https://bugs.chromium.org/p/chromium/issues/detail?id=1183262 https://chromium-review.googlesource.com/c/chromium/src/+/3015331 https://github.com/fcitx/fcitx5/issues/263

OctopusET commented 2 years ago

https://bugs.chromium.org/p/chromium/issues/detail?id=1183262#c7

관련 작업을 시작하려는 사람이 나왔습니다. (igalia 소속)

Riey commented 2 years ago

@OctopusET 진행상황 공유 감사합니다.

OctopusET commented 2 years ago

[ui/gtk] Support GTK IME under ozone/wayland when using GTK 4

OctopusET commented 2 years ago

[ui/gtk] Support GTK IME under ozone/wayland when using GTK 4

상단 커밋을 적용한 chromium을 빌드하여 사용해 보았으나, kime (kime-git)을 이용해 한국어 입력 전환을 시도했으나, 작동이 안되는 문제가 있습니다.

OctopusET commented 2 years ago

[ui/gtk] Support GTK IME under ozone/wayland when using GTK 4

Merge 됨. 아직 kime등의 한글 입력기 테스트는 미실시 했습니다

OctopusET commented 2 years ago

상단커밋 적용된 chromium-snapshot-bin 으로 실행 옵션 --gtk-version=4 과함께 실행시 kime, ibus 한글입력 가능

fcitx는 작동 안하는 문제가 있습니다. https://bugs.chromium.org/p/chromium/issues/detail?id=1265118

OctopusET commented 2 years ago

electron 및 chromium 정식 빌드에 포함 안되었으므로 이슈 다시 열겠습니다

OctopusET commented 2 years ago

상단 커밋은 chromium 97 버전에 포함되어 곧 출시 됩니다. electron 의 경우에는 좀 더 기다려야 합니다.

상단 커밋이 포함되는 버전 정보: https://chromium.googlesource.com/chromium/src/+/23978dee2f47d915f79f2646822145aa021ad5a4/chrome/VERSION

크로미움 릴리즈 정보: https://chromiumdash.appspot.com/schedule

OctopusET commented 2 years ago

97버전은 출시 되었으나, wayland 1.20 버전을 chromium 에서 지원하지 않는 관계로 최신버전 wayland 에서는 실행 불가능합니다.

실행시 다음과 같은 에러가 발생합니다

interface 'wl_output' has no event 4

https://bugs.chromium.org/p/chromium/issues/detail?id=1279681

OctopusET commented 2 years ago

https://chromium.googlesource.com/chromium/src/+/dd4c3ddadbb9869f59cee201a38e9ca3b9154f4d 버그 픽스 Merge 됐으나, 97 버전에 추가 안될 수 도 있음

OctopusET commented 2 years ago

상단 에러 픽스 패치의 97 버전 Merge는 거부 되었으며, 98 버전 merge는 논의 후 추가 가능성이 있습니다 (2월 1일 출시). 일단 99버전에는 추가 되었습니다. (3월 1일 출시)

버전 출시정보: https://chromiumdash.appspot.com/schedule merge 관련 논의: https://bugs.chromium.org/p/chromium/issues/detail?id=1279574#c27

Riey commented 2 years ago

@OctopusET 끝났으면 해결됨 태그로 바꾸고 닫아주시면 됩니다

OctopusET commented 2 years ago

@Riey 네 처음 이슈를 해결하는 공식 chromium 릴리즈가 출시하지 않아 아직 닫지 않았습니다. 98버전에 머지 된다고 했으니, 해결 됨으로 변경하고 이후 닫도록 하겠습니다

OctopusET commented 2 years ago

ArchLinux 기준으로 97버전에도 오류 수정이 적용 되었습니다. https://github.com/archlinux/svntogit-packages/commit/65438875a60084a9b7840c1ee02c405574ca1536#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a

OctopusET commented 1 year ago

wayland protocol을 사용한 해결책이 아니므로 이슈를 다시 엽니다. GTK4를 사용한 해결책은 GTK3 및 electron에서 적용이 안됩니다.

관련 버그 이슈: https://bugs.chromium.org/p/chromium/issues/detail?id=1039161 작업 중인 내역: https://chromium-review.googlesource.com/c/chromium/src/+/3750452

OctopusET commented 1 year ago

https://github.com/electron/electron/issues/33662#issuecomment-1401965053 KWin에서 최근 text-input-v1 지원이 추가되어, chromium이 이미 지원하는 text-input-v1를 사용할 수 있습니다. --enable-wayland-ime 플래그로 해당 지원을 활성화 할 수 있습니다.

honnip commented 1 month ago

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3751

GNOME Mutter에 text-input-v1 지원을 추가하는 MR이 올라왔습니다.