Module:gloss grid: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 35: Line 35:
for i = 1, term_count do
for i = 1, term_count do
if data.IPAs[i] then
if data.IPAs[i] then
build('<td style="' .. cell_style .. '" class="IPA nolarge">' .. data.IPAs[i] .. '</td>')
local ipa_temp = data.IPAs[i]
if i == 1 then
ipa_temp = (data.phonemic and "/" or "[") .. ipa_temp
elseif i == term_count then
ipa_temp = ipa_temp .. (data.phonemic and "/" or "]")
end
build('<td style="' .. cell_style .. '" class="IPA nolarge">' .. ipa_temp .. '</td>')
elseif i == 1 then
build('<td style="' .. cell_style .. '" class="IPA nolarge">' .. (data.phonemic and "/" or "[") .. '</td>')
elseif i == term_count then
build('<td style="' .. cell_style .. '" class="IPA nolarge">' .. (data.phonemic and "/" or "]") .. '</td>')
else
else
build('<td />')
build('<td />')
Line 154: Line 164:
s_IPA = args["pr"] or args["p"] or args["ipa"],
s_IPA = args["pr"] or args["p"] or args["ipa"],
s_translation = args["t"],
s_translation = args["t"],
bold = (args["bold"] ~= nil)
bold = (args["bold"] ~= nil),
phonemic = (args["phnm"] ~= nil)
}
}
end
end