Ero sivun ”Käyttäjä:Klavaristo/Asettelu” versioiden välillä

Linux.fista
Siirry navigaatioon Siirry hakuun
(→‎Suomalainen (Aarne): koodin värit)
Ei muokkausyhteenvetoa
Rivi 83: Rivi 83:
  };
  };
</syntaxhighlight>
</syntaxhighlight>
----
=== Suomalainen (Aarne + ”bépo”) ===
Tässä pieni kokeilu nyt Linuxille [https://bepo.fr/wiki/Accueil BÉPO]-näppäimistön innoittamana:
<syntaxhighlight lang="c">
default partial alphanumeric_keys
xkb_symbols "aarneb" {
//
// Aarne-näppäimistöasettelu (työnimi: ÅUIOGV/bépo):
// Optimoitu suomen (ja esperanton) kirjoittamiseen.
//
// ks. Hopeinen omena -foorumi (https://hopeinenomena.fi/) → ÅUIOGV → (bépo)
//
name[Group1]="Finnish (Aarneb)";
// numerorivi 
    key <TLDE> { [  dollar,          numbersign,      endash,              paragraph            ] };
    key <AE01> { [  quotedbl,        1,              emdash,              doublelowquotemark    ] };
    key <AE02> { [  guillemotleft,  2,              less,                leftdoublequotemark  ] };
    key <AE03> { [  guillemotright,  3,              greater,              rightdoublequotemark  ] };
    key <AE04> { [  parenleft,      4,              bracketleft,          lessthanequal        ] };
    key <AE05> { [  parenright,      5,              bracketright,        greaterthanequal      ] };
    key <AE06> { [  at,              6,              asciicircum,          singlelowquotemark    ] };
    key <AE07> { [  plus,            7,              plusminus,            notsign              ] };
    key <AE08> { [  minus            8,              U2212,                onequarter            ] };
    key <AE09> { [  slash,          9,              division,            onehalf              ] };
    key <AE10> { [  asterisk,        0,              multiply,            threequarters        ] };
    key <AE11> { [  equal,          degree,          notequal,            minutes              ] };
    key <AE12> { [  percent,        grave,          permille,            seconds              ] };
// ylärivi
    key <AD01> { [  aring,          Aring,          ae,                  AE                    ] };
    key <AD02> { [  u,              U,              underscore,          dead_ogonek          ] };
    key <AD03> { [  i,              I,              bar,                  idotless              ] };
    key <AD04> { [  o,              O,              oe,                  OE                    ] };
    key <AD05> { [  g,              G,              oslash,              Oslash                ] };
    key <AD06> { [  v,              V,              dead_caron,          NoSymbol              ] };
    key <AD07> { [  p,              P,              ampersand,            sekstion              ] };
    key <AD08> { [  k,              K,              kra,                  dead_greek            ] };
    key <AD09> { [  r,              R,              registered,          trademark            ] };
    key <AD10> { [  w,              W,              dead_belowdot,        dead_abovedot        ] };
    key <AD11> { [  f,              F,              U0192,                U0191                ] };
    key <AD12> { [  dead_diaeresis,  dead_circumflex, dead_tilde,          NoSymbol              ] };
// perusrivi (apumerkit etusormille: a ja t)
    key <AC01> { [  y,              Y,              leftarrow,            rightarrow            ] };
    key <AC02> { [  e,              E,              EuroSign,            currency              ] };
    key <AC03> { [  adiaeresis,      Adiaeresis,      backslash,            NoSymbol              ] };
    key <AC04> { [  a,              A,              schwa,                SCHWA                ] };
    key <AC05> { [  comma,          semicolon,      dead_belowcomma,      NoSymbol              ] };
    key <AC06> { [  h,              H,              uparrow,              downarrow            ] };
    key <AC07> { [  t,              T,              thorn,                THORN                ] };
    key <AC08> { [  l,              L,              dead_stroke,          U2044                ] };
    key <AC09> { [  s,              S,              ssharp,              U1E9E                ] };
    key <AC10> { [  c,              C,              copyrigĥt,            dead_cedilla          ] };
    key <AC11> { [  j,              J,              U0133,                U0132                ] };
    key <BKSL> { [  dead_acute,      dead_grave,      tilde,                dead_horn            ] };
// alarivi
    key <LSGT> { [  z,              Z,              ezh,                  EZH                  ] };
    key <AB01> { [  numbersign,      exclam,          exclamdown,          NoSymbol              ] };
    key <AB02> { [  x,              X,              braceleft,            NoSymbol              ] };
    key <AB03> { [  odiaeresis,      Odiaeresis,      braceright,          NoSymbol              ] };
    key <AB04> { [  period,          colon,          ellipsis,            periodcentered        ] };
    key <AB05> { [  b,              B,              dead_breve,          brokenbar            ] };
    key <AB06> { [  n,              N,              eng,                  ENG                  ] };
    key <AB07> { [  m,              M,              mu,                  dead_macron          ] };
    key <AB08> { [  q,              Q,              rightsinglequotemark, leftsinglequotemark  ] };
    key <AB09> { [  apostrophe,      question,        questiondown,        dead_hook            ] };
    key <AB10> { [  d,              D,              eth,                  ETH                  ] };
// välilyöntinäppäin
    key <SPCE> { [  space,          space,          space,                U202F                ] };
//
  include "level3(ralt_switch)"
};
</syntaxhighlight>
==== Aiheesta muualla ====
→ [https://hopeinenomena.fi/viewtopic.php?p=2029992#p2029992 Hopeinen omena -foorumi]

Versio 27. toukokuuta 2022 kello 14.37

Näppäimistöasetteluja (Linux)

Suomalainen (Aarne)

Tämä on pieni kokeilu. Koska en ole aiemmin väsäillyt koodia, virheitä varmaankin löytyy.

Tällä komennolla pääsin päätteessä muokkaamaan ”fi”-tiedostoa:

sudo gedit /usr/share/X11/xkb/symbols/fi

Näyttää toimivan, mutta vaatii päätteen käyttöä asettelun ottamiseksi käyttöön:

setxkbmap fi aarne

Fi-tiedostoon sijoitettava koodi:

 default partial alphanumeric_keys
 xkb_symbols "aarne" {
 // ===
 // Aarne-näppäimistöasettelu (työnimi: ÅUIOGV):
 // Optimoitu suomen ja esperanton kirjoittamiseen.
 // Esperanton hattukirjaimet tasoilla 3. ja 4.
 // ĉ Ĉ ĝ Ĝ ĥ Ĥ ĵ Ĵ ŝ Ŝ ŭ Ŭ 
 // 
 // ks. Hopeinen omena -foorumi (https://hopeinenomena.fi/) → ÅUIOGV
 // ks. Kotoistus-projekti (https://kotoistus.fi/) → Näppäimistöasettelu
 // ===
   name[Group1]="Finnish (Aarne)";
 // numerorivi   
    key <TLDE> { [  section,         onehalf,          dead_stroke,           NoSymbol              ] };
    key <AE01> { [  1,               exclam,           NoSymbol,              exclamdown            ] };
    key <AE02> { [  2,               quotedbl,         at,                    rightdoublequotemark  ] };
    key <AE03> { [  3,               numbersign,       sterling,              guillemotright        ] };
    key <AE04> { [  4,               currency,         dollar,                guillemotleft         ] };
    key <AE05> { [  5,               percent,          permille,              leftdoublequotemark   ] };
    key <AE06> { [  6,               ampersand,        singlelowquotemark,    doublelowquotemark    ] };
    key <AE07> { [  7,               slash,            braceleft,             NoSymbol              ] };
    key <AE08> { [  8,               parenleft,        bracketleft,           less                  ] };
    key <AE09> { [  9,               parenright,       bracketright,          greater               ] };
    key <AE10> { [  0,               equal,            braceright,            degree                ] };
    key <AE11> { [  plus,            question,         backslash,             questiondown          ] };
    key <AE12> { [  dead_acute,      dead_grave,       dead_cedilla,          dead_ogonek           ] };
 // ylärivi	
    key <AD01> { [  aring,           Aring,            ae,                    AE                    ] };
    key <AD02> { [  u,               U,                udiaeresis,            Udiaeresis            ] };
    key <AD03> { [  i,               I,                idotless,              bar                   ] };
    key <AD04> { [  o,               O,                oe,                    OE                    ] };
    key <AD05> { [  g,               G,                oslash,                Oslash  	    	    ] };
    key <AD06> { [  v,               V,                dead_caron, 	          NoSymbol              ] };
    key <AD07> { [  p,               P,                dead_horn,             dead_hook             ] };
    key <AD08> { [  k,               K,                kra,         	      dead_greek            ] };
    key <AD09> { [  r,               R,                registered,            NoSymbol              ] };
    key <AD10> { [  w,               W,                scircumflex,           Scircumflex           ] };
    key <AD11> { [  f,               F,                U0192,                 U0191                 ] };
    key <AD12> { [  dead_diaeresis,  dead_circumflex,  dead_tilde,            dead_macron           ] };
 // perusrivi (apumerkit etusormille: a ja t)
    key <AC01> { [  y,               Y,                ubreve,                Ubreve                ] };
    key <AC02> { [  e,               E,                EuroSign,              NoSymbol              ] };
    key <AC03> { [  adiaeresis,      Adiaeresis,       jcircumflex,           Jcircumflex           ] };
    key <AC04> { [  a,               A,                schwa,                 SCHWA                 ] };
    key <AC05> { [  d,               D,                eth,                   ETH                   ] };
    key <AC06> { [  h,               H,                hcircumflex,           Hcircumflex           ] };
    key <AC07> { [  t,               T,                thorn,                 THORN                 ] };
    key <AC08> { [  l,               L,                dead_stroke,           dead_currency         ] };
    key <AC09> { [  s,               S,                scaron,                Scaron                ] };
    key <AC10> { [  c,      	     C,        	       ccaron,	              Ccaron   	            ] };
    key <AC11> { [  j,               J,                zcaron,                Zcaron                ] };
    key <BKSL> { [  apostrophe,      asterisk,         dead_caron,            dead_breve            ] };
 // alarivi
    key <LSGT> { [  less,            greater,          bar,                   NoSymbol              ] };
    key <AB01> { [  z,               Z,                ezh,                   EZH                   ] };
    key <AB02> { [  x,               X,                multiply,              periodcentered        ] };
    key <AB03> { [  q,               Q,                ccircumflex,           Ccircumflex           ] };
    key <AB04> { [  odiaeresis,      Odiaeresis,       gcircumflex,          Gcircumflex            ] };
    key <AB05> { [  b,               B,                ssharp,               U1E9E                  ] };
    key <AB06> { [  n,               N,                eng,                   ENG                   ] };
    key <AB07> { [  m,               M,                mu,                    emdash                ] };
    key <AB08> { [  comma,           semicolon,        rightsinglequotemark,  leftsinglequotemark   ] };
    key <AB09> { [  period,          colon,            dead_belowdot,         dead_abovedot         ] };
    key <AB10> { [  minus,           underscore,       endash,                dead_belowcomma       ] };
 // välilyöntinäppäin 
    key <SPCE> { [  space,           space,            space,                 U202F                 ] };
 //
    include "level3(ralt_switch)"
 };

Suomalainen (Aarne + ”bépo”)

Tässä pieni kokeilu nyt Linuxille BÉPO-näppäimistön innoittamana:

default partial alphanumeric_keys
 xkb_symbols "aarneb" {
 // 
 // Aarne-näppäimistöasettelu (työnimi: ÅUIOGV/bépo):
 // Optimoitu suomen (ja esperanton) kirjoittamiseen.
 // 
 // ks. Hopeinen omena -foorumi (https://hopeinenomena.fi/) → ÅUIOGV → (bépo)
 // 
 name[Group1]="Finnish (Aarneb)";
 // numerorivi   
    key <TLDE> { [  dollar,          numbersign,      endash,               paragraph             ] };
    key <AE01> { [  quotedbl,        1,               emdash,               doublelowquotemark    ] };
    key <AE02> { [  guillemotleft,   2,               less,                 leftdoublequotemark   ] };
    key <AE03> { [  guillemotright,  3,               greater,              rightdoublequotemark  ] };
    key <AE04> { [  parenleft,       4,               bracketleft,          lessthanequal         ] };
    key <AE05> { [  parenright,      5,               bracketright,         greaterthanequal      ] };
    key <AE06> { [  at,              6,               asciicircum,          singlelowquotemark    ] };
    key <AE07> { [  plus,            7,               plusminus,            notsign               ] };
    key <AE08> { [  minus            8,               U2212,                onequarter            ] };
    key <AE09> { [  slash,           9,               division,             onehalf               ] };
    key <AE10> { [  asterisk,        0,               multiply,             threequarters         ] };
    key <AE11> { [  equal,           degree,          notequal,             minutes               ] };
    key <AE12> { [  percent,         grave,           permille,             seconds               ] };
 // ylärivi	
    key <AD01> { [  aring,           Aring,           ae,                   AE                    ] };
    key <AD02> { [  u,               U,               underscore,           dead_ogonek           ] };
    key <AD03> { [  i,               I,               bar,                  idotless              ] };
    key <AD04> { [  o,               O,               oe,                   OE                    ] };
    key <AD05> { [  g,               G,               oslash,               Oslash                ] };
    key <AD06> { [  v,               V,               dead_caron,           NoSymbol              ] };
    key <AD07> { [  p,               P,               ampersand,            sekstion              ] };
    key <AD08> { [  k,               K,               kra,                  dead_greek            ] };
    key <AD09> { [  r,               R,               registered,           trademark             ] };
    key <AD10> { [  w,               W,               dead_belowdot,        dead_abovedot         ] };
    key <AD11> { [  f,               F,               U0192,                U0191                 ] };
    key <AD12> { [  dead_diaeresis,  dead_circumflex, dead_tilde,           NoSymbol              ] };
 // perusrivi (apumerkit etusormille: a ja t)
    key <AC01> { [  y,               Y,               leftarrow,            rightarrow            ] };
    key <AC02> { [  e,               E,               EuroSign,             currency              ] };
    key <AC03> { [  adiaeresis,      Adiaeresis,      backslash,            NoSymbol              ] };
    key <AC04> { [  a,               A,               schwa,                SCHWA                 ] };
    key <AC05> { [  comma,           semicolon,       dead_belowcomma,      NoSymbol              ] };
    key <AC06> { [  h,               H,               uparrow,              downarrow             ] };
    key <AC07> { [  t,               T,               thorn,                THORN                 ] };
    key <AC08> { [  l,               L,               dead_stroke,          U2044                 ] };
    key <AC09> { [  s,               S,               ssharp,               U1E9E                 ] };
    key <AC10> { [  c,               C,               copyrigĥt,            dead_cedilla          ] };
    key <AC11> { [  j,               J,               U0133,                U0132                 ] };
    key <BKSL> { [  dead_acute,      dead_grave,      tilde,                dead_horn             ] };
 // alarivi
    key <LSGT> { [  z,               Z,               ezh,                  EZH                   ] };
    key <AB01> { [  numbersign,      exclam,          exclamdown,           NoSymbol              ] };
    key <AB02> { [  x,               X,               braceleft,            NoSymbol              ] };
    key <AB03> { [  odiaeresis,      Odiaeresis,      braceright,           NoSymbol              ] };
    key <AB04> { [  period,          colon,           ellipsis,             periodcentered        ] };
    key <AB05> { [  b,               B,               dead_breve,           brokenbar             ] };
    key <AB06> { [  n,               N,               eng,                  ENG                   ] };
    key <AB07> { [  m,               M,               mu,                   dead_macron           ] };
    key <AB08> { [  q,               Q,               rightsinglequotemark, leftsinglequotemark   ] };
    key <AB09> { [  apostrophe,      question,        questiondown,         dead_hook             ] };
    key <AB10> { [  d,               D,               eth,                  ETH                   ] };
 // välilyöntinäppäin 
    key <SPCE> { [  space,           space,           space,                U202F                 ] };
 // 
   include "level3(ralt_switch)"
 };

Aiheesta muualla

Hopeinen omena -foorumi