Subject: bug#24967: Kashubian input method

From: Wojciech Gac <[email-masked]>
Date: Sat, 19 Nov 2016 13:02:42 +0100

Hello,
I've created a Kashubian prefix input method for Emacs. For every diacritic
character it uses the most intuitive prefix character, e.g. ':e' generates
the character 'ë', '`o' - 'ò', etc. I've also added the option to
explicitly insert those prefix characters by inputting them twice.
Regards,
Wojtek
diff --git a/lisp/leim/quail/latin-pre.el b/lisp/leim/quail/latin-pre.el
index 138a97a..3e9dbef 100644
--- a/lisp/leim/quail/latin-pre.el
+++ b/lisp/leim/quail/latin-pre.el
@@ -706,6 +706,47 @@

 (quail-define-package
+ "kashubian-prefix" "Kashubian" "CSB>" nil
+ "Kashubian input method."
+ nil t t nil nil nil nil nil nil nil t)
+
+(quail-define-rules
+ ("/a" ?ą)
+ ("/A" ?Ą)
+ ("~a" ?ã)
+ ("~A" ?Ã)
+ ("'e" ?é)
+ ("'E" ?É)
+ (":e" ?ë)
+ (":E" ?Ë)
+ ("/l" ?ł)
+ ("/L" ?Ł)
+ ("/n" ?ń)
+ ("/N" ?Ń)
+ ("`o" ?ò)
+ ("`O" ?Ò)
+ ("'o" ?ó)
+ ("'O" ?Ó)
+ ("^o" ?ô)
+ ("^O" ?Ô)
+ ("`u" ?ù)
+ ("`U" ?Ù)
+ (".z" ?ż)
+ (".Z" ?Ż)
+ ;; Explicit input of prefix characters. Normally, to input a prefix
+ ;; character itself, one needs to press <Tab>. Definitions below
+ ;; allow to input those characters by entering them twice.
+ ("//" ?/)
+ ("~~" ?~)
+ ("''" ?')
+ ("::" ?:)
+ ("``" ?`)
+ ("^^" ?^)
+ (".." ?.)
+)
+
+
+(quail-define-package
  "polish-slash" "Polish" "PL>" nil
  "Polish diacritics and slash character are input as `/[acelnosxzACELNOSXZ/]'.
 For example, the character named `aogonek' is obtained by `/a'."