summaryrefslogtreecommitdiff
path: root/lisp/leim/quail/tamil-dvorak.el
blob: 8c021b4af45216a9ab3ba127d0a0acd1d6febeb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
;;; tamil-dvorak.el --- Quail package for Tamil input with Dvorak keyboard

;; Copyright (C) 2015-2018 Free Software Foundation, Inc.

;; Author: Shakthi Kannan <author@shakthimaan.com>

;; Keywords: multilingual, input method, Indian, Tamil, Dvorak

;; This file is released under the terms of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;;; After loading this file in GNU Emacs, you can select this input
;;; layout using "C-x Return C-\" followed by "tamil-dvorak" (without
;;; the quotes). Available keys: Z

;;; TODO: Add Tamil numbers, calendar from Unicode

;;; Code:

(require 'quail)

(quail-define-package
 "tamil-dvorak" "Tamil" "யளனக" nil
 "யளனக Tamil keyboard layout for use with Unicode (UTF-8 encoding)
  and Dvorak keyboard layout."
 nil t t t t nil nil nil nil nil t)


;; US Dvorak
;; 1! 2@ 3# 4$ 5% 6^ 7& 8* 9( 0) [{ ]}
;;  '" ,< .> pP yY fF gG cC rR lL /? =+ \|
;;   aA oO eE uU iI dD hH tT nN sS -_
;;     ;: qQ jJ kK xX bB mM wW vV zZ

;; தமிழ்
;; 1! 2@ 3# 4௹ 5% 6^ 7& 8* 9( 0) -_ {}
;;  ஞஶ றஷ நஸ சஹ வஜ லல ரர ைஐ   ொ ோ ிீ ுூ =+ \|
;;    ய' ள, ன. க" ப? ாழ த[ ம] ட< ்ஃ ங>
;;      ண$ ஒஓ உஊ எஏ ெே ஔ ௌ அஆ இஈ ;: zZ

(quail-define-rules
 ("1" ?1)
 ("2" ?2)
 ("3" ?3)
 ("4" ?4)
 ("5" ?5)
 ("6" ?6)
 ("7" ?7)
 ("8" ?8)
 ("9" ?9)
 ("0" ?0)
 ("[" ?-)
 ("]" ?{)
 ("`" ?`)
 ("'" ?ஞ)
 ("," ?ற)
 ("." ?ந)
 ("p" ?ச)
 ("y" ?வ)
 ("f" ?ல)
 ("g" ?ர)
 ("c" ?ை)
 ("r" ?ொ)
 ("l" ?ி)
 ("/" ?ு)
 ("=" ?=)
 ("a" ?ய)
 ("o" ?ள)
 ("e" ?ன)
 ("u" ?க)
 ("i" ?ப)
 ("d" ?ா)
 ("h" ?த)
 ("t" ?ம)
 ("n" ?ட)
 ("s" ?்)
 ("-" ?ங)
 ("\\" ?\\)
 (";" ?ண)
 ("q" ?ஒ)
 ("j" ?உ)
 ("k" ?எ)
 ("x" ?ெ)
 ("b" ?ஔ)
 ("m" ?அ)
 ("w" ?இ)
 ("v" ?\;)
 ("z" ?/)
 ("!" ?!)
 ("@" ?@)
 ("#" ?#)
 ("$" ?௹)
 ("%" ?%)
 ("^" ?^)
 ("&" ?&)
 ("*" ?*)
 ("(" ?\()
 (")" ?\))
 ("{" ?_)
 ("}" ?})
 ("~" ?~)
 ("\"" ?ஶ)
 ("<" ?ஷ)
 (">" ?ஸ)
 ("P" ?ஹ)
 ("Y" ?ஜ)
 ("F" ?ல)
 ("G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