The implementation of Colemak layout Window+Linux+Android


Title: ‘Implementation of Colemak Layout’ Subtitle: ‘A Geek Keyboard Layout’

tags: entertainment solution

preface

Most students use a QWERTY keyboard layout

And scientific research has shown that this design may not be the most efficient layout, or even deliberately designed to reduce the efficiency of typing, so why was it designed in the first place? About the detailed content of the historical story of the keyboard layout, you can refer to: Zhihu: what kinds of keyboard layout? What is the starting point for various layouts?

Today Xiaobian to introduce you to another layout

Colemak layout

This layout, according to the heat map, shows that most of the keys (such as the vowels A, O, E, I, U) are placed in the middle row of the keyboard to reduce finger movement and thus increase the efficiency of typing

Switch this way has a lot of layout, after small make up the sweat test and contrast, autohotkey is one of the best solution, because he is through the replacement of script for buttons, so you don’t need when using limited to input method, you can use colemak input English, also can use it to type in Chinese (pinyin input). It will be difficult at first, but if you keep typing for three weeks, I’m sure you’ll be fast enough to meet your normal typing needs.

Autohotkey is introduced

AutoHotkey is an automated software tool that automatically performs repetitive tasks through hotkeys, hot strings, or set conditions. AutoHotkey is an automated software tool that automatically performs repetitive tasks via hotkeys, hot strings, or set conditions.

For more details, please refer to AutoHotkey website or Chinese documentation

Autohotkey installed

Before using AutoHotkey, we need to download and install it

https://autohotkey.com/downlo…

After installation, there will be documentation, here we can look at the online documentation, because there is a specified language, can be translated into Chinese to read

How do I create a script

There is a lot of syntax in this, the functionality we need to implement is to create a script to replace the keyboard position, so we don’t need to know much about the syntax and basic data types and flow control and functions

Right-click on an empty space on the desktop. Click the "New" menu. Click "AutoHotkey Script" inside to create a new Script. Note: The filename must have an.ahk suffix, such as myscript.ahk. Find the newly created script and right-click on it. Click "Edit Script". A new window pops up, perhaps Notepad. If so, it works! Now that you have created a script, we need to add some content to the script. If you need to use the built-in commands, functions, and variables, see Section 5. This is a simple Script that uses the Send command to create a hot key. When you press the hot key, it will Send a text to the window. Before we do that, let's explain the above code: The first line: ^j:: is the hotkey. ^ stands for CTRL and J is the letter J. Any character to the left of :: indicates the hotkey that you need to press. The second line: Send, My First Script indicates how to Send the key. Send is a command, and anything after the comma (,) will be typed. Line 3: Return. Return will be your best friend. It stops the execution of the rest of the code. Using Return can avoid a lot of problems as your script gets more and more involved. Save the file. Double-click on the file on your desktop to run it, open Notepad or wherever you can enter text and press Ctrl and J. That's great! Your first script is complete. Give yourself a reward and then go back and read the rest of the tutorial.

Use autohotkey

In fact, AutoHotkey features are very powerful, we will only use the most basic of them

The script I wrote is as follows

/ * * the author: @ address:gitee.com/victorfengming victorfegming * * project download: https://gitee.com/victorfengming/colemak_geek * Blog: https://victorfengming.gitee.io/ * /. /* '~ 1 2 3 4 5 6 7 8 9 0 - = backsp Tab Q W F P G J L U Y; [ ] \ Back A R S T D H N E I O " Enterr LShift Z X C V B K M , . / RShiftt Ctrl Win Alt Space Alt Menu Fn Ctrl */ /* l u y h n e I 'up up down << ← ↓ → >> del */; E :: F R :: P T :: G Y :: J U :: L I :: U O :: Y P ::; s::r d::s f::t g::d j::n k::e l::i `; ::o n::k ; The substitution here does not affect the combined modifier; For example, if you press Ctrl+F, it will be Ctrl+F, instead of Ctrl+E. Here is replacing uppercase and BackSpace capsLock ::BackSpace; CapsLock::CapsLock ::CapsLock; It is strongly recommended to replace delete here, because the key to delete is too far away from the main keyboard, which affects the typing efficiency; Alt direction combination <! i::send {up} <! k::send {Down} <! j::send {Left} <! l::send {Right} <! '::send {Del} ; <h-o> =>> Home End <! h::send {Home} <! `; ::send {End} ; Alt and shift arrow keys <+<! i::send {Shift down}{up} <+<! k::send {Shift down}{Down} <+<! j::send {Shift down}{Left} <+<! l::send {Shift down}{Right} <+<! h::send {Shift down}{Home} <+<! `; ::send {Shift down}{End} ; Alt and Ctrl combined arrow keys <^<! i::send {Ctrl down}{up} <^<! k::send {Ctrl down}{Down} <^<! j::send {Ctrl down}{Left} <^<! l::send {Ctrl down}{Right} <^<! h::send {Ctrl down}{Home} <^<! `; ::send {Ctrl down}{End} ; Alt, Ctrl, Shift arrow key <^<+<! i::send {Ctrl down}{Shift down}{up} <^<+<! k::send {Ctrl down}{Shift down}{Down} <^<+<! j::send {Ctrl down}{Shift down}{Left} <^<+<! l::send {Ctrl down}{Shift down}{Right} <^<+<! h::send {Ctrl down}{Shift down}{Home} <^<+<! `; ::send {Ctrl down}{Shift down}{End} ; Alt + ly Page ↑ Page ↓ <! u::send {PgUp} <! o::send {PgDn} ; Up ::return Down::return Left::return Right::return /* - the original address: http://ahkcn.sourceforge.net/docs/AutoHotkey.htm - mapping table address: http://ahkcn.sourceforge.net/docs/KeyList.htm - : : Means mapping-send sends the key combination - 'symbol used to escape; The semicolon modifier Ctrl, Alt, Shift corresponds to ^+! -down indicates the pressed state - & indicates the key combination - < indicates that only the left-hand modifier is in effect - return does nothing */

Then save the script file as Unicode and double-click on the desktop to execute the script

After the execution, you will find that your key will take effect immediately

If you want to stop or pause, you can also find the corresponding icon in the Window’s taskbar

Right – click the menu to set the appropriate Settings

If you want to package it as an executable file, send it to computers that do not have AutoHotkey installed

The operation is very easy, right click in the Script file, select Compile Script, can be in the current folder, generate an exe executable file with the same name as the Script file

Colemak Windows input method implementation

Colemak AutoHotKey

Colemak Linux input method implementation

deepin-colemak

Colemak mobile phone input method implementation

Colemak Geek

Instructions for

  1. Install Baidu input method
  2. Custom skin

It will be generated in sdcard/baidu/ime/skins directory

A skin file with the extension BDS

  1. Copy yr824563x41.bds to yr824563x41.bdssdcard/baidu/ime/skinsDirectory, rename after replacing the skin file you just defined
  2. In Baidu skin management, reset can be
  3. Results the following

Go to the operation

Project source code address

Yards cloud: https://gitee.com/victorfengm…

Feel helpful partners can give Xiaobian star