this post was submitted on 21 Apr 2025
13 points (100.0% liked)

Linux

9948 readers
146 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Has anyone successfully typed either European accented characters or Japanese Kanas on their physical keyboard?

For the longest time, I've been trying to get non-English characters to appear on my system. Specifically European accented characters. I've read about the compose key, but I could never make it work somehow.

I've also tried to make the Kanas to appear using the Japanese keyboard, but that too doesn't work.

I'm using mostly KDE system, on many different distros. As for the keyboard, it's almost always standard US QWERTY without the numpad, varying between various laptops (mostly Thinkpads) and USB keyboards. For the Japanese, it's a Thinkpad W530 (should also apply to X230, T430, and T530).

I've been using Linux for quite a while now. I'm familiar with most inner working of the system, but this the one thing I can never wrap my head around!

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 3 days ago

For Japanese I use an IME (input method editor), specifically Fcitx. Basically it lets you type in romaji and converts that into kana or kanji. Just note that it needs an additional package (like fcitx-mozc) for each language.

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago) (1 children)

Has anyone successfully typed either European accented characters or Japanese Kanas on their physical keyboard?

For the Latin extended characters, I've used AltGr, Compose, probably at some point the GTK control-shift-u thing. I've also used various emacs text input methods to do so. I don't speak Japanese.

I don't use KDE, but it looks like you can set it up to bind Compose at a per-user level once you've logged into your account.

https://userbase.kde.org/Tutorials/ComposeKey

EDIT: "Motörhead"


that was typed using the Compose key, which on this laptop I have replacing the Right Alt key. On this system, which is Debian, I do it systemwide by editing /etc/default/keyboard, and adding:

XKBOPTIONS="compose:ralt,terminate:ctrl_alt_bksp,ctrl:swapcaps"

That swaps Left Control and Caps Lock, sets Right Alt to be Compose and...hmm, actually, I should check whether Control-Alt-Backspace still functions to kill Wayland, or if that stopped working when I moved off X11.

Then I ran # dpkg-reconfigure keyboard-configuration.

But if you're on a non-Debian-based distro, things may work differently.

[–] [email protected] 2 points 3 days ago

Yeah I'm French and the Compose key works great, at least for the limited number of diacritics in French.

[–] xrun_detected 1 points 3 days ago

for me fcitx works great with KDE, both x11 and wayland. been using it for a long time, with some european languages and chinese

[–] [email protected] 1 points 3 days ago

I use the keyboard layout EurKey, which is available on KDE Plasma. It's QWERTY but with European special characters on layer 5, i.e. they are accessed by Alt Gr.