A small python script to convert a text in english into such a gibberish that the characters correspond to the keys you would need to type if you were to type it in another keyboard layout that you want to get the feel of typing in, without having to learn it.
Well, if you have pain when typing and want to see if another layout can help you feel less pain when typing, (first of all, ask your doctor) then you can use this script to convert text to type it using the same keys you would use if you were using another keyboard layout. There are keyboard layouts like Dvorak, Colemak, and Workman, among others, that were designed to try to be more ergonomic than Qwerty-based layouts (usually, the ones computers sold in english speaking countries use)
You need to have the files: layout-converter.py and layouts.txt in a directory you have permissions to write to (because the text-converted.txt file will be written there). You need python3. Run the script like this: python3 layout-converter.py your_input_file then the script will create, or overwrite, a file named converted-text.txt Now you type the text in the converted-text.txt so that you can get the feel of typing it as if you were using the layout you want to taste.
The layouts files have a few popular keyboard layouts for english, but you can edit it to add your own layout for english if it isn't there (you can only add levels 1 and 2, level 2 is the symbols and letters pressed with shift). There's a file: layouts-iso.txt for layouts for iso type keyboards and a file: layouts-ansi.txt for layouts for ANSI type keyboards.
The format for each line in the layouts files is: <layout_name> <characters for each row of the layout, and then the characters for the level 2, the ones that would appear when you press the key with shift>
(use this character 'º' to represent the key that is right next to the right of the left shift and '²' to represent the same key plus shift)
(if your layout has dead keys, then you have to press that key twice ,or press the key and then space, in order to produce a version of the character that you can use in the layouts files.)