Module:trih-pro-conj: Difference between revisions

Nehster9 (talk | contribs)
No edit summary
Nehster9 (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 22: Line 22:
     imperf_1p = "eisa",
     imperf_1p = "eisa",
     imperf_2p = "ĕisa",
     imperf_2p = "ĕisa",
     imperf_3p = "ebta",
     imperf_3p = "ekta",


     past_1s = "ir",
     past_1s = "ir",
Line 51: Line 51:
     Simperf_2p = "ōpla",
     Simperf_2p = "ōpla",
     Simperf_3p = "ina",
     Simperf_3p = "ina",
   
    Opres_1s = "ŏid",
    Opres_2s = "anas",
    Opres_3s = "ăudi",
    Opres_1p = "ŏida",
    Opres_2p = "anasa",
    Opres_3p = "ăudia",
    Oimperf_1s = "ūd",
    Oimperf_2s = "oll",
    Oimperf_3s = "ŏt",
    Oimperf_1p = "ūda",
    Oimperf_2p = "olla",
    Oimperf_3p = "ŏta",


     IMP_2s = "s",
     IMP_2s = "s",
Line 85: Line 99:


     return "<div style='text-align:center;'>"
     return "<div style='text-align:center;'>"
         .. "[[Contionary:" .. form .. "|" .. form .. "]]"
         .. "" .. form .. ""
         .. "</div>"
         .. "</div>"
end
end
Line 112: Line 126:
     form = mw.ustring.gsub(form, "hh", "h")
     form = mw.ustring.gsub(form, "hh", "h")
      
      
     -- double j is simplified to single j
     -- double i is simplified to single long i
     form = mw.ustring.gsub(form, "jj", "j")
     form = mw.ustring.gsub(form, "[iī][iī]", "ī")
   
    -- <iji> is simplified to <ī>
    form = mw.ustring.gsub(form, "ij[iī]", "ī")


     return form
     return form
Line 147: Line 158:
     o = {
     o = {
         past = "ē",
         past = "ē",
         future = "o",
         future = "ā",
     },
     },
}
}
Line 194: Line 205:
     if grade then
     if grade then
         if rootPart then
         if rootPart then
             rootPart = mw.ustring.gsub(rootPart, "a", grade)
             rootPart = mw.ustring.gsub(rootPart, strong, grade)
             currentStem = rootPart .. suffixPart
             currentStem = rootPart .. suffixPart
         else
         else
             currentStem = mw.ustring.gsub(currentStem, "a", grade)
             currentStem = mw.ustring.gsub(currentStem, strong, grade)
         end
         end
     end
     end
Line 258: Line 269:
     .. '! rowspan="5" style="background:#bbd0fa;" | Indicative\n'
     .. '! rowspan="5" style="background:#bbd0fa;" | Indicative\n'
     .. '! \n'
     .. '! \n'
     .. '! ' .. make_pronoun("")
     .. '! ' .. make_pronoun("wey")
     .. ' !! ' .. make_pronoun("þifuz")
     .. ' !! ' .. make_pronoun("tífus")
     .. ' !! ' .. make_pronoun("wēs/liu/heu")
     .. ' !! ' .. make_pronoun("wēs/liw/kew")
     .. ' !! ' .. make_pronoun("wīa")
     .. ' !! ' .. make_pronoun("wéya")
     .. ' !! ' .. make_pronoun("þifuza")
     .. ' !! ' .. make_pronoun("tifúsa")
     .. ' !! ' .. make_pronoun("wēza")
     .. ' !! ' .. make_pronoun("wēsa")
     .. '\n'
     .. '\n'
     )
     )
Line 321: Line 332:
     .. '! rowspan="3" style="background:#b3da9d;" | Subjunctive\n'
     .. '! rowspan="3" style="background:#b3da9d;" | Subjunctive\n'
     .. '! \n'
     .. '! \n'
     .. '! ' .. make_pronoun("")
     .. '! ' .. make_pronoun("wey")
     .. ' !! ' .. make_pronoun("þifuz")
     .. ' !! ' .. make_pronoun("tífus")
     .. ' !! ' .. make_pronoun("wēs/liu/heu")
     .. ' !! ' .. make_pronoun("wēs/liw/kew")
     .. ' !! ' .. make_pronoun("wīa")
     .. ' !! ' .. make_pronoun("wéya")
     .. ' !! ' .. make_pronoun("þifuza")
     .. ' !! ' .. make_pronoun("tifúsa")
     .. ' !! ' .. make_pronoun("wēza")
     .. ' !! ' .. make_pronoun("wēsa")
     .. '\n'
     .. '\n'
     )
     )
Line 351: Line 362:
     .. ' || ' .. make_cell(forms.Simperf_2p)
     .. ' || ' .. make_cell(forms.Simperf_2p)
     .. ' || ' .. make_cell(forms.Simperf_3p)
     .. ' || ' .. make_cell(forms.Simperf_3p)
    .. '\n'
    .. '|-\n'
    .. '| colspan="8" style="background:#cfcfcf; height:6px; padding:0;" | \n'
    )
   
    table.insert(t,
    '|-\n'
    .. '! rowspan="3" style="background:#9cd9c1;" | Optative\n'
    .. '! \n'
    .. '! ' .. make_pronoun("wey")
    .. ' !! ' .. make_pronoun("tífus")
    .. ' !! ' .. make_pronoun("wēs/liw/kew")
    .. ' !! ' .. make_pronoun("wéya")
    .. ' !! ' .. make_pronoun("tifúsa")
    .. ' !! ' .. make_pronoun("wēsa")
    .. '\n'
    )
    table.insert(t,
    '|-\n'
    .. '! Present\n'
    .. '| ' .. make_cell(forms.Opres_1s)
    .. ' || ' .. make_cell(forms.Opres_2s)
    .. ' || ' .. make_cell(forms.Opres_3s)
    .. ' || ' .. make_cell(forms.Opres_1p)
    .. ' || ' .. make_cell(forms.Opres_2p)
    .. ' || ' .. make_cell(forms.Opres_3p)
    .. '\n'
    )
    table.insert(t,
    '|-\n'
    .. '! Imperfect\n'
    .. '| ' .. make_cell(forms.Oimperf_1s)
    .. ' || ' .. make_cell(forms.Oimperf_2s)
    .. ' || ' .. make_cell(forms.Oimperf_3s)
    .. ' || ' .. make_cell(forms.Oimperf_1p)
    .. ' || ' .. make_cell(forms.Oimperf_2p)
    .. ' || ' .. make_cell(forms.Oimperf_3p)
     .. '\n'
     .. '\n'
     .. '|-\n'
     .. '|-\n'
Line 361: Line 411:
     .. '! \n'
     .. '! \n'
     .. '! —'
     .. '! —'
     .. ' !! ' .. make_pronoun("þifuz")
     .. ' !! ' .. make_pronoun("tífus")
     .. ' !! ' .. make_pronoun("wēs/liu/heu")
     .. ' !! ' .. make_pronoun("wēs/liw/kew")
     .. ' !! —'
     .. ' !! —'
     .. ' !! ' .. make_pronoun("þifuza")
     .. ' !! ' .. make_pronoun("tifúsa")
     .. ' !! ' .. make_pronoun("wēza")
     .. ' !! ' .. make_pronoun("wēsa")
     .. '\n'
     .. '\n'
     )
     )