5 class LanguageYue
extends Language
{
6 function hasWordBreaks() {
11 * Eventually this should be a word segmentation;
12 * for now just treat each character as a word.
13 * @todo Fixme: only do this for Han characters...
15 function wordSegmentation( $string ) {
16 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
17 $s = self
::insertSpace( $string, $reg );
21 function normalizeForSearch( $string ) {
22 wfProfileIn( __METHOD__
);
24 // Double-width roman characters
25 $s = self
::convertDoubleWidth( $string );
27 $s = parent
::normalizeForSearch( $s );
29 wfProfileOut( __METHOD__
);