This file is indexed.

/usr/share/m17n/cmc-kbd.mim is in m17n-db 1.6.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
;; cmc-kdb.mim -- Cham input method based on Cham keyboard
;; Copyright (C) 2008, 2009
;;   National Institute of Advanced Industrial Science and Technology (AIST)
;;   Registration Number H15PRO112

;; This file is part of the m17n database; a sub-part of the m17n
;; library.

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

;; The m17n library 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
;; Lesser General Public License for more details.

;; You should have received a copy of the GNU Lesser General Public
;; License along with the m17n library; if not, write to the Free
;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

(input-method cmc kbd (version "1.6.0"))

(description (_"Cham input method simulating Cham keyboard.
Cham characters are encoded in logical order in memory and in files.
But, you can type Cham text in visual order with this input method.
Backspace and Delete also work in the manner of visual order."))

(title "ꨌꩌk")

(map
 ;; Independent vowels and consonants
 (independent
  ;; Vowels
  ("a" "ꨀ")
  ("I" "ꨁ")
  ("u" "ꨂ")
  ("e" "ꨃ")
  ("i" "ꨄ")
  ("o" "ꨅ")
  ;; Cosonants
  ("k" "ꨆ")
  ("A" "ꨇ")
  ("g" "ꨈ")
  ("G" "ꨉ")
  ("z" "ꨊ")
  ("Z" "ꨋ")
  ("c" "ꨌ")
  ("S" "ꨍ")
  ("j" "ꨄ")
  ("J" "ꨏ")
  ("v" "ꨐ")
  ("V" "ꨑ")
  ("W" "ꨒ")
  ("t" "ꨓ")
  ("E" "ꨔ")
  ("d" "ꨕ")
  ("D" "ꨖ")
  ("n" "ꨗ")
  ("q" "ꨘ")
  ("Q" "ꨙ")
  ("p" "ꨚ")
  ("F" "ꨛ")
  ("f" "ꨜ")
  ("b" "ꨝ")
  ("B" "ꨞ")
  ("m" "ꨟ")
  ("M" "ꨠ")
  ("O" "ꨡ")
  ("y" "ꨢ")
  ("r" "ꨣ")
  ("l" "ꨤ")
  ("w" "ꨥ")
  ("x" "ꨦ")
  ("s" "ꨧ")
  ("h" "ꨨ"))
 ;; Dependent vowels
 (post-vowel
  ("%" "ꨩ")
  ("^" "ꨩꨮ")
  ("{" "ꨪ")
  ("[" "ꨪꩌ")
  ("}" "ꨫ")
  ("]" "ꨬ")
  ("`" "ꨭ")
  ("@" "ꨮ")
  ("$" "ꨮꩃ")
  ("#" "ꨮꩌ")
  ("<" "ꨱ")
  ("\"" "ꨱꨮ")
  (">" "ꨱꩌ")
  ("," "ꨲ"))
 (pre-vowel
  ("-" "ꨯ")
  ("=" "ꨰ"))

 ;; Medials
 (post-medial
  ("~" "ꨳ")
  ("*" "ꨵ")
  (")" "ꨵꨭ")
  ("(" "ꨵꨶ")
  ("&" "ꨶ"))

 (pre-medial
  ("\\" "ꨴ"))

 ;; (";" ",")

 ;; Final consonants.
 (final
  ("K" "ꩀ")
  ;; ꩁ
  ("U" "ꩂ")
  ("/" "ꩃ")
  ("C" "ꩄ")
  ("T" "ꩅ")
  ("N" "ꩆ")
  ("P" "ꩇ")
  ("Y" "ꩈ")
  ("R" "ꩉ")
  ("L" "ꩊ")
  ("X" "ꩋ")
  ("'" "ꩌ")
  ("H" "ꩍ"))

 (misc
  ;; Digits
  ("0" "꩐")
  ("1" "꩑")
  ("2" "꩒")
  ("3" "꩓")
  ("4" "꩔")
  ("5" "꩕")
  ("6" "꩖")
  ("7" "꩗")
  ("8" "꩘")
  ("9" "꩙")

  ;; Traditional punctuations.
  ("_" "꩜")
  ("|" "꩝")
  ("||" "꩞")
  ("|||" "꩟")

  ;; ASCII remapping.
  (";" ","))

 (edit
  ((BackSpace)
   (set PREV @-1)
   (cond ((= PREV PM)
	  (set PREV @-2)
	  (cond ((& (>= PREV 0xAA00) (<= PREV 0xAA28))
		 (delete @-2) (insert PM))
		(1 (unhandle))))
	 ((| (= PREV PV1) (= PREV PV2))
	  (cond ((= @-2 PM)
		 (cond ((& (>= @-3 0xAA00) (<= @-3 0xAA28))
			(delete @-4)
			(insert PREV) (insert PM))
		       (1 (unhandle))))
		((& (>= @-2 0xAA00) (<= @-2 0xAA28))
		 (delete @-2)
		 (insert PREV))
		(1 (unhandle))))
	 (1 (unhandle))))

  ((Delete)
   (set NEXT @+0)
   (cond ((& (>= NEXT 0xAA00) (<= NEXT 0xAA28))
	  (set N2 @+1)
	  (cond ((= N2 PM)
		 (set N3 @+2)
		 (cond ((| (= N3 PV1) (= N3 PV2))
			(delete @+3) (insert NEXT) (insert N2))
		       (1 (delete @+2) (insert NEXT))))
		((| (= N2 PV1) (= N2 PV2))
		 (delete @+2) (insert NEXT))
		(1 (unhandle))))
	 (1 (unhandle)))))
 )

(state
 (init
  (t (set PM 0xAA34)			; PRE-MEDIAL
     (set PV1 0xAA2F)			; PRE-VOWEL-1
     (set PV2 0xAA30)			; PRE-VOWEL-2
     )

  (independent
   (set C @-1) (set PREV @-2)
   (cond ((= PREV PM)
	  (set PREV @-3)
	  (cond ((| (= PREV PV1) (= PREV PV2))
		 (delete @-3) (insert C) (insert PM) (insert PREV))
		((| (< PREV 0xAA00) (> PREV 0xAA28))
		 (delete @-2) (insert C) (insert PM))))
	 ((| (= PREV PV1) (= PREV PV2))
	  (cond ((= @-3 PM))
		((| (< @-3 0xAA00) (> @-3 0xAA28))
		 (delete @-2) (insert C) (insert PREV))))))

  (pre-vowel
   (set C @-1) (set NEXT @+0)
   (cond ((& (>= NEXT 0xAA00) (<= NEXT 0xAA28))
	  (delete @-1) (delete @+1) (insert NEXT) (insert C) (set NEXT @+0)))
   (cond ((& (>= NEXT 0xAA33) (<= NEXT 0xAA36))
	  (delete @-1) (delete @+1) (insert NEXT) (insert C))))

  (pre-medial
   (set C @-1) (set NEXT @+0)
   (cond ((& (>= NEXT 0xAA00) (<= NEXT 0xAA28))
	  (delete @-1) (delete @+1) (insert NEXT) (insert C))))

  (post-medial)
  (post-vowel)
  (final)
  (misc)
  (edit)))

;; Local Variables:
;; coding: utf-8
;; mode: emacs-lisp
;; End: