37 $variantfallbacks = [],
40 $this->mDescCodeSep =
':';
41 $this->mDescVarSep =
';';
42 parent::__construct( $langobj, $maincode,
52 $this->mVariantNames = array_merge( $this->mVariantNames, $names );
82 parent::__construct();
84 $variants = [
'gan',
'gan-hans',
'gan-hant' ];
86 'gan' => [
'gan-hans',
'gan-hant' ],
87 'gan-hans' => [
'gan' ],
88 'gan-hant' => [
'gan' ],
95 $variants, $variantfallbacks,
109 return parent::normalizeForSearch( $string, $autoVariant );
convertCategoryKey( $key)
loadDefaultTables()
Load default conversion tables.
__construct( $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,...
Wrapper around strtr() that holds replacements.