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 );
27 function normalizeForSearch( $string ) {
28 wfProfileIn( __METHOD__
);
30 // Double-width roman characters
31 $s = self
::convertDoubleWidth( $string );
33 $s = parent
::normalizeForSearch( $s );
35 wfProfileOut( __METHOD__
);