Page 1 of 1

Internalization ?

Posted: Mon Nov 03, 2003 6:37 am
by CBF
How can I set 1251 code table? Can I type and display characters in cyrillic fonts?

Posted: Mon Nov 03, 2003 11:08 am
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.

Posted: Mon Nov 03, 2003 3:47 pm
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

Posted: Mon Nov 03, 2003 3:51 pm
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