abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/suggestions
AgeCommit message (Collapse)AuthorFilesLines
7 daysEmoji suggestion (#1235)Jules Aguillon2-43/+77
Suggest an emoji in addition to the 3 suggested words when the current word matches an alias in the emoji dictionary, if available.
8 daysReduce the size of suggestions to fit (#1248)Jules Aguillon1-3/+11
The font size of the suggested words is reduced if the word would otherwise split on two lines.
2026-04-10Better suggestion with diacritics (#1223)Jules Aguillon1-9/+21
* Update cdict * scripts/subst_of_compose.py: Compute substitutions from compose mappings. They are used when building dictionaries. * Add substitutions compose data * Better suggestion with diacritics This improves the suggestions for words that contain diacritics and uppercase letters. This works by stripping diacritics both when building the dictionaries (using word aliases added in cdict: https://github.com/Julow/cdict/pull/3) and during lookup. Cdict then takes care of resolving the correct word. The substitutions are generated using mappings from `fn`, `shift` and all the `accent_*` modifiers into srcs/compose/substitutions.json This can be updated easily when more mappings are added.
2026-04-10Handle Google Keep bug (#1230)Jules Aguillon1-2/+9
The Google Keep text area sends contradictory flags to keyboards, resulting in the suggestions to be disabled. This seems to be a bug in Google Keep.
2026-04-10Disable spacebar autocomplete when suggestions are hidden (#1227)Jules Aguillon1-0/+9
The spacebar autocomplete option was still working even when the suggestions strip was correctly hidden in applications like Termux.
2026-02-24Fix crash introduced in #1183 (#1187)Jules Aguillon1-1/+2
2026-02-22Improve suggestion for capitalized words (#1183)Jules Aguillon1-14/+39
Suggestions were previously case-sensitive, which gave very bad results for the first word of a sentence. This makes sure that the suggestions for capitalized words are as good as for all lower-case words and that the suggestion doesn't turn the uppercase letter into lower case.
2026-02-19Autocomplete on space bar and undo on delete (#1179)Jules Aguillon1-2/+12
* Refactor: Implement the space key as an editing action The space key is no longer a CHAR key but now an EDITING key. This allows changing the behavior of the space bar while allowing custom layout users to define a key outputing a space as before. KeyModifier and ComposeKey are updated to treat the space key as before. * Enter the best suggestion when the space bar is pressed * Refactor: Implement backspace as an editing action * Undo suggestion when delete is pressed The delete key (backspace internally) undoes the suggestion if the last action done was entering the suggestion with either the space bar or the candidates view. * Add an option to enable space bar autocomplete This option is off by default. Undoing a completion with backspace works in any case. * Refactor: Track selection emptyness in CurrentlyTypedWord This removes an expensive RPC call.
2026-02-02Spell checking (#1137)Jules Aguillon2-5/+24
This adds dictionary-based spell checking to the keyboard. The keyboard looks at the word being typed and matches it against a dictionary to either complete the rest of the word or find alternative spellings. The core of this feature is implemented in cdict, which is included as a submodule in vendor/cidct. Cdict is developped at https://github.com/Julow/cdict The dictionaries are hosted at https://github.com/Julow/Unexpected-Keyboard-dictionaries/ The wordlists used to build the dictionaries are the same ones used by HeliBoard from https://codeberg.org/Helium314/aosp-dictionaries - Add an activity accessible from the launcher app that lists available dictionaries with a download button. The DictionaryListView view shows the list of available dictionaries and handles downloading and installing them. - The Dictionaries class manages installed dictionaries. Dictionaries are installed as individual files into the app's private directory. - Available dictionaries are listed in dictionaries.xml, which is generated when building Unexpected-Keyboard-dictionaries. method.xml mentions the dictionary name for each locales.
2026-02-01Candidates view improvements (#1168)Jules Aguillon2-0/+197
* Refactor: Create subpackage 'suggestions' * Candidates view: Status message when no dictionary installed Show a message on the candidates view instead of leaving it empty. A button points to the dictionary installation activity. * Add an option to disable the suggestions * Refactor: Remove Config.should_show_candidates_view This was moved to EditorConfig. * Don't disable text suggestions in some text boxes * Suggestion text size matching settings The candidates view height is based on the height of keyboard rows and the suggestion text size is based on the size of labels on the keys. This is influenced by symbol size and keyboard height options.