For example, I want to set a double pressing rule, one press w, the output is ư, at the second time the output will be w
How can I manage to do so?
Hello @Cathaylab!
You can check and test the rule below:
store(w) "w"
store(u) "ư"
any(w) + any(w) > index(u,1)
any(u) + any(w) > index(w,1)
More information at index()
.
I think I know how to modify this example to fit my own situation, but once I do, where in the code do I paste this rule?
Also, what is the technical term for a doublepressing rule like this? I’ve been digging around in the Keyman help documentation, but since I don’t know what it’s called I can’t find the instructions. I’m not a programmer and much of the terminology used in the help documents is unfamiliar to me.
@beorhtwynne If you create your project with Keyman Developer using the Project menu, New Project menu item, it will have created a .kmn file with various options in the header area, ending with the lines:
begin Unicode > use(main)
group(main) using keys
In Keyman Developer, select the “Layout” tab on the left, then the “Code” tab on the bottom and you will see the code. You’ll be placing your rules into the group named “main”. NOTE, however, that once you start adding such rules, the keyboard will be too complex to go back to the “Design” tab and see the graphical view of the keyboard. So you will likely want to do whatever remapping of keys is needed before adding code.
Often this style of entry (where pressing the same key multiple times produces different characters) is called a “rota”.
If this doesn’t give you enough information, please ask a followup question.