Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
v-chernys committed Jan 30, 2022
1 parent 9f2a9c7 commit e13ee76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ There are also additional options for transcoding the selected text (case change
| ----- | ----- |
| Break | replace all English characters with Cyrillic characters and vice versa; set correct layout |
| Ctrl-Shift-PageUp | change the case of each character to the opposite |
| Win-PageUp | all characters - uppercase; set CapsLock on |
| Win-PageDown | all characters - to lowercase; set CapsLock off |
| Win-PageUp | change all characters to uppercase; set CapsLock on |
| Win-PageDown | change all characters to lowercase; set CapsLock off |
| Alt-Shift-\\ | in the text, replace all right slashes (/) with left slashes (\\) |
| Alt-Shift-] | remove all square brackets (\[ and \]) in the text |

Expand All @@ -30,7 +30,7 @@ first all uppercase characters are listed, then all lowercase characters;
2. line `g` lists the symbols of the Russian layout in the same order.
3. let us concatenate the first array to the second one (`fg=f+g`) and the second one to the first one (`gf=g+f`), then there will always be antagonist characters in the same places;
therefore for recoding we look for the place of the replaced character in the first array `fg` and, using the obtained index, we get the replacement character from the second array `gf`.
```
```ahk-script
static f := "QWERTYUIOP{}ASDFGHJKL:""|ZXCVBNM<>?qwertyuiop[]asdfghjkl;'\zxcvbnm,./``~!@#$`%^&"
static g := "ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭ/ЯЧСМИТЬБЮ,йцукенгшщзхъфывапролджэ\ячсмитьбю.ёЁ!""№;`%:?"
fg = %f%%g%
Expand Down

0 comments on commit e13ee76

Please sign in to comment.