openboard-team / openboard

GNU General Public License v3.0
2.58k stars 254 forks source link

Norwegian / Norsk no autocompletion #444

Open Iron-E opened 3 years ago

Iron-E commented 3 years ago

I can get autocompletions for other languages, but not "Norwegian (Bokmål)". The suggestion bar is blank while typing

Steps to reproduce the behavior:

  1. Go to OpenBoard settings
  2. Click on Languages
  3. Scroll down to "Norwegian (Bokmål)" and enable it
  4. Switch to Norwegian keyboard
  5. Try typing something (e.g. "Jeg likker katten") and see no suggestions appear

I expected my typing to be autocompleted, as is done for English, Spanish, etc.

jnnkB commented 3 years ago

There simply is no dictionary yet for Norwegian. But you can use this tool to create a dictionary. You need a wordlist, as described here. The output .dict file must be put in res/raw.

Iron-E commented 3 years ago

It seems like this repo has a Norwegian wordlist which is the same as AnySoftKeyboard's.

So it only needs to be converted to that raw format?

jnnkB commented 3 years ago

I thought the language code for Norwegian was no but you're right that the nb file is indeed the correct dictionary. So you're probably right that it just needs to be converted.

LupitaRose commented 1 year ago

I have an apk build with Norwegian (bokmål) wordlist / dictionary that works fairly well for me anyway, Dunno what to do with it on here tho cos it's just OpenBoard v1.4.5 with Norwegian spellcheck stuffed in it, so it's not like it's my app exactly. Only tried Norwegian, Swedish, English (UK) and Spanish, but they all seem to work well enough.