10000 Add support for CJK input method editors · Issue #578 · pop-os/libcosmic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for CJK input method editors #578

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

Open
nonetrix opened this issue Aug 22, 2024 · 9 comments
Open

Add support for CJK input method editors #578

nonetrix opened this issue Aug 22, 2024 · 9 comments

Comments

@nonetrix
Copy link
nonetrix commented Aug 22, 2024

Languages like Japanese because they have so many characters have to use a IME (input method editor), pretty much if you type something like watashi it will allow you to turn that into 私. Usually this is managed by either ibus (mostly gnome) fcitx5 (everything else really) along with a engine like Mozc or Anthy which provides the suggestions to pick from. Here is what one looks like
image
Currently the only option is to change to Japanese keyboard which on surface seems fine, but this doesn't use Mozc. To my knowledge the only difference is that it adds key for yen symbol etc.
image
What is needed is like GNOME has
image
It says Mozc instead of just Japanese
image
Notice it let's you switch modes for input
image

@mmstick
Copy link
Member
mmstick commented Aug 22, 2024

IME support is not implemented upstream in iced yet.

@kenz-gelsoft
Copy link
kenz-gelsoft commented Feb 3, 2025

Minimal input method support landed in upstream.

iced-rs/iced#2777

This expected to be released in iced 0.14. Is there any chance to incorporate this in cosmic early betas?

Will it help if I backported this on top of 0.13 which pop-os/iced seems trying to rebase to?

@mmstick
Copy link
Member
mmstick commented Feb 4, 2025

We will rebase on 0.14 when it releases

@kenz-gelsoft
Copy link

Thank you for sharing your plan.
I'm daily driving with COSMIC desktop, so I'm looking forward to shiny COSMIC apps will support Japanese text input.

@Cherryda
Copy link

Sorry for intruding, are there any news on this? Tried Alpha 7 yesterday and noticed this issue.

@mmstick
Copy link
Member
mmstick commented Apr 27, 2025

@Cherryda See #578 (comment)

@Cherryda
Copy link

@Cherryda See #578 (comment)

Sorry, I meant to say if there were any updates on iced supporting CJK input? If not, where can I follow its development? Thanks for all your work.

@kenz-gelsoft
Copy link
kenz-gelsoft commented May 4, 2025

@Cherryda For your information,

I have backported IME support on pop-os/iced and libcosmic for testing purpose:

And have some COSMIC app branches utilize that:

I don't plan to send PRs for these as COSMIC people don't want before upstream iced 0.14 will be released.


EDIT: You can also patch COSMIC apps which don't have custom text widget such as cosmic-files, like this:

diff --git a/Cargo.toml b/Cargo.toml
index 0641d3e..d39de2b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -122,6 +122,9 @@ io-uring = { git = "https://github.com/tokio-rs/io-uring.git", rev = "2c9010a331
 # [patch.'https://github.com/pop-os/cosmic-text']
 # cosmic-text = { path = "../cosmic-text" }

+[patch.'https://github.com/pop-os/libcosmic']
+libcosmic = { git = "https://github.com/kenz-gelsoft/libcosmic.git", branch = "backport-input-method2" }
+
 # [patch.'https://github.com/pop-os/libcosmic']
 # libcosmic = { path = "../libcosmic" }
 # cosmic-config = { path = "../libcosmic/cosmic-config" }

Then cargo update libcosmic && cargo run should work.

@Cherryda
Copy link
Cherryda commented May 4, 2025

@Cherryda For your information,

I have backported IME support on pop-os/iced and libcosmic for testing purpose:

* https://github.com/kenz-gelsoft/iced/tree/backport-input-method2

* https://github.com/kenz-gelsoft/libcosmic/tree/backport-input-method2

And have some COSMIC app branches utilize that:

* https://github.com/kenz-gelsoft/cosmic-edit/tree/backport-input-method

* https://github.com/kenz-gelsoft/cosmic-term/commits/backport-input-method/

Thanks for telling me this, but in the meantime I've been using Fcitx5 as a bandaid solution to get Mozc input working. I'll still keep an eye on this, though.

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

4 participants
0