And once I decided that it would be nice to place dashes, dots and quotes, "Christmas trees" in the right places. The following simplest script auto replaces a double hyphen on a dash, three dots on a dot and a double e on opening and closing quotes and puts the cursor between them (this combination in fairly fresh versions of autohotkey will work only in the Russian layout, the letter e is selected, because Quotes are located in the English layout). The advantage of this method is that the insertion of characters does not require resorting to modifier keys.
Actually, the replacement rules: ::--::— :*?:... ::…{space} :o:::«»{Left}
PS: Could you tell me a similar solution for Linux?