News for hackers. Stuff that matters.
Re:The plague of emoji insertion in French docs by mrzool on Monday November 14, 2022 @12:31PM (#33597625)
As multilingual user constantly switching between 3 languages, that's why I fully committed to the US_intl keyboard layout a while ago and ditched the abomination that is QWERTZ. Took a while to get used to, but overall it has been a very noticeable improvement. One layout to cover all languages, no more constant switching.
Re:The plague of emoji insertion in French docs by WA on Monday November 14, 2022 @12:35PM (#33597712)
How do you type ä ö ü ß ?
Re:The plague of emoji insertion in French docs by rpadovani on Monday November 14, 2022 @12:41PM (#33597827)
Personally, I don't. I live in Muenchen, not München. When strictly needed, CTRL+C/CTRL+V from a Google search makes the trick.

When writing email/docs, autocorrector for the win.

Same thing in Italian: `e instead of è. Although, the German replacement is cleaner, I'd say.

Re:The plague of emoji insertion in French docs by kace91 on Monday November 14, 2022 @12:44PM (#33597887)
> I live in Muenchen, not München

As someone from Espanya, I welcome you to the club.

Re:The plague of emoji insertion in French docs by jobigoud on Monday November 14, 2022 @01:33PM (#33598684)
Interestingly that's the Catalan spelling.
Re:The plague of emoji insertion in French docs by kace91 on Monday November 14, 2022 @07:12PM (#33603381)
Not that you guys have it any better (with the ç and two, rather than one, sets of accent marks)
Re:The plague of emoji insertion in French docs by jobigoud on Tuesday November 15, 2022 @05:22AM (#33607436)
Oh we have more than two sets of accents, we have acute, grave, circumflex and dieresis. Spanish also has ¨ I think, like in güero or piragüismo.

We don't use the accents in the same way as Spanish, Portuguese, Catalan and Italian, it doesn't mark stress.

Re:The plague of emoji insertion in French docs by Freak_NL on Monday November 14, 2022 @12:46PM (#33597925)
> I live in Muenchen, not München.

That's… quite certainly not an opinion shared with all of your fellow inhabitants.

Re:The plague of emoji insertion in French docs by rpadovani on Monday November 14, 2022 @05:43PM (#33602416)
You are right, but this is the internet, and the official website for the city is https://www.muenchen.de/, so ¯\_(ツ)_/¯
Re:The plague of emoji insertion in French docs by Asraelite on Monday November 14, 2022 @01:03PM (#33598176)
You might want to consider using a keyboard layout that supports diacritics. I use UK Extended Winkeys for example, where I can do AltGr+[ followed by a letter to get it with a diaeresis, allowing me to type äöü. It supports almost every European language character.
Re:The plague of emoji insertion in French docs by keybored on Monday November 14, 2022 @04:07PM (#33601066)
I like that. Makes me wish I could just input all my text in Emacs which would make mapping such things to the “proper” sequence of strings very simple.
Re:The plague of emoji insertion in French docs by jorge-d on Monday November 14, 2022 @12:41PM (#33597819)
On a mac keyboard you can just long-press?
Re:The plague of emoji insertion in French docs by kayodelycaon on Monday November 14, 2022 @01:32PM (#33598669)
I've never had that work reliably for me, across three completely different Mac installs. :/
Re:The plague of emoji insertion in French docs by bombcar on Monday November 14, 2022 @01:42PM (#33598824)
It works in "most places" but not in others (like (some) terminals, for example).

    defaults write -g ApplePressAndHoldEnabled -bool true
Might help if it got turned off.
Re:The plague of emoji insertion in French docs by grishka on Monday November 14, 2022 @01:40PM (#33598800)
This kind of thing usually only works in native apps that use NSTextView for text input, which is unfortunately not all of them.
Re:The plague of emoji insertion in French docs by Symbiote on Monday November 14, 2022 @01:49PM (#33598910)
That's fine if you live elsewhere and type your Danish colleague Lærke's name once in a while, but if you speak a language using non-ASCII characters it feels rather slow to long-press every few characters.

> Danmark, officielt Kongeriget Danmark, er et land i Skandinavien og en suveræn stat. Det er den sydligste af de skandinaviske nationer, sydvest for Sverige og syd for Norge, og det grænser op til Tyskland mod syd. Grønland og Færøerne indgår også i den danske stat som rigsdele med selvstyre indenfor Danmarks Rige (Danmarks forhold til rigsdelene kaldes Rigsfællesskabet).

Eight Æ+Ø+Å in 382 characters.

Re:The plague of emoji insertion in French docs by Cockbrand on Monday November 14, 2022 @12:38PM (#33597765)
⌥u creates the two dots, then you press the key for the vowel to put underneath.

⌥s creates the ß.

(Both obviously only applicable for Macs)

Re:The plague of emoji insertion in French docs by mrzool on Monday November 14, 2022 @12:42PM (#33597835)
That would be… inconvenient. That’s not how I use it. I type "a to get ä and 'a to get à. If I want to type actual quotes followed by a vocal I need to “confirm” the quotes with space before typing the vocal.
Re:The plague of emoji insertion in French docs by cwillu on Monday November 14, 2022 @12:40PM (#33597801)
Applicable to linux if you set the mac qwerty keyboard layout, which is surprisingly convenient.
Re:The plague of emoji insertion in French docs by 998244353 on Monday November 14, 2022 @12:43PM (#33597853)
Not GP but I use a similar setup. I have an "extended" US keyboard layout where AltGr+(location of character on native keyboard layout) types the character. For example, AltGr+[ is "ü". I find this more convenient than the compose-like approaches suggested elsewhere in this thread.

I use it because programming language syntax is mostly ergonomic only on US-like layouts, e.g. typing "{" causes a lot of strain if you have to do it on every other line.

Re:The plague of emoji insertion in French docs by Freak_NL on Monday November 14, 2022 @12:44PM (#33597885)
There's loads of ways. Dead keys is one, the compose key is another suitable one for multilingual folk. I can write ä ö ü ß pretty much automatically with the compose key on a US layout, as well as any é ë ê ü I might need in Dutch.

In the Netherlands letters with diacritics don't even have their own key (Dutch computers tend to use US plus €).

Re:The plague of emoji insertion in French docs by phh on Monday November 14, 2022 @12:46PM (#33597911)
Using xkb map us(intl-unicode) it's a then alt gr + shift + " (I'm not totally sure if that's the correct, and ß is alt-gr + s.
Re:The plague of emoji insertion in French docs by Iv on Monday November 14, 2022 @12:48PM (#33597970)
French on US intl here ä ö ü ß are easy to make on such a setup but also the accented letters like é à ô or the infamous ç. It is even easier to type them in capital than it typically is on AZERTY (French keyboard) or QWERTZ (German one)
Re:The plague of emoji insertion in French docs by myself248 on Monday November 14, 2022 @01:01PM (#33598137)
Personally I use a compose-key on Linux and Wincompose on Windows, with SyncThing to keep my .XCompose file synchronized between machines when I add a custom sequence.

I mapped my Caps-Lock key as Compose, so I hit compose-a-" to get ä, and so on through the set. I've made customs for Ω and µ since I use those a lot and couldn't remember their default sequences. It's handy having ® and ™ on tap as well, and I get typographical niceties like ­— and … vs - and ...

Re:The plague of emoji insertion in French docs by number6 on Monday November 14, 2022 @01:05PM (#33598216)
AltGr+q; AltGr+p; AltGr+y; AltGr+s and Bonus: § (AltGr+Schift+s)

Once comited to muscle memory it's very easy

Re:The plague of emoji insertion in French docs by piva00 on Monday November 14, 2022 @01:09PM (#33598282)
I use US_Intl keyboard for Swedish and Portuguese and can type all of this without the need of special char keys: ä ö å - á à â ã. Just a mix of Opt+(u/a/e/i/n/`) and the next character I want with the diacritic.

Edit: and ß is just a Opt+s. It becomes quite logical after you get the hang of it.

Re:The plague of emoji insertion in French docs by markstos on Monday November 14, 2022 @01:10PM (#33598294)
On Linux I use the "altgr-intl" layout variation.

After pressing the right Alt key, AltGr, all of those characters are possible to type. Here's the layout:

https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/KB...

Re:The plague of emoji insertion in French docs by tapland on Monday November 14, 2022 @01:15PM (#33598369)
I swapped to us_intl as well full time a few years back (Swedish)

right alt + q = ä

right alt + w = å

right alt + s = ß

right alt + y = ü

It took a day or two to get a hang of it but it's such a relief not being constrained by everything being developed for US layouts

Re:The plague of emoji insertion in French docs by kayodelycaon on Monday November 14, 2022 @01:17PM (#33598406)
Not OP, but I have a Mac and use the "ABC - Extended" keyboard, which has a full set of diacritics. You type them by using the option (⌥) key and a letter to set the diacritics and then type the letter.

    ⌥u  e = ë

    ⌥w  e = ė
For example, the key sequence required to type Kayodé is:

    ⇧k  a  y  o  d  ⌥e  e
etc.
Re:The plague of emoji insertion in French docs by senand on Monday November 14, 2022 @12:32PM (#33597654)
Same here
Re:The plague of emoji insertion in French docs by AndriyKunitsyn on Monday November 14, 2022 @12:48PM (#33597963)
It may work for you, but there are users of languages that simply cannot be covered by QWERTY, and in these cases they would like from developers to simply fix their goddamn code, and bind to keys, not characters.
Re:The plague of emoji insertion in French docs by mrzool on Monday November 14, 2022 @12:51PM (#33598033)
You are correct. It works for me.
Re:The plague of emoji insertion in French docs by number6 on Monday November 14, 2022 @01:03PM (#33598186)
For me too, maybe we should containerize users
Re:The plague of emoji insertion in French docs by AndriyKunitsyn on Monday November 14, 2022 @02:24PM (#33599489)
They'll containerize themselves when they see basic shortcuts not working, no action necessary.
Re:The plague of emoji insertion in French docs by cryptonector on Monday November 14, 2022 @04:45PM (#33601640)
It works for you now.
Re:The plague of emoji insertion in French docs by GuB-42 on Monday November 14, 2022 @01:27PM (#33598581)
It is fine as long as you don't have to user other people computers.

I used a QWERTY keyboard in France for a while, but switching back and forth between AZERTY and QWERTY each time I went on someone else computer, which happened often, I had to switch, qnd it is qnnoying.

You can learn to touch type but keep in mind that not all layouts are the same, you can bring your own keyboard, change the mapping, etc... There are solutions, but it wasn't worth it for me, so I got back to that terrible AZERTY keyboard because that's what everyone has in France.

Re:The plague of emoji insertion in French docs by keybored on Monday November 14, 2022 @04:04PM (#33601020)
BYOK ;)
Re:The plague of emoji insertion in French docs by dfxm12 on Monday November 14, 2022 @01:29PM (#33598621)
Do you pick the "a for an umlaut? It seems like :a would be be typed less commonly than "a, so less need to confirm the punctuation.
Re:The plague of emoji insertion in French docs by mrzool on Tuesday November 15, 2022 @05:04AM (#33607295)
I didn't pick it, that's how the layout works out of the box. I agree that :a would be probably more convenient.
Re:The plague of emoji insertion in French docs by nier on Monday November 14, 2022 @01:29PM (#33598625)
That’s quite memorable. On the Mac I have to press option-u and then a, u, or o to get an ä, ü, or ö. Optionally holding the shift key to get an uppercase vowel with the diacritic.

option-` is for grave (è) option-i is for circumflex (é) option-n is for eñe (ñ) option-c is for cédille (ç)

When you called QWERTZ an abomination I simply had to upvote your comment.

Re:The plague of emoji insertion in French docs by bombcar on Monday November 14, 2022 @01:40PM (#33598792)
I used to be pretty good at those but now I just use the feature that works (almost) everywhere in Mac OS and iPhone - press and hold the character to get a little pop-up of options: møøśę

It's slow if you have to type in another language, but in English it's fast "enough" for words like résumé.

Re:The plague of emoji insertion in French docs by mrzool on Tuesday November 15, 2022 @05:02AM (#33607274)
I am on macOS as well and the diacritics I mentioned ("a → ä, `a → à) work out of the box with the "US International PC" layout. If I press ⌥a I get å with my layout.
Re:The plague of emoji insertion in French docs by juujian on Monday November 14, 2022 @01:31PM (#33598653)
Yup, did the same. And the layout I happen to work with also has a third layer (menu button) that includes äöüß--that was a glorious discovery.
Re:The plague of emoji insertion in French docs by mrzool on Tuesday November 15, 2022 @05:03AM (#33607290)
I do you enable the third layer? I don't have a menu button on my Mac.
Re:The plague of emoji insertion in French docs by grishka on Monday November 14, 2022 @01:38PM (#33598763)
I envy you for all your languages using Latin-based alphabets. I guess I'm stuck with two keyboard layouts for life because I need to be able to type in both Latin and Cyrillic.
Re:The plague of emoji insertion in French docs by c7b on Monday November 14, 2022 @01:39PM (#33598777)
For various reasons, I've been switching both in hardware and software between two different QWERTY (US and UK) and two non-English keyboard layouts for years (usually, I'll have multiple keyboard layouts configured, but I'll generally go with the one that is actually printed on the keys unless I really need a different one).

The funny thing is that for all the getting used to different layouts, the one thing that really trips me up all the time is the different hand positioning for Control+C on Mac vs PC. Luckily, you can change the modifier key bindings in MacOS independently from the keyboard layout. But yeah, shortcuts that assume everyone has a / or whatever key are a pain too.

Re:The plague of emoji insertion in French docs by keybored on Monday November 14, 2022 @04:05PM (#33601045)
I for some reason have a very low tolerance for dead keys. Two keypresses for one common letter becomes too much.

Thankfully I only need to write in two languages. With almost the same script.

Re:The plague of emoji insertion in French docs by cryptonector on Monday November 14, 2022 @04:44PM (#33601633)
Yes, this. Though I prefer the X11 compose sequence business where you type <Compose>'a to get á and so on. X11 compose sequences are a lot more intuitive than the Windows U.S. international keyboard because there's no ambiguities, so, for example, a cedille is just <Compose>,c whereas in the Windows U.S. international keyboard layout it's 'c -- X11 for the win here, as the latter is super a) counter-intuitive and b) conflicts with ć (U+0107).

Also, if you program or use a shell, then the Windows U.S. international keyboard layout is just unspeakably unbearable.

Re:The plague of emoji insertion in French docs by mrzool on Tuesday November 15, 2022 @04:58AM (#33607251)
> Though I prefer the X11 compose sequence business where you type <Compose>'a to get á and so on. X11 compose sequences are a lot more intuitive than the Windows U.S. international keyboard because there's no ambiguities, so, for example, a cedille is just <Compose>,c whereas in the Windows U.S. international keyboard layout it's 'c

That sounds pretty good indeed. Any idea how could I go about setting this up under macOS?

> Also, if you program or use a shell, then the Windows U.S. international keyboard layout is just unspeakably unbearable.

I have indeed a couple of little, weird problems when working in the terminal. That's inconvenient but still beats switching between 3 layouts 50 times a day.

Re:The plague of emoji insertion in French docs by cryptonector on Tuesday November 15, 2022 @11:38AM (#33611426)
> Any idea how could I go about setting this up under macOS?

Sorry, no idea, but I'd expect it to be possible on OS X. And I really want this for Windows, too, as I have to use it.

> I have indeed a couple of little, weird problems when working in the terminal. That's inconvenient but still beats switching between 3 layouts 50 times a day.

Oof, I can't get used to having to type '' to make one ', "" to make one ", `` to make one `, in the shell, in $EDITOR, etc. It's too painful. So I switch layouts as needed, and I hate it. Compose keys would be so much better!