OpenMokoPL
 

polska_klawiatura

ToDo: Właściwie cały artykuł, ale to już nie dzisiaj.

Instalacja

Poniższa instrukcja wymaga zinstalowania matchbox-keyboard opisanego w pierwszych krokach.

Opisy klawiatur znajdują się w /usr/share/matchbox-keyboard/ w plikach keyboard-LANG[-VARIANT].xml.

Utwórz plik keyboard-pl.xml o zawartości (ToDo: wstawić plik zamiast wklejac) podanej niżej i przekopiuj go na FR:

scp keyboard-pl.xml root@192.168.0.202:/usr/share/matchbox-keyboard/

Podlinkuj klawiaturę:

mkdir -p /home/root/.matchbox
ln -sf /usr/share/matchbox-keyboard/keyboard-pl.xml /home/root/.matchbox/keyboard.xml

Dyskusja:
– to też działa i jest trochę bardziej elegenckie
– tak zrobiłem (to było te moje „kopiowanie do HOME”), ale też mi to jakoś nie leży; chyba wybredny jestem :)

Konfiguracja

(ToDo: opisać co znaczą pola)

keyboard-pl.xml

(ToDo: jest problem z wielkimi znakami narodowymi; shift i caps na nie nie działają; na razie wprowadziłem osobne modyfikatory: „äěź” i „ÄĚŹ”; dodałem też klawiaturę numeryczną)

<?xml version="1.0" encoding="UTF-8"?>
<keyboard>

<options>
<!-- not yet implemented -->
</options>

<layout id="PL">

<!--
  <row>
     <key>
        <default display="ヂ" />                
    </key>
    <key>
        <default display="Ӫ" />                
    </key>
    <key width="1500">
        <default display="Ω" />                
    </key>
    <space width="1500" />
    <key fill="true">
        <default display="⠿" />                
    </key>
  </row>
-->

  <row>

    <space width="500" extended="true"/>

    <key fill="true">
        <default display="Esc" action="escape" />
    </key>
<!--
    <key>
      <default display="image:/usr/share/pixmaps/sync_icon.png" action="a"/>
    </key>  
