đŸ Archived View for idiomdrottning.org âș dead-space captured on 2024-05-12 at 16:04:15. Gemini links have been rewritten to link to archived content
âŹ ïž Previous capture (2024-02-05)
-=-=-=-=-=-=-
Today I learned that the Finnish keyboard layout (also known as the Swedish keyboard layout) doesnât have backticks, tilde or carets. You have to compose them from dead+space.
Pipes, brackets, braces, backslash, at-sign and dollar-sign are there, but they are all on a secondary âAlt Graphicsâ layer. I mean, I can arguably understand why they didnât want a dollar sign on the main board.
Meanwhile the main layer has ever-useful keys like €, § and Âœ. Uh. Thanks, Obama.đ
Iâm trying to set up the Atreus programmable keyboard.
Now, normally I use a US QWERTY keyboard that I set in software to be US Dvorak. I use compose sequences and Emacs Leim to be able to type non-ASCII chars like ć and Ă„. The latter I need to type very often since I have to deal with Swedish peeps on the reg.
Since itâs all set in software I can do anything⊠as long as Iâm at my own cozy home computer.
Before I got used to the compose sequences, I even used my own layout (basically US Dvorak + AltGr, and then Ă„, Ă€ and ö on the AltGr layer for, I donât remember exactly but I think it was on a, o and e.)
Works great. Only drawback is when you use Android or Pandora or other weird devices where setting a custom layout is a total pain.
With the Atreus, since you can set layout on the keyboardâs microcontroller, I was like âthis is great, I can finally type on my Android tablet, I can just set it to a normal plain vanilla US Qwerty keyboard and do everything via Chrysalis.â
Until I realized that wait. Thatâs not how keyboards work. They donât magically send a letter like e or Ă„. They send a keycode.
That was the story as of last time.
Then today, a week later, I realized that huh⊠If I instead of basing it on US Qwerty, I can base it on some other widely available layout, like Finnish/Swedish. Swedish layout is available for hardware keyboards on Android! I was like, âthis is great, I can set it to behave like normal US dvorak on the base layers then stash those dork characters like Ă„ or Ă€ on some half-forsaken layer and only have to type them when absolutely necessary!â
That approach started out amazing until I started actually implementing the new layout. I realized that on the Atreus, you canât map shift keys differently than non-shift keys. Since keys like single quote (with shift for double-quote) and semicolon (with shift for colon) just doesnât exist on the Swedish layout, I canât âreconstructâ them by setting the non-shifted version to ; and the shifted version to : for example.
But pretty quickly I figured out a workaround to this. I donât need to actually have shift keysâI can have âshiftâ keys that really switch to layer, I dunno, four or something. That would solve it. I was like, âthis is great, I can just do the layer #0 key emit the keycode that on fi renders as ; and on layer #4 (a.k.a. âshiftâ-ed) emit :.â
And then I got to the backtick/tilde key. For me a key that I always think of as the âQuakeâ keyâwasnât it the key to bring up console in that game? I barely remember 90s stuff.
Now, neither backtick nor tilde even exist anywhere on the Swedish keyboard! Thereâs no keycode that corresponds to it!
I mean, programming languages, and markup languages, are weird. They are like âletâs make use of all the krimskrams keys on the edge of the keyboard. â@#$%^&*ââgrawlix city, basically. They want stuff that doesnât occur in normal words but are easy to type because they were used in the 19th century for various purps. Now, I know in the Lisp community weâre not too worried about this ASCII art approach to computing. We have our unquote-splicing and thatâs basically it. But to be able to do shell script stuff Iâm gonna need tilde and backticks.â„ïž
I need to figure out if there is a widely available layoutâthat is, available on stock old Androidâthat has both ÄÀö and normal chars like tilde and backticks. Thatâs what Iâm gonna go look for next. Just wanted to post this liâl progress report to sort out my thoughts and all the times I was like, âthis is greatâ and then not so great.â„ïž
There is a US qwerty layout that does it allâ„ïž Itâs called US-International. The standard in the Netherlands basicallyâŠ! Iâm like, âthis is great, Iâm just gonna base it on this!â
Atreus keyboard reviewâa.k.a. the previous chapter in this saga
I was like, âthis is greatâ but turns out that US intl on Android for some dumb reason donât have backticks and tildes. There is no layout that has both Ă„ and `. How any Swedish person ever used Unix is an unknown wonder. I am gonna have to roll my own.