A devoted reader of my blog might have noticed that I care about typography. For instance, my use of em-dash — which I love — or ⌀, the diameter symbol. That involves the use of special techniques while typing.
It’s also worth noting that many people prefer to communicate with emojis over letters nowadays (which is even reflected in modern architecture).
While it’s quite trivial to enter such characters on a smartphone, it may get tricky when it comes to a Linux desktop. But fear not, for that is actually taken care of: there are even multiple ways of inserting your favourite 🐱.
I’ll elaborate on those ways from trivial to advanced.
Characters
If we’re talking Gnome (for example, a stock Ubuntu), there’s the Characters (gnome-characters
) application readily available out-of-the-box.
It allows you to browse emojis and other characters, arranged in groups. When you click on a character, you’ll get a popup that allows you to copy it to the clipboard (there’s still a question why fly-agaric is filed under “Food & Drink” though):
Even better, you can filter emojis by name here:
Character Map
Next to the Gnome Characters there’s also a bit less user-friendly Character Map app (gucharmap). You can install it using the button below:
Install Character Mapor with the following command in the Terminal:
sudo apt install gucharmap
This one is more suitable for searching for various letters and symbols rather than emojis; its search feature is also a bit hacky for you need to be exact in your search query.
Compose key for advanced typing
The above applications come in handy if you only occasionally search for a specific emoji, but they’re hardly usable during routine text typing.
In the latter case your best choice is the so-called Compose key. It’s a key you designate for entering the compose mode, when you “assemble” a character from parts.
By default there’s no Compose key assigned in the system. In order to configure it you’ll first need to install the Gnome Tweaks utility app using the button below:
Install Tweaksor by running the following in the Terminal:
sudo apt install gnome-tweaks
Having installed and started Tweaks, navigate to Keyboard & Mouse and click the button next to Compose Key:
You’ll get a number of options to choose from. My personal preference is right Alt, as it’s both convenient and not conflicting with other shortcuts I’m using.
Once you’ve assigned the compose key, you’ll be able to build up lots of different characters.
You’ll always need to tap the compose key first, followed by other characters, for instance:
- Em dash: ---
- Left angle quote
«
: <<, right quote»
: >> - Euro sign
€
: C= - Copyright sign
©
: oc - Right arrow
→
: -> - Character
é
: e’ - Character
¾
: 34
As you see, the above is consistent and can easily be memorised. Some other combinations are less evident, but can still be remembered if you use them often.
Good news is that these combinations can usually be typed in any order, and they work in every text field.
X.org documentation provides the complete list of available compose combinations, whereas I list a few more common ones under the spoiler below.
Combination | Result |
---|---|
’a | á |
"a | ä |
`a | à |
~a | ã |
^a | â |
ca | ǎ |
<s | š |
oa | å |
-a | ā |
,a | ą |
ba | ă |
?a | ả |
.a | ȧ |
ae | æ |
AE | Æ |
oe | œ |
OE | Œ |
dh | ð |
DH | Ð |
oo | ° |
ox | ¤ |
oc | © |
or | ® |
so | § |
ss | ß |
SS | ẞ |
th | þ |
TH | Þ |
tm | ™ |
xx | × |
.. | … |
.^ | · |
<< | « |
>> | » |
// | \ |
/C | ₡ |
/o | ø |
/O | Ø |
?? | ¿ |
’< | ‘ |
’> | ’ |
,c | ç |
,C | Ç |
"< | “ |
"> | ” |
!! | ¡ |
--- | — |
--. | – |
-: | ÷ |
-d | đ |
-D | Đ |
-L | £ |
^0 | ⁰ |
^1 | ¹ |
^2 | ² |
^3 | ³ |
^_a | ª |
^_o | º |
_0 | ₀ |
_1 | ₁ |
_2 | ₂ |
_3 | ₃ |
~n | ñ |
|c | ¢ |
=y | ¥ |
=c | € |
12 | ½ |
14 | ¼ |
34 | ¾ |
There’s a nice bonus to compose typing that the characters show up on screen as you type, and turn into the final character once it’s finished.
Should you wish to cancel the Compose mode after hitting the compose key, simply press Esc.
Unicode code-point entry for wizards
The most advanced (and, perhaps, efficient) way of dealing with weird characters is a direct code entry of the desired Unicode code-point. It may even be the only way when it comes to, say, Spacing Modifier Letters or Combining Diacritical Marks.
You enter the character by pressing Ctrl+Shift+U, followed by a hexadecimal character code, and, finally, an Enter.
Here’s an example of putting an accent above a Cyrillic е́ — which is supposed to be achieved by combining the letter е with the Combining Acute Accent (code 301
), and not by typing the Latin é
instead:
That’s it
I hope this will prove useful, feel free to comment if I missed something in this post! ■
Comments