ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexej Kryukov <akrioukov@mail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Использование UTF-локали в ALT Linux
Date: Tue, 28 Dec 2004 19:44:51 +0300
Message-ID: <200412281944.51168.akrioukov@mail.ru> (raw)
In-Reply-To: <41D14B3E.604@gts.lg.ua>

On Tuesday 28 December 2004 15:02, Alexander Kuprin wrote:
> Добрый день.
>
> Народ, кто-нибудь настраиваль юникод в качестве системной локали в
> ALT Linux? Может это наглёжь с моей стороны, но если не трудно, не
> могли бы поделится настройками? :-) Как это делается с использованием
> пакета kbd я знаю, а вот, что нужно подкрутить  при помощи
> console-tools, который используется в ALT Linux, не совсем понятно --
> документация в console-tools не слишком вразумительная. :-\

У мня, правда, нет под рукой AltLinux, но вопрос для меня интересен,
так что попробую порассуждать логически ;-)

Итак, берем скрипт unicode_start из комплекта kbd. В нем, во-первых,
видим следующее:

kbd_mode -u

Я не знаю, есть ли аналог kbd_mode (и опции -u) в consoletools, но,
впрочем, эта команда почти ничего не делает. Вот комментарий из того
же файла:

# This really does nothing with the way normal keys are handled in              
# the kernel. All it does is:                                                   
# - It is necessary for `dumpkeys' in order to not drop U+XXXX                  
#   entries from the keymaps.                                                   
# - It is necessary for `loadkeys' in order to avoid warnings.                  
# - Unicode characters typed as Alt-x1 ... Alt-xn (where x1,...,xn              
#   are digits on the numeric keypad) will be emitted in UTF-8.                 

Из этих пунктов мне представляется сколько-нибудь существенным 
лишь последний.

Идем дальше:
dumpkeys | loadkeys --unicode

Данная команда должна перевести текущую раскладку в юникодовый
режим, но это корректно работает только для latin1. Так что
можем без нее обойтись, тем более, что специальная юникодовая
раскладка у нас, надо полагать, имеется и прописана в i18n?

Далее на консоль выводится магическая последовательность:
echo -n -e '\033%G'
Вот это ключевой момент: без нее работать ничего не будет.

И, наконец, дальше идет блок установки шрифта, который тоже можем
проигнорировать, т. к. шрифт мы пропишем в i18n.

Очевидно, из этого и надо исходить.
Впрочем, если не секрет, а зачем Вам понадобилась юникодовая локаль?
Опыт показывает, что использовать ее в качестве системной практически
никогда не имеет смысла...


  reply	other threads:[~2004-12-28 16:44 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28 12:02 Alexander Kuprin
2004-12-28 16:44 ` Alexej Kryukov [this message]
2004-12-28 17:44   ` Alexander Kuprin
2004-12-28 21:31     ` Alexej Kryukov
2004-12-29 20:13       ` Vladimir NOVIKOV
2004-12-29 21:08         ` Alexej Kryukov
2004-12-30 10:55           ` Denis Smirnov
2004-12-30 21:16             ` Alexej Kryukov
2005-01-02 12:21               ` Denis Smirnov
2004-12-30 11:24           ` Vladimir NOVIKOV
2004-12-30 11:31             ` Serge Polkovnikov
2004-12-30 11:51               ` Denis Smirnov
2004-12-30 11:52                 ` [Comm] [JT] " Serge Polkovnikov
2004-12-30 11:58                   ` Denis Smirnov
2004-12-30 12:03                     ` Serge Polkovnikov
2004-12-30 12:17                       ` Denis Smirnov
2004-12-30 12:03                   ` Andriy Dobrovol's'kii
2004-12-30 12:10                     ` Serge Polkovnikov
2004-12-30 12:18                     ` Denis Smirnov
2004-12-30 21:19             ` [Comm] " Alexej Kryukov
2005-01-02 12:43               ` Denis Smirnov
2004-12-29  8:22   ` Анатолий Китайкин

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=200412281944.51168.akrioukov@mail.ru \
    --to=akrioukov@mail.ru \
    --cc=community@altlinux.ru \
    /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