-->
    <key>
        <default display="`" />
    </key>
    <key>
        <default display="1" />                
        <shifted display="!" />
    </key>
    <key>
        <default display="2" />                
        <shifted display='"' />
          <mod1    display="½" />
    </key>
    <key>
        <default display="3" />
        <shifted display="£" />
          <mod1    display="¾" />               
    </key>
    <key>
        <mod1 display="€" />
        <mod2 display="¢" />
        <default display="4" />
        <shifted display="$" />                
    </key>
    <key>
        <default display="5" />
        <shifted display="%" />                
    </key>
    <key>
        <default display="6" />
        <shifted display="^" />                
    </key>
    <key>
        <default display="7" />
        <shifted display="&amp;" />                
    </key>
    <key>
        <mod1 display="°" />
        <mod2 display="•" />
        <default display="8" />
        <shifted display="*" />                
    </key>
    <key>
        <mod1 display="„" />
        <mod2 display="«" />
        <default display="9" />
        <shifted display="(" />                
    </key>
    <key>
        <mod1 display="”" />
        <mod2 display="»" />
        <default display="0" />
        <shifted display=")" />                
    </key>
    <key>
        <mod1 display="–" />
        <default display="-" />
        <shifted display="_" />                
    </key>
    <key>
        <default display="=" />
        <shifted display="+" />                
    </key>

    <key fill="true">
       <!-- <default display="⌫" action="backspace"/> -->
         <default display="Bksp" action="backspace"/>
    </key>

    <space width="500" extended="true"/>

    <key width="4000"  extended="true">
        <default display="Home" action="home"/>
    </key>
    <key width="4000"  extended="true">
        <default display="PgUp" action="pageup"/>
    </key>

    <space width="500" extended="true"/>


  </row>

  <row>

    <space width="500" extended="true"/>

    <key fill="true">
        <!-- <default display="↹" action="tab"/> -->
          <default display="Tab" action="tab"/>
    </key>
    <key obey-caps='true'>
        <default display="q" />                
        <shifted display="Q" />
    </key>
    <key obey-caps='true'>
        <default display="w" />                
        <shifted display="W" />
    </key>
    <key obey-caps='true'>
        <mod1 display="ę" />
        <mod2 display="Ę" />
        <default display="e" />                
        <shifted display="E" />
    </key>
    <key obey-caps='true'>
        <default display="r" />                
        <shifted display="R" />
    </key>
    <key obey-caps='true'>
        <default display="t" />                
        <shifted display="T" />
    </key>
    <key obey-caps='true'>
        <default display="y" />                
        <shifted display="Y" />
    </key>
    <key obey-caps='true'>
        <default display="u" />                
        <shifted display="U" />
    </key>
    <key obey-caps='true'>
        <default display="i" />                
        <shifted display="I" />
    </key>
    <key obey-caps='true'>
        <mod1 display="ó" />
        <mod2 display="Ó" />
        <default display="o" />                
        <shifted display="O" />
    </key>
    <key obey-caps='true'>
        <default display="p" />                
        <shifted display="P" />
    </key>
    <key>
        <default display="{" />                
        <shifted display="[" />
    </key>
    <key>
        <default display="}" />                
        <shifted display="]" />
    </key>
    <key fill="true">
        <default display="\" />                
        <shifted display="|" />
    </key>

    <space width="500" extended="true"/>

    <key width="4000"  extended="true">
        <default display="End" action="end"/>
    </key>
    <key width="4000"  extended="true">
        <default display="PgDn" action="pagedown"/>
    </key>

    <space width="500" extended="true"/>

  </row>
  <row>

    <space width="500" extended="true"/>

    <key fill="true">
        <default display="Caps" action="modifier:caps"/>                
    </key>
    <key obey-caps='true'>
        <mod1 display="ą" />
        <mod2 display="Ą" />
        <default display="a" />                
        <shifted display="A" />
    </key>
    <key obey-caps='true'>
        <mod1 display="ś" />
        <mod2 display="Ś" />
        <default display="s" />                
        <shifted display="S" />
    </key>
    <key obey-caps='true'>
        <default display="d" />                
        <shifted display="D" />
    </key>
    <key obey-caps='true'>
        <default display="f" />                
        <shifted display="F" />
    </key>
    <key obey-caps='true'>
        <default display="g" />                
        <shifted display="G" />
    </key>
    <key obey-caps='true'>
        <default display="h" />                
        <shifted display="H" />
    </key>
    <key obey-caps='true'>
        <default display="j" />                
        <shifted display="J" />
    </key>
    <key obey-caps='true'>
        <default display="k" />                
        <shifted display="K" />
    </key>
    <key obey-caps='true'>
        <mod1 display="ł" />
        <mod2 display="Ł" />
        <default display="l" />                
        <shifted display="L" />
    </key>
    <key>
        <default display=";" />                
        <shifted display=":" />
    </key>
    <key>
        <default display="#" />                
        <shifted display="~" />
    </key>
    <key fill="true">
          <default display="Ret" action="return"/>
    </key>

    <space width="500" extended="true"/>

    <space width="4000"  extended="true" />

    <space width="4000"  extended="true" />

    <space width="500" extended="true"/>


  </row>
  <row>

    <space width="500" extended="true"/>

    <key fill="true">
        <default display="Shift" action="modifier:shift"/>                
    </key>

    <key obey-caps='true'>
        <mod1 display="ż" />
        <mod2 display="Ż" />
        <default display="z" />                
        <shifted display="Z" />
    </key>

    <key obey-caps='true'>
        <mod1 display="ź" />
        <mod2 display="Ź" />
        <default display="x" />                
        <shifted display="X" />
    </key>

    <key obey-caps='true'>
        <mod1 display="ć" />
        <mod2 display="Ć" />
        <default display="c" />                
        <shifted display="C" />
    </key>

    <key obey-caps='true'>
        <default display="v" />                
        <shifted display="V" />
    </key>

    <key obey-caps='true'>
        <default display="b" />                
        <shifted display="B" />
    </key>

    <key obey-caps='true'>
        <mod1 display="ń" />
        <mod2 display="Ń" />
        <default display="n" />                
        <shifted display="N" />
    </key>

    <key obey-caps='true'>
        <mod1 display="µ" />
        <default display="m" />                
        <shifted display="M" />
    </key>

    <key>
        <default display="," />                
        <shifted display="&lt;" />
    </key>
    <key>
        <default display="." />                
        <shifted display="&gt;" />
    </key>
    <key>
        <default display="/" />                
        <shifted display="?" />
    </key>


    <key fill="true">
        <default display="Shift" action="modifier:shift"/>                
    </key>

    <space width="500" extended="true"/>

    <space width="4000"  extended="true" />

    <space width="4000"  extended="true" />

    <space width="500" extended="true"/>



 </row>
  <row>

    <space width="500" extended="true"/>

    <key>
        <default display="[->]" action="modifier:layout"/>                
    </key>

    <key width="1500">
        <default display="äěź" action="modifier:mod1"/>                
    </key>

    <key width="1500">
        <default display="ÄĚŹ" action="modifier:mod2"/>                
    </key>

    <key width="1500">
        <default display="Ctrl" action="modifier:ctrl"/>                
    </key>

    <key width="1500">
        <default display="Alt" action="modifier:alt"/>                
    </key>


    <key fill="true">
        <default display=" " action="space" />                
    </key>

    <key>
        <default display="@" />                
        <shifted display="'" />
    </key>

    <key>
        <default display="↑" action="up" />                
    </key>
    <key>
        <default display="↓" action="down" />                
    </key>
    <key>
        <default display="←" action="left" />                
    </key>
    <key>
        <default display="→" action="right" />                
    </key>

    <space width="500" extended="true"/>

    <space width="4000"  extended="true" />

    <space width="4000"  extended="true" />

    <space width="500" extended="true"/>

