7 class LanguageYue
extends Language
{
8 function hasWordBreaks() {
13 * Eventually this should be a word segmentation;
14 * for now just treat each character as a word.
15 * @todo Fixme: only do this for Han characters...
17 function segmentByWord( $string ) {
18 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
19 $s = self
::insertSpace( $string, $reg );
23 function normalizeForSearch( $string ) {
24 wfProfileIn( __METHOD__
);
26 // Double-width roman characters
27 $s = self
::convertDoubleWidth( $string );
29 $s = parent
::normalizeForSearch( $s );
31 wfProfileOut( __METHOD__
);