|
From: Laurent D. <lau...@ne...> - 2000-08-21 15:39:29
|
Hi,
I've managed to make some time to get the I18N stuff back on my plate. I've
decided on the following approach:
- Apply Jan's patch to tclUtf.c. This adds a new escape sequence (\_) for
the special character 0x332. In Unicode, it's supposed to mean "underline
the previous character".
- In the ConfigureButton function, check for the presence of the 0x332
character in the textPtr string (my understanding of the code is that if
-textvariable is set, the textPtr value is changed accordingly). If it's
found, locate its position in the string. Then, set the -underline value
to the position of the 0x332 char in the string. IOW, no matter what value
you put in -underline, it will be overwritten if you have a \_ in your
string.
Move the string appearing after the 0x332 over the location of the 0x332.
IOW, remove the \_ from the string. THe way I figure it, once the
character is underlined, you should no longer need the underline escape
sequence. This will allow all the rest of Tk's code to work the same way
it does now. Otherwise, if the 0x332 needs to remain in the string, more
of the core code needs to be changed. I figure, since this is new stuff
being added and noone is yet using the \_ sequence, it shouldn't hurt
anyone's code.
If anyone thinks this is all a bad idea, please say so now before I do too
much work on it. :-)
L
--
MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK
Laurent Duperval "Montreal winters are an intelligence test,
Netergy Networks - Java Center and we who are here have failed it."
Phone: (514) 282-8484 ext. 228 -Doug Camilli
mailto:lau...@ne... Penguin Power!
--
The TclCore mailing list is sponsored by Ajuba Solutions
To unsubscribe: email tcl...@aj... with the
word UNSUBSCRIBE as the subject.
|