GithubHelp home page GithubHelp logo

1dk's Introduction

A sane way to use Qwerty-US keyboards with non-English languages.

One Dead Key (1dk) To Rule Them All

Here is a collection of Qwerty keyboard layouts where the quote sign (') is turned into a language-specific dead key. This is comparable to qwerty-intl but only one key is modified, and this key is easy enough to reach to be usable for a non-English language on a daily basis.

Users looking for an increased typing comfort should have a look at the qwerty42 layouts — the learning curve is a bit steeper but totally worth it. Probably the best qwerty variant for developers. :-)

Build a Keyboard Layout

The latest version of kalamine is required:

pip3 install kalamine

Building a keyboard layout with kalamine is straight-forward:

kalamine MyCustomLayout.yaml

All files are generated in the dist subdirectory:

  • *.klc files for Windows
  • *.keylayout files for MacOS X
  • *.xkb files for GNU/Linux

A Makefile is provided to build the whole layout collection with a single make.

Install a Keyboard Layout

Windows

The 1dk toolchain produces *.klc files for Windows.

The MS Keyboard Layout Creator is required to turn a *.klc file into a layout installer: run this installer and your layout will appear in the language bar.

MacOS X

The 1dk toolchain produces *.keylayout files for OSX.

Copy your *.keylayout file into ~/Library/Keyboard Layouts (for the current user only) or /Library/Keyboard Layouts (for all users), and restart your session. The keyboard layout will appear in your “Language and Text” preferences, “Input Methods” tab.

GNU/Linux

The 1dk toolchain produces *.xkb files for Linux.

On this platform, dead keys are handled by XCompose and their behavior cannot be defined in an xkb file; our workaround is to implement the 1dk as a dead AltGr key (ISO_Level3_Latch), and the AltGr key is implemented as an ISO_Level5_Switch key.

To activate an *.xkb keyboard layout on Linux:

xkbcomp -w10 layout.xkb $DISPLAY

To get back to the default US keyboard layout:

setxkbmap us

1dk's People

Contributors

fabi1cazenave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

da-va

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.