geekhack

geekhack Community => Ergonomics => Topic started by: lydell on Fri, 06 June 2014, 15:22:26

Title: Do you type using non-latin characters? Please enlighten me!
Post by: lydell on Fri, 06 June 2014, 15:22:26
Do you type in Russian, Greek, Chinese or any other language that requires lots of characters not present in the standard en-US QWERTY layout? Tell me all about it! Stop reading this post if it gets too long, too technical or too specialized. You can still reply to what you’ve read so far (like up to this sentence :) ).

For almost all of my life, I’ve been using the Swedish version of the standard en-US QWERTY layout (henceforth just called “the en-US layout”), like most swedes do. In a nutshell, it is exactly like the en-US layout, except that the “å”, “ä” and “ö” letters have been shoved in and lots of punctuation characters have been shuffled around. Using this layout, you can type in Swedish, English, German, Spanish, French, etc. So most swedes use the sv-SE layout and nothing else. So I have very little experience from switching between layouts.

Here are some specific questions I’m interested in:


The reason I’m asking is that I’m one of the authors of the VimFx (https://addons.mozilla.org/en-US/firefox/addon/vimfx/) Firefox extension, which adds vim-like keyboard shortcuts to Firefox. I’m trying to improve the keyboard layout support for it. Currently it only works best with the en-US layout (because we rely on the sucky “event.keyCode”, in case that means anything to you).

Thanks to Firefox 29 we now have the possibility to make things better (through “event.key”). We can now get the exact character that your keypress would produce. That would make the following possible, for example:


The same is true for any user who uses a national layout that shuffles around the punctuation keys and adds a few national letters. So what’s the problem?


So a solution I’m thinking is that you should be able to specify a keyboard layout in VimFx. Choosing “auto” as the layout would use “event.key” like I talked about above—VimFx would use the character that would be typed by your keypress, depending on your current layout. Choosing “en-US” as the layout would map each physical key (one can determine which physical key was pressed using “event.code” (in Firefox 33, when it comes)) to the character that layout would produce, regardless of your current layout. Choosing “en-GB” would map each key according to the en-GB layout. “ru” to the a Russian layout etc. If the user’s layout isn’t listed, he could define it himself, and ask for it to be added to VimFx.


As a user of multiple layouts, do think the above is a good solution?
Title: Re: Do you type using non-latin characters? Please enlighten me!
Post by: TheSoulhunter on Sat, 07 June 2014, 04:08:33
I use US layout with some tweaks...

SHIFT + CTRL + a/u/o -> Ä/Ü/Ö
CTRL + a/u/o/s -> ä/ü/ö/ß
CTRL + -/=/` -> ±/≠/°
CTRL + e/y -> €/¥
CTRL + 2/3 -> ²/³
Title: Re: Do you type using non-latin characters? Please enlighten me!
Post by: alec on Mon, 09 June 2014, 01:58:21
I live in Estonia
Default layout is et-EE, very similar to swedish, adds an õ key right of ü

But I am russian, so I need to type in cyrillic layout (ru-RU). Its nothing like qwerty, almost no overlap.
From young age I am very used to Alt-Shift shortcut for switching layouts.

Punctuation and symbols partly overlap between ru-RU and en-US, which presents another problem, as et-EE is more like sv-SE, so there is less overlap between ru-RU and et-EE.
Shortcuts like Ctrl-A Ctrl-X Ctrl-C work with same physical keys, no change there. Muscle memory intact
Never used vim, assume it will use same keys as well (so hjkl is ролд)
Don't know about VimFx, it could be dependent on actual characters, then it would be necessary to use english layout.

All cyrillic keyboards have both en-US (or et-EE in our country) and ru-RU labels on them. So you will see the necessary keys.
I don't need it, as I touchtype both.

Whats even more confusing, as a programmer I find en-US more useful than et-EE, symbols are more accessible. So sometimes I have to switch between 3 quite different layouts :)

as for the Greek quuestion, sure he could use sv-SE, because it is what is present on local machines. But for oneself he would buy a Greek-US keyboard. I doubt Greek-SE is available much :)
Title: Re: Do you type using non-latin characters? Please enlighten me!
Post by: vvp on Mon, 09 June 2014, 03:45:23
One option is US layout with with a Compose Key (http://en.wikipedia.org/wiki/Compose_key).
Title: Re: Do you type using non-latin characters? Please enlighten me!
Post by: lydell on Wed, 25 June 2014, 13:09:40
I use US layout with some tweaks...

SHIFT + CTRL + a/u/o -> Ä/Ü/Ö
CTRL + a/u/o/s -> ä/ü/ö/ß
CTRL + -/=/` -> ±/≠/°
CTRL + e/y -> €/¥
CTRL + 2/3 -> ²/³


How does this work with keyboard shortcuts, such as shift+ctrl+a and ctrl+e?



Shortcuts like Ctrl-A Ctrl-X Ctrl-C work with same physical keys, no change there. Muscle memory intact

Thanks, that’s good to hear.


Never used vim, assume it will use same keys as well (so hjkl is ролд)

vim actually uses the actual keys you type, so if you type ролд, hjkl will _not_ be activated, because you didn’t type hjkl (even though hjkl would be one the same physical keys if you’d use the en-US layout).


Don't know about VimFx, it could be dependent on actual characters, then it would be necessary to use english layout.

As a user of multiple layouts, wouldn’t you think that sucks having to switch to the en-US layout all the time to browse the web? For example, imagine writing a forum post in Russian. While you do so, you need to visit several other web pages to look for information, take quotes and make links. Wouldn’t it suck having to constantly switch between en-US and ru-RU?


All cyrillic keyboards have both en-US (or et-EE in our country) and ru-RU labels on them. So you will see the necessary keys.
I don't need it, as I touchtype both.

Thanks, that’s absolutely information I was looking for!


Whats even more confusing, as a programmer I find en-US more useful than et-EE, symbols are more accessible. So sometimes I have to switch between 3 quite different layouts :)


