48,357
edits
No edit summary |
No edit summary |
||
| Line 125: | Line 125: | ||
local IPAs, categories = export.format_IPA_multiple(lang, items, separator, no_count, "raw") | local IPAs, categories = export.format_IPA_multiple(lang, items, separator, no_count, "raw") | ||
local prontext = prefix .. IPAs | local prontext = prefix .. IPAs | ||
| Line 278: | Line 271: | ||
if namespace == 10 then -- Template | if namespace == 10 then -- Template | ||
insert(items, {pron = "/aɪ piː ˈeɪ/"}) | insert(items, {pron = "/aɪ piː ˈeɪ/"}) | ||
end | end | ||
end | end | ||
| Line 412: | Line 403: | ||
-- Strip any reconstruction asterisk and representation marks. | -- Strip any reconstruction asterisk and representation marks. | ||
pron = sub(pron, #opening + 1 + (reconstructed and 1 or 0), -#closing - 1) | pron = sub(pron, #opening + 1 + (reconstructed and 1 or 0), -#closing - 1) | ||
if repr ~= "orthographic" and lang and lang:getCode() == "en" and hasInvalidSeparators(pron) then | if repr ~= "orthographic" and lang and lang:getCode() == "en" and hasInvalidSeparators(pron) then | ||
insert(categories, "English IPA pronunciations with invalid separators") | insert(categories, "English IPA pronunciations with invalid separators") | ||
end | end | ||
| Line 434: | Line 416: | ||
end | end | ||
insert(result, nonstandard) | insert(result, nonstandard) | ||
end | end | ||
| Line 510: | Line 489: | ||
result = ugsub(result, pattern, " ") | result = ugsub(result, pattern, " ") | ||
end | end | ||
end | end | ||
| Line 553: | Line 520: | ||
insert(phonemes, "<span style=\"color: var(--wikt-palette-red,red)\">" .. phoneme .. "</span>") | insert(phonemes, "<span style=\"color: var(--wikt-palette-red,red)\">" .. phoneme .. "</span>") | ||
rest = usub(rest, 2) | rest = usub(rest, 2) | ||
end | end | ||
end | end | ||