addressing comments

This commit is contained in:
amcoder36 2022-07-20 23:20:22 -07:00
parent e46783fd9d
commit d108ee6f92
3 changed files with 13 additions and 10 deletions

View file

@ -2169,23 +2169,24 @@ public final class KeyboardTextsTable {
/* morekeys_nordic_row2_11 ~ */
null, null, null, null, null, null, null,
/* ~ morekeys_swiss_row2_11 */
//
//
// ( U+0028 "(" Բացվող փակագիծ - OPENING PARENTHESES
// ) U+0029 ")" Փակվող փակագիծ - CLOSING PARENTHESES
// ' U+0027 "'" Ապաթարց - APOSTROPHE
// … U+2026 "" Կախման կետեր
// … U+2026 "" Կախման կետեր - HORIZONTAL ELLIPSIS
// ՞ U+055E "՞" Հարցական - ARMENIAN QUESTION MARK
// ՜ U+055C "՜" Բացականչական - ARMENIAN EXCLAMATION MARK
// ՛ U+055B "՛" Շեշտ
// ՝ U+055D "՝" Բութ
// ՛ U+055B "՛" Շեշտ - ARMENIAN EMPHASIS MARK
// ՝ U+055D "՝" Բութ - ARMENIAN COMMA
// !! (the unicode name is Armenian Comma, which isn't really accurate since Armenian Comma is U+002C)
// ֊ U+058A "֊" Միության գծիկ - ARMENIAN HYPHEN
// ― U+2015 "" Անջատման գժիկ - ARMENIAN SEPARATION MARK
// « U+00AB "«" Բացվող չակերտ - LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
// » U+00BB "»" Փակվող չակերտ - RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
// , U+002C "," Ստօրակետ - ARMENIAN COMMA
// ։ U+0589 "։" Վերջակետ - ARMENIAN COLON
// ․ U+2024 "" Միջակետ
//
// ․ U+2024 "" Միջակետ - One dot leader
//
/* morekeys_punctuation */ "!autoColumnOrder!8,\\,,\u055E,\u055C,\u2024,\u2026,',=,/,\u055D,\u055B,\u058A,\u00BB,\u00AB,\u2015,),(",
/* keyspec_tablet_comma */ ",",
/* morekeys_star ~ */

View file

@ -67,6 +67,7 @@ public abstract class AndroidWordLevelSpellCheckerSession extends Session {
private static final Map<Integer, String> scriptToPunctuationRegexMap = new TreeMap<>();
static {
// TODO: add other non-English language specific punctuation later.
scriptToPunctuationRegexMap.put(
ScriptUtils.SCRIPT_ARMENIAN,
"(\\u0028|\\u0029|\\u0027|\\u2026|\\u055E|\\u055C|\\u055B|\\u055D|\\u058A|\\u2015|\\u00AB|\\u00BB|\\u002C|\\u0589|\\u2024)"