From c259dfc6508ed0fc10aff7893a01678d97b4cd39 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Tue, 10 Nov 2015 10:12:12 -0500 Subject: [PATCH 01/17] Added Burmese (work in progress). --- Makefile.am | 8 ++ dictsource/my_list | 4 + dictsource/my_rules | 23 +++++ espeak-data/voices/my | 2 + phsource/ph_burmese | 224 ++++++++++++++++++++++++++++++++++++++++++ phsource/phonemes | 100 ++----------------- 6 files changed, 269 insertions(+), 92 deletions(-) create mode 100644 dictsource/my_list create mode 100644 dictsource/my_rules create mode 100644 espeak-data/voices/my create mode 100644 phsource/ph_burmese diff --git a/Makefile.am b/Makefile.am index 9d36c575..36cc8d2b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -192,6 +192,7 @@ phsource/phonemes.stamp: \ phsource/ph_basque \ phsource/ph_bengali \ phsource/ph_bulgarian \ + phsource/ph_burmese \ phsource/ph_catalan \ phsource/ph_consonants \ phsource/ph_croatian \ @@ -332,6 +333,7 @@ dictionaries: \ espeak-data/ml_dict \ espeak-data/mr_dict \ espeak-data/ms_dict \ + espeak-data/my_dict \ espeak-data/nci_dict \ espeak-data/ne_dict \ espeak-data/nl_dict \ @@ -640,6 +642,12 @@ dictsource/ms_extra: espeak-data/ms_dict: src/espeak phsource/phonemes.stamp dictsource/ms_list dictsource/ms_rules dictsource/ms_extra cd dictsource && ESPEAK_DATA_PATH=$(PWD) LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ../src/espeak --compile=ms && cd .. +my: espeak-data/my_dict +dictsource/my_extra: + touch dictsource/my_extra +espeak-data/my_dict: src/espeak phsource/phonemes.stamp dictsource/my_list dictsource/my_rules dictsource/my_extra + cd dictsource && ESPEAK_DATA_PATH=$(PWD) LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ../src/espeak --compile=my && cd .. + nci: espeak-data/nci_dict dictsource/nci_extra: touch dictsource/nci_extra diff --git a/dictsource/my_list b/dictsource/my_list new file mode 100644 index 00000000..5e3686e7 --- /dev/null +++ b/dictsource/my_list @@ -0,0 +1,4 @@ +//စပေါ် zəbɔ +//soldier sold +//How zəbɔ +//က kə diff --git a/dictsource/my_rules b/dictsource/my_rules new file mode 100644 index 00000000..e639088c --- /dev/null +++ b/dictsource/my_rules @@ -0,0 +1,23 @@ +// This file is UTF8 encoded +// Spelling to phoneme rules for Burmese + +//.replace +//၀ 0 // Convert numbers +//၁ 1 +//၂ 2 +//၃ 3 +//၄ 4 +//၅ 5 +//၆ 6 +//၇ 7 +//၈ 8 +//၉ 9 + +.group စ + စ zə + +.group ပ + ပ bə + +.group က + က kə diff --git a/espeak-data/voices/my b/espeak-data/voices/my new file mode 100644 index 00000000..a7a37bab --- /dev/null +++ b/espeak-data/voices/my @@ -0,0 +1,2 @@ +name burmese +language my diff --git a/phsource/ph_burmese b/phsource/ph_burmese new file mode 100644 index 00000000..7d6a15a2 --- /dev/null +++ b/phsource/ph_burmese @@ -0,0 +1,224 @@ +// http://espeak.sourceforge.net/phontab.html +//========================================================= +// Burmese +//========================================================= + +//=========== +// TONES +//=========== + +//phoneme 1 //see vietnamese; tones taken from there +// stress +// Tone(X,Y,...) +//endphoneme + +phoneme 1 //low tone + stress + Tone(20,35, envelope/i_risefall,NULL) +endphoneme + +phoneme 2 //high tone + stress + Tone(45,80, envelope/p_rise,NULL) +endphoneme + +phoneme 3 //creaky tone + stress + Tone(30,75, envelope/p_214, NULL) +endphoneme + +phoneme 4 //checked tone + stress + Tone(20,35, envelope/i_risefall,NULL) +endphoneme + + +//=========== +// VOWELS +//=========== + +//phoneme X +// vowel starttype #X endtype #X +// length XXX +// FMT(vowel/X_X) +//endphoneme + +phoneme ə // Schwa + vowel starttype #@ endtype #@ + unstressed + length 140 + IfNextVowelAppend(r-) + IF thisPh(isWordEnd) THEN + FMT(vowel/@_6, 90) + ENDIF + FMT(vowel/@) +endphoneme + +phoneme ɔ + vowel starttype #@ endtype #@ + unstressed + length 140 + IfNextVowelAppend(r-) + IF thisPh(isWordEnd) THEN + FMT(vowel/@_6, 90) + ENDIF + FMT(vowel/@) +endphoneme + +phoneme o + vowel starttype #@ endtype #@ + unstressed + length 140 + IfNextVowelAppend(r-) + IF thisPh(isWordEnd) THEN + FMT(vowel/@_6, 90) + ENDIF + FMT(vowel/@) +endphoneme + +//=========== +// CONSONANTS +//=========== + +phoneme mh //voiceless + vls blb nasal +endphoneme + +phoneme m + vcd blb nasal +endphoneme + +phoneme nh + vls alv nasal +endphoneme + +phoneme n + vcd alv nasal +endphoneme + +phoneme ɲh + vls pal nasal +endphoneme + +phoneme ɲ + vcd pal nasal +endphoneme + +phoneme ŋh + vls vel nasal +endphoneme + +phoneme ŋ + vcd vel nasal +endphoneme + +phoneme ɴ + vcd glt nasal +endphoneme + +phoneme p + vls blb stop +endphoneme + +phoneme b + vcd blb stop +endphoneme + +phoneme ph //aspirated + vls blb stop +endphoneme + +phoneme t + vls alv stop +endphoneme + +phoneme d + vcd alv stop +endphoneme + +phoneme th + vls alv stop +endphoneme + +phoneme tɕ + vls pla afr sibilant +endphoneme + +phoneme dʑ + vcd pla afr sibilant +endphoneme + +phoneme tɕh + vls pla afr sibilant +endphoneme + +phoneme k + import_phoneme base/k +// vls vel stop +endphoneme + +phoneme g + vcd vel stop +endphoneme + +phoneme kh + vls vel stop +endphoneme + +phoneme ʔ + vls glt stop +endphoneme + +phoneme θ + vls dnt frc +endphoneme + +phoneme ð + vcd dnt frc +endphoneme + +phoneme s + vls alv frc sibilant +endphoneme + +phoneme z + import_phoneme base/z +// vcd alv frc sibilant +endphoneme + +phoneme sh //aspirated not palatal + vls alv frc sibilant +endphoneme + +phoneme ʃ + vls pla frc sibilant +endphoneme + +phoneme h + vls glt frc +endphoneme + +phoneme j + vcd pal liquid +endphoneme + +phoneme ɹ + vcd alv liquid +endphoneme + +phoneme wh //voiceless + vls blb liquid +endphoneme + +phoneme w + vcd blb liquid +endphoneme + +phoneme lh //voiceless + vls alv liquid +endphoneme + +phoneme l + vcd alv liquid +endphoneme + diff --git a/phsource/phonemes b/phsource/phonemes index b891486b..c1e91622 100644 --- a/phsource/phonemes +++ b/phsource/phonemes @@ -1728,14 +1728,14 @@ include ph_finnish phonemetable et base include ph_estonian -phonemetable fr base -include ph_french +//phonemetable fr base +//include ph_french -phonemetable fr-ca fr -include ph_french_ca +//phonemetable fr-ca fr +//include ph_french_ca -phonemetable nl base -include ph_dutch +//phonemetable nl base +//include ph_dutch phonemetable hi_base base @@ -1899,90 +1899,6 @@ include ph_farsi phonemetable ar base include ph_arabic - -//************************************************************************************** -// The following lines are experimental, for future additions. -// These langauges are not in a usable state. -// These lines can be deleted. - -phonemetable rw base2 -include ph_kinyarwanda - -//phonemetable mn base -//include ph_mongolian - -phonemetable prs base -include ph_dari - -phonemetable sl pl -include ph_slovenian - -phonemetable gd base -include ph_s_gaelic - -phonemetable nso base -include ph_northern-sotho - -phonemetable ht fr -include ph_haitian - -phonemetable az tr -include ph_azerbaijani - -phonemetable ak base -include ph_akan - -phonemetable am base -include ph_amhari - -phonemetable wo base -include ph_wolof - -phonemetable dv hi_base -include ph_divehi - -phonemetable te hi_base -include ph_telugu - -phonemetable si hi_base -include ph_sinhala - -phonemetable as bn -include ph_assamese - -phonemetable or bn -include ph_oriya - -phonemetable mni bn -include ph_manipuri - - - -phonemetable tn base -include ph_setswana - - -phonemetable mt base -include ph_maltese - -phonemetable bo hi -include ph_tibetan - -phonemetable kk base -include ph_kazakh - -phonemetable tt base -include ph_tatar - -phonemetable ko base -include ph_korean - -phonemetable kl base -include ph_greenlandic - -phonemetable om base -include ph_oromo - -//phonemetable en-test base -//include ph_english_test +phonemetable my base +include ph_burmese From 9a1d5c9d2c1fe5cb0b16ebfa169e9c61c4f1dcc8 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Tue, 10 Nov 2015 10:41:14 -0500 Subject: [PATCH 02/17] phoneme definitions updated. --- dictsource/my_rules | 2 +- phsource/ph_burmese | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dictsource/my_rules b/dictsource/my_rules index e639088c..fe9d23ea 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -14,7 +14,7 @@ //၉ 9 .group စ - စ zə + စ sə .group ပ ပ bə diff --git a/phsource/ph_burmese b/phsource/ph_burmese index 7d6a15a2..e4950c18 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -178,7 +178,8 @@ phoneme ð endphoneme phoneme s - vls alv frc sibilant + import_phoneme base/s +// vls alv frc sibilant endphoneme phoneme z From 3a3c59fd06d84a82151bb30dff722c447544a56c Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Mon, 30 Nov 2015 11:32:05 -0500 Subject: [PATCH 03/17] Burmese rules and phonemes. --- dictsource/my_list | 9 ++++- dictsource/my_rules | 47 +++++++++++++++++++++++--- phsource/ph_burmese | 81 ++++++++++++++++++++++++--------------------- 3 files changed, 94 insertions(+), 43 deletions(-) diff --git a/dictsource/my_list b/dictsource/my_list index 5e3686e7..4689e786 100644 --- a/dictsource/my_list +++ b/dictsource/my_list @@ -1,4 +1,11 @@ //စပေါ် zəbɔ //soldier sold //How zəbɔ -//က kə + +// singe letter words +က $nounf +က kə3 $atend + +စ $nounf +စ sə3 $atend + diff --git a/dictsource/my_rules b/dictsource/my_rules index fe9d23ea..f9128c4a 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -14,10 +14,49 @@ //၉ 9 .group စ - စ sə +// စ sə3 + စ s + +.group က +// _) က (_ kə3 +// ေ e + က k +// ကေ ke3 + +.group ေ + ေ e3 +// က) ေ e3 +// @) ေ ke3 + +.group ို + ို o .group ပ - ပ bə + ပ bə3 + +.group န + န n + +.group လ + လ l + +.group ာ + ာ ə + +.group း + း 2 + +.group ော + ော au2 + ော (် au1 + ော (့ au3 +// ောင် aun4 + +.group ် + ် n + +.group င + င ŋ + င် n + -.group က - က kə diff --git a/phsource/ph_burmese b/phsource/ph_burmese index e4950c18..affe9b7e 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -55,26 +55,15 @@ phoneme ə // Schwa endphoneme phoneme ɔ - vowel starttype #@ endtype #@ - unstressed - length 140 + vowel starttype #o endtype #o + //ipa ɔː + length 240 IfNextVowelAppend(r-) - IF thisPh(isWordEnd) THEN - FMT(vowel/@_6, 90) - ENDIF - FMT(vowel/@) + FMT(vowel/oo_en) endphoneme -phoneme o - vowel starttype #@ endtype #@ - unstressed - length 140 - IfNextVowelAppend(r-) - IF thisPh(isWordEnd) THEN - FMT(vowel/@_6, 90) - ENDIF - FMT(vowel/@) -endphoneme +//phoneme o +//endphoneme //=========== // CONSONANTS @@ -85,7 +74,8 @@ phoneme mh //voiceless endphoneme phoneme m - vcd blb nasal + //vcd blb nasal + import_phoneme base/m endphoneme phoneme nh @@ -93,7 +83,8 @@ phoneme nh endphoneme phoneme n - vcd alv nasal + //vcd alv nasal + import_phoneme base/n endphoneme phoneme ɲh @@ -101,7 +92,8 @@ phoneme ɲh endphoneme phoneme ɲ - vcd pal nasal + //vcd pal nasal palatal + import_phoneme base/n^ endphoneme phoneme ŋh @@ -109,19 +101,22 @@ phoneme ŋh endphoneme phoneme ŋ - vcd vel nasal + //vcd vel nasal + import_phoneme base/N endphoneme -phoneme ɴ - vcd glt nasal -endphoneme +//phoneme ɴ +// vcd glt nasal +//endphoneme phoneme p - vls blb stop + //vls blb stop + import_phoneme base/p endphoneme phoneme b - vcd blb stop + //vcd blb stop + import_phoneme base/b endphoneme phoneme ph //aspirated @@ -129,11 +124,13 @@ phoneme ph //aspirated endphoneme phoneme t - vls alv stop + //vls alv stop + import_phoneme base/t endphoneme phoneme d - vcd alv stop + //vcd alv stop + import_phoneme base/d endphoneme phoneme th @@ -141,24 +138,28 @@ phoneme th endphoneme phoneme tɕ - vls pla afr sibilant + //vls pla afr sibilant + import_phoneme base/tS endphoneme phoneme dʑ - vcd pla afr sibilant + //vcd pla afr sibilant + import_phoneme base/dZ endphoneme phoneme tɕh vls pla afr sibilant + // aspirated endphoneme phoneme k + //vls vel stop import_phoneme base/k -// vls vel stop endphoneme phoneme g - vcd vel stop + //vcd vel stop + import_phoneme base/g endphoneme phoneme kh @@ -170,21 +171,23 @@ phoneme ʔ endphoneme phoneme θ - vls dnt frc + //vls dnt frc + import_phoneme base/T endphoneme phoneme ð - vcd dnt frc + //vcd dnt frc + import_phoneme base/D endphoneme phoneme s + //vls alv frc sibilant import_phoneme base/s -// vls alv frc sibilant endphoneme phoneme z + //vcd alv frc sibilant import_phoneme base/z -// vcd alv frc sibilant endphoneme phoneme sh //aspirated not palatal @@ -192,7 +195,8 @@ phoneme sh //aspirated not palatal endphoneme phoneme ʃ - vls pla frc sibilant + //vls pla frc sibilant + import_phoneme base/S endphoneme phoneme h @@ -220,6 +224,7 @@ phoneme lh //voiceless endphoneme phoneme l - vcd alv liquid + //vcd alv liquid + import_phoneme base/l endphoneme From 4383f92bde05ad46aa8eb45769674307c3b5d21c Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Sat, 5 Dec 2015 12:53:14 -0500 Subject: [PATCH 04/17] Burmese consonant rules. --- dictsource/my_rules | 105 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 101 insertions(+), 4 deletions(-) diff --git a/dictsource/my_rules b/dictsource/my_rules index f9128c4a..133ec7b8 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -13,16 +13,113 @@ //၈ 8 //၉ 9 -.group စ -// စ sə3 - စ s - .group က // _) က (_ kə3 // ေ e က k // ကေ ke3 +.group ခ + ခ kh + +.group ဂ + ဂ g + +.group ဃ + ဃ g + +.group င + င ŋ + +.group စ + စ s + +.group ဆ + ဆ sh + +.group ဇ + ဇ z + +.group ဈ + ဈ z + +.group ည + ည ɲ + +.group ဉ + ဉ ɲ + +.group ဋ + ဋ t + +.group ဌ + ဌ th + +.group ဍ + ဍ t + +.group ဎ + ဎ d + +.group ဏ + ဏ n + +.group တ + တ t + +.group ထ + ထ th + +.group ဒ + ဒ d + +.group ဓ + ဓ d + +.group န + န n + +.group ပ + ပ p + +.group ဖ + ဖ ph + +.group ဗ + ဗ b + +.group ဘ + ဘ b + +.group မ + မ m + +.group ယ + ယ j + +.group ရ + ရ j + +.group လ + လ l + +.group ဝ + ဝ w + +.group သ + သ θ + +.group ဟ + ဟ h + +.group ဠ + ဠ l + +.group အ + အ ə3 + +//// + .group ေ ေ e3 // က) ေ e3 From 5c87ac41a77362ab35f04323dba2a0d8558cffb9 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Sat, 5 Dec 2015 12:58:30 -0500 Subject: [PATCH 05/17] Burmese consonants. --- dictsource/my_rules | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/dictsource/my_rules b/dictsource/my_rules index 133ec7b8..a6bfae11 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -28,8 +28,9 @@ .group ဃ ဃ g -.group င - င ŋ +.group င + င ŋ + င် n .group စ စ s @@ -128,17 +129,9 @@ .group ို ို o -.group ပ - ပ bə3 - -.group န - န n - -.group လ - လ l - .group ာ ာ ə + ါ ə .group း း 2 @@ -152,8 +145,5 @@ .group ် ် n -.group င - င ŋ - င် n From 6ec224b3c0e11858c7a463eb6681c011284d02b0 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Sat, 5 Dec 2015 13:06:51 -0500 Subject: [PATCH 06/17] Burmese consonants. --- dictsource/my_rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dictsource/my_rules b/dictsource/my_rules index a6bfae11..7c1d7040 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -126,6 +126,9 @@ // က) ေ e3 // @) ေ ke3 +.group ိ + ိ i + .group ို ို o From 53babb89718918bcdb5133a884c5946fc814de75 Mon Sep 17 00:00:00 2001 From: Andrew Lamont Date: Sat, 5 Dec 2015 13:08:41 -0500 Subject: [PATCH 07/17] average length, f1, f2 values --- phsource/ph_burmese | 169 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 160 insertions(+), 9 deletions(-) diff --git a/phsource/ph_burmese b/phsource/ph_burmese index affe9b7e..3fca3707 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -40,9 +40,13 @@ endphoneme //phoneme X // vowel starttype #X endtype #X // length XXX -// FMT(vowel/X_X) +// FMT(vowel/X_X) //refers to binary file in vowel/ directory //endphoneme + + + + phoneme ə // Schwa vowel starttype #@ endtype #@ unstressed @@ -54,16 +58,163 @@ phoneme ə // Schwa FMT(vowel/@) endphoneme -phoneme ɔ - vowel starttype #o endtype #o - //ipa ɔː - length 240 - IfNextVowelAppend(r-) - FMT(vowel/oo_en) + + + +phoneme i + vowel starttype #i endtype #i + IF nextPh(3) THEN //creaky tone + //length 159 187 158 + length 168 + //f1 418 356 398: 391 + //f2 2323 2169 2274: 2255 + ELIF nextPh(1) THEN //low tone + //length 425 413 385 + length 408 + //formant 458,2213 487,2139 412,2215 + //f1 458 487 412: 452 + //f2 2213 2139 2215: 2189 + ELIF nextPh(2) THEN //high tone + //length 317 338 280 + length 312 + //formant 351,2043 350,2287 365,2307 + //f1 351 350 365: 355 + //f2 2043 2287 2307: 2212 + ENDIF + FMT(vowel/i) endphoneme -//phoneme o -//endphoneme +phoneme e + vowel starttype #e endtype #e + IF nextPh(3) THEN //creaky tone + //length 191 209 191 + length 197 + //formant 431,2279 449,2343 457,2230 + //f1 431 449 457: 446 + //f2 2279 2343 2230: 2284 + ELIF nextPh(1) THEN //low tone + //length 457 467 385 + length 436 + //formant 462,2194 453,2152 453,2149 + //f1 462 453 453: 456 + //f2 2194 2152 2149: 2165 + ELIF nextPh(2) THEN //high tone + //length 328 352 328 + length 336 + //formant 451,2313 447,2288 487,2314 + //f1 451 447 487: 462 + //f2 2313 2288 2314: 2305 + ENDIF + FMT(vowel/e) +endphoneme + +phoneme ɛ + vowel starttype #e endtype #e + IF nextPh(3) THEN //creaky tone + //length 184 223 202 + length 203 + //formant 561,2055 566,2050 596,1978 + //f1 561 566 596: 574 + //f2 2055 2050 1978: 2028 + ELIF nextPh(1) THEN //low tone + //length 446 431 360 + length 412 + //formant 547,2002 552,1977 558,1976 + //f1 547 552 558: 552 + //f2 2002 1977 1976: 1985 + ELIF nextPh(2) THEN //high tone + //length 364 306 281 + length 317 + //formant 577,2111 545,2063 542,2036 + //f1 577 545 542: 555 + //f2 2111 2063 2036: 2070 + ENDIF + FMT(vowel/e_mid) //chosen at random +endphoneme + +phoneme u + vowel starttype #u endtype #u + IF nextPh(3) THEN //creaky tone + //length 198 216 187 + length 200 + //formant 376,1082 363,1072 348,1110 + //f1 376 363 348: 362 + //f2 1082 1072 1110: 1088 + ELIF nextPh(1) THEN //low tone + //length 508 479 396 + length 461 + //formant 377,1254 386,1223 340,1246 + //f1 377 386 340: 368 + //f2 1254 1223 1246: 1241 + ELIF nextPh(2) THEN //high tone + //length 295 335 277 + length 302 + //formant 350,1125 325,1104 326,1183 + //f1 350 325 326: 3334 + //f2 1125 1104 1183: 1137 + ENDIF + FMT(vowel/u) +endphoneme + +phoneme o + vowel starttype #o endtype #o + IF nextPh(3) THEN //creaky tone + //length 216 277 216 + length 236 + //formant 461,1073 496,1121 505,1047 + //f1 461 496 505: 487 + //f2 1073 1121 1047: 1080 + ELIF nextPh(1) THEN //low tone + //length 545 471 396 + length 471 + //formant 479,1285 477,1167 477,1241 + //f1 479 477 477: 478 + //f2 1285 1167 1241: 1231 + ELIF nextPh(2) THEN //high tone + //length 360 382 292 + length 345 + //formant 449,1038 462,1036 507,1030 + //f1 449 462 507: 473 + //f2 1038 1036 1030: 1035 + ENDIF + FMT(vowel/oo) +endphoneme + +phoneme ɔ + vowel starttype #o endtype #o + IF nextPh(3) THEN //creaky tone + //length 252 270 277 + length 266 + //formant 601,1073 583,1105 604,1091 + //f1 601 583 604: 596 + //f2 1073 1105 1091: 1090 + ELIF nextPh(1) THEN //low tone + //length 453 511 410 + length 458 + //formant 549,1028 587,1068 582,1027 + //f1 549 587 582: 573 + //f2 1028 1068 1027: 1041 + ELIF nextPh(2) THEN //high tone + //length 334 338 302 + length 325 + //formant 580,1075 560,1048 578,1097 + //f1 580 560 578: 573 + //f2 1075 1049 1097: 1074 + ENDIF + FMT(vowel/oo_en) //formant +endphoneme + + + + + + + + + + + +//a, ai //=========== // CONSONANTS From 1f3149b5287110211fe5d6c60d2b70240c70eb56 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Sat, 5 Dec 2015 14:59:26 -0500 Subject: [PATCH 08/17] Burmese rules. --- dictsource/my_rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dictsource/my_rules b/dictsource/my_rules index 7c1d7040..f3c499ec 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -128,6 +128,11 @@ .group ိ ိ i +.group ု + ု u + +.group ူ + ူ u1 .group ို ို o From 115ff4cad7ee617b1382806f91d2027ace93d282 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Sat, 5 Dec 2015 15:11:22 -0500 Subject: [PATCH 09/17] Creaky town for Burmese. --- dictsource/my_rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictsource/my_rules b/dictsource/my_rules index f3c499ec..9b3f14d9 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -129,7 +129,7 @@ .group ိ ိ i .group ု - ု u + ု u3 .group ူ ူ u1 From c6a35f9cbf51dd48c915d67ea76887b06b2117fc Mon Sep 17 00:00:00 2001 From: Andrew Lamont Date: Sat, 5 Dec 2015 16:11:21 -0500 Subject: [PATCH 10/17] ph_source --- phsource/ph_burmese | 272 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 234 insertions(+), 38 deletions(-) diff --git a/phsource/ph_burmese b/phsource/ph_burmese index 3fca3707..4b660847 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -1,4 +1,4 @@ -// http://espeak.sourceforge.net/phontab.html +// http://espeak.sourceforge.net/phontab.html //========================================================= // Burmese //========================================================= @@ -45,21 +45,64 @@ endphoneme +//Oral Vowels - -phoneme ə // Schwa +phoneme ə // Schwa +//cannot be followed by ɴ vowel starttype #@ endtype #@ unstressed - length 140 - IfNextVowelAppend(r-) - IF thisPh(isWordEnd) THEN - FMT(vowel/@_6, 90) - ENDIF + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length + length + //f1 + //f2 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ELIF nextPh(4) THEN //checked tone + //length 213 195 173 + length 194 + //f1 785 777 799 + //f2 1644 1613 1629 FMT(vowel/@) endphoneme - - +phoneme ɛ +//cannot be followed by ɴ + vowel starttype #e endtype #e + IF nextPh(3) THEN //creaky tone + //length 184 223 202 + length 203 + //formant 561,2055 566,2050 596,1978 + //f1 561 566 596: 574 + //f2 2055 2050 1978: 2028 + ELIF nextPh(1) THEN //low tone + //length 446 431 360 + length 412 + //formant 547,2002 552,1977 558,1976 + //f1 547 552 558: 552 + //f2 2002 1977 1976: 1985 + ELIF nextPh(2) THEN //high tone + //length 364 306 281 + length 317 + //formant 577,2111 545,2063 542,2036 + //f1 577 545 542: 555 + //f2 2111 2063 2036: 2070 + ELIF nextPh(4) THEN //checked tone + //length 207 215 204 + length 209 + //f1 705 722 715 + //f2 1975 1866 1871 + ENDIF + FMT(vowel/e_mid) //chosen at random +endphoneme phoneme i vowel starttype #i endtype #i @@ -80,6 +123,11 @@ phoneme i //formant 351,2043 350,2287 365,2307 //f1 351 350 365: 355 //f2 2043 2287 2307: 2212 + ELIF nextPh(4) THEN //checked tone + //length 226 217 211 + length 218 + //f1 517 536 542 + //f2 2209 2185 2191 ENDIF FMT(vowel/i) endphoneme @@ -104,34 +152,15 @@ phoneme e //formant 451,2313 447,2288 487,2314 //f1 451 447 487: 462 //f2 2313 2288 2314: 2305 + ELIF nextPh(4) THEN //checked tone + //length 207 225 225 + length 219 + //f1 495 502 506 + //f2 2273 2319 2280 ENDIF FMT(vowel/e) endphoneme -phoneme ɛ - vowel starttype #e endtype #e - IF nextPh(3) THEN //creaky tone - //length 184 223 202 - length 203 - //formant 561,2055 566,2050 596,1978 - //f1 561 566 596: 574 - //f2 2055 2050 1978: 2028 - ELIF nextPh(1) THEN //low tone - //length 446 431 360 - length 412 - //formant 547,2002 552,1977 558,1976 - //f1 547 552 558: 552 - //f2 2002 1977 1976: 1985 - ELIF nextPh(2) THEN //high tone - //length 364 306 281 - length 317 - //formant 577,2111 545,2063 542,2036 - //f1 577 545 542: 555 - //f2 2111 2063 2036: 2070 - ENDIF - FMT(vowel/e_mid) //chosen at random -endphoneme - phoneme u vowel starttype #u endtype #u IF nextPh(3) THEN //creaky tone @@ -152,6 +181,11 @@ phoneme u //formant 350,1125 325,1104 326,1183 //f1 350 325 326: 3334 //f2 1125 1104 1183: 1137 + ELIF nextPh(4) THEN //checked tone + //length + length + //f1 + //f2 ENDIF FMT(vowel/u) endphoneme @@ -176,12 +210,21 @@ phoneme o //formant 449,1038 462,1036 507,1030 //f1 449 462 507: 473 //f2 1038 1036 1030: 1035 + ELIF nextPh(4) THEN //checked tone + //length 202 211 193 + length 202 + //f1 547 542 541 + //f2 1095 1110 1146 ENDIF FMT(vowel/oo) endphoneme phoneme ɔ - vowel starttype #o endtype #o + IF nextPh(4) THEN //diphthong with checked tone + vowel starttype #u endtype #u + ELSE + vowel starttype #o endtype #o + ENDIF IF nextPh(3) THEN //creaky tone //length 252 270 277 length 266 @@ -200,22 +243,175 @@ phoneme ɔ //formant 580,1075 560,1048 578,1097 //f1 580 560 578: 573 //f2 1075 1049 1097: 1074 + ELIF nextPh(4) THEN //checked tone + //length 202 224 180 + length 202 + //f1 888 851 840 + //f2 1290 1317 1321 ENDIF FMT(vowel/oo_en) //formant endphoneme +phoneme a + IF nextPh(4) THEN //diphthong with checked tone + vowel starttype #a endtype #i + ELSE + vowel starttype #a endtype #a + ENDIF + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length + length + //f1 + //f2 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ELIF nextPh(4) THEN //checked tone + //length 246 244 209 + length 233 + //f1 806 753 734 + //f2 1789 1862 1928 + ENDIF + FMT(vowel/oo_en) //formant +endphoneme +//Nasal Vowels +//Nasal vowels cannot take checked tone +phoneme iɴ + vowel starttype #i endtype #i + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length 379 400 359 + length 379 + //f1 479 548 577 + //f2 2015 2235 2126 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ENDIF + FMT(vowel/i) +endphoneme +phoneme eɴ + vowel starttype #e endtype #e + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length 417 476 497 + length 463 + //f1 478 550 605 + //f2 2323 2295 2292 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ENDIF + FMT(vowel/e) +endphoneme +phoneme uɴ + vowel starttype #u endtype #u + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length + length + //f1 + //f2 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ENDIF + FMT(vowel/u) +endphoneme +phoneme oɴ + vowel starttype #a endtype #u + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length 372 371 329 + length 357 + //f1 530 559 573 + //f2 1006 1035 1057 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ENDIF + FMT(vowel/oo) +endphoneme +phoneme ɔɴ + vowel starttype #o endtype #u + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length 572 582 395 + length 516 + //f1 823 840 801 + //f2 1463 1535 1393 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ENDIF + FMT(vowel/oo_en) //formant +endphoneme +phoneme aɴ + vowel starttype #a endtype #i + IF nextPh(3) THEN //creaky tone + //length + length + //f1 + //f2 + ELIF nextPh(1) THEN //low tone + //length 451 393 357 + length 400 + //f1 776 762 792 + //f2 1908 1772 1753 + ELIF nextPh(2) THEN //high tone + //length + length + //f1 + //f2 + ENDIF + FMT(vowel/a) //formant +endphoneme - -//a, ai - //=========== // CONSONANTS //=========== From 2dfec289281f561bc6171163986df659585b2580 Mon Sep 17 00:00:00 2001 From: Andrew Lamont Date: Sat, 5 Dec 2015 16:15:19 -0500 Subject: [PATCH 11/17] fixed if issues --- phsource/ph_burmese | 109 ++++++++++++++++++++++---------------------- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/phsource/ph_burmese b/phsource/ph_burmese index 4b660847..b14a90f3 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -51,26 +51,27 @@ phoneme ə // Schwa //cannot be followed by ɴ vowel starttype #@ endtype #@ unstressed - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length - length +// length //f1 //f2 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ELIF nextPh(4) THEN //checked tone +// ELIF nextPh(4) THEN //checked tone //length 213 195 173 length 194 //f1 785 777 799 //f2 1644 1613 1629 +// ENDIF FMT(vowel/@) endphoneme @@ -181,9 +182,9 @@ phoneme u //formant 350,1125 325,1104 326,1183 //f1 350 325 326: 3334 //f2 1125 1104 1183: 1137 - ELIF nextPh(4) THEN //checked tone +// ELIF nextPh(4) THEN //checked tone //length - length +// length //f1 //f2 ENDIF @@ -258,27 +259,27 @@ phoneme a ELSE vowel starttype #a endtype #a ENDIF - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length - length +// length //f1 //f2 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ELIF nextPh(4) THEN //checked tone +// ELIF nextPh(4) THEN //checked tone //length 246 244 209 length 233 //f1 806 753 734 //f2 1789 1862 1928 - ENDIF +// ENDIF FMT(vowel/oo_en) //formant endphoneme @@ -287,127 +288,127 @@ endphoneme phoneme iɴ vowel starttype #i endtype #i - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length 379 400 359 length 379 //f1 479 548 577 //f2 2015 2235 2126 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ENDIF +// ENDIF FMT(vowel/i) endphoneme phoneme eɴ vowel starttype #e endtype #e - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length 417 476 497 length 463 //f1 478 550 605 //f2 2323 2295 2292 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ENDIF +// ENDIF FMT(vowel/e) endphoneme phoneme uɴ vowel starttype #u endtype #u - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length - length +// length //f1 //f2 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ENDIF +// ENDIF FMT(vowel/u) endphoneme phoneme oɴ vowel starttype #a endtype #u - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length 372 371 329 length 357 //f1 530 559 573 //f2 1006 1035 1057 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ENDIF +// ENDIF FMT(vowel/oo) endphoneme phoneme ɔɴ vowel starttype #o endtype #u - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length 572 582 395 length 516 //f1 823 840 801 //f2 1463 1535 1393 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ENDIF +// ENDIF FMT(vowel/oo_en) //formant endphoneme phoneme aɴ vowel starttype #a endtype #i - IF nextPh(3) THEN //creaky tone +// IF nextPh(3) THEN //creaky tone //length - length +// length //f1 //f2 - ELIF nextPh(1) THEN //low tone +// ELIF nextPh(1) THEN //low tone //length 451 393 357 length 400 //f1 776 762 792 //f2 1908 1772 1753 - ELIF nextPh(2) THEN //high tone +// ELIF nextPh(2) THEN //high tone //length - length +// length //f1 //f2 - ENDIF +// ENDIF FMT(vowel/a) //formant endphoneme From 6c4c986d0b1b872e93e53a25b132a447ebf2ec90 Mon Sep 17 00:00:00 2001 From: Andrew Lamont Date: Sat, 5 Dec 2015 16:21:28 -0500 Subject: [PATCH 12/17] fixed errors --- phsource/ph_burmese | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/phsource/ph_burmese b/phsource/ph_burmese index b14a90f3..01fbb5dc 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -221,10 +221,11 @@ phoneme o endphoneme phoneme ɔ + vowel IF nextPh(4) THEN //diphthong with checked tone - vowel starttype #u endtype #u + starttype #u endtype #u ELSE - vowel starttype #o endtype #o + starttype #o endtype #o ENDIF IF nextPh(3) THEN //creaky tone //length 252 270 277 @@ -254,10 +255,11 @@ phoneme ɔ endphoneme phoneme a + vowel IF nextPh(4) THEN //diphthong with checked tone - vowel starttype #a endtype #i + starttype #a endtype #i ELSE - vowel starttype #a endtype #a + starttype #a endtype #a ENDIF // IF nextPh(3) THEN //creaky tone //length @@ -379,7 +381,7 @@ phoneme ɔɴ //f2 // ELIF nextPh(1) THEN //low tone //length 572 582 395 - length 516 + length 511 //f1 823 840 801 //f2 1463 1535 1393 // ELIF nextPh(2) THEN //high tone From c01c7c44c742c90409048e00210945d4ba287828 Mon Sep 17 00:00:00 2001 From: Andrew Lamont Date: Sat, 5 Dec 2015 16:24:28 -0500 Subject: [PATCH 13/17] diphthong --- phsource/ph_burmese | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phsource/ph_burmese b/phsource/ph_burmese index 01fbb5dc..d37a16d8 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -223,7 +223,7 @@ endphoneme phoneme ɔ vowel IF nextPh(4) THEN //diphthong with checked tone - starttype #u endtype #u + starttype #o endtype #u ELSE starttype #o endtype #o ENDIF From 9ec3b0f34e477125e6bdbfa6a571ed2b5fcc0d5f Mon Sep 17 00:00:00 2001 From: Andrew Lamont Date: Sat, 5 Dec 2015 16:27:54 -0500 Subject: [PATCH 14/17] aspiration fixed --- phsource/ph_burmese | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phsource/ph_burmese b/phsource/ph_burmese index d37a16d8..003f3492 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -461,7 +461,7 @@ endphoneme phoneme p //vls blb stop - import_phoneme base/p + import_phoneme base/b endphoneme phoneme b @@ -471,11 +471,12 @@ endphoneme phoneme ph //aspirated vls blb stop + import_phoneme base/p endphoneme phoneme t //vls alv stop - import_phoneme base/t + import_phoneme base/d endphoneme phoneme d @@ -485,6 +486,7 @@ endphoneme phoneme th vls alv stop + import_phoneme base/t endphoneme phoneme tɕ @@ -504,7 +506,7 @@ endphoneme phoneme k //vls vel stop - import_phoneme base/k + import_phoneme base/g endphoneme phoneme g @@ -514,6 +516,7 @@ endphoneme phoneme kh vls vel stop + import_phoneme base/k endphoneme phoneme ʔ From a542c2d07e0551a7a787c6ec9ae25e4f374b479e Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Sat, 5 Dec 2015 16:35:05 -0500 Subject: [PATCH 15/17] my_rules and ph_burmese fixed. --- dictsource/my_rules | 14 +++++++++++--- phsource/ph_burmese | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dictsource/my_rules b/dictsource/my_rules index 9b3f14d9..e68f1248 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -144,10 +144,18 @@ .group း း 2 + .group ော - ော au2 - ော (် au1 - ော (့ au3 + ော ɔ2 + ော (် ɔ1 + ော (့ ɔ3 + ောင် aun4 + ောက် ɔ4 + +//.group ော +// ော au2 +// ော (် au1 +// ော (့ au3 // ောင် aun4 .group ် diff --git a/phsource/ph_burmese b/phsource/ph_burmese index 003f3492..850bc35d 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -1,4 +1,4 @@ -// http://espeak.sourceforge.net/phontab.html +// http://espeak.sourceforge.net/phontab.html //========================================================= // Burmese //========================================================= From 9966e22aeeb9e7ec72eb36dc639c1fc7b40fc93d Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Tue, 8 Dec 2015 10:25:57 -0500 Subject: [PATCH 16/17] Burmese rules. --- dictsource/my_list | 9 +++++---- dictsource/my_rules | 24 +++++++++++++++--------- phsource/ph_burmese | 2 +- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/dictsource/my_list b/dictsource/my_list index 4689e786..6b01fd52 100644 --- a/dictsource/my_list +++ b/dictsource/my_list @@ -3,9 +3,10 @@ //How zəbɔ // singe letter words -က $nounf -က kə3 $atend +//က $nounf +//က kə3 //$atend + +//စ $nounf +//စ sə3 //$atend -စ $nounf -စ sə3 $atend diff --git a/dictsource/my_rules b/dictsource/my_rules index e68f1248..9735eac6 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -14,10 +14,19 @@ //၉ 9 .group က -// _) က (_ kə3 -// ေ e က k -// ကေ ke3 +// _) က (_ kə3 +// က (ျ tɕ + +.group ျ + ျ tɕ + +.group ွ + ွ w + +//.group ကျ +// ကျ tɕ +// က (ျ tɕ .group ခ ခ kh @@ -144,12 +153,11 @@ .group း း 2 - .group ော ော ɔ2 ော (် ɔ1 ော (့ ɔ3 - ောင် aun4 + ောင် au4 ောက် ɔ4 //.group ော @@ -158,8 +166,6 @@ // ော (့ au3 // ောင် aun4 -.group ် - ် n - - +//.group ် +// ် n diff --git a/phsource/ph_burmese b/phsource/ph_burmese index 850bc35d..a706cbce 100644 --- a/phsource/ph_burmese +++ b/phsource/ph_burmese @@ -506,7 +506,7 @@ endphoneme phoneme k //vls vel stop - import_phoneme base/g + import_phoneme base/k endphoneme phoneme g From 14df16801684494c95b966b0b1913e56a4b346a2 Mon Sep 17 00:00:00 2001 From: Lwin Moe Date: Fri, 11 Dec 2015 17:03:16 -0500 Subject: [PATCH 17/17] Burmese rules. --- dictsource/my_rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dictsource/my_rules b/dictsource/my_rules index 9735eac6..d11dd1d3 100644 --- a/dictsource/my_rules +++ b/dictsource/my_rules @@ -15,6 +15,7 @@ .group က က k + က (် ɛ // _) က (_ kə3 // က (ျ tɕ @@ -137,6 +138,9 @@ .group ိ ိ i + +.group ီ + ီ i1 .group ု ု u3 @@ -157,7 +161,7 @@ ော ɔ2 ော (် ɔ1 ော (့ ɔ3 - ောင် au4 + ောင် ɔɴ4 ောက် ɔ4 //.group ော