MediaWiki
REL1_19
|
Public Member Functions | |
autoConvert ($text, $toVariant=false) | |
An ugly function wrapper for parsing Image titles (to prevent image name conversion) | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
A function wrapper: | |
loadDefaultTables () | |
Load default conversion tables. | |
markNoConversion ($text, $noParse=false) | |
We want our external link captions to be converted in variants, so we return the original text instead -{$text}-, except for URLs. | |
parseManualRule ($rule, $flags=array()) | |
rules should be defined as -{Tifinagh | Latin-} -or- | |
parserConvert ($text, &$parser) | |
Do not convert content on talk pages. | |
translate ($text, $toVariant) | |
It translates text into variant. | |
Public Attributes | |
$mToLatin | |
$mToTifinagh | |
$mUpperToLowerCaseLatin | |
Protected Attributes | |
$mDoContentConvert |
Definition at line 23 of file LanguageShi.php.
ShiConverter::autoConvert | ( | $ | text, |
$ | toVariant = false |
||
) |
An ugly function wrapper for parsing Image titles (to prevent image name conversion)
$text | string |
$toVariant | bool |
Reimplemented from LanguageConverter.
Definition at line 148 of file LanguageShi.php.
References $wgTitle.
ShiConverter::findVariantLink | ( | &$ | link, |
&$ | nt, | ||
$ | ignoreOtherCond = false |
||
) |
A function wrapper:
$link | string |
$nt | Title |
$ignoreOtherCond | bool |
Reimplemented from LanguageConverter.
Definition at line 110 of file LanguageShi.php.
References LanguageConverter\getPreferredVariant().
Load default conversion tables.
This method must be implemented in derived class.
Reimplemented from LanguageConverter.
Definition at line 54 of file LanguageShi.php.
ShiConverter::markNoConversion | ( | $ | text, |
$ | noParse = false |
||
) |
We want our external link captions to be converted in variants, so we return the original text instead -{$text}-, except for URLs.
$text | string |
$noParse | bool |
Reimplemented from LanguageConverter.
Definition at line 133 of file LanguageShi.php.
ShiConverter::parseManualRule | ( | $ | rule, |
$ | flags = array() |
||
) |
rules should be defined as -{Tifinagh | Latin-} -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 73 of file LanguageShi.php.
ShiConverter::parserConvert | ( | $ | text, |
&$ | parser | ||
) |
Do not convert content on talk pages.
$text | string |
$parser | Parser |
Definition at line 94 of file LanguageShi.php.
ShiConverter::translate | ( | $ | text, |
$ | toVariant | ||
) |
It translates text into variant.
$text | string |
$toVariant | string |
Reimplemented from LanguageConverter.
Definition at line 165 of file LanguageShi.php.
References LanguageConverter\loadTables().
ShiConverter::$mDoContentConvert [protected] |
Definition at line 25 of file LanguageShi.php.
ShiConverter::$mToLatin |
array( 'ⴰ' => 'a', 'ⴱ' => 'b', 'ⴳ' => 'g', 'ⴷ' => 'd', 'ⴹ' => 'ḍ', 'ⴻ' => 'e', 'ⴼ' => 'f', 'ⴽ' => 'k', 'ⵀ' => 'h', 'ⵃ' => 'ḥ', 'ⵄ' => 'ε', 'ⵅ' => 'x', 'ⵇ' => 'q', 'ⵉ' => 'i', 'ⵊ' => 'j', 'ⵍ' => 'l', 'ⵎ' => 'm', 'ⵏ' => 'n', 'ⵓ' => 'u', 'ⵔ' => 'r', 'ⵕ' => 'ṛ', 'ⵖ' => 'γ', 'ⵙ' => 's', 'ⵚ' => 'ṣ', 'ⵛ' => 'š', 'ⵜ' => 't', 'ⵟ' => 'ṭ', 'ⵡ' => 'w', 'ⵢ' => 'y', 'ⵣ' => 'z', 'ⵥ' => 'ẓ', 'ⵯ' => 'ʷ', 'ⵖ' => 'ɣ', 'ⵠ' => 'v', 'ⵒ' => 'p', )
Definition at line 27 of file LanguageShi.php.
ShiConverter::$mToTifinagh |
array( 'a' => 'ⴰ', 'b' => 'ⴱ', 'g' => 'ⴳ', 'd' => 'ⴷ', 'ḍ' => 'ⴹ', 'e' => 'ⴻ', 'f' => 'ⴼ', 'k' => 'ⴽ', 'h' => 'ⵀ', 'ḥ' => 'ⵃ', 'ε' => 'ⵄ', 'x' => 'ⵅ', 'q' => 'ⵇ', 'i' => 'ⵉ', 'j' => 'ⵊ', 'l' => 'ⵍ', 'm' => 'ⵎ', 'n' => 'ⵏ', 'u' => 'ⵓ', 'r' => 'ⵔ', 'ṛ' => 'ⵕ', 'γ' => 'ⵖ', 's' => 'ⵙ', 'ṣ' => 'ⵚ', 'š' => 'ⵛ', 't' => 'ⵜ', 'ṭ' => 'ⵟ', 'w' => 'ⵡ', 'y' => 'ⵢ', 'z' => 'ⵣ', 'ẓ' => 'ⵥ', 'ʷ' => 'ⵯ', 'ɣ' => 'ⵖ', 'v' => 'ⵠ', 'p' => 'ⵒ', )
Definition at line 45 of file LanguageShi.php.
ShiConverter::$mUpperToLowerCaseLatin |
array( 'A' => 'a', 'B' => 'b', 'C' => 'c', 'D' => 'd', 'E' => 'e', 'F' => 'f', 'G' => 'g', 'H' => 'h', 'I' => 'i', 'J' => 'j', 'K' => 'k', 'L' => 'l', 'M' => 'm', 'N' => 'n', 'O' => 'o', 'P' => 'p', 'Q' => 'q', 'R' => 'r', 'S' => 's', 'T' => 't', 'U' => 'u', 'V' => 'v', 'W' => 'w', 'X' => 'x', 'Y' => 'y', 'Z' => 'z', 'Ɣ' => 'ɣ', )
Definition at line 36 of file LanguageShi.php.