[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RFC czech-translit input method
From: |
Richard Zidlicky |
Subject: |
RFC czech-translit input method |
Date: |
Tue, 19 Jan 2010 19:33:16 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hello,
I have recently submitted this to xemacs-devel and hope some emacs user may
find it useful as well.
The main motivation was to be able to easilly type czech with eg german
keyborads
- on those most of the keys typically used for composing/pre/postfix are only
available
shifted or alt-grd. With this input method only the basic character keys are
used,
found inspiration for this in some cyrilic-translit and various iso-postfix
packages.
It is available under any kind of GPL license.
Richard
;; enter Czech accented keys by combination of ASCII letters.
;; Works well because the used double letter combinations are very rare
;; - with the exception of "ie" which is frequent in words of foreign origin.
;; To deal with foreign words and names it is essential to have
toggle-input-method
;; bound to a very convenient key
(quail-define-package
"czech-translit" "Czech" "cz-tr" t ; name, language, title guidance
"Intuitively transliterated keyboard layout for Czech:
aa -> á, ee -> é, AA -> Á ...
cc -> č, rr -> ř , tt -> ť ...
nj -> ň, dj -> ď
ie -> ě
uu -> ú
uo -> ů
exceptions and strange cases:
iee -> ié
iie -> ie
eee -> ee
other
iii -> i
"
nil t ; translation-keys, forget-last-selection
t t ; deterministic, kbd-translate
t nil ; show-layout, create-decode-map
nil nil ; maximum-shortest (non-greedy), overlay-plist
nil nil ; update-translation-function, conversion-keys
t ; simple
)
(quail-define-rules
("aa" ?á)
("ee" ?é)
("eee" ["ee"])
("ii" ?í)
("iee" ["ié"])
("iie" ["ie"])
("iii" ?i)
("oo" ?ó)
("uu" ?ú)
("uo" ?ů)
("yy" ?ý)
("AA" ?Á)
("EE" ?É)
("II" ?Í)
("III" ?Í)
("OO" ?Ó)
("UU" ?Ú)
("YY" ?Ý)
("cc" ?č)
("dj" ?ď)
("nj" ?ň)
("rr" ?ř)
("ss" ?š)
("tt" ?ť)
("zz" ?ž)
("CC" ?Č)
("DJ" ?Ď)
("NJ" ?Ň)
("RR" ?Ř)
("SS" ?Š)
("TT" ?Ť)
("ZZ" ?Ž)
("IE" ?Ě)
)
- RFC czech-translit input method,
Richard Zidlicky <=