Content deleted Content added
Uncaching the library functions, per User:Erutuon's performance analysis. |
Removed certain defunct experimental code. |
||
Line 4:
-- The version of this script on Wikipedia is only a mirror.
local
local MERGED_VOWELS = false
local PARENTHETICAL_EPENTHESIS = true
local PHONETIC_DETAILS = false
local W_OFF_GLIDES = true
local ASYLL = "̯"
Line 32 ⟶ 31:
local EMPTY = {}
-- Adds elements to a sequence as if it's a set (retains unique elements only).
local function addUnique(seq, value)
for _, value2 in pairs(seq) do
Line 41:
end
-- Intended to work the same as JavaScript's Object.assign() function.
local function assign(target, ...)
local args = { ... }
Line 54 ⟶ 55:
local function fastTrim(text)
▲ return string.sub(text, 1, -2)
end
Line 1,277 ⟶ 1,262:
end
end
Line 1,301 ⟶ 1,273:
-- Convert remaining word gaps to liaison.
text =
text = string.gsub(text, " +", false and "_" or "")
|