xsznix / keygen

An(other) algorithm for generating optimal keyboard layouts.
107 stars 38 forks source link

possible to use this to test layouts? #7

Closed revulent closed 2 years ago

revulent commented 2 years ago

I've made a new modified workman layout and i'd like to test it with this analyzer and compare it to the original workman layout and RSTHD. Unfortunately rust completely goes over my head for the time being and i'm not sure where to go with that. Do you have a tip on what to do to get that to work? If I can just cut out the code that iterates through layouts and make it just use my layout that would be good enough.

xsznix commented 2 years ago

You'll want to add your layout as a constant in this file: https://github.com/xsznix/keygen/blob/master/src/layout.rs#L90

and then add it to the list of reference layouts to analyze: https://github.com/xsznix/keygen/blob/master/src/main.rs#L122-L169

To run the reference analysis, do cargo run -- run <path to your corpus>

Come hang out with other keyboard layout creators and alt keyboard layout users on Discord if you want to share your ideas and get feedback and insight! There's several newer keyboard layout analyzers by people there, along with new heuristics and methodology, that you may be interested in. https://discord.gg/d87QC844

akaralar commented 2 years ago

@xsznix sorry for resurrecting a closed issue but the invite for the discord expired, which discord is it?