Skip to content

Commit

Permalink
Polish rev. 10. (RHVoice#541)
Browse files Browse the repository at this point in the history
Further pronounciation improvements.

Co-authored-by: Grzegorz Zlotowicz <[email protected]>
  • Loading branch information
grzezlo and Grzegorz Zlotowicz authored Apr 10, 2022
1 parent 67a0dda commit fa0dfbc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion data/languages/Polish
Submodule Polish updated 2 files
+ g2p.fst
+1 −1 language.info
5 changes: 5 additions & 0 deletions src/scripts/Polish/checktrans-cases.ssml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<s>bezika</s>
<s>beziku</s>
<s>bezimienne </s>
<s>białorusinów</s>
<s>bladosinego</s>
<s>boy</s>
<s>boya</s>
Expand Down Expand Up @@ -128,6 +129,7 @@
<s>odżałowanemu</s>
<s>odżużloną</s>
<s>odżywiać</s>
<s>osinówce</s>
<s>ó</s>
<s>pleksiglas</s>
<s>podzelować</s>
Expand Down Expand Up @@ -167,6 +169,9 @@
<s>siglum</s>
<s>sigma</s>
<s>sign</s>
<s>silicon</s>
<s>silikon</s>
<s>silnik</s>
<s>sina</s>
<s>siną</s>
<s>sinego</s>
Expand Down
35 changes: 20 additions & 15 deletions src/scripts/Polish/checktrans-expected-results.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ pau a n t ih s ih s t e m pau
pau a n t ih u s t r o y o v ih pau
pau a e r o p r e s si e pau
pau a r t r o d e zi e pau
pau b a y e r o f s k i pau
pau b a ih e r o f s k i pau
pau b a si i s t a pau
pau b e n t l e y pau
pau b e n t l e y a pau
pau b e n t l e ih pau
pau b e n t l e ih a pau
pau b e zi i k pau
pau b e zi i k a pau
pau b e zi i k u pau
pau b e z i m y e n n e pau
pau b y a w o r u si i n u f pau
pau b l a d o si i n e g o pau
pau b o y pau
pau b o y a pau
pau b o y e pau
pau b o y f r y e n d pau
pau b o y i z m pau
pau b o y s pau
pau b o y s b a n d pau
pau b o ih pau
pau b o ih a pau
pau b o ih e pau
pau b o ih f r y e n d pau
pau b o ih i z m pau
pau b o ih s pau
pau b o ih s b a n d pau
pau b r u k si i z m pau
pau b r u k si i z m o v i pau
pau b u d zh e ci e pau
Expand All @@ -42,8 +43,8 @@ pau c ih b e r z a b a f k i pau
pau c ih b e r z a g r o zh e ni a pau
pau d e z i l u z y a pau
pau d e z i n f o r m o v a w a pau
pau d i s n e y l a n d pau
pau d i s n e y l a n d a h pau
pau d i s n e ih l a n d pau
pau d i s n e ih l a n d a h pau
pau d o m y e zh a ci e pau
pau d r o zh dzh e pau
pau d zh e v o pau
Expand Down Expand Up @@ -127,6 +128,7 @@ pau o d z ih v a ci pau
pau o d zh a w o v a n e m u pau
pau o d zh u zh l o n on pau
pau o d zh ih v y a ci pau
pau o si i n u f c e pau
pau u k r e s k a pau
pau p l e k s i g l a s pau
pau p o d z e l o v a ci pau
Expand Down Expand Up @@ -166,6 +168,9 @@ pau si a r a pau
pau s i g l u m pau
pau s i g m a pau
pau s i g n pau
pau s i l i c o n pau
pau s i l i k o n pau
pau si i l ni i k pau
pau si i n a pau
pau si i n on pau
pau si i n e g o pau
Expand Down Expand Up @@ -196,10 +201,10 @@ pau f s p u w o d zh ih v y a ci pau
pau f sh a k zh e pau
pau k s y a o m i pau
pau i g r e k pau
pau y a h t pau
pau y e t i pau
pau ih a h t pau
pau ih e t i pau
pau ih l a n g o v a pau
pau y o r k pau
pau ih o r k pau
pau ih p s i l o n pau
pau ih ih ih pau
pau z pau
Expand Down
14 changes: 4 additions & 10 deletions src/scripts/Polish/g2p.foma
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ p o _ e ,,
{si} @-> si2 ||
#sigm, sign, siglum, pleksiglas:
_ g [l|m|n],
#sinus, singiel, single, sinolog, not sina, sinego...:
_ n [ g |{olo} | u ],
#silikon, silicon, not silnik:
_ l i,
#sinus, singiel, single, sinolog, not sina, sinego, sinów...:
_ n [ g |{olo} | [ u s ]],
#aksis aksisie not basista
_ s [.#.|\t],
#eliksir
Expand Down Expand Up @@ -220,14 +222,6 @@ Softening @-> || SofteningConsonantPhonem _ ,
.#. _ p,,
#e.g. historia to historja:
i @-> y || _ VowelPhonem ,,
#y jak j:
ih @-> y ||
#y vowel yaht, yeti,
.#. _ VowelPhonem&\ih,
#boy, boya, boye, bayerowski, boyizm
VowelPhonem&\ih&\u _ [VowelPhonem&\ih]|.#.,
#boys, boysband, disneyland,
VowelPhonem _ \VowelPhonem ,,
#e.g.: zaczął=zaczoł, zaczęła=zaczeła:
[on : o |
en: e] @-> || _ w ,,
Expand Down

0 comments on commit fa0dfbc

Please sign in to comment.