Module:MOS tunings: Difference between revisions
undo some changes for readability |
commented out JI ratio search/entry, pending code rewrites |
||
| Line 154: | Line 154: | ||
-- Preprocess JI ratios | -- Preprocess JI ratios | ||
local modal_union = mos.modal_union(input_mos) | local modal_union = mos.modal_union(input_mos) | ||
local sorted_ji_ratios, search_info = p.preprocess_ji_ratios(input_mos, modal_union, step_ratios, ji_ratios, tolerance) | --local sorted_ji_ratios, search_info = p.preprocess_ji_ratios(input_mos, modal_union, step_ratios, ji_ratios, tolerance) | ||
-- Create table | -- Create table | ||
| Line 183: | Line 183: | ||
-- Headers for JI ratios; this spans two rows | -- Headers for JI ratios; this spans two rows | ||
-- Commented out, pending rewrite | |||
--[[ | |||
if #ji_ratios ~= 0 then | if #ji_ratios ~= 0 then | ||
result = result .. "! rowspan=\"2\" class=\"unsortable\" | Approx. ratios*\n" | result = result .. "! rowspan=\"2\" class=\"unsortable\" | Approx. ratios*\n" | ||
end | end | ||
result = result .. "|-\n" | result = result .. "|-\n" | ||
]]-- | |||
-- Second row of headers | -- Second row of headers | ||
| Line 218: | Line 221: | ||
-- Add cells for JI ratios | -- Add cells for JI ratios | ||
--[[ | |||
-- Commented out, pending rewrite | |||
if #ji_ratios ~= 0 then | if #ji_ratios ~= 0 then | ||
-- Ratios link to their respective pages, and are comma-delimited. | -- Ratios link to their respective pages, and are comma-delimited. | ||
| Line 223: | Line 228: | ||
result = result .. " || style=\"text-align: left;\" | " .. string.format("%s", ratios_as_text) | result = result .. " || style=\"text-align: left;\" | " .. string.format("%s", ratios_as_text) | ||
end | end | ||
]]-- | |||
result = result .. "\n" | result = result .. "\n" | ||
| Line 229: | Line 235: | ||
-- End of table, plus footnotes | -- End of table, plus footnotes | ||
result = result .. "|}\n" | result = result .. "|}\n" | ||
--[[ | |||
-- Commented out, pending rewrite | |||
if #ji_ratios ~= 0 then | if #ji_ratios ~= 0 then | ||
-- Make footnote text smaller than the rest of the text to avoid confusion with paragraph text | -- Make footnote text smaller than the rest of the text to avoid confusion with paragraph text | ||
result = result .. string.format("<span style=\"font-size: 0.75em;\">* %s</span>", footnotes) | result = result .. string.format("<span style=\"font-size: 0.75em;\">* %s</span>", footnotes) | ||
end | end | ||
]]-- | |||
return result | return result | ||