diff --git a/OsmAnd/assets/voice/lv-tts/ttsconfig.p b/OsmAnd/assets/voice/lv-tts/ttsconfig.p index a821731ada..5f9086d68e 100644 --- a/OsmAnd/assets/voice/lv-tts/ttsconfig.p +++ b/OsmAnd/assets/voice/lv-tts/ttsconfig.p @@ -1,4 +1,4 @@ -:- op('==', xfy, 500). +ļ»æ:- op('==', xfy, 500). version(101). language(lv). @@ -14,61 +14,67 @@ turn('right', ['griezties pa labi ']). turn('right_sh', ['strauji pagriezties pa labi ']). turn('right_sl', ['pagriezties pa labi ']). -prepare_turn(Turn, Dist) == ['Pēc ', D, ' pagriezties ', M] :- distance(Dist) == D, turn(Turn, M). -turn(Turn, Dist) == ['Pēc ', D, M] :- distance(Dist) == D, turn(Turn, M). +prepare_turn(Turn, Dist) == ['Pēc ', D, ' gatavoties pa', M] :- distance(Dist) == D, turn(Turn, M). +turn(Turn, Dist) == ['Pēc ', D, M] :- distance(Dist) == D, turn(Turn, M). turn(Turn) == M :- turn(Turn, M). -prepare_make_ut(Dist) == ['Gatavojaties apgriezties pēc ', D] :- distance(Dist) == D. -make_ut(Dist) == ['Pēc ', D, ' apgriežaties '] :- distance(Dist) == D. -make_ut == ['Apgriežaties ']. -make_ut_wp == ['Apgriežaties pie pirmās iespējas ']. +prepare_make_ut(Dist) == ['Gatavojaties apgriezties pēc ', D] :- distance(Dist) == D. +make_ut(Dist) == ['Pēc ', D, ' apgriežaties '] :- distance(Dist) == D. +make_ut == ['Apgriežaties ']. +make_ut_wp == ['Apgriežaties pie pirmās iespējas ']. -prepare_roundabout(Dist) == ['Sagatvojaties lokveida kustībai ', D] :- distance(Dist) == D. -roundabout(Dist, _Angle, Exit) == ['Pēc ', D, ' iebrauciet lokveida krustojumā, un tad brauciet ', E, 'pagriezienā'] :- distance(Dist) == D, nth(Exit, E). -roundabout(_Angle, Exit) == ['izbrauciet ', E, 'izbrauktuvē'] :- nth(Exit, E). +prepare_roundabout(Dist) == ['Sagatvojaties lokveida kustÄ«bai pēc ', D] :- distance(Dist) == D. +roundabout(Dist, _Angle, Exit) == ['Pēc ', D, ' iebrauciet lokveida krustojumā, un tad brauciet ', E, 'pagriezienā'] :- distance(Dist) == D, nth(Exit, E). +roundabout(_Angle, Exit) == ['izbrauciet ', E, 'izbrauktuvē'] :- nth(Exit, E). -go_ahead == ['Dodaties taisni uz priekšu ']. -go_ahead(Dist) == ['Brauciet pa ceļu ', D]:- distance(Dist) == D. +go_ahead == ['Dodaties taisni uz priekÅ”u ']. +go_ahead(Dist) == ['Brauciet pa ceļu ', D]:- distance2(Dist) == D. -and_arrive_destination == ['un ierodaties galapunktā ']. +and_arrive_destination == ['un ierodaties galapunktā ']. then == ['tad ']. -reached_destination == ['jūs esiet nokļuvis galapunktā ']. -bear_right == ['turieties pa labi ']. -bear_left == ['turieties pa kreisi ']. +reached_destination == ['jÅ«s esiet nokļuvis galapunktā ']. +bear_right == ['turēties pa labi ']. +bear_left == ['turēties pa kreisi ']. -route_new_calc(Dist) == ['Brauciens ir ', D] :- distance(Dist) == D. -route_recalc(Dist) == ['Maršruts ir pārēķināts, attālums ', D] :- distance(Dist) == D. +route_new_calc(Dist) == ['Brauciens ir ', D] :- distance2(Dist) == D. +route_recalc(Dist) == ['MarÅ”ruts ir pārēķināts, attālums ir ', D] :- distance2(Dist) == D. -location_lost == ['pazudis g p s signāls ']. +location_lost == ['pazudis g p s signāls ']. %% -nth(1, 'pirmais '). -nth(2, 'otrais '). -nth(3, 'trešais '). -nth(4, 'ceturtais '). -nth(5, 'piektais '). -nth(6, 'sestais '). -nth(7, 'septītais '). -nth(8, 'astotais '). -nth(9, 'devītais '). -nth(10, 'desmit '). -nth(11, 'vienpadsmitais '). -nth(12, 'divpadsmitais '). -nth(13, 'trīspadsmitais '). -nth(14, 'četrpadsmitais '). -nth(15, 'piecpadsmitais '). -nth(16, 'sešpadsmitais '). -nth(17, 'septiņpadsmitais '). +nth(1, 'pirmajā '). +nth(2, 'otrajā '). +nth(3, 'treÅ”ajā '). +nth(4, 'ceturtajā '). +nth(5, 'piektajā '). +nth(6, 'sestajā '). +nth(7, 'septÄ«tajā '). +nth(8, 'astotajā '). +nth(9, 'devÄ«tajā '). +nth(10, 'desmitajā '). +nth(11, 'vienpadsmitajā '). +nth(12, 'divpadsmitajā '). +nth(13, 'trÄ«spadsmitajā '). +nth(14, 'četrpadsmitajā '). +nth(15, 'piecpadsmitajā '). +nth(16, 'seÅ”padsmitajā '). +nth(17, 'septiņpadsmitajā '). -%%% distance measure +%%% distance measure - Pēc xxx distance(Dist) == [ X, ' meteriem'] :- Dist < 100, D is round(Dist/10)*10, num_atom(D, X). distance(Dist) == [ X, ' meteriem'] :- Dist < 1000, D is round(2*Dist/100)*50, num_atom(D, X). -distance(Dist) == ['aptuveni 1 kilometers '] :- Dist < 1500. -distance(Dist) == ['aptuveni ', X, ' kilometeri '] :- Dist < 10000, D is round(Dist/1000), num_atom(D, X). -distance(Dist) == [ X, ' kilometri '] :- D is round(Dist/1000), num_atom(D, X). +distance(Dist) == ['aptuveni viena kilometera '] :- Dist < 1500. +distance(Dist) == ['aptuveni ', X, ' kilometeriem '] :- Dist < 10000, D is round(Dist/1000), num_atom(D, X). +distance(Dist) == [ X, ' kilometriem '] :- D is round(Dist/1000), num_atom(D, X). +%%% distance mesure - Attālums ir xxx ....metri... +distance2(Dist) == [ X, ' meteri'] :- Dist < 100, D is round(Dist/10)*10, num_atom(D, X). +distance2(Dist) == [ X, ' meteri'] :- Dist < 1000, D is round(2*Dist/100)*50, num_atom(D, X). +distance2(Dist) == ['aptuveni 1 kilometrs '] :- Dist < 1500. +distance2(Dist) == ['aptuveni ', X, ' kilometri '] :- Dist < 10000, D is round(Dist/1000), num_atom(D, X). +distance2(Dist) == [ X, ' kilometri '] :- D is round(Dist/1000), num_atom(D, X). %% resolve command main method