--- In [email protected], "forxtra" <forx...@...> wrote: > > #34613 > --- In [email protected], "Sheri" <sherip99@> wrote: > > > We could also use Unicode.Select(). > > > > Really? Would you mind posting what this looks like with > Unicode.Slice > > instead of slice? Everything valid? > > > > http://img7.imageshack.us/img7/2435/multibyteiv0.png > > The default codepage on my pc is 949 (Korean). > I've so far used Unicode.Slice() for truncating multi-byte strings > correctly. > It seems to work fine for me. > > Result: > http://img14.imageshack.us/img14/9692/multibyte2mn2.png > > > > #34619 > --- In [email protected], "Sheri" <sherip99@> wrote: > > > > Could you could try my lastest test version of the notemenu posted > here? > > <http://tech.groups.yahoo.com/group/power- > pro/files/0_TEMP_/NoteMenuUpdates/NoteMenu_203.zip> > > > > See the top of the script notemenu.powerpro for info on testing my > > double byte code page processing. > > > > Regards, > > Sheri > > > > It is work fine for me with auto-detect and dblcs=2 mode. > > but, > 1. dblcs=0 ;;normal single byte code page > After notemenu displayed, an error message pops up when trying to > display tooltip. > Although it is not important in many SBCS environment, my PC does > not seem to recognize letter "¦" properly in regex pattern. > > http://img5.imageshack.us/img5/3620/badexpressionxv6.png > > After replacing pattern with ?"/", if try test, it seems to work > fine . > > > 2. dblcs=1 ;;removes last char of string if win.isdbcsleadbyte for > last char == 1 > truncatedbcs(string) function at 785 line returns only alphanumeric. > > Reuslt: > http://img5.imageshack.us/img5/8962/testresultyw9.png >
LOL! Truncatedbcs(string) doesn't leave much does it. Wonder where I went wrong there?! I'm going to work on using the Unicode plugin to decode the strings into utf8 and then try using regex in utf8 mode. The tooltip is supposed to word wrap around 70 characters, but without utf8 each byte counts as a character. So I imagine the tooltip windows look pretty narrow for you. This character "¦" is in the default pcf file as tooltip line break character. I don't know if anyone actually uses it. It would be nice if we could retrieve the pcf's tooltip line break character. Regards, Sheri
