Alexei sat back. His heart was pounding. He typed "Rfr ltkf?" It became "Как дела?" He typed "Vj;yj" — it became "Можно" (Maybe). He typed a full sentence: "Gjcvjnhb rfr vj;yj ghjcnj gj xtnfr?" The script paused for half a second, then transformed it into: "Посмотри как можно просто по чинить?" (Look how easy it is to fix?)
He opened it, heart racing.
The code was 847 lines of Python. It used python-xlib to hook into X11's record extension. It listened to every key press, every key release. It maintained a buffer of the last 30 characters. It had a dictionary of 4,000 common Russian words and their English typo equivalents. punto switcher linux