SHOWNONASCII

Section: User Commands (1)
Updated: August 1994
Index
 

NAME

shownonascii - view a foreign text in an 8bit charset

 

SYNOPSIS

shownonascii charset-name [ text/enriched ] < text

 

DESCRIPTION

The Shownonascii program allows some foreign texts containing non-ASCII characters to be viewed under X11, or transliterated on a dumb terminal. Supported charsets are currently ISO-8859-1 thru -9, KOI8-R, IBM437, VISCII, and TIS. If the rich switch is used, richtext(1) will format the output.

Whenever possible, shownonascii displays the text in the current window, changing its font. Set MM_NOTTTY=1 to force shownonascii to open a separate window. Otherwise use Control-MouseButton3 to restore the default font.

Shownonascii is a mere shell script. Have a look at the source for more details. It should be invoked automatically from a mailcap entry:

text/*; /usr/elm/bin/shownonascii %{charset} %t; copiousoutput;\
test=case %{charset} in *-8859-[1-9]|[Kk][Oo][Ii]*|[VvTt][Ii][Ss]*|*437)\
        exit 0\; esac\; exit 1
 

ENVIRONMENT

MM_CHARSET and MM_AUXCHARSETS can be set to your display's charset(s) preventing unnecessary calls of shownonascii. Users of kterm or cxterm should also set MM_CHARSET to ISO-2022-JP or HZ-GB-2312 respectively, as those emulators can't display other charsets.

FONTSIZE can be set to 24 if you prefer huge fonts.

 

BUGS

The font path will not be found on remote out-of-domain X servers.

Characters below decimal 32 will not show up correctly.

The KOI font lacks the graphic characters from KOI8-R.

The ASCII transliterations are ugly. The Thai portions will will be totally unreadable outside the X Window System.  

SEE ALSO

metamail(1), richtext(1), mailto(1), /usr/elm/lib/mailcap, /usr/elm/fonts/fonts.alias, /usr/elm/sed/*, RFC 1340, RFC 1341, RFC 1345, RFC 1437, RFC 1456, RFC 1489, RFC 1521, RFC 1524, RFC 1555, RFC 1556, RFC 1563, RFC 1842

 

AUTHOR

(c) 1994 Roman Czyborra@cs.TU-Berlin.DE

Inspiration came from Nathaniel Borenstein's shownonascii which is replaced entirely.

The applied fonts were taken from the Japanese MULE collection.


 

Index

NAME
SYNOPSIS
DESCRIPTION
ENVIRONMENT
BUGS
SEE ALSO
AUTHOR

CGI rtfm
September 7, 1998