Modifica di Modulo:Fan-pronunciation
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
Attenzione: non hai effettuato l'accesso. Se effettuerai delle modifiche il tuo indirizzo IP sarà visibile pubblicamente. Se accedi o crei un'utenza, le tue modifiche saranno attribuite al tuo nome utente, insieme ad altri benefici.
Questa modifica può essere annullata.
Controlla le differenze mostrate sotto fra le due versioni per essere certo che il contenuto corrisponda a quanto desiderato, e quindi salvare le modifiche per completare la procedura di annullamento.
Versione attuale | Il tuo testo | ||
Riga 54: | Riga 54: | ||
-- Default to penultimate stress rather than throw error? | -- Default to penultimate stress rather than throw error? | ||
− | if not mw.ustring.find(decomposed, acute_or_grave) then | + | --if not mw.ustring.find(decomposed, acute_or_grave) then |
-- Allow monosyllabic unstressed words. | -- Allow monosyllabic unstressed words. | ||
--local vowel_count = select(2, decomposed:gsub("[æaeiou]", "%1")) | --local vowel_count = select(2, decomposed:gsub("[æaeiou]", "%1")) | ||
Riga 66: | Riga 66: | ||
elseif transcriptio =='o' then | elseif transcriptio =='o' then | ||
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2") | decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2") | ||
− | elseif transcriptio ==' | + | elseif transcriptio =='æ' then |
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2") | decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2") | ||
else | else | ||
Riga 73: | Riga 73: | ||
end | end | ||
− | + | --end | |
local transcription = decomposed | local transcription = decomposed |