ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yuri Bushmelev <jay4mail@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] ввод русских символов - UTF-8, X, Firefox
Date: Wed, 22 Oct 2008 12:04:19 +0400
Message-ID: <200810221204.20082.jay4mail@gmail.com> (raw)
In-Reply-To: <web-357953477@zbackend1.aha.ru>

В сообщении от Среда 22 октября 2008 Андрей написал(a):
> Добрый день!
[skip]
> Однако это не решило проблемы - по-прежнему не происходит
> переключения русского языка.
> Попробовал то же с запуском только терминального окошка -
> тоже нет переключения на ввод русских букв.
[skip]

Поскольку управление устройствами ввода (как минимум) сейчас переехали их 
xorg.conf в hal, то править это теперь надо там. Если есть желание 
настроить все через hal (хотя в альте, насколько я понял, существует другой 
метод, считающийся пока более правильным, см. ниже).

Например, на генте я писал вот такой 
файлик /data/etc/hal/fdi/policy/55-xorg-xkb.fdi 

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="input.device" string="/dev/input/event40">
        <merge key="input.x11_driver" type="string">kbd</merge>
        <merge key="input.xkb.layout" type="string">us,ru</merge>
        <merge key="input.xkb.model" type="string">microsoftprousb</merge>
        <merge key="input.xkb.rules" type="string">xorg</merge>
        <!--merge key="input.xkb.variant" type="string">,winkeys</merge-->
        <merge key="input.xkb.options" 
type="strlist">grp:shift_caps_toggle,grp_led:scroll,caps:internal,compose:rwin</merge>
    </match>
  </device>
</deviceinfo>

> Что тут можно посоветовать?

В альте есть хитрый скрипт /etc/X11/xinit/fixkeyboard. Он запускает 
setxkbmap с параметрами из файла Xkbmap в том же каталоге (управляется 
альтератором) и .Xkbmap из домашнего каталога пользователя. В нем и 
прописываются параметры клавиатуры. Но, поскольку, вы не используете *dm'ы, 
то этот скрипт и не отрабатывает. Поэтому решения я вижу следующие.

Либо использовать альтовский механизм запуска сессий оконных менеджеров 
через kdm/xdm/gdm/т.п. Тогда отработает штатный 
скрипт /etc/X11/xinit/fixkeyboard. Для примера посмотрите в 
каталог /etc/X11/wmsessions.d. Можно создать аналогичный, где прописать 
запуск firefox'а.

Либо попробовать включить в ваш .xinitrc вызов fixkeyboard, как самый 
простой способ. Но я бы, наверное, выбрал предыдущий. Все-таки *dm более 
дружественный к пользователю способ входа в систему :)

-- 
С уважением,
Бушмелев Юрий

  reply	other threads:[~2008-10-22  8:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22  7:43 Андрей
2008-10-22  8:04 ` Yuri Bushmelev [this message]
2008-10-22  8:24 ` Kirill Maslinsky
2008-10-22  8:54   ` [Comm] ввод русских символов - UTF-8 , " Yuri Bushmelev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810221204.20082.jay4mail@gmail.com \
    --to=jay4mail@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git