Участник:Hellerick/Extended Russian layout for Ubuntu

Материал из LingvoWiki
< Участник:Hellerick
Версия от 07:54, 5 декабря 2015; Hellerick (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к навигацииПерейти к поиску

Hellerick's Ubuntu Russian layout.svg

Код добавляемый в /usr/share/X11/xkb/symbols/ru:

partial alphanumeric_keys
xkb_symbols "hcf" {
    include "ru(winkeys)"
    name[Group1]= "Russia - Hellerick's extension";
    key.type[group1]="FOUR_LEVEL";
    key <TLDE> { [ Cyrillic_io       , Cyrillic_IO       , U0301                     , asciitilde                ] };
    key <AE01> { [ 1                 , exclam            , VoidSymbol                , onequarter                ] };
    key <AE02> { [ 2                 , quotedbl          , twosuperior               , onehalf                   ] };
    key <AE03> { [ 3                 , numerosign        , threesuperior             , threequarters             ] };
    key <AE04> { [ 4                 , semicolon         , dollar                    , EuroSign                  ] };
    key <AE05> { [ 5                 , percent           , degree                    , division                  ] };
    key <AE06> { [ 6                 , colon             , U20BD                     , VoidSymbol                ] };
    key <AE07> { [ 7                 , question          , section                   , VoidSymbol                ] };
    key <AE08> { [ 8                 , asterisk          , multiply                  , VoidSymbol                ] };
    key <AE09> { [ 9                 , parenleft         , guillemotleft             , doublelowquotemark        ] };
    key <AE10> { [ 0                 , parenright        , guillemotright            , leftdoublequotemark       ] };
    key <AE11> { [ minus             , underscore        , emdash                    , U2212                     ] };
    key <AE12> { [ equal             , plus              , VoidSymbol                , plusminus                 ] };
    key <AD01> { [ Cyrillic_shorti   , Cyrillic_SHORTI   , Cyrillic_je               , Cyrillic_JE               ] };
    key <AD03> { [ Cyrillic_u        , Cyrillic_U        , Byelorussian_shortu       , Byelorussian_SHORTU       ] };
    key <AD05> { [ Cyrillic_ie       , Cyrillic_IE       , Ukrainian_ie              , Ukrainian_IE              ] };
    key <AD06> { [ Cyrillic_en       , Cyrillic_EN       , Cyrillic_nje              , Cyrillic_NJE              ] };
    key <AD07> { [ Cyrillic_ghe      , Cyrillic_GHE      , Ukrainian_ghe_with_upturn , Ukrainian_GHE_WITH_UPTURN ] };
    key <AD10> { [ Cyrillic_ze       , Cyrillic_ZE       , Macedonia_dse             , Macedonia_DSE             ] };
    key <AD11> { [ Cyrillic_ha       , Cyrillic_HA       , bracketleft               , braceleft                 ] };
    key <AD12> { [ Cyrillic_hardsign , Cyrillic_HARDSIGN , bracketright              , braceright                ] };
    key <BKSL> { [ backslash         , slash             , bar                       , VoidSymbol                ] };
    key <AC01> { [ Cyrillic_ef       , Cyrillic_EF       , U0473                     , U0472                     ] };
    key <AC02> { [ Cyrillic_yeru     , Cyrillic_YERU     , Ukrainian_yi              , Ukrainian_YI              ] };
    key <AC07> { [ Cyrillic_o        , Cyrillic_O        , U0461                     , U0460                     ] };
    key <AC08> { [ Cyrillic_el       , Cyrillic_EL       , Cyrillic_lje              , Cyrillic_LJE              ] };
    key <AC09> { [ Cyrillic_de       , Cyrillic_DE       , Serbian_dje               , Serbian_DJE               ] };
    key <AC11> { [ Cyrillic_e        , Cyrillic_E        , apostrophe                , VoidSymbol                ] };
    key <AB02> { [ Cyrillic_che      , Cyrillic_CHE      , Cyrillic_dzhe             , Cyrillic_DZHE             ] };
    key <AB04> { [ Cyrillic_em       , Cyrillic_EM       , U0475                     , U0474                     ] };
    key <AB05> { [ Cyrillic_i        , Cyrillic_I        , Ukrainian_i               , Ukrainian_I               ] };
    key <AB06> { [ Cyrillic_te       , Cyrillic_TE       , Serbian_tshe              , Serbian_TSHE              ] };
    key <AB07> { [ Cyrillic_softsign , Cyrillic_SOFTSIGN , U0463                     , U0462                     ] };
    key <AB08> { [ Cyrillic_be       , Cyrillic_BE       , less                      , VoidSymbol                ] };
    key <AB09> { [ Cyrillic_yu       , Cyrillic_YU       , greater                   , VoidSymbol                ] };
    key <SPCE> { [ space             , space             , nobreakspace              , VoidSymbol                ] };
    include "level3(ralt_switch)"
};

После этого нужно прописать новую раскладку в /usr/share/X11/xkb/rules/evdev.xml:

        <variant>
          <configItem>
            <name>hcf</name>
            <description>Russian (Hellerick's extension)</description>
          </configItem>
        </variant>