SyedWasiHaider / vue-highlightable-input

A vue component to highlight text as you're typing
MIT License
183 stars 30 forks source link

Improve support for non-English languages #9

Open SyedWasiHaider opened 6 years ago

mateusalexandre commented 5 years ago

@SyedWasiHaider I have accent problem only on Mac in PT/BR.

SyedWasiHaider commented 5 years ago

If you can show me how to reproduce, I can try and have a look. I'm also open to PRs.

mateusalexandre commented 5 years ago

@SyedWasiHaider When I use accents using the Mac, the accents are duplicated. First display the accents and then the letters with the accents

Example:

´á

´é

´Éntree

R´ésum´é

D´éj`à vu

Comp^ôte

SyedWasiHaider commented 5 years ago

Interesting I'm on windows and I'm using the ALT+0XXX shortcuts for the letters and it seems to run fine in Chrome.

In this case I think what is happening is that the library is too fast in trying to process the text because you're using the accent then character type shortcut.

SyedWasiHaider commented 5 years ago

Can you try increasing the highlightDelay setting and see if that fixes your problem?

SyedWasiHaider commented 5 years ago

I just tried again on Windows with the "US - International keyboard". The interesting thing is if I type: ' and then say a it doesn't actually input the first ' into the textbox so I don't run into the same issue as you. This feels like a mac-specific issue.

hjfrun commented 4 years ago

Hi @SyedWasiHaider , please see my gif below: highlights

Poor experience while inputing Chinese characters, can you please help to improve a little bit. Thanks.