MediaWiki
REL1_35
TgConverter.php
Go to the documentation of this file.
1
<?php
29
class
TgConverter
extends
LanguageConverter
{
30
private
$table
= [
31
'а'
=>
'a'
,
32
'б'
=>
'b'
,
33
'в'
=>
'v'
,
34
'г'
=>
'g'
,
35
'д'
=>
'd'
,
36
'е'
=>
'e'
,
37
'ё'
=>
'jo'
,
38
'ж'
=>
'ƶ'
,
39
'з'
=>
'z'
,
40
'ии '
=>
'iji '
,
41
'и'
=>
'i'
,
42
'й'
=>
'j'
,
43
'к'
=>
'k'
,
44
'л'
=>
'l'
,
45
'м'
=>
'm'
,
46
'н'
=>
'n'
,
47
'о'
=>
'o'
,
48
'п'
=>
'p'
,
49
'р'
=>
'r'
,
50
'с'
=>
's'
,
51
'т'
=>
't'
,
52
'у'
=>
'u'
,
53
'ф'
=>
'f'
,
54
'х'
=>
'x'
,
55
'ч'
=>
'c'
,
56
'ш'
=>
'ş'
,
57
'ъ'
=>
'\''
,
58
'э'
=>
'e'
,
59
'ю'
=>
'ju'
,
60
'я'
=>
'ja'
,
61
'ғ'
=>
'ƣ'
,
62
'ӣ'
=>
'ī'
,
63
'қ'
=>
'q'
,
64
'ӯ'
=>
'ū'
,
65
'ҳ'
=>
'h'
,
66
'ҷ'
=>
'ç'
,
67
'ц'
=>
'ts'
,
68
'А'
=>
'A'
,
69
'Б'
=>
'B'
,
70
'В'
=>
'V'
,
71
'Г'
=>
'G'
,
72
'Д'
=>
'D'
,
73
'Е'
=>
'E'
,
74
'Ё'
=>
'Jo'
,
75
'Ж'
=>
'Ƶ'
,
76
'З'
=>
'Z'
,
77
'И'
=>
'I'
,
78
'Й'
=>
'J'
,
79
'К'
=>
'K'
,
80
'Л'
=>
'L'
,
81
'М'
=>
'M'
,
82
'Н'
=>
'N'
,
83
'О'
=>
'O'
,
84
'П'
=>
'P'
,
85
'Р'
=>
'R'
,
86
'С'
=>
'S'
,
87
'Т'
=>
'T'
,
88
'У'
=>
'U'
,
89
'Ф'
=>
'F'
,
90
'Х'
=>
'X'
,
91
'Ч'
=>
'C'
,
92
'Ш'
=>
'Ş'
,
93
'Ъ'
=>
'\''
,
94
'Э'
=>
'E'
,
95
'Ю'
=>
'Ju'
,
96
'Я'
=>
'Ja'
,
97
'Ғ'
=>
'Ƣ'
,
98
'Ӣ'
=>
'Ī'
,
99
'Қ'
=>
'Q'
,
100
'Ӯ'
=>
'Ū'
,
101
'Ҳ'
=>
'H'
,
102
'Ҷ'
=>
'Ç'
,
103
'Ц'
=>
'Ts'
,
104
];
105
109
public
function
__construct
( $langobj ) {
110
$variants = [
'tg'
,
'tg-latn'
];
111
parent::__construct( $langobj,
'tg'
, $variants );
112
}
113
114
protected
function
loadDefaultTables
() {
115
$this->mTables = [
116
'tg-latn'
=>
new
ReplacementArray
( $this->table ),
117
'tg'
=>
new
ReplacementArray
()
118
];
119
}
120
}
LanguageConverter
Base class for multi-variant language conversion.
Definition
LanguageConverter.php:35
ReplacementArray
Wrapper around strtr() that holds replacements.
Definition
ReplacementArray.php:24
TgConverter
Converts Tajiki to Latin orthography.
Definition
TgConverter.php:29
TgConverter\$table
$table
Definition
TgConverter.php:30
TgConverter\__construct
__construct( $langobj)
Definition
TgConverter.php:109
TgConverter\loadDefaultTables
loadDefaultTables()
Load default conversion tables.
Definition
TgConverter.php:114
includes
language
converters
TgConverter.php
Generated on Sat Apr 6 2024 00:07:20 for MediaWiki by
1.9.8