MediaWiki  REL1_22
KkConverter Class Reference

Kazakh (Қазақша) converter routines. More...

Inheritance diagram for KkConverter:
Collaboration diagram for KkConverter:

List of all members.

Public Member Functions

 __construct ($langobj, $maincode, $variants=array(), $variantfallbacks=array(), $flags=array())
 autoConvert ($text, $toVariant=false)
 An ugly function wrapper for parsing Image titles (to prevent image name conversion)
 convertCategoryKey ($key)
 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 A function wrapper:
 loadDefaultTables ()
 Load default conversion tables.
 loadRegs ()
 parseManualRule ($rule, $flags=array())
 rules should be defined as -{ekavian | iyekavian-} -or-
 postLoadTables ()
 Hook for post processing after conversion tables are loaded.
 regsConverter ($text, $toVariant)
 translate ($text, $toVariant)
 It translates text into variant.

Public Attributes

 $mCyLa2Arab
 $mLatn2Cyrl

Protected Attributes

 $mCyrl2Latn

Detailed Description

Kazakh (Қазақша) converter routines.

Definition at line 40 of file LanguageKk.php.


Constructor & Destructor Documentation

KkConverter::__construct ( langobj,
maincode,
variants = array(),
variantfallbacks = array(),
flags = array() 
)
Parameters:
$langobjLanguage
$maincodestring
$variantsarray
$variantfallbacksarray
$flagsarray

Definition at line 51 of file LanguageKk.php.

References $flags, and loadRegs().


Member Function Documentation

KkConverter::autoConvert ( text,
toVariant = false 
)

An ugly function wrapper for parsing Image titles (to prevent image name conversion)

Parameters:
$textstring
$toVariantbool
Returns:
string

Reimplemented from LanguageConverter.

Definition at line 283 of file LanguageKk.php.

References $wgTitle, and global.

Referenced by convertCategoryKey().

Parameters:
$keystring
Returns:
String

Reimplemented from LanguageConverter.

Definition at line 401 of file LanguageKk.php.

References $key, and autoConvert().

KkConverter::findVariantLink ( &$  link,
&$  nt,
ignoreOtherCond = false 
)

A function wrapper:

  • if there is no selected variant, leave the link names as they were
  • do not try to find variants for usernames
Parameters:
$linkstring
$ntTitle
bool$ignoreOtherCond

Reimplemented from LanguageConverter.

Definition at line 258 of file LanguageKk.php.

References $link, and LanguageConverter\getPreferredVariant().

Load default conversion tables.

This method must be implemented in derived class.

Access:
private
Exceptions:
MWException

Reimplemented from LanguageConverter.

Definition at line 64 of file LanguageKk.php.

References array().

Definition at line 92 of file LanguageKk.php.

References array(), characters, and Punctuation.

Referenced by __construct().

KkConverter::parseManualRule ( rule,
flags = array() 
)

rules should be defined as -{ekavian | iyekavian-} -or-

-{code:text | code:text | ...}-

update: delete all rule parsing because it's not used currently, and just produces a couple of bugs

Parameters:
$rulestring
$flagsarray
Returns:
array

Definition at line 234 of file LanguageKk.php.

References $flags, array(), and as.

Hook for post processing after conversion tables are loaded.

Reimplemented from LanguageConverter.

Definition at line 86 of file LanguageKk.php.

KkConverter::regsConverter ( text,
toVariant 
)
Parameters:
$textstring
$toVariantstring
Returns:
mixed|string

Definition at line 345 of file LanguageKk.php.

References $matches, $ret, and as.

Referenced by translate().

KkConverter::translate ( text,
toVariant 
)

It translates text into variant.

Parameters:
$textstring
$toVariantstring
Returns:
string

Reimplemented from LanguageConverter.

Definition at line 302 of file LanguageKk.php.

References $matches, $ret, as, global, and regsConverter().


Member Data Documentation

KkConverter::$mCyLa2Arab

Definition at line 42 of file LanguageKk.php.

KkConverter::$mCyrl2Latn [protected]

Definition at line 42 of file LanguageKk.php.

KkConverter::$mLatn2Cyrl

Definition at line 42 of file LanguageKk.php.


The documentation for this class was generated from the following file: