diff options
| author | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-11-27 00:34:29 +0700 |
|---|---|---|
| committer | Priyadi Iman Nurcahyo <priyadi@priyadi.net> | 2016-11-27 00:34:29 +0700 |
| commit | a182cbc0319d54122e12dfa48e782e8e122c7df6 (patch) | |
| tree | d30165ad6b8ed769c8fe7ea058cf90a93eb3ea6e /readme.md | |
| parent | 746fd15638e2a42ea7bd69e2d0bb6a1f8e465f4e (diff) | |
Update Unicode documentation
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 28 |
1 files changed, 27 insertions, 1 deletions
| @@ -911,7 +911,33 @@ In `quantum/keymap_extras/`, you'll see various language files - these work the | |||
| 911 | 911 | ||
| 912 | ## Unicode support | 912 | ## Unicode support |
| 913 | 913 | ||
| 914 | You can currently send 4 hex digits with your OS-specific modifier key (RALT for OSX with the "Unicode Hex Input" layout, see [this article](http://www.poynton.com/notes/misc/mac-unicode-hex-input.html) to learn more) - this is currently limited to supporting one OS at a time, and requires a recompile for switching. 8 digit hex codes are being worked on. The keycode function is `UC(n)`, where *n* is a 4 digit hexidecimal. Enable from the Makefile. | 914 | There are three Unicode keymap definition method available in QMK: |
| 915 | |||
| 916 | ### UNICODE_ENABLE | ||
| 917 | |||
| 918 | Supports Unicode input up to 0xFFFF. The keycode function is `UC(n)` in | ||
| 919 | keymap file, where *n* is a 4 digit hexadecimal. | ||
| 920 | |||
| 921 | ### UNICODEMAP_ENABLE | ||
| 922 | |||
| 923 | Supports Unicode up to 0xFFFFFFFF. You need to maintain a separate mapping | ||
| 924 | table `const uint32_t PROGMEM unicode_map[] = {...}` in your keymap file. | ||
| 925 | The keycode function is `X(n)` where *n* is the array index of the mapping | ||
| 926 | table. | ||
| 927 | |||
| 928 | ### UCIS_ENABLE | ||
| 929 | |||
| 930 | TBD | ||
| 931 | |||
| 932 | Unicode input in QMK works by inputing a sequence of characters to the OS, | ||
| 933 | sort of like macro. Unfortunately, each OS has different ideas on how Unicode is inputted. | ||
| 934 | |||
| 935 | This is the current list of Unicode input method in QMK: | ||
| 936 | |||
| 937 | * UC_OSX: MacOS Unicode Hex Input support. Works only up to 0xFFFF. Disabled by default. To enable: go to System Preferences -> Keyboard -> Input Sources, and enable Unicode Hex. | ||
| 938 | * UC_LNX: Unicode input method under Linux. Works up to 0xFFFFF. Should work almost anywhere on ibus enabled distros. Without ibus, this works under GTK apps, but rarely anywhere else. | ||
| 939 | * UC_WIN: (not recommended) Windows built-in Unicode input. To enable: create registry key under `HKEY_CURRENT_USER\Control Panel\Input Method\EnableHexNumpad` of type `REG_SZ` called `EnableHexNumpad`, set its value to 1, and reboot. This method is not recommended because of reliability and compatibility issue, use WinCompose method below instead. | ||
| 940 | * UC_WINC: Windows Unicode input using WinCompose. Requires [WinCompose](https://github.com/samhocevar/wincompose). Works reliably under many (all?) variations of Windows. | ||
| 915 | 941 | ||
| 916 | ## Backlight Breathing | 942 | ## Backlight Breathing |
| 917 | 943 | ||
