Guest User

runic.lua

a guest
Aug 10th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. term=require "term"
  2. input = term.read():lower()
  3. t = {}
  4. runetable = {a="ᚨ",b="ᛑ",c="ᛍ",d="ᛑ",e="ᛂ",f="ᚠ",g="ᚵ",h="ᚻ",i="ᛁ",j="ᛂ",k="ᚲ",l="ᛚ",m="ᛘ",n="ᚾ",o="ᚮ",p="ᛈ",q="ᛩ",r="ᚱ",s="ᛊ",t="ᛏ",u="ᚢ",v="ᚡ",w="ᚥ",x="ᛪ",y="ᚤ",z="ᛎ"}
  5. for i = 1, input:len() do
  6.  table.insert(t,input:sub(i,i))
  7. end
  8. t2 = {}
  9. for i = 1, #t do
  10.  cc = t[i]
  11.  if runetable[cc] ~= nil then
  12.   t2[i] = runetable[cc]
  13.  else
  14.   t2[i] = cc
  15.  end
  16. end
  17. s=""
  18. for k,v in ipairs(t2) do
  19.  s=s..v
  20. end
  21. print(s)
Advertisement
Add Comment
Please, Sign In to add comment