Участник:Hellerick/Extended Russian layout for Ubuntu: различия между версиями

Материал из LingvoWiki
Перейти к навигацииПерейти к поиску

Версия 11:10, 26 августа 2011

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                     , VoidSymbol                ] };
    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 <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 <AD03> { [ Cyrillic_u        , Cyrillic_U        , Byelorussian_shortu       , Byelorussian_SHORTU       ] };
    key <AD05> { [ Cyrillic_ie       , Cyrillic_IE       , Ukrainian_ie              , Ukrainian_IE              ] };
    key <AD07> { [ Cyrillic_ghe      , Cyrillic_GHE      , Ukrainian_ghe_with_upturn , Ukrainian_GHE_WITH_UPTURN ] };
    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 <AC11> { [ Cyrillic_e        , Cyrillic_E        , apostrophe                , VoidSymbol                ] };
    key <AB05> { [ Cyrillic_i        , Cyrillic_I        , Ukrainian_i               , Ukrainian_I               ] };
    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