Gå videre til hovedindholdet

Russisk Fonetisk Tastatur Layout i Linux Mint /Ubuntu

Baggrund:   

Som tosproget (dansk, russisk) støder jeg tit i problemer med at have to tastatur layouts på samme computer. For mange år siden fandt jeg en homofont russisk tastaturlayout for windows, som jeg brugte i mange år. Homofont layout betyder at de forskellige bogstaver placeret samme sted på tastaturet som de danske bogstaver. F.eks. Ved at trykke på "W" på den danske tastatur ville give "Ш" på russisk, en "L" ville give "Л" osv. 
Denne homofont layout kunne jeg ikke finde til linux, og derfor i
samarbejde med Google Gemini, fik jeg skabt min egen.

Billedeksempel:

Her kan du se placeringen af russiske bogstaver på tastaturet.

Implementering:

Åbn din Terminal og kopiér denne kommando ind for at tage en backup af systemets russiske fil:

sudo cp /usr/share/X11/xkb/symbols/ru /usr/share/X11/xkb/symbols/ru.bak

Åbn filen og indsæt dit nye layout
Nu skal vi redigere den fil, der indeholder det layout:

sudo xed /usr/share/X11/xkb/symbols/ru

I filen skal du trykke Ctrl + F og søge efter: xkb_symbols "phonetic" {

Slet alt inde i den blok (fra linjen xkb_symbols "phonetic" { og ned til den afsluttende };).

Kopier og sæt følgende kode ind i stedet for:

xkb_symbols "phonetic" {

    name[Group1]= "Russian (Custom Danish Phonetic)";

    // Ekstra taster i venstre side
    key <TLDE> { [ Cyrillic_shcha, Cyrillic_SHCHA ] };       // ½ / § giver Щ
    key <LSGT> { [ Cyrillic_hardsign, Cyrillic_HARDSIGN ] }; // < / > giver Ъ

    // Øverste række (QWERTY...)
    key <AD01> { [ Cyrillic_zhe,   Cyrillic_ZHE ] };         // Q giver Ж
    key <AD02> { [ Cyrillic_sha,   Cyrillic_SHA ] };         // W giver Ш
    key <AD03> { [ Cyrillic_ie,    Cyrillic_IE ] };          // E giver Е
    key <AD04> { [ Cyrillic_er,    Cyrillic_ER ] };          // R giver Р
    key <AD05> { [ Cyrillic_te,    Cyrillic_TE ] };          // T giver Т
    key <AD06> { [ Cyrillic_yeru,  Cyrillic_YERU ] };        // Y giver Ы
    key <AD07> { [ Cyrillic_u,     Cyrillic_U ] };           // U giver У
    key <AD08> { [ Cyrillic_i,     Cyrillic_I ] };           // I giver И
    key <AD09> { [ Cyrillic_o,     Cyrillic_O ] };           // O giver О
    key <AD10> { [ Cyrillic_pe,    Cyrillic_PE ] };          // P giver П
    key <AD11> { [ Cyrillic_ya,    Cyrillic_YA ] };          // Å giver Я
    key <AD12> { [ Cyrillic_io,    Cyrillic_IO ] };          // ¨ (til højre for Å) giver Ё

    // Mellemste række (ASDF...)
    key <AC01> { [ Cyrillic_a,     Cyrillic_A ] };           // A giver А
    key <AC02> { [ Cyrillic_es,    Cyrillic_ES ] };          // S giver С
    key <AC03> { [ Cyrillic_de,    Cyrillic_DE ] };          // D giver Д
    key <AC04> { [ Cyrillic_ef,    Cyrillic_EF ] };          // F giver Ф
    key <AC05> { [ Cyrillic_ghe,   Cyrillic_GHE ] };         // G giver Г
    key <AC06> { [ Cyrillic_che,   Cyrillic_CHE ] };         // H giver Ч
    key <AC07> { [ Cyrillic_shorti,Cyrillic_SHORTI ] };      // J giver Й
    key <AC08> { [ Cyrillic_ka,    Cyrillic_KA ] };          // K giver К
    key <AC09> { [ Cyrillic_el,    Cyrillic_EL ] };          // L giver Л
    key <AC10> { [ Cyrillic_e,     Cyrillic_E ] };           // Æ giver Э
    key <AC11> { [ Cyrillic_yu,    Cyrillic_YU ] };          // Ø giver Ю
    key <AC12> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN ] }; // Apostrof giver Ь

    // Nederste række (ZXCV...)
    key <AB01> { [ Cyrillic_ze,    Cyrillic_ZE ] };          // Z giver З
    key <AB02> { [ Cyrillic_ha,    Cyrillic_HA ] };          // X giver Х
    key <AB03> { [ Cyrillic_tse,   Cyrillic_TSE ] };         // C giver Ц
    key <AB04> { [ Cyrillic_ve,    Cyrillic_VE ] };          // V giver В
    key <AB05> { [ Cyrillic_be,    Cyrillic_BE ] };          // B giver Б
    key <AB06> { [ Cyrillic_en,    Cyrillic_EN ] };          // N giver Н
    key <AB07> { [ Cyrillic_em,    Cyrillic_EM ] };          // M giver М

    include "level3(ralt_switch)"
};

