From 02385b87562301d2b7a385feb1954a1d4c44e3b8 Mon Sep 17 00:00:00 2001 From: CuriousTorvald Date: Mon, 19 Sep 2022 11:38:04 +0900 Subject: [PATCH] Updated Keyboard Layout and IME (markdown) --- Keyboard-Layout-and-IME.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Keyboard-Layout-and-IME.md b/Keyboard-Layout-and-IME.md index 9ac6a1d..d375d1b 100644 --- a/Keyboard-Layout-and-IME.md +++ b/Keyboard-Layout-and-IME.md @@ -73,3 +73,16 @@ return Object.freeze({ The interpretation of the `arg` of the `accept` function is different for the Candidates and the Rewrite mode. On Rewrite mode, the `arg` is a number that indicates how many characters on the text buffer must be deleted before adding a Key Symbol; on Candidates mode, it's a "\x1E-separated" string of candidates. Which key being a backspace depends on the Low Layer: if your Low Layer is Colemak and the Caps Lock is held while the High Layer is active, the `backspace` function will be invoked. + +For the phonetic layouts, the `t` key must be replaced with `tf`, with an object that maps Low Layer key symbols to characters, such as: +```javascript +"tf": { + "{": "Ю", "[": "ю", + "}": "Щ", "]": "щ", + "A": "А", "a": "а", + "B": "Б", "b": "б", + "C": "Ц", "c": "ц", + "D": "Д", "d": "д", + /* ... */ +}, +``` \ No newline at end of file