japana - HTTP proxy converting Japanese characters into ASCII
japana [ --configfile configfile ] [ --addr addr ] [ --port port ] [ --proxy proxy ] [ --kakasioptions options ] [ --version ]
japana [ -c configfile ] [ -a addr ] [ -p port ] [ -P proxy ] [ -o options ] [ -V ]
japana is a small and simple proxy written in Perl. The proxy converts Japanese characters (Hiragana, Katakana, Kanji etc.) into ASCII (Romaji) on the fly. The conversion is done using the KAKASI library.
Just start japana. This will by default create a proxy running on http://localhost:8080 (it will fail if something else is already running on this port). Then point your browser to the proxy. Next, surf to some Japanese website (e.g. http://amazon.co.jp) and see all those Japanese characters converted to plain ascii text.
That's all. If you want to change the proxy port, make japana use another proxy or the like, see the switches section below.
Default is not to read a configuration file.
Default is to bind to address '127.0.0.1' as this address can only be accessed from your local computer and is not accessible from the network. Please take care when binding to another address.
Default setting is port 8080.
Default is to use the environment variable ${http_proxy}.
Default options are '-ja -ga -ka -Ea -Ka -Ha -Ja -U -s' and should be reasonable.
Configuration is also possible via configuration files. Every command line switch is possible in a configuration file. Empty lines and lines starting with # are ignored.
Instead of --port 3128 you would put this line in the configuration file:
port = 3128
-o '-ja -ga -ka -U -s' will become
kakasioptions = -ja -ga -ka -U -s
and so on and so forth.
use AppConfig qw(:expand); use HTTP::Daemon; use LWP::UserAgent; use Text::Kakasi;
These modules can be obtained at <http://www.cpan.org> and Text::Kakasi can be found here: <http://www.daionet.gr.jp/~knok/kakasi/>.
If setting up kakasi is too complicated, you might try the old 1.0.x version of japana. It does not use kakasi, and so can't convert Kanji.
In this version japana supports NO ACCESS CONTROL! Everyone with access to the japana port on your system will be able to use the proxy.
Please report bugs to <japana-bugs@cgarbs.de>
japana was written by Christian Garbs <mitch@cgarbs.de>. Look for updates at <http://www.cgarbs.de/japana.en.html>.
japana is licensed under the GNU GPL.
Thanks go to Tobias Diedrich <ranma@gmx.at> and Benjamin Heuer <benjaminheuer@t-online.de> for ideas, bug-reports and beta testing.
Sorry to those guys from <news:de.soc.kultur.japan> who helped with the translation routine in version 1.0.x: It is not used any more.