Gem filen (Ctrl+S) og genstart maskinen.

For at tilføje skal du gå til Systemindstillinger > Tastaturlayouts > Tilføj > Russian (Custom Danish Phonetic). Luk vinduet, og tryk på [Windowsknap + mellemrum] for at skifte imellem Dansk og Russisk tastatur. 

Kilder:

Oprindelige russisk homofont layout for windows: http://fuzzyweb.dk/russian/computer/keyboard/tastaturlayout.htm 

Afprøvet på Surface 7 Pro - med Linux Mint og SurfaceLinux kernel

Kommentarer

Populære opslag fra denne blog

Bound in Ash and Bone: Unearthing 'The Ghouls Almanac'

I am thrilled to finally unveil my latest passion project: The Ghouls Almanac: A Grim Chronicle of the Wasteland . Created with the help of my loving wife and son  —with dark, intricate illustrations conjured alongside Google Gemini —this isn't just an art book. It is a forbidden scripture of the atomic age, written in the style of a post-apocalyptic Necronomicon . If you are a fan of the Fallout universe, you know the stories. But you have never seen them told like this. The Ghouls Almanac is a visceral, mythic retelling of the events of Fallout 1 , Fallout 2 , and Fallout 3 , chronicled by the one soul who lived to see it all: Harold . Before he became the Oasis—a living cathedral of timber and vine —he was the ancient wanderer who witnessed the fall of the Master and the flight of the Enclave . Through Harold's rotting, immortal eyes, the history of the wasteland is documented not as a sci-fi adventure, but as a dark, twisted gospel of flesh, steel, and survival: The Iron ...

A Peek Behind the Scenes of the Wasteland: Download the Unique Fallout Story 'The Stranger Is Not Real'

Have you ever wondered who the man in the trench coat really is? Every time you're in a pinch in Fallout, he appears out of the blue, fires his .44 Magnum, and vanishes into thin air. But where does he go? And what does he actually think about the bizarre things you do in the wasteland? Now you have the chance to find out. In the recently released, fan-made book "The Stranger Is Not Real," we have created a completely unique and entertaining take on the Fallout universe. And the best part? You can download it right now. A Noir Diary from the Edge of Reality "The Stranger Is Not Real" is a brilliant deconstruction of video game logic, told as a hardboiled and cynical noir detective story. We follow the game's most iconic guardian angel—The Mysterious Stranger—through his personal, worn-out logbook entries. Through a series of "cases," our tired narrator slowly begins to realize that he is stuck in an absurd, digital loop. He is forced by a humming i...

The Mythical 1-50: Reclaiming a Missing Piece of 90s Eastern European Childhood

If you grew up in Eastern Europe or a post-Soviet state in the 1990s, you don’t need me to explain what a piece of Turbo gum meant. It wasn't just chewing gum. In a world still shaking off the grayness of the Soviet era, that bright yellow, rock-hard piece of chemical-smelling taffy was a brick of condensed, Western exoticism. But let’s be honest: no one bought it for the gum. We bought it for the treasure hidden inside. We bought it for the wrappers (or "vkladyshi / вкладыши," if you will). The Gateway to a World of Horsepower For us, those wrappers were our first encyclopedias of automotive desire. In a reality where the roads were dominated by Ladas, Zhigulis, and the occasional aging Volga, Turbo wrappers offered us a vibrant, full-color portal to a magical world of Ferraris, Lamborghinis, and Porsches. We didn't just collect them. We traded them, gambled them in playground games involving vigorous hand-slapping, and tacked them to our bedroom walls. We memorized ...