MediaWiki  1.34.0
ShiConverter Class Reference

Conversion script between Latin and Tifinagh for Tachelhit. More...

Inheritance diagram for ShiConverter:
Collaboration diagram for ShiConverter:

Public Member Functions

 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 A function wrapper: More...
 
 loadDefaultTables ()
 
 translate ( $text, $toVariant)
 It translates text into variant. More...
 

Public Attributes

 $mToLatin
 
 $mToTifinagh
 
 $mUpperToLowerCaseLatin
 

Protected Attributes

 $mDoContentConvert
 

Detailed Description

Conversion script between Latin and Tifinagh for Tachelhit.

  • Tifinagh -> lowercase Latin
  • lowercase/uppercase Latin -> Tifinagh

Based on:

Definition at line 36 of file LanguageShi.php.

Member Function Documentation

◆ findVariantLink()

ShiConverter::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
string&$link
Title&$nt
bool$ignoreOtherCond

Definition at line 85 of file LanguageShi.php.

References NS_USER, and NS_USER_TALK.

◆ loadDefaultTables()

ShiConverter::loadDefaultTables ( )

Definition at line 66 of file LanguageShi.php.

◆ translate()

ShiConverter::translate (   $text,
  $toVariant 
)

It translates text into variant.

Parameters
string$text
string$toVariant
Returns
string

Definition at line 109 of file LanguageShi.php.

Member Data Documentation

◆ $mDoContentConvert

ShiConverter::$mDoContentConvert
protected

Definition at line 37 of file LanguageShi.php.

◆ $mToLatin

ShiConverter::$mToLatin
Initial value:
= [
'ⴰ' => '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 39 of file LanguageShi.php.

◆ $mToTifinagh

ShiConverter::$mToTifinagh
Initial value:
= [
'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 57 of file LanguageShi.php.

◆ $mUpperToLowerCaseLatin

ShiConverter::$mUpperToLowerCaseLatin
Initial value:
= [
'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 48 of file LanguageShi.php.


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