Skip to content

Commit

Permalink
Add support for ANSI keyboards
Browse files Browse the repository at this point in the history
  • Loading branch information
Seppe Stas committed Nov 22, 2022
1 parent c64bb29 commit a872799
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 30 deletions.
100 changes: 70 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,75 @@
MacOS-like keyboard layout for Windows
======================================
MacOS-like keyboard layouts for Windows
=======================================

A QWERTY Windows keyboard layout that has dead keys and special characters
mapped much like the [MacOS dead keys]. This allows finger
reflexes to be transferable between both platforms.
QWERTY Windows keyboard layouts that have dead keys and special characters
mapped much like the [MacOS dead keys].

- Allows finger reflexes to be transferable between both platforms
- Easily type common "special" characters like ° and μ as well as accented keys
without having to deal with the terrible US International layout.
- Easily type the most common currency symbols.

Maclike dead keys for ANSI keyboards
------------------------------------

A layout for ANSI (US style) keyboards. Primarily targetting Dell
"International English" keyboards.

This layout is based on the English-UK keyboard layout but changed to match
the ANSI layout. All default acute accents of the UK/Irish keyboard can still
be typed by double pressing the dead key, e.g AtlGr+u AtlGr+u wil result in ú.

### Main layer, to use hold AltGr or Alt+Ctrl

![AltGr layer](img/mac-ansiAltGr.jpg)

### Second layer, to use hold Shift+AltGr or Shift+Alt+Ctrl

![Shift-AltGr layer](img\mac-ansiShftAltGr.jpg)

### Differences vs the MacOS alt layout:

- More accent combinations are supported.
- Accents on AltGr+vowel characters as defined by the system Windows UK English
layout.
- Cent sign is removed to allow for ₹ (Rupee) sign on AltGr+4.
- AltGr+`~` (AltGr+Shift+`) is an alternative tilde dead key.

Maclike dead keys for ISO keyboards
-----------------------------------

A layout for ANSI (US style) keyboards. Primarily targetting HP "UK English"
keyboards.

This layout is based on the English-UK keyboard layout. All default acute
accents can still be typed by double pressing the dead key, e.g AtlGr+u AtlGr+u
wil result in ú.

### Main layer, to use hold AltGr or Alt+Ctrl

![AltGr layer](img/AltGr.png)
![AltGr layer](img/mac-isoAltGr.jpg)

### Second layer, to use hold Shift+AltGr or Shift+Alt+Ctrl

![Shift-AltGr layer](img/Shift-AltGr.png)
![Shift-AltGr layer](img\mac-isoShftAltGr.jpg)

### Differences vs the MacOS alt layout:

- More accent combinations are supported.
- Accents on AltGr+vowel characters as defined by the system Windows UK English
layout.
- Cent sign is moved from AltGr+4 to AtlGr+# to allow for € sign on AltGr+4.
- AltGr+~ (AltGr+Shift+#) is an alternative tilde dead key.

### MacOS 10.15 dead keys
MacOS 10.15 dead keys for reference
-----------------------------------

![MacOS dead keys](img/macos.png)

Supported symbols
-----------------

This layout currently supports:
These layouts currently supports:

- Most Latin grave accents;
- All Latin acute accents (Basic latin, Latin-1 Supplement, Latin Extended-A,
Expand All @@ -31,22 +80,10 @@ This layout currently supports:
Extended-A);
- Special characters available on the MacOS alt layout.

This layout is based on the English-UK keyboard layout. All default acute
accents can still be typed by double pressing the dead key, e.g AtlGr+u AtlGr+u
wil result in ú.

Differences vs the MacOS alt layout:

- More accent combinations are supported.
- Accents on AltGr+vowel characters as defined by the system Windows UK English
layout.
- Cent sign is moved from AltGr+4 to AtlGr+# to allow for € sign on AltGr+4.
- AltGr+~ (AltGr+Shift+#) is an alternative tilde dead key.

Installation and usage
----------------------

- Download maclike.zip in the [latest version of the keyboard package installer][release].
- Download maclike-ansi.zip or maclike-iso.zip in the [latest version of the keyboard package installer][release].
- Run setup.exe and restart Windows.
- Set up the keyboard on Windows. E.g on Windows 10:
- Navigate to settings > Time & Language > Language
Expand All @@ -59,8 +96,9 @@ Modifying
---------

To modify this keyboard layout, install [Microsoft Keyboard Layout Creator] and
open the maclike-dead-keys.klc file. The Keyboard Layout installer can be
generated using Project > Build DLL and Setup Package.
open the maclike-dead-keys-ansi.klc or aclike-dead-keys-iso.klc file. The
Keyboard Layout installer can be generated using Project > Build DLL and Setup
Package.

Note that the keyboard layout needs to be fully uninstalled for this to work.

Expand All @@ -69,12 +107,14 @@ Note on un/reinstallation

This keyboard package can be uninstalled like any MSI package, e.g through
Setting > Add or remove programs or by launching the installer again.
However, doing so will not remove certain registry entries, preventing the
keyboard layout to be modified.

In order to fully uninstall this keyboard package, e.g to install a new/adapted
version, the register entry needs to be removed. On Windows 10 this is the last
entry in:
However, doing so may not remove certain registry entries on some verions of
Windows (e.g Windows 10), preventing the keyboard layout to be modified. On
Windows 11 this does not seem to be the case.

In order to fully uninstall this keyboard package on Windows 10, e.g to install
a new/adapted version, the register entry needs to be removed. This is typically
the last entry in:

```
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts
Expand All @@ -85,6 +125,6 @@ But it's best to double check the "Layout Text" value before removal.
For more info see ["How do I remove a keyboard layout" on MSDN][remove-layout].

[MacOS dead keys]: https://support.apple.com/en-ie/guide/mac-help/mh27474/mac
[Microsoft Keyboard Layout Creator]: https://www.microsoft.com/en-us/download/details.aspx?id=22339
[Microsoft Keyboard Layout Creator]: https://www.microsoft.com/en-us/download/details.aspx?id=102134
[release]: https://github.com/seppestas/maclike-windows-keyboard-layout/releases/latest
[remove-layout]: https://social.msdn.microsoft.com/Forums/ie/en-US/6e143a03-3fda-43fd-831b-2c3056d732b1/how-do-i-remove-a-keyboard-layout
Binary file removed img/AltGr.png
Binary file not shown.
Binary file removed img/Shift-AltGr.png
Binary file not shown.
Binary file added img/mac-ansiAltGr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mac-ansiShftAltGr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mac-isoAltGr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mac-isoShftAltGr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maclike-dead-keys-ansi.klc
Binary file not shown.
Binary file renamed maclike-dead-keys.klc → maclike-dead-keys-iso.klc
Binary file not shown.

0 comments on commit a872799

Please sign in to comment.