diff options
| author | Richard M. Stallman | 2001-11-25 10:09:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-25 10:09:09 +0000 |
| commit | 3de3f07bc4083af73420566264809af34dd06240 (patch) | |
| tree | 6475e1bddd3da2bc2101df30cdf41ae52f4d9fc4 | |
| parent | 3cb9a587fb7b18c510878607fc8037406bb16c18 (diff) | |
| download | emacs-3de3f07bc4083af73420566264809af34dd06240.tar.gz emacs-3de3f07bc4083af73420566264809af34dd06240.zip | |
Comment out parts of the file which apparently are garbled.
| -rw-r--r-- | lisp/language/devan-util.el | 754 |
1 files changed, 377 insertions, 377 deletions
diff --git a/lisp/language/devan-util.el b/lisp/language/devan-util.el index a38cdc2ffc7..2929008b416 100644 --- a/lisp/language/devan-util.el +++ b/lisp/language/devan-util.el | |||
| @@ -154,268 +154,268 @@ PATTERN regexp." | |||
| 154 | ;; Problem:: | 154 | ;; Problem:: |
| 155 | ;; Can we generalize this methods to other Indian scripts? | 155 | ;; Can we generalize this methods to other Indian scripts? |
| 156 | 156 | ||
| 157 | (defvar dev-char-glyph | 157 | ;;; (defvar dev-char-glyph |
| 158 | '(("$,15E(B" . "$,4 K(B") | 158 | ;;; '(("$,15E(B" . "$,4 K(B") |
| 159 | ("$,15F(B" . "$,4 K")(B") | 159 | ;;; ("$,15F(B" . "$,4 K")(B") |
| 160 | ("$,15~(B" . "$,4")(B") | 160 | ;;; ("$,15~(B" . "$,4")(B") |
| 161 | ("$,15G(B" . "$,4 \(B") | 161 | ;;; ("$,15G(B" . "$,4 \(B") |
| 162 | ("$,15(B" . "$,4"*(B") | 162 | ;;; ("$,15(B" . "$,4"*(B") |
| 163 | ("$,155A(B" . "$,4"*(B\$,4"&(B") | 163 | ;;; ("$,155A(B" . "$,4"*(B\$,4"&(B") |
| 164 | ("$,15H(B" . "$,4 \"'(B") | 164 | ;;; ("$,15H(B" . "$,4 \"'(B") |
| 165 | ("$,15H5A(B" . "$,4 \"'"&(B") | 165 | ;;; ("$,15H5A(B" . "$,4 \"'"&(B") |
| 166 | ("$,16 (B" . "$,4"2(B") | 166 | ;;; ("$,16 (B" . "$,4"2(B") |
| 167 | ("$,16 5A(B" . "$,4"2"&(B") | 167 | ;;; ("$,16 5A(B" . "$,4"2"&(B") |
| 168 | ("$,15I(B" . "$,4 ](B") | 168 | ;;; ("$,15I(B" . "$,4 ](B") |
| 169 | ("$,16!(B" . "$,4"6(B") | 169 | ;;; ("$,16!(B" . "$,4"6(B") |
| 170 | ("$,15J(B" . "$,4 ^"P(B") | 170 | ;;; ("$,15J(B" . "$,4 ^"P(B") |
| 171 | ("$,16"(B" . "$,4":(B") | 171 | ;;; ("$,16"(B" . "$,4":(B") |
| 172 | ("$,15K(B" . "$,4 `"Q(B") | 172 | ;;; ("$,15K(B" . "$,4 `"Q(B") |
| 173 | ("$,16#(B" . "$,4">(B") | 173 | ;;; ("$,16#(B" . "$,4">(B") |
| 174 | ;;("$,15L(B" . nil) ; not implemented. | 174 | ;;; ;;("$,15L(B" . nil) ; not implemented. |
| 175 | ("$,16$(B" . "$,4"?(B") | 175 | ;;; ("$,16$(B" . "$,4"?(B") |
| 176 | ("$,15M(B" . "$,4 b"L(B") | 176 | ;;; ("$,15M(B" . "$,4 b"L(B") |
| 177 | ("$,15M5A(B" . "$,4 b"$(B") | 177 | ;;; ("$,15M5A(B" . "$,4 b"$(B") |
| 178 | ("$,15M5B(B" . "$,4 b"$(B") | 178 | ;;; ("$,15M5B(B" . "$,4 b"$(B") |
| 179 | ("$,16%(B" . "\$,4"L(B") | 179 | ;;; ("$,16%(B" . "\$,4"L(B") |
| 180 | ("$,15N(B" . "$,4 b"@(B") | 180 | ;;; ("$,15N(B" . "$,4 b"@(B") |
| 181 | ("$,15N5A(B" . "$,4 b"@"&(B") | 181 | ;;; ("$,15N5A(B" . "$,4 b"@"&(B") |
| 182 | ("$,16&(B" . "\$,4"@(B") | 182 | ;;; ("$,16&(B" . "\$,4"@(B") |
| 183 | ("$,16&5A(B" . "\$,4"@(B\$,4"&(B") | 183 | ;;; ("$,16&5A(B" . "\$,4"@(B\$,4"&(B") |
| 184 | ("$,15O(B" . "$,4 b(B") | 184 | ;;; ("$,15O(B" . "$,4 b(B") |
| 185 | ("$,16'(B" . "\$,4"D(B") | 185 | ;;; ("$,16'(B" . "\$,4"D(B") |
| 186 | ("$,16'5A(B" . "\$,4"D(B\$,4"&(B") | 186 | ;;; ("$,16'5A(B" . "\$,4"D(B\$,4"&(B") |
| 187 | ("$,15P(B" . "$,4 b"D(B") | 187 | ;;; ("$,15P(B" . "$,4 b"D(B") |
| 188 | ("$,15P5A(B" . "$,4 b"D"&(B") | 188 | ;;; ("$,15P5A(B" . "$,4 b"D"&(B") |
| 189 | ("$,16((B" . "\$,4"H(B") | 189 | ;;; ("$,16((B" . "\$,4"H(B") |
| 190 | ("$,16(5A(B" . "\$,4"H(B\$,4"&(B") | 190 | ;;; ("$,16(5A(B" . "\$,4"H(B\$,4"&(B") |
| 191 | ("$,15Q(B" . "$,4 K")"L(B") ;; special rule for reodering. | 191 | ;;; ("$,15Q(B" . "$,4 K")"L(B") ;; special rule for reodering. |
| 192 | ("$,15Q5A(B" . "$,4 K")"$(B") | 192 | ;;; ("$,15Q5A(B" . "$,4 K")"$(B") |
| 193 | ("$,15Q5B(B" . "$,4 K")"$(B") | 193 | ;;; ("$,15Q5B(B" . "$,4 K")"$(B") |
| 194 | ("$,16)(B" . "\$,4")"L(B") | 194 | ;;; ("$,16)(B" . "\$,4")"L(B") |
| 195 | ("$,16)5A(B" . "\$,4")"$(B") | 195 | ;;; ("$,16)5A(B" . "\$,4")"$(B") |
| 196 | ("$,16)5B(B" . "\$,4")"$(B") | 196 | ;;; ("$,16)5B(B" . "\$,4")"$(B") |
| 197 | ("$,15R(B" . "$,4 K")"@(B") | 197 | ;;; ("$,15R(B" . "$,4 K")"@(B") |
| 198 | ("$,15R5A(B" . "$,4 K")"@"&(B") | 198 | ;;; ("$,15R5A(B" . "$,4 K")"@"&(B") |
| 199 | ("$,16*(B" . "\$,4")"@(B") | 199 | ;;; ("$,16*(B" . "\$,4")"@(B") |
| 200 | ("$,16*5A(B" . "\$,4")"@"&(B") | 200 | ;;; ("$,16*5A(B" . "\$,4")"@"&(B") |
| 201 | ("$,15S(B" . "$,4 K")"D(B") | 201 | ;;; ("$,15S(B" . "$,4 K")"D(B") |
| 202 | ("$,15S5A(B" . "$,4 K")"D"&(B") | 202 | ;;; ("$,15S5A(B" . "$,4 K")"D"&(B") |
| 203 | ("$,16+(B" . "\$,4")"D(B") | 203 | ;;; ("$,16+(B" . "\$,4")"D(B") |
| 204 | ("$,16+5A(B" . "\$,4")"D"&(B") | 204 | ;;; ("$,16+5A(B" . "\$,4")"D"&(B") |
| 205 | ("$,15T(B" . "$,4 K")"H(B") | 205 | ;;; ("$,15T(B" . "$,4 K")"H(B") |
| 206 | ("$,15T5A(B" . "$,4 K")"H"&(B") | 206 | ;;; ("$,15T5A(B" . "$,4 K")"H"&(B") |
| 207 | ("$,16,(B" . "\$,4")"H(B") | 207 | ;;; ("$,16,(B" . "\$,4")"H(B") |
| 208 | ("$,16,5A(B" . "\$,4")"H"&(B") | 208 | ;;; ("$,16,5A(B" . "\$,4")"H"&(B") |
| 209 | ("$,16@(B" . "$,4 a"Q(B") | 209 | ;;; ("$,16@(B" . "$,4 a"Q(B") |
| 210 | ;;("$,16B(B" . nil) | 210 | ;;; ;;("$,16B(B" . nil) |
| 211 | ;;("$,16A(B" . nil) | 211 | ;;; ;;("$,16A(B" . nil) |
| 212 | ;;("$,16C(B" . nil) | 212 | ;;; ;;("$,16C(B" . nil) |
| 213 | 213 | ||
| 214 | ;; GRUTTALS | 214 | ;;; ;; GRUTTALS |
| 215 | ("$,15U(B" . "$,4 e"R(B") | 215 | ;;; ("$,15U(B" . "$,4 e"R(B") |
| 216 | ("$,15U6-(B" . "$,4 c(B") | 216 | ;;; ("$,15U6-(B" . "$,4 c(B") |
| 217 | ("$,15U6-5p(B" . "$,4 g"R(B") | 217 | ;;; ("$,15U6-5p(B" . "$,4 g"R(B") |
| 218 | ("$,15U6-5d(B" . "$,4 h"R(B") | 218 | ;;; ("$,15U6-5d(B" . "$,4 h"R(B") |
| 219 | ("$,15U6-5w(B" . "$,4 i")(B") | 219 | ;;; ("$,15U6-5w(B" . "$,4 i")(B") |
| 220 | ("$,15U6-5w6-(B" . "$,4 i(B") | 220 | ;;; ("$,15U6-5w6-(B" . "$,4 i(B") |
| 221 | 221 | ||
| 222 | ("$,15V(B" . "$,4 j")(B") | 222 | ;;; ("$,15V(B" . "$,4 j")(B") |
| 223 | ("$,15V6-(B" . "$,4 j(B") | 223 | ;;; ("$,15V6-(B" . "$,4 j(B") |
| 224 | ("$,15V6-5p(B" . "$,4 l")(B") | 224 | ;;; ("$,15V6-5p(B" . "$,4 l")(B") |
| 225 | ("$,15V6-5p6-(B" . "$,4 l(B") | 225 | ;;; ("$,15V6-5p6-(B" . "$,4 l(B") |
| 226 | 226 | ||
| 227 | ("$,15W(B" . "$,4 m")(B") | 227 | ;;; ("$,15W(B" . "$,4 m")(B") |
| 228 | ("$,15W6-(B" . "$,4 m(B") | 228 | ;;; ("$,15W6-(B" . "$,4 m(B") |
| 229 | ("$,15W6-5p(B" . "$,4 o")(B") | 229 | ;;; ("$,15W6-5p(B" . "$,4 o")(B") |
| 230 | ("$,15W6-5p6-(B" . "$,4 o(B") | 230 | ;;; ("$,15W6-5p6-(B" . "$,4 o(B") |
| 231 | 231 | ||
| 232 | ("$,15X(B" . "$,4 p")(B") | 232 | ;;; ("$,15X(B" . "$,4 p")(B") |
| 233 | ("$,15X6-(B" . "$,4 p(B") | 233 | ;;; ("$,15X6-(B" . "$,4 p(B") |
| 234 | ("$,15X6-5p(B" . "$,4 q")(B") | 234 | ;;; ("$,15X6-5p(B" . "$,4 q")(B") |
| 235 | ("$,15X6-5p6-(B" . "$,4 q(B") | 235 | ;;; ("$,15X6-5p6-(B" . "$,4 q(B") |
| 236 | 236 | ||
| 237 | ("$,15Y(B" . "$,4 r"S(B") | 237 | ;;; ("$,15Y(B" . "$,4 r"S(B") |
| 238 | ;; PALATALS | 238 | ;;; ;; PALATALS |
| 239 | ("$,15Z(B" . "$,4 s")(B") | 239 | ;;; ("$,15Z(B" . "$,4 s")(B") |
| 240 | ("$,15Z6-(B" . "$,4 s(B") | 240 | ;;; ("$,15Z6-(B" . "$,4 s(B") |
| 241 | ("$,15Z6-5p(B" . "$,4 t")(B") | 241 | ;;; ("$,15Z6-5p(B" . "$,4 t")(B") |
| 242 | ("$,15Z6-5p6-(B" . "$,4 t(B") | 242 | ;;; ("$,15Z6-5p6-(B" . "$,4 t(B") |
| 243 | 243 | ||
| 244 | ("$,15[(B" . "$,4 u"T(B") | 244 | ;;; ("$,15[(B" . "$,4 u"T(B") |
| 245 | 245 | ||
| 246 | ("$,15\(B" . "$,4 v")(B") | 246 | ;;; ("$,15\(B" . "$,4 v")(B") |
| 247 | ("$,15\6-(B" . "$,4 v(B") | 247 | ;;; ("$,15\6-(B" . "$,4 v(B") |
| 248 | ("$,15\6-5p(B" . "$,4 x")(B") | 248 | ;;; ("$,15\6-5p(B" . "$,4 x")(B") |
| 249 | ("$,15\6-5p6-(B" . "$,4 x(B") | 249 | ;;; ("$,15\6-5p6-(B" . "$,4 x(B") |
| 250 | ("$,15\6-5^(B" . "$,4 y")(B") | 250 | ;;; ("$,15\6-5^(B" . "$,4 y")(B") |
| 251 | ("$,15\6-5^6-(B" . "$,4 y(B") | 251 | ;;; ("$,15\6-5^6-(B" . "$,4 y(B") |
| 252 | 252 | ||
| 253 | ("$,15](B" . "$,4 z")(B") | 253 | ;;; ("$,15](B" . "$,4 z")(B") |
| 254 | ("$,15]6-(B" . "$,4 z(B") | 254 | ;;; ("$,15]6-(B" . "$,4 z(B") |
| 255 | ("$,15]6-5p(B" . "$,4 {")(B") | 255 | ;;; ("$,15]6-5p(B" . "$,4 {")(B") |
| 256 | ("$,15]6-5p6-(B" . "$,4 {(B") | 256 | ;;; ("$,15]6-5p6-(B" . "$,4 {(B") |
| 257 | 257 | ||
| 258 | ("$,15^(B" . "$,4 |")(B") | 258 | ;;; ("$,15^(B" . "$,4 |")(B") |
| 259 | ("$,15^6-(B" . "$,4 |(B") | 259 | ;;; ("$,15^6-(B" . "$,4 |(B") |
| 260 | ;; CEREBRALS | 260 | ;;; ;; CEREBRALS |
| 261 | ("$,15_(B" . "$,4 }"U(B") | 261 | ;;; ("$,15_(B" . "$,4 }"U(B") |
| 262 | ("$,15_6-5_(B" . "$,4 ~"U(B") | 262 | ;;; ("$,15_6-5_(B" . "$,4 ~"U(B") |
| 263 | ("$,15_6-5`(B" . "$,4 "U(B") | 263 | ;;; ("$,15_6-5`(B" . "$,4 "U(B") |
| 264 | 264 | ||
| 265 | ("$,15`(B" . "$,4! "V(B") | 265 | ;;; ("$,15`(B" . "$,4! "V(B") |
| 266 | ("$,15`6-5`(B" . "$,4!!"V(B") | 266 | ;;; ("$,15`6-5`(B" . "$,4!!"V(B") |
| 267 | 267 | ||
| 268 | ("$,15a(B" . "$,4!""W(B") | 268 | ;;; ("$,15a(B" . "$,4!""W(B") |
| 269 | ("$,15a6-5a(B" . "$,4!$"W(B") | 269 | ;;; ("$,15a6-5a(B" . "$,4!$"W(B") |
| 270 | ("$,15a6-5b(B" . "$,4!%"W(B") | 270 | ;;; ("$,15a6-5b(B" . "$,4!%"W(B") |
| 271 | 271 | ||
| 272 | ("$,15b(B" . "$,4!&"X(B") | 272 | ;;; ("$,15b(B" . "$,4!&"X(B") |
| 273 | 273 | ||
| 274 | ("$,15c(B" . "$,4!(")(B") | 274 | ;;; ("$,15c(B" . "$,4!(")(B") |
| 275 | ("$,15c6-(B" . "$,4!((B") | 275 | ;;; ("$,15c6-(B" . "$,4!((B") |
| 276 | ;; DENTALS | 276 | ;;; ;; DENTALS |
| 277 | ("$,15d(B" . "$,4!)")(B") | 277 | ;;; ("$,15d(B" . "$,4!)")(B") |
| 278 | ("$,15d6-(B" . "$,4!)(B") | 278 | ;;; ("$,15d6-(B" . "$,4!)(B") |
| 279 | ("$,15d6-5p(B" . "$,4!*")(B") | 279 | ;;; ("$,15d6-5p(B" . "$,4!*")(B") |
| 280 | ("$,15d6-5p6-(B" . "$,4!*(B") | 280 | ;;; ("$,15d6-5p6-(B" . "$,4!*(B") |
| 281 | ("$,15d6-5d(B" . "$,4!+")(B") | 281 | ;;; ("$,15d6-5d(B" . "$,4!+")(B") |
| 282 | ("$,15d6-5d6-(B" . "$,4!+(B") | 282 | ;;; ("$,15d6-5d6-(B" . "$,4!+(B") |
| 283 | 283 | ||
| 284 | ("$,15e(B" . "$,4!,")(B") | 284 | ;;; ("$,15e(B" . "$,4!,")(B") |
| 285 | ("$,15e6-(B" . "$,4!,(B") | 285 | ;;; ("$,15e6-(B" . "$,4!,(B") |
| 286 | ("$,15e6-5p(B" . "$,4!-")(B") | 286 | ;;; ("$,15e6-5p(B" . "$,4!-")(B") |
| 287 | ("$,15e6-5p6-(B" . "$,4!-(B") | 287 | ;;; ("$,15e6-5p6-(B" . "$,4!-(B") |
| 288 | 288 | ||
| 289 | ("$,15f(B" . "$,4!."Y(B") | 289 | ;;; ("$,15f(B" . "$,4!."Y(B") |
| 290 | ("$,15f6#(B" . "$,4!/"Y(B") | 290 | ;;; ("$,15f6#(B" . "$,4!/"Y(B") |
| 291 | ("$,15f6-5p(B" . "$,4!0"Y(B") | 291 | ;;; ("$,15f6-5p(B" . "$,4!0"Y(B") |
| 292 | ("$,15f6-5f(B" . "$,4!1"Y(B") | 292 | ;;; ("$,15f6-5f(B" . "$,4!1"Y(B") |
| 293 | ("$,15f6-5g(B" . "$,4!2"Y(B") | 293 | ;;; ("$,15f6-5g(B" . "$,4!2"Y(B") |
| 294 | ("$,15f6-5n(B" . "$,4!3(B") | 294 | ;;; ("$,15f6-5n(B" . "$,4!3(B") |
| 295 | ("$,15f6-5o(B" . "$,4!4(B") | 295 | ;;; ("$,15f6-5o(B" . "$,4!4(B") |
| 296 | ("$,15f6-5u(B" . "$,4!5"Y(B") | 296 | ;;; ("$,15f6-5u(B" . "$,4!5"Y(B") |
| 297 | 297 | ||
| 298 | ("$,15g(B" . "$,4!6")(B") | 298 | ;;; ("$,15g(B" . "$,4!6")(B") |
| 299 | ("$,15g6-(B" . "$,4!6(B") | 299 | ;;; ("$,15g6-(B" . "$,4!6(B") |
| 300 | ("$,15g6-5p(B" . "$,4!7")(B") | 300 | ;;; ("$,15g6-5p(B" . "$,4!7")(B") |
| 301 | ("$,15g6-5p6-(B" . "$,4!7(B") | 301 | ;;; ("$,15g6-5p6-(B" . "$,4!7(B") |
| 302 | 302 | ||
| 303 | ("$,15h(B" . "$,4!8")(B") | 303 | ;;; ("$,15h(B" . "$,4!8")(B") |
| 304 | ("$,15h6-(B" . "$,4!8(B") | 304 | ;;; ("$,15h6-(B" . "$,4!8(B") |
| 305 | ("$,15h6-5p(B" . "$,4!9")(B") | 305 | ;;; ("$,15h6-5p(B" . "$,4!9")(B") |
| 306 | ("$,15h6-5p6-(B" . "$,4!9")(B") | 306 | ;;; ("$,15h6-5p6-(B" . "$,4!9")(B") |
| 307 | ("$,15h6-5h(B" . "$,4!:")(B") | 307 | ;;; ("$,15h6-5h(B" . "$,4!:")(B") |
| 308 | ("$,15h6-5h6-(B" . "$,4!:(B") | 308 | ;;; ("$,15h6-5h6-(B" . "$,4!:(B") |
| 309 | 309 | ||
| 310 | ("$,15i(B" . "$,4!8"#")(B") | 310 | ;;; ("$,15i(B" . "$,4!8"#")(B") |
| 311 | ;; LABIALS | 311 | ;;; ;; LABIALS |
| 312 | ("$,15j(B" . "$,4!;")(B") | 312 | ;;; ("$,15j(B" . "$,4!;")(B") |
| 313 | ("$,15j6-(B" . "$,4!;(B") | 313 | ;;; ("$,15j6-(B" . "$,4!;(B") |
| 314 | ("$,15j6-5p(B" . "$,4!<")(B") | 314 | ;;; ("$,15j6-5p(B" . "$,4!<")(B") |
| 315 | ("$,15j6-5p6-(B" . "$,4!<(B") | 315 | ;;; ("$,15j6-5p6-(B" . "$,4!<(B") |
| 316 | 316 | ||
| 317 | ("$,15k(B" . "$,4!a"[(B") | 317 | ;;; ("$,15k(B" . "$,4!a"[(B") |
| 318 | ("$,15k6-(B" . "$,4!=(B") | 318 | ;;; ("$,15k6-(B" . "$,4!=(B") |
| 319 | ("$,15k6-5p(B" . "$,4!c"[(B") | 319 | ;;; ("$,15k6-5p(B" . "$,4!c"[(B") |
| 320 | 320 | ||
| 321 | ("$,15l(B" . "$,4!d")(B") | 321 | ;;; ("$,15l(B" . "$,4!d")(B") |
| 322 | ("$,15l6-(B" . "$,4!d(B") | 322 | ;;; ("$,15l6-(B" . "$,4!d(B") |
| 323 | ("$,15l6-5p(B" . "$,4!e")(B") | 323 | ;;; ("$,15l6-5p(B" . "$,4!e")(B") |
| 324 | ("$,15l6-5p6-(B" . "$,4!e(B") | 324 | ;;; ("$,15l6-5p6-(B" . "$,4!e(B") |
| 325 | 325 | ||
| 326 | ("$,15m(B" . "$,4!f")(B") | 326 | ;;; ("$,15m(B" . "$,4!f")(B") |
| 327 | ("$,15m6-(B" . "$,4!f(B") | 327 | ;;; ("$,15m6-(B" . "$,4!f(B") |
| 328 | ("$,15m6-5p(B" . "$,4!g")(B") | 328 | ;;; ("$,15m6-5p(B" . "$,4!g")(B") |
| 329 | ("$,15m6-5p6-(B" . "$,4!g(B") | 329 | ;;; ("$,15m6-5p6-(B" . "$,4!g(B") |
| 330 | 330 | ||
| 331 | ("$,15n(B" . "$,4!h")(B") | 331 | ;;; ("$,15n(B" . "$,4!h")(B") |
| 332 | ("$,15n6-(B" . "$,4!h(B") | 332 | ;;; ("$,15n6-(B" . "$,4!h(B") |
| 333 | ("$,15n6-5p(B" . "$,4!i")(B") | 333 | ;;; ("$,15n6-5p(B" . "$,4!i")(B") |
| 334 | ("$,15n6-5p6-(B" . "$,4!i(B") | 334 | ;;; ("$,15n6-5p6-(B" . "$,4!i(B") |
| 335 | ;; SEMIVOWELS | 335 | ;;; ;; SEMIVOWELS |
| 336 | ("$,15o(B" . "$,4!j")(B") | 336 | ;;; ("$,15o(B" . "$,4!j")(B") |
| 337 | ("$,15o6-(B" . "$,4!j(B") | 337 | ;;; ("$,15o6-(B" . "$,4!j(B") |
| 338 | ("$,15o6-5p(B" . "$,4!k")(B") | 338 | ;;; ("$,15o6-5p(B" . "$,4!k")(B") |
| 339 | ("$,15o6-5p6-(B" . "$,4!k(B") | 339 | ;;; ("$,15o6-5p6-(B" . "$,4!k(B") |
| 340 | ("$,16-5o(B" . "$,4!l(B") ;; when every ohter lig. fails. | 340 | ;;; ("$,16-5o(B" . "$,4!l(B") ;; when every ohter lig. fails. |
| 341 | 341 | ||
| 342 | ("$,15p(B" . "$,4!n"W(B") | 342 | ;;; ("$,15p(B" . "$,4!n"W(B") |
| 343 | ;; ("$,15p6-(B" . "\$,4"'(B") ;; special case. only the topmost pos. | 343 | ;;; ;; ("$,15p6-(B" . "\$,4"'(B") ;; special case. only the topmost pos. |
| 344 | ("$,15q(B" . "$,4!n"#"W(B") | 344 | ;;; ("$,15q(B" . "$,4!n"#"W(B") |
| 345 | ("$,15q6-(B" . "$,4!m(B") ;; IS 13194 speical rule. | 345 | ;;; ("$,15q6-(B" . "$,4!m(B") ;; IS 13194 speical rule. |
| 346 | ("$,15p6!(B" . "$,4!o"[(B") | 346 | ;;; ("$,15p6!(B" . "$,4!o"[(B") |
| 347 | ("$,15p6"(B" . "$,4!p"\(B") | 347 | ;;; ("$,15p6"(B" . "$,4!p"\(B") |
| 348 | 348 | ||
| 349 | ("$,15r(B" . "$,4!q")(B") | 349 | ;;; ("$,15r(B" . "$,4!q")(B") |
| 350 | ("$,15r6-(B" . "$,4!q(B") | 350 | ;;; ("$,15r6-(B" . "$,4!q(B") |
| 351 | ("$,15s(B" . "$,4!s(B") | 351 | ;;; ("$,15s(B" . "$,4!s(B") |
| 352 | ("$,15s6-(B" . "$,4!r(B") | 352 | ;;; ("$,15s6-(B" . "$,4!r(B") |
| 353 | ("$,15t(B" . "$,4!s"#(B") | 353 | ;;; ("$,15t(B" . "$,4!s"#(B") |
| 354 | ("$,15t6-(B" . "$,4!r"#(B") | 354 | ;;; ("$,15t6-(B" . "$,4!r"#(B") |
| 355 | 355 | ||
| 356 | ("$,15u(B" . "$,4!t")(B") | 356 | ;;; ("$,15u(B" . "$,4!t")(B") |
| 357 | ("$,15u6-(B" . "$,4!t(B") | 357 | ;;; ("$,15u6-(B" . "$,4!t(B") |
| 358 | ("$,15u6-5p(B" . "$,4!u")(B") | 358 | ;;; ("$,15u6-5p(B" . "$,4!u")(B") |
| 359 | ("$,15u6-5p6-(B" . "$,4!u(B") | 359 | ;;; ("$,15u6-5p6-(B" . "$,4!u(B") |
| 360 | ;; SIBILANTS | 360 | ;;; ;; SIBILANTS |
| 361 | ("$,15v(B" . "$,4!v")(B") | 361 | ;;; ("$,15v(B" . "$,4!v")(B") |
| 362 | ("$,15v6-(B" . "$,4!v(B") | 362 | ;;; ("$,15v6-(B" . "$,4!v(B") |
| 363 | ("$,15v6-5u(B" . "$,4!w")(B") | 363 | ;;; ("$,15v6-5u(B" . "$,4!w")(B") |
| 364 | ("$,15v6-5u6-(B" . "$,4!w(B") | 364 | ;;; ("$,15v6-5u6-(B" . "$,4!w(B") |
| 365 | ("$,15v6-5p(B" . "$,4!x")(B") | 365 | ;;; ("$,15v6-5p(B" . "$,4!x")(B") |
| 366 | ("$,15v6-5p6-(B" . "$,4!x(B") | 366 | ;;; ("$,15v6-5p6-(B" . "$,4!x(B") |
| 367 | 367 | ||
| 368 | ("$,15w(B" . "$,4!y")(B") | 368 | ;;; ("$,15w(B" . "$,4!y")(B") |
| 369 | ("$,15w6-(B" . "$,4!y(B") | 369 | ;;; ("$,15w6-(B" . "$,4!y(B") |
| 370 | ("$,15x(B" . "$,4!z")(B") | 370 | ;;; ("$,15x(B" . "$,4!z")(B") |
| 371 | ("$,15x6-(B" . "$,4!z(B") | 371 | ;;; ("$,15x6-(B" . "$,4!z(B") |
| 372 | ("$,15x6-5p(B" . "$,4!{")(B") | 372 | ;;; ("$,15x6-5p(B" . "$,4!{")(B") |
| 373 | ("$,15x6-5p6-(B" . "$,4!{(B") | 373 | ;;; ("$,15x6-5p6-(B" . "$,4!{(B") |
| 374 | 374 | ||
| 375 | ("$,15y(B" . "$,4!}(B") | 375 | ;;; ("$,15y(B" . "$,4!}(B") |
| 376 | ("$,15y6-(B" . "$,4!|(B") | 376 | ;;; ("$,15y6-(B" . "$,4!|(B") |
| 377 | ("$,15y6#(B" . "$,4!~(B") | 377 | ;;; ("$,15y6#(B" . "$,4!~(B") |
| 378 | ("$,15y6-5p(B" . "$,4!(B") | 378 | ;;; ("$,15y6-5p(B" . "$,4!(B") |
| 379 | ("$,15y6-5n(B" . "$,4" (B") | 379 | ;;; ("$,15y6-5n(B" . "$,4" (B") |
| 380 | ("$,15y6-5o(B" . "$,4"!(B") | 380 | ;;; ("$,15y6-5o(B" . "$,4"!(B") |
| 381 | ;; NUKTAS | 381 | ;;; ;; NUKTAS |
| 382 | ("$,168(B" . "$,4 f"R"S(B") | 382 | ;;; ("$,168(B" . "$,4 f"R"S(B") |
| 383 | ("$,1686-(B" . "$,4 d(B") | 383 | ;;; ("$,1686-(B" . "$,4 d(B") |
| 384 | ("$,169(B" . "$,4 k")(B") | 384 | ;;; ("$,169(B" . "$,4 k")(B") |
| 385 | ("$,1696-(B" . "$,4 k(B") | 385 | ;;; ("$,1696-(B" . "$,4 k(B") |
| 386 | ("$,16:(B" . "$,4 n")(B") | 386 | ;;; ("$,16:(B" . "$,4 n")(B") |
| 387 | ("$,16:6-(B" . "$,4 n(B") | 387 | ;;; ("$,16:6-(B" . "$,4 n(B") |
| 388 | ("$,16;(B" . "$,4 w")(B") | 388 | ;;; ("$,16;(B" . "$,4 w")(B") |
| 389 | ("$,16;6-(B" . "$,4 w(B") | 389 | ;;; ("$,16;6-(B" . "$,4 w(B") |
| 390 | ("$,16<(B" . "$,4!#"W(B") | 390 | ;;; ("$,16<(B" . "$,4!#"W(B") |
| 391 | ("$,16=(B" . "$,4!'"X(B") | 391 | ;;; ("$,16=(B" . "$,4!'"X(B") |
| 392 | ("$,16>(B" . "$,4!b"[(B") | 392 | ;;; ("$,16>(B" . "$,4!b"[(B") |
| 393 | ("$,16>6-(B" . "$,4!>(B") | 393 | ;;; ("$,16>6-(B" . "$,4!>(B") |
| 394 | ("$,16?(B" . "$,4!j"#")(B") | 394 | ;;; ("$,16?(B" . "$,4!j"#")(B") |
| 395 | ;; misc modifiers. | 395 | ;;; ;; misc modifiers. |
| 396 | ("$,15A(B" . "\$,4"$(B") | 396 | ;;; ("$,15A(B" . "\$,4"$(B") |
| 397 | ("$,15B(B" . "\$,4"&(B") | 397 | ;;; ("$,15B(B" . "\$,4"&(B") |
| 398 | ("$,15C(B" . "$,4 F(B") | 398 | ;;; ("$,15C(B" . "$,4 F(B") |
| 399 | ("$,15|(B" . "$,4"#(B") | 399 | ;;; ("$,15|(B" . "$,4"#(B") |
| 400 | ("$,15}(B" . "$,4 E(B") | 400 | ;;; ("$,15}(B" . "$,4 E(B") |
| 401 | ("$,16-(B" . "$,4""(B") | 401 | ;;; ("$,16-(B" . "$,4""(B") |
| 402 | ("$,16-5p(B" . "$,4"%(B") ;; following "r" | 402 | ;;; ("$,16-5p(B" . "$,4"%(B") ;; following "r" |
| 403 | ;; ("$,160(B" . "$,4 D(B") | 403 | ;;; ;; ("$,160(B" . "$,4 D(B") |
| 404 | ;; ("$,16D(B" . "$,4 J(B") | 404 | ;;; ;; ("$,16D(B" . "$,4 J(B") |
| 405 | ;; ("$,16F(B" . "") | 405 | ;;; ;; ("$,16F(B" . "") |
| 406 | ;; ("$,16G(B" . "") | 406 | ;;; ;; ("$,16G(B" . "") |
| 407 | ;; ("$,16H(B" . "") | 407 | ;;; ;; ("$,16H(B" . "") |
| 408 | ;; ("$,16I(B" . "") | 408 | ;;; ;; ("$,16I(B" . "") |
| 409 | ;; ("$,16J(B" . "") | 409 | ;;; ;; ("$,16J(B" . "") |
| 410 | ;; ("$,16K(B" . "") | 410 | ;;; ;; ("$,16K(B" . "") |
| 411 | ;; ("$,16L(B" . "") | 411 | ;;; ;; ("$,16L(B" . "") |
| 412 | ;; ("$,16M(B" . "") | 412 | ;;; ;; ("$,16M(B" . "") |
| 413 | ;; ("$,16N(B" . "") | 413 | ;;; ;; ("$,16N(B" . "") |
| 414 | ;; ("$,16O(B" . "") | 414 | ;;; ;; ("$,16O(B" . "") |
| 415 | ) | 415 | ;;; ) |
| 416 | "Devanagari characters to glyphs conversion table. | 416 | ;;; "Devanagari characters to glyphs conversion table. |
| 417 | Default value contains only the basic rules. You may add your own | 417 | ;;; Default value contains only the basic rules. You may add your own |
| 418 | preferred rule from the sanskrit fonts." ) | 418 | ;;; preferred rule from the sanskrit fonts." ) |
| 419 | 419 | ||
| 420 | (defvar dev-char-glyph-hash | 420 | (defvar dev-char-glyph-hash |
| 421 | (let* ((hash (makehash 'equal))) | 421 | (let* ((hash (makehash 'equal))) |
| @@ -430,34 +430,34 @@ preferred rule from the sanskrit fonts." ) | |||
| 430 | ;; it is supposed that glyphs are ordered in | 430 | ;; it is supposed that glyphs are ordered in |
| 431 | ;; [consonant/nukta] - [matra/halant] - [preceding-r] - [anuswar]. | 431 | ;; [consonant/nukta] - [matra/halant] - [preceding-r] - [anuswar]. |
| 432 | 432 | ||
| 433 | (defvar dev-glyph-glyph | 433 | ;;; (defvar dev-glyph-glyph |
| 434 | '(("\$,4"'(B\$,4"&(B" . "\$,4"((B") | 434 | ;;; '(("\$,4"'(B\$,4"&(B" . "\$,4"((B") |
| 435 | ("\$,4"'(B\$,4"$(B" . "\$,4"((B") | 435 | ;;; ("\$,4"'(B\$,4"$(B" . "\$,4"((B") |
| 436 | ("$,4"*(B\$,4"&(B" . "$,4"+(B") | 436 | ;;; ("$,4"*(B\$,4"&(B" . "$,4"+(B") |
| 437 | ("$,4"*(B\$,4"'(B" . "$,4",(B") | 437 | ;;; ("$,4"*(B\$,4"'(B" . "$,4",(B") |
| 438 | ("$,4"*(B\$,4"'(B\$,4"&(B" . "$,4"-(B") | 438 | ;;; ("$,4"*(B\$,4"'(B\$,4"&(B" . "$,4"-(B") |
| 439 | ("$,4"2(B\$,4"&(B" . "$,4"3(B") | 439 | ;;; ("$,4"2(B\$,4"&(B" . "$,4"3(B") |
| 440 | ("$,4"2(B\$,4"'(B" . "$,4"4(B") | 440 | ;;; ("$,4"2(B\$,4"'(B" . "$,4"4(B") |
| 441 | ("$,4"2(B\$,4"'(B\$,4"&(B" . "$,4"5(B") | 441 | ;;; ("$,4"2(B\$,4"'(B\$,4"&(B" . "$,4"5(B") |
| 442 | ("$,4"#(B\$,4"6(B" . "$,4"7(B") | 442 | ;;; ("$,4"#(B\$,4"6(B" . "$,4"7(B") |
| 443 | ("$,4"%(B\$,4"6(B" . "$,4"8(B") | 443 | ;;; ("$,4"%(B\$,4"6(B" . "$,4"8(B") |
| 444 | ;;("$,4"6(B" . "$,4"9(B") | 444 | ;;; ;;("$,4"6(B" . "$,4"9(B") |
| 445 | ("$,4"#(B\$,4":(B" . "$,4";(B") | 445 | ;;; ("$,4"#(B\$,4":(B" . "$,4";(B") |
| 446 | ("$,4"%(B\$,4":(B" . "$,4"<(B") | 446 | ;;; ("$,4"%(B\$,4":(B" . "$,4"<(B") |
| 447 | ;;("$,4":(B" . "$,4"=(B") | 447 | ;;; ;;("$,4":(B" . "$,4"=(B") |
| 448 | ("\$,4"@(B\$,4"&(B" . "\$,4"A(B") | 448 | ;;; ("\$,4"@(B\$,4"&(B" . "\$,4"A(B") |
| 449 | ("\$,4"@(B\$,4"'(B" . "\$,4"B(B") | 449 | ;;; ("\$,4"@(B\$,4"'(B" . "\$,4"B(B") |
| 450 | ("\$,4"@(B\$,4"'(B\$,4"&(B" . "\$,4"C(B") | 450 | ;;; ("\$,4"@(B\$,4"'(B\$,4"&(B" . "\$,4"C(B") |
| 451 | ("\$,4"D(B\$,4"&(B" . "\$,4"E(B") | 451 | ;;; ("\$,4"D(B\$,4"&(B" . "\$,4"E(B") |
| 452 | ("\$,4"D(B\$,4"'(B" . "\$,4"F(B") | 452 | ;;; ("\$,4"D(B\$,4"'(B" . "\$,4"F(B") |
| 453 | ("\$,4"D(B\$,4"'(B\$,4"&(B" . "\$,4"G(B") | 453 | ;;; ("\$,4"D(B\$,4"'(B\$,4"&(B" . "\$,4"G(B") |
| 454 | ("\$,4"H(B\$,4"&(B" . "\$,4"I(B") | 454 | ;;; ("\$,4"H(B\$,4"&(B" . "\$,4"I(B") |
| 455 | ("\$,4"H(B\$,4"'(B" . "\$,4"J(B") | 455 | ;;; ("\$,4"H(B\$,4"'(B" . "\$,4"J(B") |
| 456 | ("\$,4"H(B\$,4"'(B\$,4"&(B" . "\$,4"K(B") | 456 | ;;; ("\$,4"H(B\$,4"'(B\$,4"&(B" . "\$,4"K(B") |
| 457 | ("\$,4"L(B\$,4"&(B" . "\$,4"M(B") | 457 | ;;; ("\$,4"L(B\$,4"&(B" . "\$,4"M(B") |
| 458 | ("\$,4"L(B\$,4"'(B" . "\$,4"N(B") | 458 | ;;; ("\$,4"L(B\$,4"'(B" . "\$,4"N(B") |
| 459 | ("\$,4"L(B\$,4"'(B\$,4"&(B" . "\$,4"O(B") | 459 | ;;; ("\$,4"L(B\$,4"'(B\$,4"&(B" . "\$,4"O(B") |
| 460 | )) | 460 | ;;; )) |
| 461 | (defvar dev-glyph-glyph-hash | 461 | (defvar dev-glyph-glyph-hash |
| 462 | (let* ((hash (makehash 'equal))) | 462 | (let* ((hash (makehash 'equal))) |
| 463 | (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) | 463 | (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) |
| @@ -468,11 +468,11 @@ preferred rule from the sanskrit fonts." ) | |||
| 468 | 468 | ||
| 469 | 469 | ||
| 470 | ;; yet another glyph-to-glyph conversions. | 470 | ;; yet another glyph-to-glyph conversions. |
| 471 | (defvar dev-glyph-glyph-2 | 471 | ;;; (defvar dev-glyph-glyph-2 |
| 472 | '(("$,4"*(B" . "$,4".(B") | 472 | ;;; '(("$,4"*(B" . "$,4".(B") |
| 473 | ("$,4"+(B" . "$,4"/(B") | 473 | ;;; ("$,4"+(B" . "$,4"/(B") |
| 474 | ("$,4",(B" . "$,4"0(B") | 474 | ;;; ("$,4",(B" . "$,4"0(B") |
| 475 | ("$,4"-(B" . "$,4"1(B"))) | 475 | ;;; ("$,4"-(B" . "$,4"1(B"))) |
| 476 | (defvar dev-glyph-glyph-2-hash | 476 | (defvar dev-glyph-glyph-2-hash |
| 477 | (let* ((hash (makehash 'equal))) | 477 | (let* ((hash (makehash 'equal))) |
| 478 | (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) | 478 | (mapc (function (lambda (x) (puthash (car x) (cdr x) hash))) |
| @@ -551,87 +551,87 @@ preferred rule from the sanskrit fonts." ) | |||
| 551 | (devanagari-compose-syllable-region (point-min) (point-max)) | 551 | (devanagari-compose-syllable-region (point-min) (point-max)) |
| 552 | (buffer-string))) | 552 | (buffer-string))) |
| 553 | 553 | ||
| 554 | (defun devanagari-compose-syllable-region (from to) | 554 | ;;; (defun devanagari-compose-syllable-region (from to) |
| 555 | "Compose devanagari syllable in region FROM to TO." | 555 | ;;; "Compose devanagari syllable in region FROM to TO." |
| 556 | (let ((glyph-str nil) (cons-num 0) glyph-str-list | 556 | ;;; (let ((glyph-str nil) (cons-num 0) glyph-str-list |
| 557 | (last-halant nil) (preceding-r nil) (last-modifier nil) | 557 | ;;; (last-halant nil) (preceding-r nil) (last-modifier nil) |
| 558 | (last-char (char-before to)) match-str | 558 | ;;; (last-char (char-before to)) match-str |
| 559 | glyph-block split-pos) | 559 | ;;; glyph-block split-pos) |
| 560 | (save-excursion | 560 | ;;; (save-excursion |
| 561 | (save-restriction | 561 | ;;; (save-restriction |
| 562 | ;;; *** char-to-glyph conversion *** | 562 | ;;; ;;; *** char-to-glyph conversion *** |
| 563 | ;; Special rule 1. -- Last halant must be preserved. | 563 | ;;; ;; Special rule 1. -- Last halant must be preserved. |
| 564 | (if (eq last-char ?$,16-(B) | 564 | ;;; (if (eq last-char ?$,16-(B) |
| 565 | (progn | 565 | ;;; (progn |
| 566 | (setq last-halant t) | 566 | ;;; (setq last-halant t) |
| 567 | (narrow-to-region from (1- to))) | 567 | ;;; (narrow-to-region from (1- to))) |
| 568 | (narrow-to-region from to) | 568 | ;;; (narrow-to-region from to) |
| 569 | ;; note if the last char is modifier. | 569 | ;;; ;; note if the last char is modifier. |
| 570 | (if (or (eq last-char ?$,15A(B) (eq last-char ?$,15B(B)) | 570 | ;;; (if (or (eq last-char ?$,15A(B) (eq last-char ?$,15B(B)) |
| 571 | (setq last-modifier t))) | 571 | ;;; (setq last-modifier t))) |
| 572 | (goto-char (point-min)) | 572 | ;;; (goto-char (point-min)) |
| 573 | ;; Special rule 2. -- preceding "r halant" must be modifier. | 573 | ;;; ;; Special rule 2. -- preceding "r halant" must be modifier. |
| 574 | (when (looking-at "$,15p6-(B.") | 574 | ;;; (when (looking-at "$,15p6-(B.") |
| 575 | (setq preceding-r t) | 575 | ;;; (setq preceding-r t) |
| 576 | (goto-char (+ 2 (point)))) | 576 | ;;; (goto-char (+ 2 (point)))) |
| 577 | ;; translate the rest characters into glyphs | 577 | ;;; ;; translate the rest characters into glyphs |
| 578 | (while (re-search-forward dev-char-glyph-regexp nil t) | 578 | ;;; (while (re-search-forward dev-char-glyph-regexp nil t) |
| 579 | (setq match-str (match-string 0)) | 579 | ;;; (setq match-str (match-string 0)) |
| 580 | (setq glyph-str | 580 | ;;; (setq glyph-str |
| 581 | (concat glyph-str | 581 | ;;; (concat glyph-str |
| 582 | (gethash match-str dev-char-glyph-hash))) | 582 | ;;; (gethash match-str dev-char-glyph-hash))) |
| 583 | ;; count the number of consonant-glyhs. | 583 | ;;; ;; count the number of consonant-glyhs. |
| 584 | (if (string-match devanagari-consonant match-str) | 584 | ;;; (if (string-match devanagari-consonant match-str) |
| 585 | (setq cons-num (1+ cons-num)))) | 585 | ;;; (setq cons-num (1+ cons-num)))) |
| 586 | ;; preceding-r must be attached before the anuswar if exists. | 586 | ;;; ;; preceding-r must be attached before the anuswar if exists. |
| 587 | (if preceding-r | 587 | ;;; (if preceding-r |
| 588 | (if last-modifier | 588 | ;;; (if last-modifier |
| 589 | (setq glyph-str (concat (substring glyph-str 0 -1) | 589 | ;;; (setq glyph-str (concat (substring glyph-str 0 -1) |
| 590 | "$,4"'(B" (substring glyph-str -1))) | 590 | ;;; "$,4"'(B" (substring glyph-str -1))) |
| 591 | (setq glyph-str (concat glyph-str "$,4"'(B")))) | 591 | ;;; (setq glyph-str (concat glyph-str "$,4"'(B")))) |
| 592 | (if last-halant (setq glyph-str (concat glyph-str "$,4""(B"))) | 592 | ;;; (if last-halant (setq glyph-str (concat glyph-str "$,4""(B"))) |
| 593 | ;;; *** glyph-to-glyph conversion *** | 593 | ;;; ;;; *** glyph-to-glyph conversion *** |
| 594 | (when (string-match dev-glyph-glyph-regexp glyph-str) | 594 | ;;; (when (string-match dev-glyph-glyph-regexp glyph-str) |
| 595 | (setq glyph-str | 595 | ;;; (setq glyph-str |
| 596 | (replace-match (gethash (match-string 0 glyph-str) | 596 | ;;; (replace-match (gethash (match-string 0 glyph-str) |
| 597 | dev-glyph-glyph-hash) | 597 | ;;; dev-glyph-glyph-hash) |
| 598 | nil t glyph-str)) | 598 | ;;; nil t glyph-str)) |
| 599 | (if (and (> cons-num 1) | 599 | ;;; (if (and (> cons-num 1) |
| 600 | (string-match dev-glyph-glyph-2-regexp glyph-str)) | 600 | ;;; (string-match dev-glyph-glyph-2-regexp glyph-str)) |
| 601 | (setq glyph-str | 601 | ;;; (setq glyph-str |
| 602 | (replace-match (gethash (match-string 0 glyph-str) | 602 | ;;; (replace-match (gethash (match-string 0 glyph-str) |
| 603 | dev-glyph-glyph-2-hash) | 603 | ;;; dev-glyph-glyph-2-hash) |
| 604 | nil t glyph-str)))) | 604 | ;;; nil t glyph-str)))) |
| 605 | ;;; *** glyph reordering *** | 605 | ;;; ;;; *** glyph reordering *** |
| 606 | (while (setq split-pos (string-match "$,4""(B\\|.$" glyph-str)) | 606 | ;;; (while (setq split-pos (string-match "$,4""(B\\|.$" glyph-str)) |
| 607 | (setq glyph-block (substring glyph-str 0 (1+ split-pos))) | 607 | ;;; (setq glyph-block (substring glyph-str 0 (1+ split-pos))) |
| 608 | (setq glyph-str (substring glyph-str (1+ split-pos))) | 608 | ;;; (setq glyph-str (substring glyph-str (1+ split-pos))) |
| 609 | (setq | 609 | ;;; (setq |
| 610 | glyph-block | 610 | ;;; glyph-block |
| 611 | (if (string-match dev-glyph-right-modifier-regexp glyph-block) | 611 | ;;; (if (string-match dev-glyph-right-modifier-regexp glyph-block) |
| 612 | (sort (string-to-list glyph-block) | 612 | ;;; (sort (string-to-list glyph-block) |
| 613 | (function (lambda (x y) | 613 | ;;; (function (lambda (x y) |
| 614 | (< (get-char-code-property x 'composition-order) | 614 | ;;; (< (get-char-code-property x 'composition-order) |
| 615 | (get-char-code-property y 'composition-order))))) | 615 | ;;; (get-char-code-property y 'composition-order))))) |
| 616 | (sort (string-to-list glyph-block) | 616 | ;;; (sort (string-to-list glyph-block) |
| 617 | (function (lambda (x y) | 617 | ;;; (function (lambda (x y) |
| 618 | (let ((xo (get-char-code-property x 'composition-order)) | 618 | ;;; (let ((xo (get-char-code-property x 'composition-order)) |
| 619 | (yo (get-char-code-property y 'composition-order))) | 619 | ;;; (yo (get-char-code-property y 'composition-order))) |
| 620 | (if (= xo 2) nil (if (= yo 2) t (< xo yo))))))))) | 620 | ;;; (if (= xo 2) nil (if (= yo 2) t (< xo yo))))))))) |
| 621 | (setq glyph-str-list (nconc glyph-str-list glyph-block))) | 621 | ;;; (setq glyph-str-list (nconc glyph-str-list glyph-block))) |
| 622 | ;; concatenate and attach reference-points. | 622 | ;;; ;; concatenate and attach reference-points. |
| 623 | (setq glyph-str | 623 | ;;; (setq glyph-str |
| 624 | (cdr | 624 | ;;; (cdr |
| 625 | (apply | 625 | ;;; (apply |
| 626 | 'nconc | 626 | ;;; 'nconc |
| 627 | (mapcar | 627 | ;;; (mapcar |
| 628 | (function (lambda (x) | 628 | ;;; (function (lambda (x) |
| 629 | (list | 629 | ;;; (list |
| 630 | (or (get-char-code-property x 'reference-point) | 630 | ;;; (or (get-char-code-property x 'reference-point) |
| 631 | '(5 . 3) ;; default reference point. | 631 | ;;; '(5 . 3) ;; default reference point. |
| 632 | ) | 632 | ;;; ) |
| 633 | x))) | 633 | ;;; x))) |
| 634 | glyph-str-list)))))) | 634 | ;;; glyph-str-list)))))) |
| 635 | (compose-region from to glyph-str))) | 635 | ;;; (compose-region from to glyph-str))) |
| 636 | 636 | ||
| 637 | (provide 'devan-util) | 637 | (provide 'devan-util) |