This confirms my suspicion that people use all sorts of combinations of keyboard layouts :)

as for the Greek quuestion, sure he could use sv-SE, because it is what is present on local machines. But for oneself he would buy a Greek-US keyboard. I doubt Greek-SE is available much :)

That’s a good point that people might want both their layouts to be printed on the key caps. I hadn’t thought about that before. However, in this specific case, Greek-SE might work just fine, since:

Quote
The usual Greek layout follows the U.S. layout for letters related to Latin letters (ABDEHIKLMNOPRSTXYZ, ΑΒΔΕΗΙΚΛΜΝΟΠΡΣΤΧΥΖ, respectively), substitutes visually or phonetically similar letters (Φ at F; Γ at G) and uses the remaining slots for the remaining Greek letters: Ξ at J; Ψ at C; Ω at V; Θ at U).
(http://en.wikipedia.org/wiki/Keyboard_layout#Greek (http://en.wikipedia.org/wiki/Keyboard_layout#Greek))

And the sv-SE layout follows the US layout, too. But let’s not get side-tracked by this specific example :)



In summary, thanks for your detailed answer! It helps a lot!
Title: Re: Do you type using non-latin characters? Please enlighten me!
Post by: Kmynis on Sat, 28 June 2014, 10:01:37
I used to use ĄŽERTY(Lithuanian layout) when I lived back home.

One difference is the num row, which is ąčęėįšųū90-ž. So a TKL board for people who use this layout is a no-no. Well, I had to use it for a few occasions but using ALT+SHIFT all the time was annoying.
Another sucky thing is that if you want to be proper and official, you have to use a different set of quotation marks like „Word“ instead of "Word". Now the first one is achieved with ALT+num combinations so it is very inconvenient. I used to copy those into the clipboard and paste whenever needed.

In this day and age, the majority does not give a damn about the proper grammar, so people use latin letters that look the most similar to the lithuanian ones e.g. ą-a,č-c. Some people do give a damn, but their laptops don't have a numpad and they can't sacrifice the numbers. There are other reasons why ąžerty didn't find it's way into peoples homes but I won't mumble about them.

And since there are a lot of russians, you usually get an EN/RU/LT keyboard which looks too messy for my taste. Pretty much every alpha has at least two characters...

Title: Re: Do you type using non-latin characters? Please enlighten me!
Post by: Lammie on Sat, 28 June 2014, 13:23:05
I type both Simplified Chinese and Cantonese Chinese on my QWERTY keyboards. Using the Pinyin input method..