From: "Ott Alex" <ottalex@narod.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] Emacs and UTF-8 again
Date: Tue, 14 Oct 2003 17:08:37 +0400 (MSD)
Message-ID: <3F8BF555.000004.06751@pantene.yandex.ru> (raw)
In-Reply-To: <20031014165323.3eaec803.kirey@mmk.ru>
>On Tue, 14 Oct 2003 16:26:01 +0400 (MSD)
>> оно действительно пока не является полноценным unicode
>Как я писал раньше - это ожидается в 22.х версии?
Да - обещают в 22-й версии
>Вот тут еще один вопрос цепляется...
>Я пробовал печать из Emacs через ghostscript.
>Спотыкается печать на русском тексте:
> font for characters not found, continue anyway? (y or n)
я использую фонты из intlfonts + ps-mule
работает вот с такой настройкой
(load-library "ps-mule")
(setq bdf-directory-list '("/usr/X11R6/lib/X11/fonts/emacs/bdf"))
(custom-set-variables
'(ps-mule-font-info-database-default ps-mule-font-info-database-bdf)
'(ps-multibyte-buffer (quote bdf-font-except-latin)))
только есть одно но - если текст в utf-8, то перед печатью надо выполнить вот такую вот процедуру
(defun unicode-cyrillic-to-8859-5 ()
(interactive)
(save-excursion
(goto-char (point-min))
(let ((re (format "[%c-%c]+"
(decode-char 'ucs #x0400) (decode-char 'ucs #x04ff)))
(case-fold-search nil)
pos)
(while (re-search-forward re nil 'move)
(setq pos (match-beginning 0))
(encode-coding-region pos (point) 'iso-8859-5)
(decode-coding-region pos (point) 'iso-8859-5)))))
а потом нажать undo
next prev parent reply other threads:[~2003-10-14 13:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-14 10:07 Alexander Kirey
2003-10-14 12:26 ` Ott Alex
2003-10-14 10:53 ` Alexander Kirey
2003-10-14 13:08 ` Ott Alex [this message]
2003-10-28 11:00 ` Serhii Hlodin
2003-10-28 18:06 ` Alexander Bokovoy
2003-10-29 7:06 ` Alex Ott
2003-10-29 8:54 ` Serhii Hlodin
2003-10-29 9:15 ` Serhii Hlodin
2003-11-04 12:18 ` Serhii Hlodin
2003-11-04 14:19 ` Sergey Vlasov
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=3F8BF555.000004.06751@pantene.yandex.ru \
--to=ottalex@narod.ru \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git