Internalization ?

Started by CBF, November 02, 2003, 10:37:38 PM

Previous topic - Next topic

CBF

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

HPW

#1
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

#2
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/">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

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



Lutz