On Linux (maybe only certain distros, not sure) the keys are different, but you can enable a Compose key and enable special character keybinds as well.
For example on Mint en–dash is "<compose> <minus> <minus> <period>" and em—dash is "<compose> <minus> <minus> <minus>"
I do a similar thing on Linux with a feature called the "Compose Key". I press the compose key (caps-lock on my keyboard), and then the next couple of keypresses translate into the proper character. "a -> ä, ~n -> ñ, etc.