From 81c2e8227d47abb56f8d74db19c9832407a4bf52 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 20 Aug 2013 23:18:42 +0200 Subject: [PATCH] combine some identical code --- OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java index 8e0cef8ce8..0dd87347a8 100644 --- a/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java +++ b/OsmAnd/src/net/osmand/plus/routing/VoiceRouter.java @@ -426,11 +426,7 @@ public class VoiceRouter { } // replace characters which may produce unwanted tts sounds: if(res != null) { - res = res.replace('-', ' '); - res = res.replace(':', ' '); - res = res.replace("ß", "ss"); // helps non-German tts voices to pronounce German Straße (=street) - res = res.replace("\u00df", "ss"); - res = res.replace("ß", "ss"); + res = getSpeakablePointName(res) } return res; } @@ -440,6 +436,7 @@ public class VoiceRouter { if(pn != null) { pn = pn.replace('-', ' '); pn = pn.replace(':', ' '); + pn = pn.replace("ß", "ss"); // helps non-German tts voices to pronounce German Straße (=street) } return pn; }