From a67ad782a9c16e76219d47c5c80e50ac2f2577dd Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 5 Nov 2024 21:57:26 +0000 Subject: fix minor bugs, add attribution and sourcecode links --- conglossor.cgi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'conglossor.cgi') 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()
+ ]], { options=table.concat(options, "\n"), -- cgit v1.2.3