Foreign languages in texis

Post Reply
phoebe
Posts: 25
Joined: Fri Aug 01, 2003 9:29 am

Foreign languages in texis

Post 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.
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Foreign languages in texis

Post 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>
Post Reply