Subject: Pine for both English and Russian

From: Hong Tian <[email-masked]>
Date: Tue, 8 Oct 2002 10:12:21 -0400

Hi,

I am a system Admin. A Pine user on RedHat 7.3 here wants to read (write if
possible) his email with both English and Russian. 

(1) I set up "character-set=iso-8859-5" in the pine.conf. But it didn't
work. 

(2) I try to use "setfont koi8r-8x8" on RedHat Linux. But I got warning
messages.

Anyone can help me to resolve it?

Thanks,
Hong

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: "Yitzchak M. Gottlieb" <[email-masked]>
Date: Tue, 8 Oct 2002 10:44:35 -0400 (EDT)

> possible) his email with both English and Russian. 

I solved a similar problem by running pine from within emacs, using
emacs-client as an alternate editor, and using pine filters and iconv to
convert messages to the right format.

1) First, set the following options in pine:

   character-set=iso-8859-5.
   editor=emacsclient
   
   [X] pass-control-characters-as-is
   [X] enable-alternate-editor-implicitly

2) Next, set up display-filters to catch messages in other character sets and
   display them in iso-8859-5.  For instance: 
   display-filters=
   _CHARSET(iso-8859-1)_ /usr/bin/iconv -f ISO-8859-1 -t ISO-8859-5
   (I don't think this particular example will work, but this is the style of
   the filter.)

3) Last, I created an emacs .el file which would start pine and set up the
   terminal properly. (The file, pineinemacs.el, is attached.)  For russian,
   you might want to change references to utf-8 to iso-8859-5.  Also change the
   paths to the executible file to match your setup.  Emacs should be set up to
   use the Russian language environment. (See the emacs documentation.)  Set
   up the .emacs file to load pineinemacs.el.

4) Start emacs with
   # emacs -f pine-in-emacs

The result should be a regular pine session inside an emacs frame.  When you
try to compose a message, pine will invoke emacs, so the frontmost frame will
be your e-mail editor.  To exit back into pine, use C-x #.  

This is the way that I do it for UTF-8 composing.  I'm pretty sure there is an
easier way to do it for Russian, but this should work.  Also, this has the
advantage of using emacs's input methods which make typing mixed russian and
english messages fairly easy.  I hope this helps.

Yours,

Zuki

-- 
Yitzchak Gottlieb
[email-masked]