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

@ -2173,18 +2173,19 @@ public final class KeyboardTextsTable {
// ( 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 */ ",",

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)"

View file

@ -27,18 +27,19 @@
&#x0028; U+0028 "(" Բացվող փակագիծ - OPENING PARENTHESES
&#x0029; U+0029 ")" Փակվող փակագիծ - CLOSING PARENTHESES
&#x0027; U+0027 "'" Ապաթարց - APOSTROPHE
&#x2026; U+2026 "…" Կախման կետեր
&#x2026; U+2026 "…" Կախման կետեր - HORIZONTAL ELLIPSIS
&#x055E; U+055E "՞" Հարցական - ARMENIAN QUESTION MARK
&#x055C; U+055C "՜" Բացականչական - ARMENIAN EXCLAMATION MARK
&#x055B; U+055B "՛" Շեշտ
&#x055D; U+055D "՝" Բութ
&#x055B; U+055B "՛" Շեշտ - ARMENIAN EMPHASIS MARK
&#x055D; U+055D "՝" Բութ - ARMENIAN COMMA
!! (the unicode name is Armenian Comma, which isn't really accurate since Armenian Comma is U+002C)
&#x058A; U+058A "֊" Միության գծիկ - ARMENIAN HYPHEN
&#x2015; U+2015 "―" Անջատման գժիկ - ARMENIAN SEPARATION MARK
&#x00AB; U+00AB "«" Բացվող չակերտ - LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
&#x00BB; U+00BB "»" Փակվող չակերտ - RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
&#x002C; U+002C "," Ստօրակետ - ARMENIAN COMMA
&#x0589; U+0589 "։" Վերջակետ - ARMENIAN COLON
&#x2024; U+2024 "" Միջակետ
&#x2024; U+2024 "" Միջակետ - One dot leader
-->
<string name="morekeys_punctuation">"!autoColumnOrder!8,\\,,&#x055E;,&#x055C;,&#x2024;,&#x2026;,&#x0027;,&#x003D;,&#x002F;,&#x055D;,&#x055B;,&#x058A;,&#x00BB;,&#x00AB;,&#x2015;,&#x0029;,&#x0028;"</string>
<!-- U+055E: "՞" ARMENIAN QUESTION MARK -->