From 01dade4fa042bf3ca102444f490b6978de45a5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1thory=20P=C3=A9ter?= Date: Sat, 17 Nov 2012 10:25:21 +0100 Subject: [PATCH] Update OsmAnd/assets/voice/hu-tts/ttsconfig.p MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit translating intermediate points; changing "úti cél" to a grammatically incorrect but more TTS friendly form --- OsmAnd/assets/voice/hu-tts/ttsconfig.p | 47 +++++++++++++------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/OsmAnd/assets/voice/hu-tts/ttsconfig.p b/OsmAnd/assets/voice/hu-tts/ttsconfig.p index 4646b9c8b9..0a366f6c04 100644 --- a/OsmAnd/assets/voice/hu-tts/ttsconfig.p +++ b/OsmAnd/assets/voice/hu-tts/ttsconfig.p @@ -16,33 +16,33 @@ turn('right_sl', ['fordulj enyhén jobbra ']). turn('right_keep', ['tarts jobbra ']). turn('left_keep', ['tarts balra ']). -prepare_turn(Turn, Dist) == [D, ' múlva ', M] :- distance(Dist, no-t) == D, turn(Turn, M). -turn(Turn, Dist) == [D, 'múlva ', M] :- distance(Dist, no-t) == D, turn(Turn, M). +prepare_turn(Turn, Dist) == [D, ' múlva ', M] :- distance(Dist, nom) == D, turn(Turn, M). +turn(Turn, Dist) == [D, 'múlva ', M] :- distance(Dist, nom) == D, turn(Turn, M). turn(Turn) == M :- turn(Turn, M). -prepare_make_ut(Dist) == [D, ' múlva készülj fel a visszafordulásra'] :- distance(Dist, no-t) == D. -make_ut(Dist) == [D, ' múlva fordulj vissza '] :- distance(Dist, no-t) == D. +prepare_make_ut(Dist) == [D, ' múlva készülj fel a visszafordulásra'] :- distance(Dist, nom) == D. +make_ut(Dist) == [D, ' múlva fordulj vissza '] :- distance(Dist, nom) == D. make_ut == ['Fordulj vissza ']. make_ut_wp == ['Fordulj vissza ']. -prepare_roundabout(Dist) == [D, ' múlva hajts be a körforgalomba'] :- distance(Dist, no-t) == D. -roundabout(Dist, _Angle, Exit) == [D, ' múlva a körforgalomban ', E, 'kijáraton hajts ki'] :- distance(Dist, no-t) == D, nth(Exit, E). +prepare_roundabout(Dist) == [D, ' múlva hajts be a körforgalomba'] :- distance(Dist, nom) == D. +roundabout(Dist, _Angle, Exit) == [D, ' múlva a körforgalomból ', E, 'kijáraton hajts ki'] :- distance(Dist, nom) == D, nth(Exit, E). roundabout(_Angle, Exit) == ['hajts ki ', E, 'kijáraton'] :- nth(Exit, E). go_ahead == ['Haladj tovább egyenesen ']. -go_ahead(Dist) == ['Menj tovább ', D] :- distance(Dist, t) == D. +go_ahead(Dist) == ['Menj tovább ', D] :- distance(Dist, acc) == D. -and_arrive_destination == ['és megérkezel az úti célhoz ']. -and_arrive_intermediate == ['and arrive at your via point ']. -reached_intermediate == ['you have reached your via point']. +and_arrive_destination == ['és megérkezel az uticélhoz.']. +and_arrive_intermediate == ['és megérkezel a köztes célponthoz.']. +reached_intermediate == ['megérkeztél a köztes célponthoz.']. then == ['majd ']. -reached_destination == ['megérkeztél az úti célhoz ']. +reached_destination == ['megérkeztél az uticélhoz.']. bear_right == ['tarts jobbra ']. bear_left == ['tarts balra ']. -route_new_calc(Dist) == ['Az útvonal ', D] :- distance(Dist, no-t) == D. -route_recalc(Dist) == ['útvonal újratervezése, az útvonal ', D] :- distance(Dist, no-t) == D. +route_new_calc(Dist) == ['Az útvonal ', D] :- distance(Dist, nom) == D. +route_recalc(Dist) == ['útvonal újratervezése, az útvonal ', D] :- distance(Dist, nom) == D. location_lost == ['nem található dzsípíesz pozíció ']. @@ -68,16 +68,17 @@ nth(17, 'a tizenhetedik '). %%% distance measure -distance(Dist, no-t) == [ X, ' méter'] :- Dist < 100, D is round(Dist/10.0)*10, num_atom(D, X). -distance(Dist, t) == [ X, ' métert'] :- Dist < 100, D is round(Dist/10.0)*10, num_atom(D, X). -distance(Dist, no-t) == [ X, ' méter'] :- Dist < 1000, D is round(2*Dist/100.0)*50, num_atom(D, X). -distance(Dist, t) == [ X, ' métert'] :- Dist < 1000, D is round(2*Dist/100.0)*50, num_atom(D, X). -distance(Dist, no-t) == ['körülbelül 1 kilométer'] :- Dist < 1500. -distance(Dist, t) == ['körülbelül 1 kilométert'] :- Dist < 1500. -distance(Dist, no-t) == ['mintegy ', X, ' kilométer'] :- Dist < 10000, D is round(Dist/1000.0), num_atom(D, X). -distance(Dist, t) == ['mintegy ', X, ' kilométert'] :- Dist < 10000, D is round(Dist/1000.0), num_atom(D, X). -distance(Dist, no-t) == [ X, ' kilométer'] :- D is round(Dist/1000.0), num_atom(D, X). -distance(Dist, t) == [ X, ' kilométert'] :- D is round(Dist/1000.0), num_atom(D, X). +%%% nom=nominative, acc=accusative +distance(Dist, nom) == [ X, ' méter'] :- Dist < 100, D is round(Dist/10.0)*10, num_atom(D, X). +distance(Dist, acc) == [ X, ' métert'] :- Dist < 100, D is round(Dist/10.0)*10, num_atom(D, X). +distance(Dist, nom) == [ X, ' méter'] :- Dist < 1000, D is round(2*Dist/100.0)*50, num_atom(D, X). +distance(Dist, acc) == [ X, ' métert'] :- Dist < 1000, D is round(2*Dist/100.0)*50, num_atom(D, X). +distance(Dist, nom) == ['körülbelül 1 kilométer'] :- Dist < 1500. +distance(Dist, acc) == ['körülbelül 1 kilométert'] :- Dist < 1500. +distance(Dist, nom) == ['mintegy ', X, ' kilométer'] :- Dist < 10000, D is round(Dist/1000.0), num_atom(D, X). +distance(Dist, acc) == ['mintegy ', X, ' kilométert'] :- Dist < 10000, D is round(Dist/1000.0), num_atom(D, X). +distance(Dist, nom) == [ X, ' kilométer'] :- D is round(Dist/1000.0), num_atom(D, X). +distance(Dist, acc) == [ X, ' kilométert'] :- D is round(Dist/1000.0), num_atom(D, X). %% resolve command main method