Saluton!
Did you ever have problems reading a text using some iso-8859-*
encoding? I did and decided to do something against that problem. I
did write a program which I did call ‘asciitic’. It does translate
iso-8859-1 through iso-8859-10, iso-8859-13 through iso-8859-15 and
Windows codepage 1252 into a hopefully usable ASCII approximation.
The ASCII approximation is based on RFC 1345 and 7bit approximation
used by lynx with some changes that make the output more readable.
The program is plain Ruby but IMHO runs at acceptable speed. If you
don’t agree please tell me, and I’ll re-write the conversion routine
in C.
The reason I wrote this program was that Mutt did almost drive me mad
because I found no easy way to have it display iso-2022-jp and
iso-8859-15 in a usable way without switching to another terminal
(there seems to be absolutely no Unicode font for Linux that is
capable of displaying CJKV and ISO-8859-* so I need to use a Kanji
terminal for Japanese).
Despite it’s name, ‘asciitic’ does not only translate lots of
character sets to ASCII but also does translate iso-2022-jp to
euc-jp.
Available at:
http://members.lycos.nl/jupp/linux/soft/ruby/asciitic.html
http://mitglied.lycos.de/buran/linux/soft/ruby/asciitic.html
http://members.fortunecity.com/deusxmachina/linux/soft/ruby/asciitic.html
Josef ‘Jupp’ Schugt
···
–
Please consider e-mails with no or an empty plain text part as not
being delivered to me. This of course does not apply to signed or
encrypted messages. Addresses that send unsolicited e-mails or that
repeatedly ignore the above requirement will be blocked.