From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Zidlicky Newsgroups: gmane.emacs.devel Subject: RFC czech-translit input method Date: Tue, 19 Jan 2010 19:33:16 +0100 Message-ID: <20100119183316.GB6131@linux-m68k.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1263929180 14772 80.91.229.12 (19 Jan 2010 19:26:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2010 19:26:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 19 20:26:12 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NXJiG-0002dL-EY for ged-emacs-devel@m.gmane.org; Tue, 19 Jan 2010 20:26:04 +0100 Original-Received: from localhost ([127.0.0.1]:36508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXJiG-00068n-TJ for ged-emacs-devel@m.gmane.org; Tue, 19 Jan 2010 14:26:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXIs5-0004xi-6J for emacs-devel@gnu.org; Tue, 19 Jan 2010 13:32:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXIrz-0004vn-69 for emacs-devel@gnu.org; Tue, 19 Jan 2010 13:32:07 -0500 Original-Received: from [199.232.76.173] (port=44951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXIrz-0004vd-0H for emacs-devel@gnu.org; Tue, 19 Jan 2010 13:32:03 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:10616) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXIry-0000Mk-T8 for emacs-devel@gnu.org; Tue, 19 Jan 2010 13:32:03 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.153]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXIrx-00046u-Ku for emacs-devel@gnu.org; Tue, 19 Jan 2010 13:32:01 -0500 Original-Received: by fg-out-1718.google.com with SMTP id 19so548149fgg.12 for ; Tue, 19 Jan 2010 10:32:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :subject:message-id:mime-version:content-type:content-disposition :content-transfer-encoding:user-agent; bh=rHxK/uPi5CtNE+R3bC4bLrbwzIHN1EwCX1l3ZhOGVqU=; b=LbX8kMcZS806tzOX/fOjiQr0VCuWsz7kPtCrJ1wKeCis7M9LBa42GICjsvirl5/H1N w3csbz9J7NWQqbksNI0iwNNPEo0eeWuvZTT7Eq8dcaiyWCpYcWHsDQ27Dh9X8Cz6rX/N s/eFuxA6bGF9YNnXHmTwR+pbBXav0ZHv7C2BA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; b=c6dPVXzdU+UpCwTLiUOB9XG+W2kSfa9ldmZ1DRo+W6KYawgZ4Au5cWXFA6EweqtnY9 b+dnmikXSC8z8alif8uwowWDMkSCMFjqdjatOeZYg9Sm1NjJxKJG6eTxiurOLpZUNG1y GGfxcrSIxZM8AJ5M4PFhLL+xoPXCge/l+wq0w= Original-Received: by 10.87.19.35 with SMTP id w35mr1497784fgi.50.1263925919802; Tue, 19 Jan 2010 10:31:59 -0800 (PST) Original-Received: from localhost.localdomain ([82.113.106.188]) by mx.google.com with ESMTPS id 12sm17296056fgg.12.2010.01.19.10.31.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 10:31:59 -0800 (PST) Original-Received: from rz by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1NXItA-0001eI-Sr for emacs-devel@gnu.org; Tue, 19 Jan 2010 19:33:16 +0100 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Tue, 19 Jan 2010 14:08:30 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120240 Archived-At: 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" ?Ě) )