Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 **
      5 ** Copyright 2013, The Android Open Source Project
      6 **
      7 ** Licensed under the Apache License, Version 2.0 (the "License");
      8 ** you may not use this file except in compliance with the License.
      9 ** You may obtain a copy of the License at
     10 **
     11 **     http://www.apache.org/licenses/LICENSE-2.0
     12 **
     13 ** Unless required by applicable law or agreed to in writing, software
     14 ** distributed under the License is distributed on an "AS IS" BASIS,
     15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 ** See the License for the specific language governing permissions and
     17 ** limitations under the License.
     18 */
     19 -->
     20 
     21 <resources>
     22     <!-- The array of auto correction threshold values. -->
     23     <string-array name="auto_correction_threshold_values" translatable="false">
     24         <!-- Off, When auto correction setting is Off, this value is not used. -->
     25         <item>floatMaxValue</item>
     26         <!-- Modest : Suggestion whose normalized score is greater than this value
     27              will be subject to auto-correction. -->
     28         <item>0.185</item>
     29         <!-- Aggressive -->
     30         <item>0.067</item>
     31         <!-- Very Aggressive : Suggestion whose normalized score is greater than this value
     32              will be subject to auto-correction. "floatNegativeInfinity" is a special marker
     33              string for Float.NEGATIVE_INFINITY -->
     34         <item>floatNegativeInfinity</item>
     35     </string-array>
     36 
     37     <!-- Chosen to be slightly less than the "aggressive" threshold. This is the threshold for
     38          a mildly plausible suggestion given the input; if no "plausible" suggestion is present
     39          for a language, it's a strong indicator the user is not typing in this language, so we
     40          may be more forgiving of whitelist entries in another language. -->
     41     <string name="plausibility_threshold" translatable="false">0.065</string>
     42 
     43     <!-- The index of the auto correction threshold values array. -->
     44     <string name="auto_correction_threshold_mode_index_off" translatable="false">0</string>
     45     <string name="auto_correction_threshold_mode_index_modest" translatable="false">1</string>
     46     <string name="auto_correction_threshold_mode_index_aggressive" translatable="false">2</string>
     47     <string name="auto_correction_threshold_mode_index_very_aggressive" translatable="false">3</string>
     48 
     49     <!-- The array of the auto correction threshold settings values. -->
     50     <string-array name="auto_correction_threshold_mode_indexes" translatable="false">
     51       <item>@string/auto_correction_threshold_mode_index_off</item>
     52       <item>@string/auto_correction_threshold_mode_index_modest</item>
     53       <item>@string/auto_correction_threshold_mode_index_aggressive</item>
     54       <item>@string/auto_correction_threshold_mode_index_very_aggressive</item>
     55     </string-array>
     56     <!-- The array of the human readable auto correction threshold settings entries. -->
     57     <string-array name="auto_correction_threshold_modes" translatable="false">
     58       <item>@string/auto_correction_threshold_mode_off</item>
     59       <item>@string/auto_correction_threshold_mode_modest</item>
     60       <item>@string/auto_correction_threshold_mode_aggressive</item>
     61       <item>@string/auto_correction_threshold_mode_very_aggressive</item>
     62     </string-array>
     63 </resources>
     64