Conditional output


I have a question with generating a keyboard layout.

Here is the scenario.

If ( the current text in the document is “b” )
If (the user press “a”) I want the output to be “a”
If (the user press “a”) I want the output to be “c”

But with the store option
I have to delete the current text “b” and replace with “ba”

This becomes an issue with the diacritics and consonant conjugates in indic languages.

I want to output only the conditional diacritics based on the previous base consonant. or else output a vowel if the consonant is not present in the previous position.

I am not finding a way to conditional output without having to replace the condition.

Please assist.

This is a place where Keyman is ideally placed. Given your example, you can code your solution in Keyman as follows:

'b' + 'a' > context 'a'
+ 'a' > 'c'


'b' + 'a' > 'ba'
+ 'a' > 'c'

More generally, you can use a store:

store(cons) 'bcdfg'

any(cons) + 'a' > context 'a'
+ 'a' > 'c'


Thank you.
Now I understand it better.

1 Like