Hey everyone! I'm planning to switch to Linux over my vacation and I'm getting the hang of using software like Krita and LibreOffice. One challenge I'm facing is typing in multiple languages, which is really important to me. I've set up different keyboard layouts for languages like Portuguese and Japanese using fcitx5, and I've enabled the compose key, which has helped a lot. However, I can't seem to type the Guarani letter g with a combining tilde (g̃). Is there a way to modify my keyboard layout or compose key settings to include this letter? Thanks in advance! By the way, I'm using KDE Neon. After some tinkering, I managed to add a line to the compose file in /usr/share/X11/locale/en_US.UTF-8/ and it worked!
2 Answers
So, g̃ actually doesn't have a single Unicode codepoint. When you type it, what you're doing is combining the character 'g' with a combining tilde on the fly. Unfortunately, the Compose mechanism doesn't directly support that combination. A quick workaround is to type 'g', then press Ctrl+Shift+u, type 0303, and hit Return to get the tilde.
You could definitely use the compose method for this! Create a file named .XCompose in your home directory (don't forget the dot). Inside that file, add the line: ` : "g̃"`. Just make sure to include that include "%L" line at the top so your other compose sequences still work. I haven't tested it personally, but it should do the trick!
I tried the .XCompose method but it didn't work for me. I ended up adding a line in the /usr/share/X11/locale/en_US.UTF-8/ Compose file and that did the job!

I find it interesting that compose can handle multibyte Unicode but not this specific case. Seems like a limitation!