Sorry for the tangential reply, but can someone explain why the backslash and pipe key comes in a U.S. and non-U.S. variety? Just morbid curiosity here. After learning about Han Unification I hold standards making bodies for all things “character” in very low esteem.
As I understand things, it’s because initially non-U.S. keyboard variations reused that key (and scancode) for other symbols in order to add things used in that locale that weren’t typically used in the U.S. Eventually, though, there was need/demand for the ‘\’ and ‘|’ characters in those layouts as well. In order to preserve compatibility they had to create a new scancode for it.
For example, if I switch my OS keyboard layout to one from the U.K. I get ‘#’ and ‘~’ for backslash and pipe (respectively). Those symbols got moved there because they put ‘£’ on shift-3 and ‘\’ on tilde. Other changes to a U.K. keyboard layout include putting double-quote on shift-2 and at-sign on shift-single-quote. Many of these “oddities” go back to national variations of physical keyboard layouts.
Edit: escape the single backslash so it displays - using another backslash, of course
Having an easy visual reference of the US layout printed on my keyboard for ~3 months has given me plenty of cause to contemplate how ridiculous the UK PC layout is.
Why shuffle half a dozen characters around, seemingly at random? Why put ' and " on different keys? What’s the history behind wasting half of a physical key on ¬, of all things? I’d really love to know what the original designer was thinking…
Originally there were many layouts, not just two. The UK ended up gravitating towards one standard, and the US to another. In the early days of ASCII, the UK repurposed the # code point for £, and the location stuck even after £ got its own code point and # was restored to the UK keyboard. That meant # had to go somewhere else, and so on and so on. And the locations of @ vs " were also nonstandard up until the 1980s. There was originally another common keyboard trope where @ was on a key by itself to the right of P. Have a scroll through some of these gems: https://www.pcworld.com/article/139100/the_10_worst_pc_keyboards_of_all_time.html