Internalization ?

Q&A's, tips, howto's
Locked
CBF
Posts: 1
Joined: Mon Nov 03, 2003 6:33 am

Internalization ?

Post by CBF »

How can I set 1251 code table? Can I type and display characters in cyrillic fonts?

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

I think this depends on what you can do in TCL/TK for international support.

May be you should surf on comp.lang.tcl and search for 'code page'.

When you found a solution for TCL/TK you have to modify the newlisp-tk.tcl from the source distribution to get a new EXE with your language support.
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

I guess you would have to recompile newlisp.exe with a compiler using local settings for character tables, see the documenation for GNU gcc for further information. As the cyrillic font is an 8 bit font, you are probably fine already; just using a cyrillic keyboard, but the 'sort' function makey not sort correctly.

You also need to generate a different file 'pcre-chartables.c'. This file defines the character tables used when using regular expressions in newLISP. You can generate this file for other character sets installing the PCRE distrubution from http://pcre.org/ on you local computer and running 'maketables'.


The newlisp-tk.exe will change all characters in the GUI menus etc, perhaps installing a localized TCL/TK on your machine and runnig nrelisp-tk.tcl directly is enough.

Lutz

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

There is also an interesting article at http://www.nullsoft.ru/en/russian.htm perhaps this would help you out without recompiling anything, just by changing registry settings in Windows.

Lutz

Locked