Internalization ?

Q&A's, tips, howto's

Internalization ?

Postby CBF » Mon Nov 03, 2003 6:37 am

How can I set 1251 code table? Can I type and display characters in cyrillic fonts?
CBF
 
Posts: 1
Joined: Mon Nov 03, 2003 6:33 am

Postby HPW » Mon Nov 03, 2003 11:08 am

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
HPW
 
Posts: 1375
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany

Postby Lutz » Mon Nov 03, 2003 3:47 pm

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: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Postby Lutz » Mon Nov 03, 2003 3:51 pm

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
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests