Mystery Keyboard Level 3 or how to type a long dash


    Source: Pexels

    Each Habr user who has at least once printed a space-hyphen-space here can see how the hyphen is magically replaced with a long dash. It worked out automatically, similar to the one found in Word and other word processors.

    What is a long dash
    Тире, или попросту черточка (dash), бывает трех основных сортов, если не заморачиваться:

    • Дефис, самая короткая, вводится с клавиатуры.
    • Длинное тире или EM DASH — это черточка шириной в латинскую M. Вот как в этой фразе.
    • Среднее тире или EN DASH — черточка шириной в латинскую N. Вот такая: –

    Если же заморачиваться, черточек этих существует изрядное множество, со своими традициями, гуру и холиварами. Ну как без них.

    By the nature of my business, I have to deal with typography , and in order to format the text correctly and immediately, without relying on the mercy of the iron brain, I need to be able to type characters from the keyboard that cannot be entered. In particular, the longest dash, which is often used in the design of direct speech.

    But, as we know: if you can not, but really want, then you can. For a long time I was sitting on Windows, and used a well-known combination for typing missing characters on a keyboard: a clamped <Alt> + series of keystrokes on a small (numeric) keyboard. For example, a long dash was inserted with set 0151 with the alto clamped. (The method worked smoothly on the popularly loved Khryusha, as now - I do not know, tell me in kamentah.)

    A few years ago, when I made the final decision to move to Linux, the problem of quickly entering typographic characters arose to its full height. It's not just dash it all sorts of typographical quotation marks - "Christmas trees" and "feet", and even degrees of vodka Celsius °, the approximate equality ≈ and other necessary things.

    As usual, I got into the Internet to find a solution. As usual, it was found immediately.

    Compose key


    This method of search engines issued in large quantities. What it is?

    The Compose method allows, by pressing and releasing a specially assigned key, to enter a code sequence of characters and get the corresponding symbol on the screen of a candy wrapper .

    For example, pressing 1 and then 2, we get ½. To get a long dash, you must press a hyphen three times, and so on. Learn the code table, bro requires remembering code combinations , when intuitive, when not very.

    The role of Compose can be assigned, for example, the left Win, aka Super. Or right, as it is convenient to whom. However, after some time I felt: some uncomfortable method, felt at the beginning, does not want to dissolve with time. He remembered the rapid method of percussion on the numbers and slightly nostalgic.

    Level 3


    Let me remind you, it was a few years ago. In the search results stream, there were several times references to a mysterious third level, but it wasn’t possible to google it at once.

    And I remained a happy Compose clicker, until one day I climbed into the jungle of my Linux keyboard settings and stumbled there about ... the word "level 3"! Both-on ...

    (Or was it already translated into Russian? .. I don’t remember. It doesn’t matter. And I won’t bore with the lyrics, right to the point.)

    The keyboard has levels. The first level is when you just pressed a key. For example, pressing “A” will print “a”; pressing "2" - print "2".

    The second level is when you pressed the key while clamping the shift. Then, by pressing "A", you will print "A"; pressing "2" - you will print "@" (in the Latin layout) or "" "in Russian.

    By activating the third level, you will be able to type other characters, only it is necessary to clamp not the shift, but the modifier key specially assigned by you. It's convenient for me to switch to the third level with the right Alt. It is easy and simple to enter frequently used quotes for Christmas trees and long dashes with one hand.

    But that's not all! By holding down the shift and the Level3 key at the same time, we will get the fourth level and a few more characters that do not fit in the logical, intuitively expected places of the third.

    To use this bun, Linux users need to remember to include “additional typographic characters” in the “different compatibility options”. Well, of course, choose a key to select the third level (or the third row, depending on the translation, level 3, in general). Then you can see and print a map of the characters involved in the settings.



    But there is a fifth level - but an inquisitive reader will deal with it himself; to the unprofitable, it is not necessary at all, as imha whispers to me.

    There is a feature in all major DEs (Gnome 3 users will have to install a tweaker). What about windows? It turns out that there is such an opportunity. The keyword for the search is “the layout of the Birman.”

    Wikipedia article
    project site

    I myself, for obvious reasons, did not check this software. I would be grateful sensible comments knowledgeable. I will bring.

    Total


    Both Linux and Windows users can customize the Birman layout, or use the Compose method, or both, Winnie the Pooh used to say.

    Now we can easily enter the characters "" - ° ≈½⅓¼ ← →, numbers in square ², in cubes ³, and other chiaroscuro.

    And even we can unpremeditably place the blows on the strike!

    Upd1:


    Comrade sauron suggests : the configuration of third-level symbols is in the file / usr / share / X11 / xkb / symbols / typo.

    Compose method for Windows users advises comrade ainu : WinCompose project on GitHub.

    Upd2:


    For android there are several keyboards that have something like a third level. A long tapa brings up a window in which you can select additional symbols. At first I used the Hacker's Keyboard , then I moved the Russian-speaking author to the Full Keyboard mod .

    Also popular now: