Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
Line 1,554: Line 1,554:
                         working_word[syl]["stress"] = true
                         working_word[syl]["stress"] = true
                     elseif #working_word > 1 then -- if monosyllabic, do not add a redundant stress mark
                     elseif #working_word > 1 then -- if monosyllabic, do not add a redundant stress mark
                         if --[[output[#output] == "-" or]] syllables[1] == "·" then -- check if (following - or) preceding ·
                         if output[#output] == "-" then
                         -- HYPHEN NO LONGER CAUSES SECONDARY STRESS
                         -- HYPHEN NO LONGER CAUSES SECONDARY STRESS
                        elseif syllables[1] == "·" then -- check if preceding ·
                             -- mw.log("Secondary stress assigned to syllable " .. syl .. ".")
                             -- mw.log("Secondary stress assigned to syllable " .. syl .. ".")
                             working_word[syl]["stress2"] = true
                             working_word[syl]["stress2"] = true

Navigation menu