monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

Danish "æ" is registered as "ae" – causes two errors instead of one

Open jacojoe opened this issue 8 months ago • 6 comments

Did you clear cache before opening an issue?

  • [x] I have cleared my cache

Is there an existing issue for this?

  • [x] I have searched the existing issues

Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

jacojoe

Account config

No response

Current Behavior

When using Monkeytype with the Danish language setting, typing the letter "æ" is registered as "ae". This leads to the following issues:

If you accidentally press "æ", Monkeytype registers it as two incorrect characters instead of one.

You need to press backspace twice to delete it, even though it's a single key on a Danish keyboard.

This disrupts the typing experience and makes error correction more difficult than it should be.

Expected Behavior

The letter "æ" should be treated as a single character, not expanded into "a" and "e". It should count as one keypress and one potential mistake – not two.

Steps To Reproduce

  1. Set the language to Danish in Monkeytype.

  2. Start a typing test.

  3. Press the "æ" key incorrectly during typing.

  4. Observe that it gets interpreted as "ae" and causes two errors.

Environment

  • OS: macOS Ventura
  • Browser: Firefox / Safari
  • Browser Version: 137.0.2 / 18.4

Anything else?

No response

jacojoe avatar Apr 22 '25 13:04 jacojoe

It seems the problematic file is frontend/src/ts/controllers/input-controller.ts at line 480. The oe character probably exhibits this behaviour as well.

leofleeo avatar Apr 22 '25 16:04 leofleeo

The code is written in a way so that if the next character is not the ae symbol and you press ae it will process it as the two letters a and e instead

leofleeo avatar Apr 22 '25 16:04 leofleeo

This could probably be fixed by just removing the special handler for the character in the code but I haven't tried it yet I'll try it when I get home

leofleeo avatar Apr 22 '25 17:04 leofleeo

I see the pull request is not merged. I'm not getting that. Is this problem fixed or not

tech-dipesh avatar Apr 26 '25 19:04 tech-dipesh

Whoever was making the pull request abandoned it for some reason that isn't clear

leofleeo avatar Apr 26 '25 21:04 leofleeo

And I haven't gotten around to doing it

leofleeo avatar Apr 26 '25 21:04 leofleeo

can i work on this issue? If yes Can you plese \assign-me

madanhk18 avatar Jul 25 '25 13:07 madanhk18