From: Laurent D. <lau...@ne...> - 2000-09-12 15:18:03
|
On 11 Sep, Keiichi Takahashi wrote: > In some short test pieces, some of troubles are found. Main trouble is related to > text width of the widgets. > Ok, I think I know what the problem is. To calculate the width of a widget, I use the ::msgcat::mcmax function. The problem is that for a string like OK, I user "OK" to calculate the width. My assumption was that the length of "OK" and "O\_K" should be the same, since the \_ is pretty much like a diacritic (I hope it's the right term). Evidently, that's not the case for languages such as Japanese. ... Ok, I just patched the msgcat.tcl file and these are the results I get: # ja ::msgcat::mcmax OK ::msgcat::mcmax O\_K % 2 % 5 % # en ::msgcat::mcmax OK ::msgcat::mcmax O\_K % 2 % 2 The patch is attached and it should fix your problems. Keep those problem reports coming! 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! |