Re: lug-bg: bg + fr keys
- Subject: Re: lug-bg: bg + fr keys
- From: andrei@email.domain.hidden (Andrei Boyanov)
- Date: Tue, 20 May 2003 16:55:05 +0300
Georgi Chorbadzhiyski wrote:
<em class="quotelev1">> Andrei Boyanov wrote:
<em class="quotelev1">>
<em class="quotelev2">>>Ïèøà íà ôðåíñêà êëàâèàòóðà (AZERTY). Àêî èñêàì áúëãàðñêà, ïðåâêëþ÷âàì ñ
<em class="quotelev2">>>
<em class="quotelev2">>>$setxkbmap bg phonetic_enhanced grp:rwin_toggle grp_led:scroll
<em class="quotelev2">>>
<em class="quotelev2">>>Îáà÷å, êàêòî ñå ñåùàòå, ôðåíñêàòà ìè êëàâèàòóðà íå å âå÷å ôðåíñêà, à
<em class="quotelev2">>>ñòàâà QWERTY.
<em class="quotelev2">>>
<em class="quotelev2">>>Êàêâî òðÿáâà äà íàïðàâÿ, çà äà ìîãà, êàòî ñè íàòèñíà rwin êëàâèøà è ìè
<em class="quotelev2">>>ñâåòíå led:scroll äà ïèøà íà ôîíåòè÷íà áã êëàâèàòóðà, à êàòî ïðåâêëþ÷à
<em class="quotelev2">>>îòíîâî, äà ñúì ñè íà ôðåíñêà ïîäðåäáà (AZERTY) ?
<em class="quotelev2">>>
<em class="quotelev2">>>Ìíîãî ùå ìå óëåñíèòå, àêî ìè äàäåòå íÿêîÿ ðàáîòåùà èäåÿ.
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">> Îïèòàé äà ñëîæèø òîâà â /etc/X11/XF86Config
<em class="quotelev1">>
<em class="quotelev1">> Section "InputDevice"
<em class="quotelev1">> Identifier "Keyboard0"
<em class="quotelev1">> Driver "keyboard"
<em class="quotelev1">> Option "XkbLayout" "us,bg,fr"
<em class="quotelev1">> Option "XkbVariant" ",phonetic,"
<em class="quotelev1">> Option "XKbOptions" "grp:rwin_toggle,grp_led:scroll"
<em class="quotelev1">> EndSection
<em class="quotelev1">>
<p><p>Ïðîáâàõ, íå ñòàíà :(
<p>Ùå ìè ñå ìàëêî äà ãî ðàçáåðà êàê ðàáîòè òîâà xkb... Ïîïðàâÿéòå ìå êúäåòî
ãðåøà.
Àêî ïðàâèëíî ðàçáèðàì, ñ setxkbmap ïðîìåíÿì ìàïâàíåòî ìåæäó êîäà íà
íàòèñíàòèÿ êëàâèø è ãåíåðèðàíèÿ êîä íà ñèìâîë.
Òàáëèöèòå ñúñ ñúîòâåòíèòå ìàïèíãè ñà â /usr/X11R6/lib/X11/xkb/symbols/.
Òàì èìà çà âñåêè XkbLayout ïî åäèí ôàéë, êîéòî ñúäúðæà ïî íÿêîëêî
XkbVariant.
Ò.å. ñ 'setxkbmap bg phonetic' çàðåæäàì òàáëèöàòà 'phonetic', êîÿòî ñå
ñúäúðæà âúâ ôàéëà /usr/X11R6/lib/X11/xkb/symbols/bg :
<p>xkb_symbols "phonetic" {
// Describes the differences between a very simple en_US keyboard
// and a very simple Bulgarian phonetic keyboard.
name[Group1]= "Latin";
name[Group2]= "Cyrillic";
key <TLDE> { [ quoteleft, asciitilde ],
[ Cyrillic_che, Cyrillic_CHE ] };
key <AE01> { [ 1, exclam ],
<p>...
<p><p>Êàêâî å Group1 i Group2 ? Ìîæå ëè äà èìà Group3 ?
Òîâà. êîåòî ðàçáèðàì îò òîÿ ôàéë å, ÷å àêî íàòèñíà êëàâèøà, ñúîòâåòñòâàù
íà <TLDE> (òîâÿ ñìÿòàì, ÷å å ñúêðàùåíèå îò tilde, êîåòî ïúê òðÿáâà äà å
íàé-ëåâèÿ êëàâèø íà ïúðâèÿ ðåä, âëÿâî îò '1'), ñèìâîëà, êîéòî ùå ñå
ãåíåðèðà, ùå áúäå åäèí îò quoteleft, asciitilde, Cyrillic_che,
Cyrillic_CHE.
Êîé òî÷íî çàâèñè îò äâå íåùà -
1. â êîÿ ãðóïà ñúì (Gruop1 èëè Group2) - àêî ñúì â ãðóïà 1, ùå ãëåäàì
ãîðíèÿ ðåä. èíà÷å - äîëíèÿ.
2. äàëè å íàòèñíàò Øèôò èëè íå å (ïúðâàòà èëè âòîðàòà ñòîéíîñò îò
ñúîòâåòíèÿ ðåä)
Àêî òîâà äîòóêà å âÿðíî, òî çà äà ìîãà äà ñìåíÿì ìåæäó AZERTY è 'bg
phonetic' áåç äà èçïîëçâàì âñåêè ïúò setxkbmap òðÿáâà èëè äà ìîãà äà
äîáàâÿ 3-òà ãðóïà, èëè äà ïðåäåôèíèðàì ñåãàøíàòà ïúðâà.
Òàêà ëè å è ñïîðåä âàñ ?
Ïîçäðàâè,
Àíäðåé
<p><p><p><p><p><p><p><p><p>============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|