diff --git a/converter.lua b/converter.lua index c148a94..3bb8152 100644 --- a/converter.lua +++ b/converter.lua @@ -1,5 +1,29 @@ require "r2h2_modified" +words = dofile("heonian-content/words.lua") + +function cell_builder(...) + arg = {...} + for i=1, #arg do + apply_html("html/words/definition/cell_start.html") + apply(arg[i]) + apply_html("html/words/definition/cell_end.html") + end +end + +function print_word_stuff(word) + apply_html("html/words/definition/start.html") + local exit = false + for _, v in pairs(words) do + if strip_symbols(v[1]) == strip_spaces(word) then + cell_builder(mod_convertToHeonian(word),v[1],v[3],v[2]) + exit = true + end + end + if not exit then cell_builder(mod_convertToHeonian(word),word, "???","???") end + apply_html("html/words/definition/end.html") +end + function add_word(str) local add = true for _, v in pairs(word_list) do @@ -12,6 +36,12 @@ function add_word(str) end end +function strip_spaces(str) + while string.find(str, "% ") do + str = string.gsub(str, " ","") + end + return str +end function strip_symbols(str) local symbol_table = "'~()!?:> +
words used:
+ ++ + | ++ + | ++??? + | ++??? + | +
---|---|---|---|
+ + | ++nyan.pash + | ++expression + | ++hello!, good morning! + | +
+ + | ++balfur + | ++??? + | ++??? + | +
+ + | ++yu + | ++marker + | ++denotes topic, emphasis + | +
+ + | ++e + | ++pronoun + | ++which + | +
+ + | ++she + | ++noun + | ++food + | +
+ + | ++poliku + | ++??? + | ++??? + | +
+ + | ++dre + | ++??? + | ++??? + | +
+ + | ++re + | ++pronoun + | ++i + | +
+ + | ++chu + | ++marker + | ++denotes the subject + | +
+ + | ++meshu + | ++??? + | ++??? + | +
+ + | ++ponyash + | ++??? + | ++??? + | +
+ + | ++aa + | ++expression, modifier + | ++correct, very + | +
+ + | ++an.ko + | ++expression + | ++thank you + | +
+ + | ++ba + | ++pronoun + | ++you + | +
+ + | ++wa.wo.te + | ++noun + | ++rain + | +
+ + | ++to + | ++marker + | ++and, along (in physical presence) + | +
+ + | ++pu + | ++noun + | ++sun + | +
+ + | ++mipura + | ++??? + | ++??? + | +
+ + | ++lilinya + | ++??? + | ++??? + | +
+ + | ++uwu + | ++??? + | ++??? + | +
+ + | ++relfur + | ++??? + | ++??? + | +
+ + | ++mya + | ++marker + | ++preceeds subordinate clause + | +
+ + | ++lup + | ++modifier + | ++slow + | +
+ + | ++a.pat.ku + | ++verb + | ++to lie (on a surface) + | +
+ + | ++ku + | ++verb + | ++to be + | +
+ + | ++pon.me + | ++marker + | ++because + | +
+ + | ++pee.ka.ku + | ++verb + | ++to think, to become aware + | +
+ + | ++mishipash + | ++??? + | ++??? + | +
+ + | ++ton + | ++??? + | ++??? + | +
+ + | ++relfurla + | ++??? + | ++??? + | +
+ + | ++me.lu.ton + | ++noun + | ++red + | +
+ + | ++balfurla + | ++??? + | ++??? + | +
+ + | ++dra + | ++marker + | ++indicates question + | +
+ + | ++esh.dre + | ++noun + | ++moon, secret + | +
+ + | ++pu.ro.ton + | ++modifier + | ++yellow + | +
+ + | ++shi.ro.bae.pu + | ++noun + | ++night sky + | +
+ + | ++po.nya + | ++modifier + | ++good + | +
+ + | ++be.nyui + | ++noun + | ++bunny + | +
+ + | ++rerenlafura + | ++??? + | ++??? + | +
+ + | ++mi.mi.ku + | ++verb + | ++to see + | +
+ + | ++oo + | ++??? + | ++??? + | +
+ + | ++pa.re.ku + | ++verb + | ++to know, to learn + | +
+ + | ++babanlafura + | ++??? + | ++??? + | +
+ + | ++nao.mi.min.ku + | ++verb + | ++to dream + | +
+ + | ++u.u + | ++expression + | ++no + | +
+ + | ++mimifuku + | ++??? + | ++??? + | +
+ + | ++gu.ra.ton + | ++modifier + | ++green + | +
+ + | ++i.shi + | ++noun + | ++beauty + | +
+ + | ++arilaen + | ++??? + | ++??? + | +
+ + | ++en + | ++noun + | ++being + | +
+ + | ++fadre + | ++??? + | ++??? + | +
+ + | ++yesh + | ++modifier + | ++adorable + | +
+ + | ++de.da.ku + | ++verb + | ++to hate + | +
+ + | ++imanla + | ++??? + | ++??? + | +
+ + | ++ri.la + | ++noun + | ++horns + | +
+ + | ++shash.ku + | ++verb + | ++to split, to cut, to divide + | +
+ + | ++shoo + | ++noun + | ++essence, core, heart + | +
+ + | ++i.ke + | ++modifier + | ++bad + | +
+ + | ++pi.ke.she + | ++modifier + | ++rotten + | +
+ + | ++arilaenlan + | ++??? + | ++??? + | +
+ + | ++lu.ku + | ++verb + | ++to die + | +
+ + | ++arilaenla + | ++??? + | ++??? + | +
+ + | ++fuku + | ++??? + | ++??? + | +
+ + | ++ga.o + | ++pronoun + | ++that + | +
+ + | ++fayu + | ++??? + | ++??? + | +