"<p id="userloginlink"><p>Don't have an account" is illegal xhtml
[mediawiki.git] / languages / classes / LanguageYue.php
blobf988548e98de5aed1551ab8518bb859b4f1e262b
1 <?php
2 /**
3 * @ingroup Language
4 */
5 class LanguageYue extends Language {
6 function hasWordBreaks() {
7 return false;
10 /**
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 segmentByWord( $string ) {
16 $reg = "/([\\xc0-\\xff][\\x80-\\xbf]*)/";
17 $s = self::insertSpace( $string, $reg );
18 return $s;
21 function normalizeForSearch( $string ) {
22 wfProfileIn( __METHOD__ );
24 // Double-width roman characters
25 $s = self::convertDoubleWidth( $string );
26 $s = trim( $s );
27 $s = parent::normalizeForSearch( $s );
29 wfProfileOut( __METHOD__ );
30 return $s;