On Wed, Oct 20, 2004 at 05:45:54PM +0200, [EMAIL PROTECTED] wrote:
> Hi Ira,
> I (thought) having sent this letter from work, a couple of days ago.
> Apparently it did not get out. So I send it again.
> 
> Hi Ira,
> They say that "better late than never"... It turns out that the way
> Hebrew text appears in mutt is determined by its default pager.

What's wrong with mutt's built-in pager?

What character-set do you use? UTF-8 or ISO-8859-8?

> Replacing it by set pager="/usr/bin/less -r", or vi or nano, followed by
> set display_filter=bidiv

bidiv is slightly more optimized for mail than fribidi, but only works
for ISO-8859-8 output, right?

>                           , allows one to see Hebrew text in the message.
> The way to use mutt is slightly different, as long as you are in the
> chosen pager, you cannot use mutt's key bindings. So, you have to leave,
> it first by its command (q in less, :q in vi, Ctrl-X in nano...). Mutt
> reponds by "command:", upon which you tell it what you desire it to do.
> I don't know if it's worth the trouble, but in a system where the
> behaviour can be determined at so many levels it's rewarding when you
> find, at long last, the righ button to press.
> Cheers, Avraham

I write this from a debian-woody system. You should generally use there
mutt-utf8 rather than mutt if you want proper multi-byte support. But
the version of mutt on Woody leaks file-descriptors when you use
display_filter . I eventually went on to use mutt from backports.org .

I run it from a screen session. I invoke screen with screen -U and make
sure that the environment is set to a UTF-8 locale and run from a UTF-8
terminal.

Such a terminal can also be the console

Some relevant lines from my .muttrc:

# I'm not entirely happy with either of those:

# works well on well-formatted mail
#display_filter=fribidi
# For mails that have long lines:
display_filter='fmt | fribidi '
# any way to tell fmt that some UTF-8 chars take more than 1 byte?

# or maybe skip the "cp1255" one?
set send_charset="us-ascii:cp1255:utf-8"
# As far as mutt cares ISO-8859-8-I is identical to ISO-8859-8 :
charset-hook iso-8859-8-I ISO-8859-8

# Eliminate the no.1 cause for terminal garbage of a misconfigured
# terminal:
# remove this if you only work from a proper terminal
set ascii_chars=yes

-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to