37 $variantfallbacks = [],
41 $this->mDescCodeSep =
':';
42 $this->mDescVarSep =
';';
43 parent::__construct( $langobj, $maincode,
54 $this->mVariantNames = array_merge( $this->mVariantNames, $names );
84 parent::__construct();
86 $variants = [
'gan',
'gan-hans',
'gan-hant' ];
88 'gan' => [
'gan-hans',
'gan-hant' ],
89 'gan-hans' => [
'gan' ],
90 'gan-hant' => [
'gan' ],
97 $variants, $variantfallbacks,
112 return parent::normalizeForSearch( $string, $autoVariant );
convertCategoryKey( $key)
loadDefaultTables()
Load default conversion tables.
__construct(Language $langobj, $maincode, $variants=[], $variantfallbacks=[], $flags=[], $manualLevel=[])
Base class for language conversion.
autoConvert( $text, $toVariant=false)
Dictionary-based conversion.
normalizeForSearch( $string, $autoVariant='gan-hans')
word segmentation
class that handles both Traditional and Simplified Chinese right now it only distinguish zh_hans,...
Internationalisation code.
Wrapper around strtr() that holds replacements.