Page 1 of 1

Foreign languages in texis

Posted: Thu Aug 07, 2003 8:12 pm
by phoebe
The documentation alluded to a configuration change in order to search and index different character sets, but there is no detail.
How does one do it? How about multi-byte charsets?

Thanks,
Phoebe.

Foreign languages in texis

Posted: Fri Aug 08, 2003 11:13 am
by mark
For single byte character sets you shouldn't have to do anything.

For multibyte add the following to your "Word Definition" list under "All Walk Settings".
[\xc0-\xfd]=[\x80-\xbf]+

Also edit the search script in the function "<a name=qpar>". Replace "<$q=$query>" with
<sandr "[\x80-\xfd]+" '\x22\1\x22' $query>
<sandr "[\xc0-\xfd]=[\x80-\xbf]+" "\x20\1\2" $ret>
<sandr '\x22\P=\x20=\F[\xc0-\xfd]=' "" $ret>
<$q=$ret>