「モジュール:MOS genchain」の版間の差分

Furcht968 (トーク | 投稿記録)
ページの作成:「local mos = require("Module:MOS") local tamnams = require("Module:TAMNAMS") local yesno = require("Module:Yesno") local p = {} -- TODO -- - Cell coloring -- - Mosprefix and mosabbrev entering -- - Collapse option -- Global variables for cell colors -- Colors are as follows: -- - Orange and blue for small and large sizes, respectively -- - Darker colors for altered scale degrees -- - No color for period intervals p.cell_color_none = "NONE" -- For cells that don'…」
 
Furcht968 (トーク | 投稿記録)
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
53行目: 53行目:
-- Table caption
-- Table caption
result = result .. "|+ style=\"font-size: 105%; white-space: nowrap;\" | " .. string.format("Generator chain of %s\n", scale_sig)
result = result .. "|+ style=\"font-size: 105%; white-space: nowrap;\" | " .. string.format("%sのジェネレーター連鎖\n", scale_sig)


-- Headers for each period
-- Headers for each period
result = result .. "|-\n"
result = result .. "|-\n"
    .. "! Bright gens"
    .. "! ジェネレーター(上方)"
for i = 1, period_count do
for i = 1, period_count do
result = result
result = result
.. " !! Scale degree"
.. " !! 音階の度数"
.. " !! Abbrev."
.. " !! 略記"
end
end
result = result .. "\n"
result = result .. "\n"
85行目: 85行目:
result = result  
result = result  
.. string.format(" || %s<br />%s || %s<br />%s",
.. string.format(" || %s<br />%s || %s<br />%s",
tamnams.degree_quality(current_interval, input_mos, "sentence-case", mos_prefix),
tamnams.degree_quality_japanese(current_interval, input_mos),
tamnams.degree_quality(period_raised_interval, input_mos, "sentence-case", mos_prefix),
tamnams.degree_quality_japanese(period_raised_interval, input_mos),
tamnams.degree_quality(current_interval, input_mos, "abbrev" , mos_abbrev),
tamnams.degree_quality(current_interval, input_mos, "abbrev" , mos_abbrev),
tamnams.degree_quality(period_raised_interval, input_mos, "abbrev", mos_abbrev))
tamnams.degree_quality(period_raised_interval, input_mos, "abbrev", mos_abbrev))
92行目: 92行目:
result = result  
result = result  
.. string.format(" || %s || %s",
.. string.format(" || %s || %s",
tamnams.degree_quality(period_raised_interval, input_mos, "sentence-case", mos_prefix),
tamnams.degree_quality_japanese(period_raised_interval, input_mos),
    tamnams.degree_quality(period_raised_interval, input_mos, "abbrev", mos_abbrev))
    tamnams.degree_quality(period_raised_interval, input_mos, "abbrev", mos_abbrev))
else
else
result = result  
result = result  
.. string.format(" || %s || %s",
.. string.format(" || %s || %s",
tamnams.degree_quality(current_interval, input_mos, "sentence-case", mos_prefix),
tamnams.degree_quality_japanese(current_interval, input_mos),
tamnams.degree_quality(current_interval, input_mos, "abbrev", mos_abbrev))
tamnams.degree_quality(current_interval, input_mos, "abbrev", mos_abbrev))
end
end