MediaWiki
1.34.0
|
There are two levels of conversion for Serbian: the script level (Cyrillics <-> Latin), and the variant level (ekavian <->iyekavian). More...
Public Member Functions | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
A function wrapper: More... | |
guessVariant ( $text, $variant) | |
Guess if a text is written in Cyrillic or Latin. More... | |
loadDefaultTables () | |
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 33 of file LanguageSr.php.
SrConverter::findVariantLink | ( | & | $link, |
& | $nt, | ||
$ignoreOtherCond = false |
|||
) |
A function wrapper:
string | &$link | |
Title | &$nt | |
bool | $ignoreOtherCond |
Definition at line 88 of file LanguageSr.php.
References 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 154 of file LanguageSr.php.
SrConverter::loadDefaultTables | ( | ) |
Definition at line 70 of file LanguageSr.php.
SrConverter::translate | ( | $text, | |
$toVariant | |||
) |
It translates text into variant, specials:
string | $text | |
string | $toVariant |
MWException |
Definition at line 114 of file LanguageSr.php.
References $matches.
SrConverter::$mToCyrillics |
Definition at line 50 of file LanguageSr.php.
SrConverter::$mToLatin |
Definition at line 34 of file LanguageSr.php.