i18n tester

WikiDbImage i18ntester.jpg WikiDbImage i18ntester_ce.jpg

Richard Suchenwirth 2000-11-27 - i18n stands for that word with "i" in front, "n" at the end, and 18 letters in between - internationalization, adapting software to non-English language environments.

Here's a little script that shows you what exotic characters your system has available (Tcl can process all of the Unicode characters, but for displaying the fonts must also be reachable). It creates a text window and tries to show some sample text for the specified languages:

 package require Tk

 pack [text .t -font {Helvetica 16}]
 .t insert end "
 Arabic \uFE94\uFEF4\uFE91\uFEAE\uFECC\uFEDF\uFE8D\uFE94\uFEE4\uFEE0\uFEDC\uFEDF\uFE8D
 German \u00e4 \u00f6 \u00fc \u00df  \u00c4 \u00d6 \u00dc \u20ac
 Greek   \u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC\
 Hebrew  \u05DD\u05D9\u05DC\u05E9\u05D5\u05E8\u05D9\
 Russian         \u0420\u0443\u0441\u0441\u043A\u0438\u0439\

 Trad. Chinese      \u4E2D\u570B\u7684\u6F22\u5B57
 Simplified Chinese \u6C49\u8BED
 Japanese \u65E5\u672C\u8A9E\u306E\u3072\u3089\u304C\u306A,\
 Korean          \uB300\uD55C\uBBFC\uAD6D\uC758 \uD55C\uAE00 (\u3CA2\u3498)

No font or size are specified, so you see the pure defaults (and notice how Tk manages to find characters).
You can then configure the text widget for the fonts you'd like to see.

Added separate samples for Traditional (as used in Taiwan, Hongkong etc.) and Simplified Chinese (used in PRC, Singapore). RS

LV June 29, 2001: Richard, I see nothing for the Arabic, Simplified Chinese, and also do not see u03ac, u03ce,(RS: Greek vowels with accent), u3ca2, u3498 (RS: Unicode 1.0 Hangul codes. Cyberbit still had them, but Arial Unicode MS has dropped their support)

LV I keep running into the problem of users successfully finding and installing (so that Tk can locate) required fonts. Sigh.

AM On Windows XP these "special" characters from Asian languages (special in the sense that they are not Latin characters only, given the number of people that use them) may not show up, even if you have installed the proper fonts.

This may have to do with rebooting your machine. I saw only them after I had my system administrator install support for these languages via the Regional and language options explicitly. As this process involved rebooting the machine, that step alone might have solved the problem, but I can not be sure.

So, if all else fails: use these options from the Settings/Control panel menu.

This script later found its way into the Tk widget demo too, so you'll probably have it already :)

HJG 2014-09-06 - Look for that demo under "Labels, buttons, checkbuttons, and radiobuttons" - "Labels and UNICODE text".
Also, I added some german special chars to the text.

See also: