News for hackers. Stuff that matters.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by j1elo on Thursday April 08, 2021 @05:45PM (#26744186)
As a kid, I remember being utterly confused, when most games with a console would have the key ` to open it. WTF is the key ` and where is it?

For a kid it wasn't that easy to understand that there are such things as different keyboard layouts. Turns out that ` is a single key press to the left of the '1', in English, while it is a bit obscure character to write in other languages. In mine, you have º and ª in that place... so no ` at sight.

But game devs assume that ` is just a keypress away in a confortable area of the keyboard, and it became the de facto way to open in-game consoles. Oh well.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by Macha on Thursday April 08, 2021 @05:57PM (#26744340)
Also programming languages used it as an alias for exec. Even if you have a ` key, on some layouts (such as the Irish keyboard layout) it can be a weird key to type due to dead key behaviour, often requiring multiple presses to respond and eating the next keypress.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by johannboehme on Monday April 12, 2021 @07:42AM (#26778258)
yeah.. i never use js template strings because of that frigging unusable backtick character. Ist so hard to type on my layout, that its just not worth it -_-
Re:Why keyboard shortcuts don't work on non-US layouts and h... by hutzlibu on Thursday April 08, 2021 @09:29PM (#26745829)
I remember that too.

But the console you only open sometimes.

But everyday(!), I have to use {[(| ... and they are just awkward to reach on a german layout.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by jillesvangurp on Friday April 09, 2021 @04:51AM (#26748179)
Last time I needed a new laptop (my old one died) I took a 8 hour train to travel to the Netherlands from Munich instead of back home to Berlin (where I live) just so I could visit a store that has laptops with a non German layout (US international). The only way to get a non German keyboard in Germany is to order them online and wait for a week+ (typically) for that to ship internationally (because they don't stock these locally). That was clearly unacceptable. So, 8 hour train ride it was because I needed a replacement in a hurry and I got to visit my parents. Win win.

The alternative would have been buying a laptop with literally every key I care about in the wrong place in some local store. It's great that alternate keyboard layouts are available to those that actually need/want them but it really sucks that you get locked into these choices just because of where you are. Local shop owners don't seem to have any commercial sense whatsoever. Here's a genius idea in a city full of expats (Berlin, Munich), you know, maybe stock a few laptops with international keyboards. Even the local Apple store doesn't do that. And any time you go there, a very meaningful percentage of the customers is clearly not German.

Every non German buying a German keyboard because they have to is basically an unhappy customer. I know loads of foreigners here moaning about German keyboards. I've never met a non German that actually prefers having keys in the wrong place. That's not a thing; it's bloody annoying. It's equally annoying in other countries where expats live. E.g. French keyboard layouts are worse, AZERTY instead of QWERTY. At least in Germany you get QWERTZ (Y and Z are swapped). I've actually met quite a few German programmers that remap their keyboards so they can program without having to use four fingers to produce a single key-press.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by bbarn on Friday April 09, 2021 @05:28AM (#26748417)
I moved to Iceland a year ago, and brought my PC and my laptop with me. I am confounded by icelandic (nordic in general) keyboards. I can understand their use for a non-technical person, but even keys such as @ are obscured behind "Alt Gr" which is a secondary right side only alt-key? And the position of braces, brackets, and parantheses is also clearly an afterthought. Obviously, years of muscle memory are hard to replace, so I've continued to use my US keyboards.

But there's a problem. I want to spell people and places' names correctly, and on my PC that means I have to swap input locales often in order to type proper icelandic characters like ð, ö, þ, æ, í etc. This is annoyingly hard on a keyboard that doesn't support them natively! I will give apple some credit here - it's incredibly easy and intuitive to type foreign characters on a US keyboard just by holding down 'i' for example, if you only occasionally need to use them. Windows requires you to either learn the old-school way of holding alt, and typing the ascii code on the number pad, or hot-swap input languages. I know German uses far fewer unique characters, but how do you cope with that problem when you need German characters like.. sharp S, oumlaut, etc?

Re:Why keyboard shortcuts don't work on non-US layouts and h... by drwu on Saturday April 10, 2021 @02:41PM (#26763860)
I am a non German, but I spent more time using German layout than the US one. The killer feature of German keyboard: it is so natural for vim (and IDEs with vim emulation)

- the registers "+, "*, "~ are on the same key

- `,` and `;` for backward and forward searching are on the same key

- the macro operations `q` and `@` are also on the same key

- `^` for the line beginning is the key left to `1`, which also makes sense for `Ctrl+^` to switch recent buffers.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by akalsz on Friday April 09, 2021 @05:34AM (#26748455)
I would guess that the amount of people who care about which keyboard layout they use, don't use the local keyboard layout, and require appropriate labeling of keys (i.e. don't touch type) at the same time isn't that high. I can imagine how annoying it must be to be in that group, though.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by jillesvangurp on Friday April 09, 2021 @06:39AM (#26748802)
There are few million people in Berlin. A couple of hundred of thousand of them are Turkish or Russian minorities. And another few hundred thousand expats are working in the tech industry from all over the world. Most coffee shops in my area don't even have German speaking staff; much to the annoyance of some of the locals.

Some, of those people buy locally and suffer the bad experience of dealing with a sub optimal keyboard. But a lot of them take their money abroad. Local businesses are missing out on that, which IMHO is kind of stupid.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by f1refly on Friday April 09, 2021 @01:02AM (#26746904)
You might find https://neo-layout.org very useful for daily use. They provide a version that bolts the utility layers onto qwertz as well.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by Blikkentrekker on Friday April 09, 2021 @05:33AM (#26748443)
I think this is an interesting cultural difference.

There is such a thing as a Dutch keyboard layout and keyboard, but almost no one in the Netherlands uses them, as well as configuring one's system to be in Dutch, because it leads to such problems as described.

My entire system is configured in U.S. English, though most of the spelling I use is closer to U.K. English, but I find that it leads to the least problems in practice.

If it were configured to be Dutch, then troubleshooting would be a mess. — this is a common mentality in the Netherlands to never have any electronics or website configured to be Dutch, even when the option allow itself.

Special characters are usually input using the U.S. International layout which which allows one to type, say, “schöne scheiße”. quite easily.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by raverbashing on Friday April 09, 2021 @03:36AM (#26747684)
Yeah, sorry but the continental European keyboard maps with those keys in the number row suck. There's no ifs or buts about that.

I have learned on the US keyboard and keep using it more or less.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by gerdesj on Thursday April 08, 2021 @07:29PM (#26745043)
We all suffer from character blindness of some sort. For you: ` - that thing isn't formally defined in English either as far as I know.

In English we don't have any diacritics. We do have a few extra symbols, beyond the alphabet for certain situations. Quotations ... " ... meh should be 66 99 and that will be fixed up by DTP software. We use ' to denote a dropped letter - abbreviation. There are a few others. I won't dwell on "thorne" and ligatures and other oddities.

I do not know of any reason to write ` - it is not an apostrophe, which is: '. What is it?

Re:Why keyboard shortcuts don't work on non-US layouts and h... by abrowne on Thursday April 08, 2021 @09:45PM (#26745900)
ASCII has a limited number of characters, so they designed it so some do double-duty. The grave could be a grace accent if you backspaced over a letter, or it could be an opening quote mark. The apostrophe was the reverse: it could be the acute accent. The fonts were drawn so these characters were angled enough to be accents, but also looked like quote marks. The apostrophe wasn't a vertical prime sign. Angle brackets and greater/lesser-than also double-up.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by velosol on Thursday April 08, 2021 @09:15PM (#26745760)
It's the grave accent - pretty rare in English outside of loan words from other languages.

https://en.wikipedia.org/wiki/Grave_accent#English

Re:Why keyboard shortcuts don't work on non-US layouts and h... by alias_neo on Friday April 09, 2021 @03:31AM (#26747648)
Touché
Re:Why keyboard shortcuts don't work on non-US layouts and h... by cannabis_sam on Friday April 09, 2021 @05:38AM (#26748479)
I am not claiming to be a learnèd man, but I believe that is an acute accent, not a grave accent.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by alias_neo on Friday April 09, 2021 @06:10PM (#26756815)
You are absolutely correct. Je suis désolé.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by remexre on Thursday April 08, 2021 @07:45PM (#26745164)
I think back in the day (typewriters thru... 90s?) you wrote quoted text `like this.'
Re:Why keyboard shortcuts don't work on non-US layouts and h... by fasquoika on Thursday April 08, 2021 @10:10PM (#26746019)
This is how both TeX and m4 do quoting by default so presumably common when they were created (mid-eighties and early seventies respectively IIRC)
Re:Why keyboard shortcuts don't work on non-US layouts and h... by kergonath on Friday April 09, 2021 @04:10AM (#26747899)
It’s an ASCII approximation of the proper typography for single quotes (except when you’d use inverted quotes for some reason, not sure how common it is in English).

Similarly, LaTeX uses `` and ‘’ for double quotes because the opening and closing symbols are not the same in properly typeset texts.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by CamTin on Thursday April 08, 2021 @08:26PM (#26745435)
This still seems to be "house style" for a certain brand of "old school" open source mailing list.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by Semaphor on Friday April 09, 2021 @12:24AM (#26746695)
Note that ' is not technically a proper apostrophe which would be ’ instead. It only came to be thanks to typewriters having limited character space.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by gibspaulding on Thursday April 08, 2021 @08:14PM (#26745358)
> What is it?

Not sure if you meant this literally, but I've seen it refered to as a back tick. As to what it's for, I have no idea either. I can't recall ever seeing it outside of programming.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by chmod775 on Thursday April 08, 2021 @09:03PM (#26745697)
On a mechanical typewriter you'd have a button that would "revert" the position you'll write to by one character - also known as backspace.

So if you pressed backspace followed by "`", you'd give the last character a grave accent.

That's my theory for it being called backtick anyways.

Nowadays you could configure your input method to make that key give the next character a grave accent

Re:Why keyboard shortcuts don't work on non-US layouts and h... by Dylan16807 on Thursday April 08, 2021 @10:51PM (#26746205)
I'm pretty sure it's called "back" because of the direction it tilts.
Re:Why keyboard shortcuts don't work on non-US layouts and h... by gerdesj on Friday April 09, 2021 @07:39PM (#26757493)
My mum had a mechanical typewriter and yes it would do that. However English has no formal diacritics. We do have shit loads of borrow words from French and others that do have them.

If the back tick on the en_GB keyboard is a sop for the grave accent, then why do we not have an acute accent available as well? or a cedilla for that matter?

Re:Why keyboard shortcuts don't work on non-US layouts and h... by 908B64B197 on Friday April 09, 2021 @01:34PM (#26753486)
` is bad because it looks like '.

A lot of programming resources I've seen have an explicit explanation that the backtick is a different character than the single quote. Better yet, some fonts make the two almost identical.

Re:Why keyboard shortcuts don't work on non-US layouts and h... by bradrn on Thursday April 08, 2021 @09:17PM (#26745774)
> In mine, you have º and ª in that place...

Out of curiosity, what keyboard layout do you use?

Re:Why keyboard shortcuts don't work on non-US layouts and h... by aurelianito on Thursday April 08, 2021 @11:52PM (#26746498)
Don't know about parent, but latin-american keyboard is like that.