MediaWiki
1.23.5
|
There are two levels of conversion for Serbian: the script level (Cyrillics <-> Latin), and the variant level (ekavian <->iyekavian). More...
Public Member Functions | |
autoConvert ( $text, $toVariant=false) | |
An ugly function wrapper for parsing Image titles (to prevent image name conversion) More... | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
A function wrapper: More... | |
guessVariant ( $text, $variant) | |
Guess if a text is written in Cyrillic or Latin. More... | |
loadDefaultTables () | |
parseManualRule ( $rule, $flags=array()) | |
rules should be defined as -{ekavian | iyekavian-} -or- -{code:text | code:text | ...}- More... | |
translate ( $text, $toVariant) | |
It translates text into variant, specials: More... | |
Public Attributes | |
$mToCyrillics | |
$mToLatin | |
There are two levels of conversion for Serbian: the script level (Cyrillics <-> Latin), and the variant level (ekavian <->iyekavian).
The two are orthogonal. So we really only need two dictionaries: one for Cyrillics and Latin, and one for ekavian and iyekavian.
Definition at line 35 of file LanguageSr.php.
SrConverter::autoConvert | ( | $text, | |
$toVariant = false |
|||
) |
An ugly function wrapper for parsing Image titles (to prevent image name conversion)
$text | string |
$toVariant | bool |
Definition at line 140 of file LanguageSr.php.
SrConverter::findVariantLink | ( | & | $link, |
& | $nt, | ||
$ignoreOtherCond = false |
|||
) |
A function wrapper:
$link | string |
$nt | Title |
$ignoreOtherCond | bool |
Definition at line 115 of file LanguageSr.php.
References $link, NS_USER, and NS_USER_TALK.
SrConverter::guessVariant | ( | $text, | |
$variant | |||
) |
Guess if a text is written in Cyrillic or Latin.
Overrides LanguageConverter::guessVariant()
string | $text | The text to be checked |
string | $variant | Language code of the variant to be checked for |
Definition at line 200 of file LanguageSr.php.
SrConverter::loadDefaultTables | ( | ) |
Definition at line 72 of file LanguageSr.php.
References array().
SrConverter::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
$rule | string |
$flags | array |
Definition at line 91 of file LanguageSr.php.
SrConverter::translate | ( | $text, | |
$toVariant | |||
) |
It translates text into variant, specials:
$text | string |
$toVariant | string |
MWException |
Definition at line 161 of file LanguageSr.php.
References $matches, $ret, as, and Makefile\translate().
SrConverter::$mToCyrillics |
Definition at line 52 of file LanguageSr.php.
SrConverter::$mToLatin |
Definition at line 36 of file LanguageSr.php.