MediaWiki
master
|
Crimean Tatar (Qırımtatarca) converter routines. More...
Public Member Functions | |
__construct ( $langobj) | |
getLanguageVariants () | |
Get supported variants of the language. More... | |
getMainCode () | |
Get Main language code. More... | |
getVariantsFallbacks () | |
Get language variants fallbacks. More... | |
translate ( $text, $toVariant) | |
It translates text into variant, specials: More... | |
![]() | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
A function wrapper: More... | |
![]() | |
autoConvert ( $text, $toVariant=false) | |
Dictionary-based conversion. More... | |
autoConvertToAllVariants ( $text) | |
Call translate() to convert text to all valid variants. More... | |
convert ( $text) | |
Convert text to different variants of a language. More... | |
convertCategoryKey ( $key) | |
Convert the sorting key for category links. More... | |
convertHtml ( $text) | |
Perform output conversion on a string, and encode for safe HTML output. More... | |
convertNamespace ( $index, $variant=null) | |
Get the namespace display name in the preferred variant. More... | |
convertSplitTitle ( $title) | |
Auto convert a LinkTarget or PageReference to a readable string in the preferred variant, separating the namespace and the main part of the title. More... | |
convertTitle ( $title) | |
Auto convert a LinkTarget or PageReference to a readable string in the preferred variant. More... | |
convertTo ( $text, $variant, bool $clearState=true) | |
Same as convert() except a extra parameter to custom variant. More... | |
getConvRuleTitle () | |
Get the title produced by the conversion rule. More... | |
getDefaultVariant () | |
This function would not be affected by user's settings. More... | |
getDescCodeSeparator () | |
Get desc code separator. More... | |
getDescVarSeparator () | |
Get desc var separator. More... | |
getExtraHashOptions () | |
Returns language specific hash options. More... | |
getFlags () | |
Get strings that maps to the flags. More... | |
getManualLevel () | |
Get manual level limit for supported variants. More... | |
getPreferredVariant () | |
Get preferred language variant. More... | |
getURLVariant () | |
Get the variant specified in the URL. More... | |
getVariantFallbacks ( $variant) | |
In case some variant is not defined in the markup, we need to have some fallback. More... | |
getVariantNames () | |
Get variant names. More... | |
getVariants () | |
Get all valid variants for current Converter. More... | |
getVarSeparatorPattern () | |
Get the cached separator pattern for ConverterRule::parseRules() More... | |
guessVariant ( $text, $variant) | |
Guess if a text is written in a variant. More... | |
hasVariant ( $variant) | |
Strict check if the language has the specific variant. More... | |
hasVariants () | |
Check if this is a language with variants. More... | |
markNoConversion ( $text, $noParse=false) | |
Enclose a string with the "no conversion" tag. More... | |
updateConversionTable (LinkTarget $linkTarget) | |
Refresh the cache of conversion tables when MediaWiki:Conversiontable* is updated. More... | |
validateVariant ( $variant=null) | |
Validate the variant and return an appropriate strict internal variant code if one exists. More... | |
Public Attributes | |
$mCyrillicToLatin | |
$mCyrl2LatnExceptions = [] | |
$mCyrl2LatnPatterns = [] | |
$mCyrlCleanUpRegexes = [] | |
$mExceptionsLoaded = false | |
$mLatinToCyrillic | |
$mLatn2CyrlExceptions = [] | |
$mLatn2CyrlPatterns = [] | |
const | C_CONS = 'бвгджзйклмнпрстфхцчшщcñБВГДЖЗЙКЛМНПРСТФХЦЧШЩCÑ' |
const | C_CONS_LC = 'бвгджзйклмнпрстфхцчшщcñ' |
const | C_CONS_UC = 'БВГДЖЗЙКЛМНПРСТФХЦЧШЩCÑ' |
const | C_LC = 'абвгдеёжзийклмнопрстуфхцчшщъыьэюя' |
const | C_M_CONS = 'бгкмшcБГКМШC' |
const | C_UC = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ' |
const | L_CONS = 'bcçdfgğhjklmnñpqrsştvzBCÇDFGĞHJKLMNÑPQRSŞTVZ' |
const | L_CONS_LC = 'bcçdfgğhjklmnñpqrsştvz' |
const | L_CONS_UC = 'BCÇDFGĞHJKLMNÑPQRSŞTVZ' |
const | L_F = 'eiöüEİÖÜ' |
const | L_F_UC = 'EİÖÜ' |
const | L_LC = 'aâbcçdefgğhıijklmnñoöpqrsştuüvyz' |
const | L_M_CONS = 'bcgkmpşBCGKMPŞ' |
const | L_N_CONS = 'çnrstzÇNRSTZ' |
const | L_N_CONS_LC = 'çnrstz' |
const | L_N_CONS_UC = 'ÇNRSTZ' |
const | L_UC = 'AÂBCÇDEFGĞHIİJKLMNÑOÖPQRSŞTUÜVYZ' |
const | L_VOW = 'aâeıioöuüAÂEIİOÖUÜ' |
const | L_VOW_UC = 'AÂEIİOÖUÜ' |
Protected Member Functions | |
loadDefaultTables () | |
@inheritDoc More... | |
![]() | |
applyManualConv (ConverterRule $convRule) | |
Apply manual conversion rules. More... | |
getAdditionalFlags () | |
Provides additional flags for converter. More... | |
getAdditionalManualLevel () | |
Provides additional flags for converter. More... | |
getHeaderVariant () | |
Determine the language variant from the Accept-Language header. More... | |
getStaticDefaultVariant () | |
Get static default variant. More... | |
getUserVariant (User $user) | |
Determine if the user has a variant set. More... | |
loadTables ( $fromCache=true) | |
Load conversion tables either from the cache or the disk. More... | |
postLoadTables (&$tables) | |
Hook for post processing after conversion tables are loaded. More... | |
recursiveConvertRule ( $text, $variant, &$startPos, $depth=0) | |
Recursively convert text on the inside. More... | |
recursiveConvertTopLevel ( $text, $variant, $depth=0) | |
Recursively convert text on the outside. More... | |
Additional Inherited Members | |
![]() | |
static array< string, string > | $languagesWithStaticDefaultVariant |
static default variant of languages supporting variants for use with DefaultOptionsLookup.php More... | |
static string[] | $languagesWithVariants |
languages supporting variants More... | |
![]() | |
ReplacementArray[] | $mTables = [] |
Crimean Tatar (Qırımtatarca) converter routines.
Adapted from https://crh.wikipedia.org/wiki/Qullan%C4%B1c%C4%B1:Don_Alessandro/Translit
Definition at line 30 of file CrhConverter.php.
CrhConverter::__construct | ( | $langobj | ) |
Language | StubUserLang | $langobj |
Reimplemented from LanguageConverter.
Definition at line 113 of file CrhConverter.php.
CrhConverter::getLanguageVariants | ( | ) |
Get supported variants of the language.
Reimplemented from LanguageConverter.
Definition at line 92 of file CrhConverter.php.
CrhConverter::getMainCode | ( | ) |
Get Main language code.
Reimplemented from LanguageConverter.
Definition at line 82 of file CrhConverter.php.
CrhConverter::getVariantsFallbacks | ( | ) |
Get language variants fallbacks.
Reimplemented from LanguageConverter.
Definition at line 102 of file CrhConverter.php.
|
protected |
CrhConverter::translate | ( | $text, | |
$toVariant | |||
) |
It translates text into variant, specials:
string | $text | |
string | $toVariant |
MWException |
Reimplemented from LanguageConverter.
Definition at line 220 of file CrhConverter.php.
References $matches.
CrhConverter::$mCyrillicToLatin |
Definition at line 122 of file CrhConverter.php.
CrhConverter::$mCyrl2LatnExceptions = [] |
Definition at line 177 of file CrhConverter.php.
CrhConverter::$mCyrl2LatnPatterns = [] |
Definition at line 180 of file CrhConverter.php.
CrhConverter::$mCyrlCleanUpRegexes = [] |
Definition at line 183 of file CrhConverter.php.
CrhConverter::$mExceptionsLoaded = false |
Definition at line 185 of file CrhConverter.php.
CrhConverter::$mLatinToCyrillic |
Definition at line 152 of file CrhConverter.php.
CrhConverter::$mLatn2CyrlExceptions = [] |
Definition at line 178 of file CrhConverter.php.
CrhConverter::$mLatn2CyrlPatterns = [] |
Definition at line 181 of file CrhConverter.php.
const CrhConverter::C_CONS = 'бвгджзйклмнпрстфхцчшщcñБВГДЖЗЙКЛМНПРСТФХЦЧШЩCÑ' |
Definition at line 46 of file CrhConverter.php.
const CrhConverter::C_CONS_LC = 'бвгджзйклмнпрстфхцчшщcñ' |
Definition at line 41 of file CrhConverter.php.
const CrhConverter::C_CONS_UC = 'БВГДЖЗЙКЛМНПРСТФХЦЧШЩCÑ' |
Definition at line 39 of file CrhConverter.php.
const CrhConverter::C_LC = 'абвгдеёжзийклмнопрстуфхцчшщъыьэюя' |
Definition at line 37 of file CrhConverter.php.
const CrhConverter::C_M_CONS = 'бгкмшcБГКМШC' |
Definition at line 43 of file CrhConverter.php.
const CrhConverter::C_UC = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ' |
Definition at line 35 of file CrhConverter.php.
const CrhConverter::L_CONS = 'bcçdfgğhjklmnñpqrsştvzBCÇDFGĞHJKLMNÑPQRSŞTVZ' |
Definition at line 66 of file CrhConverter.php.
const CrhConverter::L_CONS_LC = 'bcçdfgğhjklmnñpqrsştvz' |
Definition at line 64 of file CrhConverter.php.
const CrhConverter::L_CONS_UC = 'BCÇDFGĞHJKLMNÑPQRSŞTVZ' |
Definition at line 62 of file CrhConverter.php.
const CrhConverter::L_F = 'eiöüEİÖÜ' |
Definition at line 74 of file CrhConverter.php.
const CrhConverter::L_F_UC = 'EİÖÜ' |
Definition at line 72 of file CrhConverter.php.
const CrhConverter::L_LC = 'aâbcçdefgğhıijklmnñoöpqrsştuüvyz' |
Definition at line 52 of file CrhConverter.php.
const CrhConverter::L_M_CONS = 'bcgkmpşBCGKMPŞ' |
Definition at line 60 of file CrhConverter.php.
const CrhConverter::L_N_CONS = 'çnrstzÇNRSTZ' |
Definition at line 58 of file CrhConverter.php.
const CrhConverter::L_N_CONS_LC = 'çnrstz' |
Definition at line 56 of file CrhConverter.php.
const CrhConverter::L_N_CONS_UC = 'ÇNRSTZ' |
Definition at line 54 of file CrhConverter.php.
const CrhConverter::L_UC = 'AÂBCÇDEFGĞHIİJKLMNÑOÖPQRSŞTUÜVYZ' |
Definition at line 50 of file CrhConverter.php.
const CrhConverter::L_VOW = 'aâeıioöuüAÂEIİOÖUÜ' |
Definition at line 70 of file CrhConverter.php.
const CrhConverter::L_VOW_UC = 'AÂEIİOÖUÜ' |
Definition at line 68 of file CrhConverter.php.