From 486acaa607c7709e881dd3c2316474196e554ab8 Mon Sep 17 00:00:00 2001 From: hellpanderrr Date: Tue, 2 Jul 2024 00:08:12 +0300 Subject: [PATCH] Fixing French Lua code --- wiktionary_pron/lua_modules/fr-pron_wasm.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wiktionary_pron/lua_modules/fr-pron_wasm.lua b/wiktionary_pron/lua_modules/fr-pron_wasm.lua index a8deaf9..722998b 100644 --- a/wiktionary_pron/lua_modules/fr-pron_wasm.lua +++ b/wiktionary_pron/lua_modules/fr-pron_wasm.lua @@ -308,10 +308,6 @@ function export.show(text, pos, noalternatives, pagename, no_test_new_module) text = export.canonicalize_pron(text, pagename) - -- track quote-separator if different numbers of quote symbols - if ulen(rsub(text, "[^']", "")) ~= ulen(rsub(pagename, "[^']", "")) then - track("quote-separator") - end -- To simplify checking for word boundaries and liaison markers, we -- add ⁀ at the beginning and end of all words, and remove it at the end. @@ -843,8 +839,9 @@ function export.show(text, pos, noalternatives, pagename, no_test_new_module) end end end - return result end +print(export.show("c'était,")[0]) + return export \ No newline at end of file