billthefarmer / gurgle

Fairly simple android word game
https://billthefarmer.github.io/gurgle/
GNU General Public License v3.0
56 stars 18 forks source link

Retain accents in dictionaries #56

Closed sotpapathe closed 2 years ago

sotpapathe commented 2 years ago

This will help get the correct dictionary entries for languages that use accents, e.g. French. For example in the case of ELIRE, Wiktionary should be searched for élire instead of elire. The virtual keyboard and word display would remain as they are now, without accents.

Of course this would require updating the dictionary to contain the accents and remove the accents when testing whether a word is valid.

This is probably a lot of programming effort for little gain but it would be nice to have so I'm putting it here.

billthefarmer commented 2 years ago

I'm not going there, unless someone else wants to have a go. I spent some time carefully removing accents from the dictionaries and checking for duplicates so the app won't come up with unsolvable games. There is no algorithmic method, AFAIK, to get from accented letters to unaccented, so there would have to be a lookup table. There are rather a lot of accents, as I found when removing them.

billthefarmer commented 2 years ago

Another possible solution would be to utilise the long press which I will implement for locking letters (#57) to cycle through possible accents for letters in complete guesses which can have accents, similar to some keyboards.

billthefarmer commented 2 years ago

OK, a long press on a letter in a completed guess will show a pop-up menu with possible unaccented and accented characters for that letter. This makes it possible to add and remove accents.

Screenshot_20220917-143008 1

sotpapathe commented 2 years ago

That's a nice workaround, thanks!