Module:IPAc-en and Module:IPAc-en/sandbox: Difference between pages
(Difference between pages)
imported>Nardog rv per talk |
imported>Nardog double slashes |
||
Line 1: | Line 1: | ||
-- This module implements [[Template:IPAc-en]]. | -- This module implements [[Template:IPAc-en]]. | ||
local data = mw.loadData('Module:IPAc-en/data') | local data = mw.loadData('Module:IPAc-en/data/sandbox') | ||
local p = {} | local p = {} | ||
Line 101: | Line 101: | ||
-- underline the phoneme groups, not the separators. | -- underline the phoneme groups, not the separators. | ||
local words = {} | local words = {} | ||
words[#words + 1] = ' | words[#words + 1] = '⫽' -- Opening slash | ||
i = i - 1 -- Set up i again as it was changed in the pronunciation loop | i = i - 1 -- Set up i again as it was changed in the pronunciation loop | ||
local id | local id | ||
Line 149: | Line 149: | ||
end | end | ||
until not id | until not id | ||
words[#words + 1] = ' | words[#words + 1] = '⫽' -- Closing slash | ||
-- Wrap the words in a link to IPA help. | -- Wrap the words in a link to IPA help. |