Karakas Online

11.11. lynx localization

From the lynx manual page:

-display_charset=MIMEname

set the charset for the terminal output.

NATIVE LANGUAGE SUPPORT

If configured and installed with Native Language Support, Lynx will display status and other messages in

your local language. See the file ABOUT_NLS in the source distribution, or at your local GNU site, for

more information about internationalization.

The following environment variables may be used to alter default settings:

LANG

This variable, if set, will override the default message language. It is an ISO 639 two-letter code identifying the language. Language codes are NOT the same as the country codes given in ISO 3166.

LANGUAGE

This variable, if set, will override the default message language. This is a GNU extension that has higher priority for setting the message catalog than LANG or LC_ALL.

LC_ALL and LC_MESSAGES

These variables, if set, specify the notion of native language formatting style. They are POSIXly correct.

LINGUAS

This variable, if set prior to configuration, limits the installed languages to specific values. It is a space-separated list of two-letter codes. Currently, it is hard-coded to a wish list.

NLSPATH

This variable, if set, is used as the path prefix for message catalogs.

From the Unicode HOWTO:

Lynx-2.8 has an options screen (key 'O') which permits to set the display character set. When running in an xterm or Linux console in UTF-8 mode, set this to "UNICODE UTF-8". Note that for this setting to take effect in the current browser session, you have to confirm on the "Accept Changes" field, and for this setting to take effect in future browser sessions, you have to enable the "Save options to disk" field and then confirm it on the "Accept Changes" field.

Now, again, all a document needs is the following line between the <head> and </head> tags:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

When you are viewing text files in UTF-8 encoding, you also need to pass the command-line option "-assume_local_charset=UTF-8" (affects only file:/... URLs) or "-assume_charset=UTF-8" (affects all URLs). In lynx-2.8.2 you can alternatively, in the options screen (key 'O'), change the assumed document character set to "utf-8".

Last updated Mon Sep 24 01:19:25 CEST 2007 Permalink: http://www.karakas-online.de/mySGML/lynx-localization.html All contents © 2002-2007 Chris Karakas