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 = "'~()!?:> + + \ No newline at end of file diff --git a/html/spacer.html b/html/spacer.html new file mode 100644 index 0000000..09e3694 --- /dev/null +++ b/html/spacer.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/html/words/definition/cell_end.html b/html/words/definition/cell_end.html new file mode 100644 index 0000000..80cc0c0 --- /dev/null +++ b/html/words/definition/cell_end.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/words/definition/cell_start.html b/html/words/definition/cell_start.html new file mode 100644 index 0000000..fec1599 --- /dev/null +++ b/html/words/definition/cell_start.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/words/definition/end.html b/html/words/definition/end.html new file mode 100644 index 0000000..c80e105 --- /dev/null +++ b/html/words/definition/end.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/words/definition/start.html b/html/words/definition/start.html new file mode 100644 index 0000000..83596eb --- /dev/null +++ b/html/words/definition/start.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/words/end.html b/html/words/end.html new file mode 100644 index 0000000..95aa386 --- /dev/null +++ b/html/words/end.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/html/words/start.html b/html/words/start.html new file mode 100644 index 0000000..495ff6a --- /dev/null +++ b/html/words/start.html @@ -0,0 +1,7 @@ +
+

words used:

+ + + \ No newline at end of file diff --git a/test.html b/test.html index b6cbc66..8bcb985 100644 --- a/test.html +++ b/test.html @@ -554,6 +554,953 @@ relfur chu arilaen dedaka'nya.

   

+ + +
+
+
+

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 + +??? + +??? +
+
+