From user suggestion, along the lines of how Microsoft Word works.
This would involve a number of language-specific substitutions (and probably some shared ones); for English, I believe it would at least involve:
- If a user types the character string 'foo "bar', on the pressing of the 'b' it would convert the '"' character to a an “.
- If a user types the '"' character whilst in a string that has an “ in it earlier, convert the character to an ”.
- If a user types in ' - ', on the pressing of the space character after the hyphen, covert the hyphen to an &endash;.
- If a user types in ' -- ', on the pressing of the space character after the second hyphen, covert the two hyphens into one &emdash;.
Worth considering as a nice to have; this would probably want to be both site-configurable (is it available at all; if yes, is it default-on), and user-configurable.