</row>

</layout>


<layout id="numpad keyboard">
  <row>
    <space width="500" extended="true"/>
    <key obey-caps='true'>
    <default display="7" />
    <shifted display="Home" action="home" />
    </key>
    <key obey-caps='true'>
    <default display="8" />
    <shifted display="↑" action="up" />
    </key>
    <key obey-caps='true'>
    <default display="9" />
    <shifted display="Pg Up" action="pageup"/>
    </key>
    <key width="2000" fill="true">
    <default display="Num" action="modifier:caps" />
    </key>
  </row>
  <row>
    <space width="500" extended="true"/>
    <key obey-caps='true'>
    <default display="4" />
    <shifted display="←" action="left" />
    </key>
    <key>
    <default display="5" />
    </key>
    <key obey-caps='true'>
    <default display="6" />
    <shifted display="→" action="right"/>
    </key>
    <key fill="true">
    <default display="*" />
    </key>
    <key fill="true">
    <default display="/" />
    </key>
  </row>
  <row>
    <space width="500" extended="true"/>
    <key obey-caps='true'>
    <default display="1" />
    <shifted display="End" action="end" />
    </key>
    <key obey-caps='true'>
    <default display="2" />
    <shifted display="↓" action="down" />
    </key>
    <key obey-caps='true'>
    <default display="3" />
    <shifted display="Pg Dn" action="pagedown"/>
    </key>
    <key fill="true">
    <default display="+" />
    </key>
    <key fill="true">
    <default display="-" />
    </key>
  </row>
  <row>
    <space width="500" extended="true"/>
    <key>
    <default display="[->]" action="modifier:layout"/>
    </key>
    <key obey-caps='true'>
    <default display="0" />
    </key>
    <key obey-caps='true'>
    <default display="." />
    <shifted display="Del" action="delete"/>
    </key>
    <key width="2000" fill="true">
    <default display="⏎" action="return" />
    </key>
  </row>
</layout>

</keyboard>
 
 
Kontakt z administatorem
Projekt wspiera STN