Skip to content

Commit

Permalink
Fixing French Lua code
Browse files Browse the repository at this point in the history
  • Loading branch information
hellpanderrr committed Jul 1, 2024
1 parent 6318e90 commit 486acaa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wiktionary_pron/lua_modules/fr-pron_wasm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 486acaa

Please sign in to comment.