Module:Keyboard: Difference between revisions

Plumtree (talk | contribs)
m Automatic keyboard layout
Plumtree (talk | contribs)
mNo edit summary
Line 27: Line 27:
end
end
end
end
local r_n, r_m = rat.as_ratio(convergents[max_i])
local r_n, r_m = rat.as_pair(convergents[max_i])
local r_layout = p.auto_layout(r_n, r_m, convergents)
local r_layout = p.auto_layout(r_n, r_m, convergents)
if not layout_cache[r_n .. '/' .. r_m] then
if not layout_cache[r_n .. '/' .. r_m] then