Your task is to create a program will transform each letter of a text typed on a AZERTY keyboard to the equivalent on a QWERTY keyboard, using the same keystrokes.
Example: Hello; Zorld1 => Hello, World!
List of character to convert:
A <=> Q
Z <=> W
, => m
? => M
M => :
1 => !
9 => (
; => ,
§ => ?
0 => )
) => -
ù => '
Test cases:
Input: This is q text zritten zith q QWERTY keyboqrd:
Output: This is a text written with a AZERTY keyboard.
Input: Hello zorld in PythonM print9ùHello; Zorld1ù0
Output: Hello world in Python: print('Hello, World!')
Input: Zikipediq is q free online enciclopediq
Output: Wikipedia is a free online enciclopedia
Input: Progrq,,ing puwwles qnd code)golf
Output: Programming puzzles and code-golf
Input: Zhy ,y lqyout hqve szitched to QWERTY §
Output: Why my layout have switched to AZERTY ?
This is code golf, so the answer with the shortest byte count win.
A => Q
,W => Z
, etc. \$\endgroup\$