summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-11-05 21:57:26 +0000
committerubq323 <ubq323@ubq323.website>2024-11-05 21:57:26 +0000
commita67ad782a9c16e76219d47c5c80e50ac2f2577dd (patch)
tree458d3465b7c2213a2b01521ae4442a200753fe57
parentea9c0f681c6ec55894b1854b54af8a7569ecbab9 (diff)
fix minor bugs, add attribution and sourcecode links
-rwxr-xr-xconglossor.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/conglossor.cgi b/conglossor.cgi
index bf3ff8c..7983c53 100755
--- a/conglossor.cgi
+++ b/conglossor.cgi
@@ -71,7 +71,7 @@ function glossors.sanila(text)
local items = {}
-- sanila morphology is easy enough
for word in text:gmatch("%S+") do
- local stripped = word:match("^(.-)[.,]*$")
+ local stripped = word:match("^(.-)[.,]*$"):lower()
local entry = words[stripped]
table.insert(items, format_def(word, entry))
end
@@ -92,7 +92,7 @@ glossors["vötgil"] = function(text)
local i = 1
local out = ""
- while i < #text do
+ while i <= #text do
local item, ni = lpeg.match(word, text, i)
if item then
out = out .. item
@@ -131,6 +131,12 @@ local function enform()
<br><button>perform <i>conglossatio</i></button>
</form>
</section>
+<footer>
+<a href=//g.gh0.pw/conglossor/>source code</a>
+<p>langues incorporated:<ul>
+<li><a href=//viba.neocities.org/sanila/>sanila</a> (by <a href=//viba.neocities.org>viba</a>)</li>
+<li><a href=//www.ostracodfiles.com/votgil/main.html>vötgil</a> (by <a href=//ostracodfiles.com>jack eisenmann</a>)</li>
+</ul></p></footer>
]], {
options=table.concat(options, "\n"),