@@ -127,8 +127,11 @@ local C_NOT_H_OR_GLIDE = "[^h" .. glide .. vowel .. wordsep .. "_]" -- consonant
127127local C_OR_WORD_BOUNDARY = " [^" .. vowel .. charsep .. " _]" -- consonant or word boundary
128128local voiced_cons = " bdglʎmnɲŋrɾʁvzjʒʤ" -- voiced sound
129129
130+
131+ -- local table = loadfile("table.lua")()
132+ local listToSet = m_table .listToSet
130133-- Unstressed words with vowel reduction in Brazil and Portugal.
131- local unstressed_words = require ( " table " ). listToSet ({
134+ local unstressed_words = listToSet ({
132135 " o" , " os" , -- definite articles
133136 " me" , " te" , " se" , " lhe" , " lhes" , " nos" , " vos" , -- unstressed object pronouns
134137 -- See https://en.wikipedia.org/wiki/Personal_pronouns_in_Portuguese#Contractions_between_clitic_pronouns
@@ -146,7 +149,7 @@ local unstressed_words = require("table").listToSet({
146149})
147150
148151-- Unstressed words with vowel reduction in Portugal only.
149- local unstressed_full_vowel_words_brazil = require ( " table " ). listToSet ({
152+ local unstressed_full_vowel_words_brazil = listToSet ({
150153 " a" , " as" , -- definite articles
151154 -- See https://en.wikipedia.org/wiki/Personal_pronouns_in_Portuguese#Contractions_between_clitic_pronouns
152155 " ma" , " mas" , " ta" , " tas" , " lha" , " lhas" , -- object pronouns combined with articles
@@ -157,7 +160,7 @@ local unstressed_full_vowel_words_brazil = require("table").listToSet({
157160})
158161
159162-- Unstressed words without vowel reduction.
160- local unstressed_full_vowel_words = require ( " table " ). listToSet ({
163+ local unstressed_full_vowel_words = listToSet ({
161164 " um" , " uns" , -- single-syllable indefinite articles
162165 " meu" , " teu" , " seu" , " meus" , " teus" , " seus" , -- single-syllable possessives
163166 " ou" , -- coordinating conjunctions
@@ -1840,5 +1843,5 @@ function export.show(frame)
18401843 return table.concat (lines , " \n " ) .. " \n <span></span>"
18411844end
18421845
1843-
1846+ print ( export . IPA ( " pessoas " , " sbr " )[ 1 ]. phonetic )
18441847return export
0 commit comments