patorjk / keyboard-layout-analyzer

MIT License
45 stars 17 forks source link

How do you handle missing characters #3

Open iandoug opened 8 years ago

iandoug commented 8 years ago

Hi

Just wondering how your program handles characters not on the keyboard ... for example I tested a layout with perl and PHP code, but the keyboard layout I set up didn't have any brackets (or even < and > ) and it got the high score. Was this because you simply assigned a zero to the missing keys?

FWIW my layout only managed to beat AZERTY on your inputs, but not the rest....

(Can't load the brackets because keyboard physical layout is non-standard).

Thanks, Ian

patorjk commented 8 years ago

Hi Ian,

The app will ignore characters that aren't mapped on the keyboard. If you open up the JavaScript console (Ctrl+Shift+i), you'll see a list of warnings for keys that weren't processed. At one point I think I was putting this on the result page, but at some point I must have taken it out.

iandoug commented 8 years ago

Mmm. I was also missing the minus sign. Alice uses it a lot. When I added it in, my score dropped... tried many different places, but could not get back to score on keyboard where it is missing. So that's a puzzle for me... :-)

HughP commented 6 years ago

I noticed that Andreas the programmer at http://adnw.de has an penalty score option in his optimizer for characters that are not mapped to the keyboard. Presumably the author of a text would still find an input method for a special character and copy/paste it into their text. The penalty score should cover that use case.

iandoug commented 6 years ago

In the time since then (and in all the testing I've done) I've put in checks along the way that complain when a character is not found... which leads to either fixing the text to replace the input with something typeable, or fixing the layout (it it's reasonably obvious where a missing glyph could/should be) or in extreme cases, removing the layout from the test suite.

@HughP , you sorted out your African layouts yet? I've gained a whack of experience in optimising layouts since 2016.... :-)

HughP commented 6 years ago

@iandoug I'm finishing up that project this summer. Starting now. I was trying to get this repo to work locally but I wasn't able to something with the grunt command would work. I've never used it before, so I'm pretty new to grunt. I was also looking at getting AdNW's optimizer up and working because it can do a third shift state. But if you have any pointers I am all ears. we could even Skype if you want. http://hughandbecky.us/Hugh-CV

iandoug commented 6 years ago

@HughP : See email.