ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: sbolshakov@altlinux.ru
To: community@altlinux.ru
Subject: Re: [Comm] Проблемы с русскими шрифтами вxemacs
Date: Tue, 08 Jun 2004 14:59:00 +0400
Message-ID: <m3aczenwnf.fsf@hammer.malta.altlinux.ru> (raw)
In-Reply-To: <20040608104258.B415DE5814@master.altlinux.ru> (kuchumov@srd.mtuci.ru's message of "Tue, 8 Jun 2004 14:42:09 +0400")

>>>>> "kuchumov" == kuchumov  <.> writes:
[skipped]
 >> 
 >> Предлагаю поместить это в ~/.Xdefaults (или ~/.Xresources ):
 >> --- %< ---
 >> ! Поправьте под свои нужды
 >> #define XEMACSFONT -rfx-courier-medium-r-*-*-14-*-*-*-*-*-microsoft-cp1251

 > [Пропущено]

 >> Это в ~/.xemacs/init.el :
 >> (MULElaunch
 >> (set-language-environment "Cyrillic-Win")
 >> (set-charset-registry 'ascii "windows-1251")
 >> (set-charset-registry 'latin-iso8859-1 "windows-1251")
 >> (set-charset-registry 'cyrillic-iso8859-5 "windows-1251")
 >> (set-charset-ccl-program 'cyrillic-iso8859-5 'ccl-encode-windows1251)
 >> (put-charset-property 'cyrillic-iso8859-5 'preferred-coding-system
 >> 'windows-1251)
 >> (define-coding-system-alias 'cp1251 'windows-1251)
 >> )

 > Спасибо, не заработало :-)

 > Если я правильно понял, то строка
 >> (set-charset-ccl-program 'cyrillic-iso8859-5 'ccl-encode-windows1251) 
 > предназначена для перекодирования шрифта из win1251 в iso8859-5.
Ровно наоборот. Ставить шрифты в кодировке iso8859-5 исключительно
для xemacs меня ломает, посему применяется charset-ccl-program.
 > Но в текущей версии XEmacs не ccl-encode-windows1251
hyper-apropos утверждает обратное:
M-x hyper-apropos <ret> ccl-encode-windows <ret>

 > Есть coding-system-ccl-encode. Поскольку lisp я не знаю - то самостоятельно
 > разобраться пока не могу. Может подскажете что бы такого не очень толстого
 > почитать? Что бы хотя бы синтаксис понимать?
C-h i m lispref

 > На данный момент вышел из положения следующим простым способом:
 > (set-language-environment "Cyrillic-Win") - в init.el, причем без MULElaunch
 > И установил пакет русских шрифтов в кодировке iso8859-5.
MULElaunch -- это такие скобки, на случай xemacs-nomule.

 > Ну и в .Xresources прописал то, что вы подсказали, только кодировку сменил
 > на iso, а Xemacs на просто emacs - как написано в документации.
Понимаются оба вида ресурсов, как Emacs* , так и XEmacs; последний,
как нетрудно догадаться, предназначен только для xemacs.

-- 


  reply	other threads:[~2004-06-08 10:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-03 12:18 [Comm] Проблемы с русскими шрифтами в xemacs Кучумов А.А.
2004-06-03 12:40 ` sbolshakov
2004-06-08 10:42   ` [Comm] Проблемы с русскими шрифтами вxemacs Кучумов А.А.
2004-06-08 10:59     ` sbolshakov [this message]
2004-06-08 16:11       ` Кучумов А.А.

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=m3aczenwnf.fsf@hammer.malta.altlinux.ru \
    --to=sbolshakov@altlinux.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