Skip to content

Commit

Permalink
remove logic for numbers, instead using includeDigit (#278)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Knop <alexknoptech@protonmail.com>
  • Loading branch information
alexknop and Alex Knop authored Jun 5, 2023
1 parent 4aa11b9 commit ada5b48
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/io/github/sspanak/tt9/db/DictionaryLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,7 @@ private void importLetters(Language language) {
ArrayList<Word> letters = new ArrayList<>();

for (int key = 2; key <= 9; key++) {
for (String langChar : language.getKeyCharacters(key)) {
if (langChar.length() == 1 && langChar.charAt(0) >= '0' && langChar.charAt(0) <= '9') {
// We do not want 0-9 as "word suggestions" in Predictive mode. It looks confusing
// when trying to type a word and also, one can type them by holding the respective
// key.
continue;
}

for (String langChar : language.getKeyCharacters(key, false)) {
if (DictionaryDb.doesWordExistSync(language, langChar.toUpperCase(language.getLocale()))) {
continue;
}
Expand Down

0 comments on commit ada5b48

Please sign in to comment.