Modulo:Font to span: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+size in pt
Ri-fix. Ma che conversione ho trovato????
Riga 29:
if type=="size" then
--riporto valori fantasiosi di size a quelli reali
if z=tonumber(string.match(a, "(%d+) *pt")) thenor tonumber(a)
if z~=nil then
z=string.match(a, "(%d+)")
if z>7 then a="7"
a=math.floor(z * 4 / 3) .. "px"
elseif z<-2 then a="-2"
else
elseif z=>4 and string.match(a, "(^%d+)%d$") then a="+4" end
z=tonumber(a)
if z~=nil then
if z>7 then a="7"
elseif z<-2 then a="-2"
elseif z>4 and string.match(a, "^%+%d$") then a="+4" end
end
end
--tabella conversione size