Module:qlu-pron: Difference between revisions

No edit summary
No edit summary
Line 259: Line 259:
dialects["paulistan"] = paulistan
dialects["paulistan"] = paulistan
return phonemic, phonetic --, dialects
return {phonemic, phonetic} --, dialects
end
end


Line 290: Line 290:
     for word in gsplit(term, " ") do
     for word in gsplit(term, " ") do
         --m, t, d = export.crux(word)
         --m, t, d = export.crux(word)
         m, t = export.crux(word)
         m = export.crux(word)[1]
        t = export.crux(word)[2]
          
          
         if #phonemic == 0 or #phonetic == 0 then
         if #phonemic == 0 or #phonetic == 0 then
             --phonemic, phonetic, dialects = {m}, {t}, d
             --phonemic, phonetic, dialects = {m}, {t}, d
             phonemic, phonetic = {m}, {t}
             phonemic = {m}
            phonetic = {t}
         else
         else
         table.insert(phonemic, m)
         table.insert(phonemic, m)
Line 302: Line 304:
     end
     end


     return table.concat(phonemic, " "), table.concat(phonetic, " ") --, dialects
     return {table.concat(phonemic, " "), table.concat(phonetic, " ")} --, dialects
end
end


Line 313: Line 315:
     local term = args[1]
     local term = args[1]


     local phonemic, phonetic --[[, dialects]] = separate_word(term)
     local phonemic = separate_word(term)[1]; local phonetic = separate_word(term)[2] --[[, dialects]]
      
      
     local IPA_args = {{pron = '/' .. (phonetic or "test") .. '/', a = "Standard Ravennese"}, {pron = '[' .. (phonemic or "test2") .. ']'}}
     local IPA_args = {{pron = '/' .. (phonemic or "test") .. '/', a = "Standard Ravennese"}, {pron = '[' .. (phonetic or "test2") .. ']'}}
     --[[for key, value in pairs(dialects) do
     --[[for key, value in pairs(dialects) do
     if value ~= phonemic then
     if value ~= phonemic then