Thursday, July 25, 2013

Wiktionary - Recent changes [en]: Module:sah-translit

Wiktionary - Recent changes [en]
Track the most recent changes to the wiki in this feed. // via fulltextrssfeed.com 
  --[[  Transliteration for Yakut.  ]]  local M={}     local tt={      ["А"]='A', ["а"]='a', ["Б"]='B', ["б"]='b', ["Г"]='G', ["г"]='g', ["Ҕ"]='Ğ', ["ҕ"]='ğ',      ["Д"]='D', ["д"]='d', ["И"]='İ', ["и"]='i', ["Й"]='Y', ["й"]='y', ["К"]='K', ["к"]='k',      ["Л"]='L', ["л"]='l', ["М"]='M', ["м"]='m', ["Н"]='N', ["н"]='n', ["Ҥ"]='Ŋ', ["ҥ"]='ŋ',      ["О"]='O', ["о"]='o', ["Ө"]='Ö', ["ө"]='ö', ["П"]='P', ["п"]='p', ["Р"]='R', ["р"]='r',      ["С"]='S', ["с"]='s', ["Һ"]='H', ["һ"]='h', ["Т"]='T', ["т"]='t', ["У"]='U', ["у"]='u',      ["Ү"]='Ü', ["ү"]='ü', ["Х"]='X', ["х"]='x', ["Ч"]='Ç', ["ч"]='ç', ["Ш"]='Ş', ["ш"]='ş',      ["Ы"]='I', ["ы"]='ı', ["Э"]='E', ["э"]='e',      -- non-native letters      ["В"]='V', ["в"]='v', ["Е"]='E', ["е"]='e', ["Ё"]='Yo', ["ё"]='yo', ["Ж"]='J', ["ж"]='j',      ["З"]='Z', ["з"]='z', ["Ф"]='F', ["ф"]='f', ["Ц"]='Ts', ["ц"]='ts', ["Щ"]='Şç', ["щ"]='şç',      ['Ъ']='ʺ', ['ъ']='ʺ', ["Ь"]="'", ["ь"]="'", ["Ю"]='Yu', ["ю"]='yu', ["Я"]='Ya', ["я"]='ya',  };  function M.tr(text)--translit any words or phrases      if type(text) == "table" then text = text.args[1] end      text = mw.ustring.gsub(text, 'Дь', 'C')      text = mw.ustring.gsub(text, 'дь', 'c')      text = mw.ustring.gsub(text, 'Нь', 'Ń')      text = mw.ustring.gsub(text, 'нь', 'ń')         return (mw.ustring.gsub(text, '.', tt))  end  return M  

Module:sah-translit
Jul 25th 2013, 23:27, by Madina

Line 19: Line 19:
 

function M.tr(text)--translit any words or phrases

 

function M.tr(text)--translit any words or phrases

 

if type(text) == "table" then text = text.args[1] end

 

if type(text) == "table" then text = text.args[1] end

text = mw.ustring.gsub(f, 'Дь', 'C')

+

text = mw.ustring.gsub(text, 'Дь', 'C')

text = mw.ustring.gsub(f, 'дь', 'c')

+

text = mw.ustring.gsub(text, 'дь', 'c')

text = mw.ustring.gsub(f, 'Нь', 'Ń')

+

text = mw.ustring.gsub(text, 'Нь', 'Ń')

text = mw.ustring.gsub(f, 'нь', 'ń')

+

text = mw.ustring.gsub(text, 'нь', 'ń')

   
 

return (mw.ustring.gsub(text, '.', tt))

 

return (mw.ustring.gsub(text, '.', tt))

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions