* RFC czech-translit input method
@ 2010-01-19 18:33 Richard Zidlicky
2010-01-20 10:55 ` Richard Zidlicky
0 siblings, 1 reply; 2+ messages in thread
From: Richard Zidlicky @ 2010-01-19 18:33 UTC (permalink / raw
To: emacs-devel
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" ?Ě)
)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RFC czech-translit input method
2010-01-19 18:33 RFC czech-translit input method Richard Zidlicky
@ 2010-01-20 10:55 ` Richard Zidlicky
0 siblings, 0 replies; 2+ messages in thread
From: Richard Zidlicky @ 2010-01-20 10:55 UTC (permalink / raw
To: emacs-devel
Hi,
sorry, previous post was missing one rule - ("ie" ?ě)
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" ?í)
("ie" ?ě)
("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" ?Ě)
)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-20 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 18:33 RFC czech-translit input method Richard Zidlicky
2010-01-20 10:55 ` Richard Zidlicky
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.