From ae3b96b26ef86a9f342b4aeb2047abdaac5e57a5 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 11 Jan 2013 20:23:48 +0900 Subject: [PATCH] Simplify the space-before and space-after logic. Bug: 7889078 Bug: 7268000 Change-Id: I6c77b8c9e60ef69f02526b407124d2f5d02818ee --- java/res/values-fr/donottranslate.xml | 18 +++-- java/res/values/donottranslate.xml | 19 +++--- .../android/inputmethod/latin/LatinIME.java | 49 ++++++-------- .../latin/RichInputConnection.java | 13 ++-- .../inputmethod/latin/SettingsValues.java | 66 ++++++------------- 5 files changed, 59 insertions(+), 106 deletions(-) diff --git a/java/res/values-fr/donottranslate.xml b/java/res/values-fr/donottranslate.xml index e11e65c79..2e916a734 100644 --- a/java/res/values-fr/donottranslate.xml +++ b/java/res/values-fr/donottranslate.xml @@ -18,15 +18,13 @@ */ --> - - .,)]} - + + ([{*&;:!? + + .,;:!?)]}*& + - " \n"\'-/_\" - - ;:!?([*&@{<>+=| - - - \'- + " \n"()[]{}*&<>+=|.,;:!?/_\" + + \'- diff --git a/java/res/values/donottranslate.xml b/java/res/values/donottranslate.xml index 193a0191e..70ace776f 100644 --- a/java/res/values/donottranslate.xml +++ b/java/res/values/donottranslate.xml @@ -20,18 +20,15 @@ !,?,\\,,:,;,\",(,),\',-,/,@,_ - - .,;:!?)]} - + + ([{*& + + .,;:!?)]}*& + - " \n"/_\'-@\" - - ([*&{<>+=| - - \'- - + " \n"()[]{}*&<>+=|.,;:!?/_\" + + \'-