Wide Periodic Table by nattow

s=" He${' '*89}_ H  Li Be${' '*71}_ B  C  N  O  F  Ne Na Mg${' '*71}_ Al Si P  S  Cl Ar K  Ca${' '*41}_ Sc Ti V  Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr${' '*41}_ Y  Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I  Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W  Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U  Np Pu am Cm Bk Cf Es Fm Md No Lr Rf Db Sg Bh Hs Mt Ds Rg CnUutUuqUupUuhUusUuo"
a=""
n=0
for(i in 0..20){a+=(i%3<1?"+":"|")
for(j in 0..31){x=(((int)(i/3))*32+j)*3
c=s.substring(x,x+3)
if(c=="   ")a+="    "
else if(c=="  _")a+=(i%3<1?"   +":"   |")
else{
if(i%3<1)a+="---+"
else if(i%3<2){n++
a+=(n>99?"$n|":n>9?" $n|":"  $n|")}
else a+="$c|"}}
a+="\n"}
print"$a+"+"---+"*32

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page