Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions epitran/data/post/pol-Latn.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
::vlesscons:: = t͡ɕ|t͡ʂ|ʂ|ɕ|f|x|k|p|s|t
::vowel:: = a|ɔ̃|ɛ|ɛ̃|i|ɔ|u
::consonant:: = b|t͡s|t͡ɕ|t͡ʂ|d|d͡z|d͡ʑ|d͡ʐ|f|ɡ|h|x|j|k|l|w|m|n|ɲ|p|r|s|ɕ|ʂ|t|w|z|ʑ|ʐ

% Devoicing
b -> p / _ (#|::vlesscons::)
Expand All @@ -12,3 +14,8 @@ d͡ʐ -> t͡ʂ / _ (#|::vlesscons::)
ʐ -> ʂ / _ (#|::vlesscons::)

v -> f / (::vlesscons::) _

% Glide formation
i -> j / _ (::vowel::)
i -> j / (::vowel::) _ (::consonant::)
u -> w / (::vowel::) _
8 changes: 2 additions & 6 deletions epitran/data/pre/pol-Latn.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
::nasal_vowel:: = ą|ę
::vowel:: = a|ą|e|ę|i|o|ó|u|y
::vow_not_i:: = a|ą|e|ę|o|ó|u|y
::consonant:: = b|c|ć|cz|d|dź|dż|f|g|h|ch|j|k|l|ł|m|n|ń|p|r|s|ś|sz|t|w|z|ź|ż|rz
::cons_not_csr:: = b|ć|cz|d|dź|dż|f|g|h|ch|j|k|l|ł|m|n|ń|p|ś|sz|t|w|z|ź|ż|rz
::consonant:: = b|c|ć|cz|d|dz|dź|dż|f|g|h|ch|j|k|l|ł|m|n|ń|p|r|s|ś|sz|t|w|z|ź|ż|rz
::cons_not_csr:: = b|ć|cz|d|dz|dź|dż|f|g|h|ch|j|k|l|ł|m|n|ń|p|ś|sz|t|w|z|ź|ż|rz
::voiceless:: = c|ć|h|ch|k|p|sz|ś|s|t

% After nasalized vowels
Expand Down Expand Up @@ -40,10 +40,6 @@ rz -> ʂ / (::voiceless::) _
% Simplification: sześćset -> szejset (etc.)
ść -> j / sze _ s

% Glide formation
u -> w / (::vowel::) _
i -> j / (::vowel::) _ (::consonant::)
i -> j / _ (::vowel::)
% Mostly surnames
y -> j / (::vowel::) _ #
y -> j / (::vowel::) _ (::consonant::)
Expand Down
4 changes: 4 additions & 0 deletions epitran/test/test_polish.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ def test_jas(self):
def test_gienek(self):
tr = self.epi.transliterate('Gienek')
self.assertEqual(tr, 'ɡʲɛnɛk')

def test_akcjonariusz(self):
tr = self.epi.transliterate('akcjonariusz')
self.assertEqual(tr, 'akt͡sjɔnarjuʂ')
Loading