From b7b548cedf17db643e92b11670bd379de1e38bf4 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 2 Sep 2010 22:20:00 +0000 Subject: [PATCH] Comment out some unused array declarations Move some comments --- languages/classes/LanguageKk_cyrl.php | 10 +++++----- languages/classes/LanguageTyv.php | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/languages/classes/LanguageKk_cyrl.php b/languages/classes/LanguageKk_cyrl.php index 51749dd37d..0cc6500213 100644 --- a/languages/classes/LanguageKk_cyrl.php +++ b/languages/classes/LanguageKk_cyrl.php @@ -23,14 +23,14 @@ class LanguageKk_cyrl extends Language { // Set up some constants... // Vowels in last syllable $frontVowels = array( "е", "ө", "ү", "і", "ә", "э", "я", "ё", "и" ); - $backVowels = array( "а", "о", "ұ", "ы" ); + //$backVowels = array( "а", "о", "ұ", "ы" ); $allVowels = array( "е", "ө", "ү", "і", "ә", "э", "а", "о", "ұ", "ы", "я", "ё", "и" ); // Preceding letters - $Nasals = array( "м", "н", "ң" ); - $Sonants = array( "и", "й", "л", "р", "у", "ю" ); + //$Nasals = array( "м", "н", "ң" ); + //$Sonants = array( "и", "й", "л", "р", "у", "ю" ); $Consonants = array( "п", "ф", "к", "қ", "т", "ш", "с", "х", "ц", "ч", "щ", "б", "в", "г", "д" ); - $Sibilants = array( "ж", "з" ); - $Sonorants = array( "и", "й", "л", "р", "у", "ю", "м", "н", "ң", "ж", "з" ); + //$Sibilants = array( "ж", "з" ); + //$Sonorants = array( "и", "й", "л", "р", "у", "ю", "м", "н", "ң", "ж", "з" ); // Possessives $firstPerson = array( "м", "ң" ); // 1st singular, 2nd unformal diff --git a/languages/classes/LanguageTyv.php b/languages/classes/LanguageTyv.php index 6d62dfd45a..3e55a3a642 100644 --- a/languages/classes/LanguageTyv.php +++ b/languages/classes/LanguageTyv.php @@ -20,28 +20,28 @@ class LanguageTyv extends Language { return $wgGrammarForms['tyv'][$case][$word]; } - // Set up some constants... + // Set up some constants... $allVowels = array( "е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я", "a", "e", "i", "o", "ö", "u", "ü", "y" ); $frontVowels = array( "е", "и", "э", "ө", "ү", "e", "i", "ö", "ü" ); - $backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я", "a", "o", "u", "y" ); - $unroundFrontVowels = array( "е", "и", "э", "e", "i" ); + //$backVowels = array( "а", "ё", "о", "у", "ы", "ю", "я", "a", "o", "u", "y" ); + //$unroundFrontVowels = array( "е", "и", "э", "e", "i" ); $roundFrontVowels = array( "ө", "ү", "ö", "ü" ); - $unroundBackVowels = array( "а", "ы", "я", "a", "y" ); - $roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" ); + //$unroundBackVowels = array( "а", "ы", "я", "a", "y" ); + //$roundBackVowels = array( "ё", "о", "у", "ю", "o", "u" ); $unvoicedPhonemes = array( "т", "п", "с", "ш", "к", "ч", "х", "t", "p", "s", "k", "x" ); - $directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" ); + //$directiveUnvoicedStems = array( "т", "п", "с", "ш", "к", "ч", "х", "л", "м", "н", "ң", "t", "p", "s", "k", "x", "l", "m", "n", "ŋ" ); $directiveVoicedStems = array( "д", "б", "з", "ж", "г", "р", "й", "d", "b", "z", "g", "r", "j" ); -// $allSonants = array("л", "м", "н", "ң", "р", "й"); -// $allNasals = array("м", "н", "ң"); + //$allSonants = array("л", "м", "н", "ң", "р", "й"); + //$allNasals = array("м", "н", "ң"); - // Put the word in a form we can play with since we're using UTF-8 + //Put the word in a form we can play with since we're using UTF-8 preg_match_all( '/./us', $word, $ar ); $wordEnding = $ar[0][count( $ar[0] ) - 1]; // Here's the last letter in the word $wordReversed = array_reverse( $ar[0] ); // Here's an array with the order of the letters in the word reversed so we can find a match quicker *shrug* - // Find the last vowel in the word + // Find the last vowel in the word $wordLastVowel = NULL; foreach ( $wordReversed as $xvalue ) { foreach ( $allVowels as $yvalue ) { @@ -59,7 +59,7 @@ class LanguageTyv extends Language { } } - // Now convert the word + // Now convert the word switch ( $case ) { case "genitive": if ( in_array( $wordEnding, $unvoicedPhonemes ) ) { -- 2.20.1