dariogoetz / keyboard_layout_optimizer

A keyboard layout optimizer supporting multiple layers. Implemented in Rust.
https://dariogoetz.github.io/keyboard_layout_optimizer/
GNU General Public License v3.0
86 stars 13 forks source link

How to handle " " (space)? #55

Closed hpgisler closed 1 year ago

hpgisler commented 1 year ago

Hi, I am still experimenting with the 2 x 18 key layout and stumbled over this one (as it is not related to the other discussion, I opened a new one - hope, this is ok).

Suppose, I also want to let the optimizer optimize the position of the Space character. How do I have to enter it in --fix-from or -f string? (As whitespaces are ignred there.)

(\ does not seem to do the trick.)

dariogoetz commented 1 year ago

I added a commandline argument --do-not-remove-whitespace to the plot, evaluate, optimize_sa, and optimize_genetic binaries. It then considers each whitespace character as a specified symbol for the layout.

hpgisler commented 1 year ago

Great! Thank you - works like a charm.