diff options
Diffstat (limited to 'kanata')
| -rwxr-xr-x | kanata/chords.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kanata/chords.py b/kanata/chords.py index 38ab562..7b6fbb2 100755 --- a/kanata/chords.py +++ b/kanata/chords.py @@ -3,6 +3,7 @@ chord_data = { "praw": "prawdopodobnie", "pro": "probably", + "com": "co masz na myśli", } output = "(defchordsv2-experimental\n" @@ -12,11 +13,19 @@ for keys, macro in chord_data.items(): first_char_macro = macro[0] # The rest of the macro characters are used in (unshift x) - macro_formatted = " ".join([f"(unshift {char})" for char in macro[1:]]) + macro_formatted = "" + for char in macro[1:]: + if char == " ": + macro_formatted += "(unshift spc) " + else: + macro_formatted += f"(unicode {char}) " + + macro_formatted = macro_formatted.strip() release = "all-released" - chord_line = f" ({keys_formatted}) (macro {first_char_macro} {macro_formatted}) 75 {release} (arrows)\n" + chord_line = f" ({keys_formatted}) (macro {first_char_macro} { + macro_formatted}) 75 {release} (arrows)\n" output += chord_line output += ")\n" |
