diff options
| author | Dave Love | 2002-09-14 11:47:38 +0000 |
|---|---|---|
| committer | Dave Love | 2002-09-14 11:47:38 +0000 |
| commit | 3ff576416c54d2c8d3eebc837eea5807d7b014a5 (patch) | |
| tree | b9d6df923c6616838315e14d8e7fdae093ef2c91 | |
| parent | 9440a701eed8639e9907611f095a88af282ad7a1 (diff) | |
| download | emacs-3ff576416c54d2c8d3eebc837eea5807d7b014a5.tar.gz emacs-3ff576416c54d2c8d3eebc837eea5807d7b014a5.zip | |
(ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist)
(ucs-gurmukhi-to-is13194-alist, ucs-gujarati-to-is13194-alist)
(ucs-oriya-to-is13194-alist, ucs-tamil-to-is13194-alist)
(ucs-telugu-to-is13194-alist, ucs-malayalam-to-is13194-alist))):
Remove declarations and let-bind them in re-written top-level loop
over scripts, including ucs-devanagari-to-is13194-alist.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/language/ind-util.el | 167 |
2 files changed, 158 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bc0a9f9be76..92fe082efb5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2002-09-14 Dave Love <d.love@dl.ac.uk> | ||
| 2 | |||
| 3 | * Makefile.in (DONTCOMPILE): Add indian.el. | ||
| 4 | |||
| 5 | * language/ind-util.el: | ||
| 6 | (ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist) | ||
| 7 | (ucs-gurmukhi-to-is13194-alist, ucs-gujarati-to-is13194-alist) | ||
| 8 | (ucs-oriya-to-is13194-alist, ucs-tamil-to-is13194-alist) | ||
| 9 | (ucs-telugu-to-is13194-alist, ucs-malayalam-to-is13194-alist))): | ||
| 10 | Remove declarations and let-bind them in re-written top-level loop | ||
| 11 | over scripts, including ucs-devanagari-to-is13194-alist. | ||
| 12 | |||
| 1 | 2002-09-14 Dave Love <fx@gnu.org> | 13 | 2002-09-14 Dave Love <fx@gnu.org> |
| 2 | 14 | ||
| 3 | * international/mule-cmds.el (charset): Move. | 15 | * international/mule-cmds.el (charset): Move. |
diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el index 63ae278d99e..d5478e13acb 100644 --- a/lisp/language/ind-util.el +++ b/lisp/language/ind-util.el | |||
| @@ -349,15 +349,6 @@ FUNCTION will be called 15 times." | |||
| 349 | 349 | ||
| 350 | ;; The following provide conversion between IS 13194 (ISCII) and UCS. | 350 | ;; The following provide conversion between IS 13194 (ISCII) and UCS. |
| 351 | 351 | ||
| 352 | (defvar ucs-bengali-to-is13194-alist nil) | ||
| 353 | (defvar ucs-assamese-to-is13194-alist nil) | ||
| 354 | (defvar ucs-gurmukhi-to-is13194-alist nil) | ||
| 355 | (defvar ucs-gujarati-to-is13194-alist nil) | ||
| 356 | (defvar ucs-oriya-to-is13194-alist nil) | ||
| 357 | (defvar ucs-tamil-to-is13194-alist nil) | ||
| 358 | (defvar ucs-telugu-to-is13194-alist nil) | ||
| 359 | (defvar ucs-malayalam-to-is13194-alist nil) | ||
| 360 | |||
| 361 | (defvar is13194-default-repertory 'devanagari) | 352 | (defvar is13194-default-repertory 'devanagari) |
| 362 | 353 | ||
| 363 | (defvar is13194-repertory-to-ucs-script | 354 | (defvar is13194-repertory-to-ucs-script |
| @@ -394,24 +385,158 @@ FUNCTION will be called 15 times." | |||
| 394 | (defvar is13194-to-ucs-malayalam-hashtbl nil) | 385 | (defvar is13194-to-ucs-malayalam-hashtbl nil) |
| 395 | (defvar is13194-to-ucs-malayalam-regexp nil) | 386 | (defvar is13194-to-ucs-malayalam-regexp nil) |
| 396 | 387 | ||
| 397 | (mapc | 388 | (let |
| 398 | (function (lambda (script) | 389 | ;;Unicode vs IS13194. Only Devanagari is supported currently. |
| 390 | ((ucs-devanagari-to-is13194-alist | ||
| 391 | '((?\x0900 . "[U+0900]") | ||
| 392 | (?\x0901 . "(5!(B") | ||
| 393 | (?\x0902 . "(5"(B") | ||
| 394 | (?\x0903 . "(5#(B") | ||
| 395 | (?\x0904 . "[U+0904]") | ||
| 396 | (?\x0905 . "(5$(B") | ||
| 397 | (?\x0906 . "(5%(B") | ||
| 398 | (?\x0907 . "(5&(B") | ||
| 399 | (?\x0908 . "(5'(B") | ||
| 400 | (?\x0909 . "(5((B") | ||
| 401 | (?\x090a . "(5)(B") | ||
| 402 | (?\x090b . "(5*(B") | ||
| 403 | (?\x090c . "(5&i(B") | ||
| 404 | (?\x090d . "(5.(B") | ||
| 405 | (?\x090e . "(5+(B") | ||
| 406 | (?\x090f . "(5,(B") | ||
| 407 | (?\x0910 . "(5-(B") | ||
| 408 | (?\x0911 . "(52(B") | ||
| 409 | (?\x0912 . "(5/(B") | ||
| 410 | (?\x0913 . "(50(B") | ||
| 411 | (?\x0914 . "(51(B") | ||
| 412 | (?\x0915 . "(53(B") | ||
| 413 | (?\x0916 . "(54(B") | ||
| 414 | (?\x0917 . "(55(B") | ||
| 415 | (?\x0918 . "(56(B") | ||
| 416 | (?\x0919 . "(57(B") | ||
| 417 | (?\x091a . "(58(B") | ||
| 418 | (?\x091b . "(59(B") | ||
| 419 | (?\x091c . "(5:(B") | ||
| 420 | (?\x091d . "(5;(B") | ||
| 421 | (?\x091e . "(5<(B") | ||
| 422 | (?\x091f . "(5=(B") | ||
| 423 | (?\x0920 . "(5>(B") | ||
| 424 | (?\x0921 . "(5?(B") | ||
| 425 | (?\x0922 . "(5@(B") | ||
| 426 | (?\x0923 . "(5A(B") | ||
| 427 | (?\x0924 . "(5B(B") | ||
| 428 | (?\x0925 . "(5C(B") | ||
| 429 | (?\x0926 . "(5D(B") | ||
| 430 | (?\x0927 . "(5E(B") | ||
| 431 | (?\x0928 . "(5F(B") | ||
| 432 | (?\x0929 . "(5G(B") | ||
| 433 | (?\x092a . "(5H(B") | ||
| 434 | (?\x092b . "(5I(B") | ||
| 435 | (?\x092c . "(5J(B") | ||
| 436 | (?\x092d . "(5K(B") | ||
| 437 | (?\x092e . "(5L(B") | ||
| 438 | (?\x092f . "(5M(B") | ||
| 439 | (?\x0930 . "(5O(B") | ||
| 440 | (?\x0931 . "(5P(B") | ||
| 441 | (?\x0932 . "(5Q(B") | ||
| 442 | (?\x0933 . "(5R(B") | ||
| 443 | (?\x0934 . "(5S(B") | ||
| 444 | (?\x0935 . "(5T(B") | ||
| 445 | (?\x0936 . "(5U(B") | ||
| 446 | (?\x0937 . "(5V(B") | ||
| 447 | (?\x0938 . "(5W(B") | ||
| 448 | (?\x0939 . "(5X(B") | ||
| 449 | (?\x093a . "[U+093a]") | ||
| 450 | (?\x093b . "[U+093b]") | ||
| 451 | (?\x093c . "(5i(B") | ||
| 452 | (?\x093d . "(5ji(B") | ||
| 453 | (?\x093e . "(5Z(B") | ||
| 454 | (?\x093f . "(5[(B") | ||
| 455 | (?\x0940 . "(5\(B") | ||
| 456 | (?\x0941 . "(5](B") | ||
| 457 | (?\x0942 . "(5^(B") | ||
| 458 | (?\x0943 . "(5_(B") | ||
| 459 | (?\x0944 . "(5_i(B") | ||
| 460 | (?\x0945 . "(5c(B") | ||
| 461 | (?\x0946 . "(5`(B") | ||
| 462 | (?\x0947 . "(5a(B") | ||
| 463 | (?\x0948 . "(5b(B") | ||
| 464 | (?\x0949 . "(5g(B") | ||
| 465 | (?\x094a . "(5d(B") | ||
| 466 | (?\x094b . "(5e(B") | ||
| 467 | (?\x094c . "(5f(B") | ||
| 468 | (?\x094d . "(5h(B") | ||
| 469 | (?\x094e . "[U+094e]") | ||
| 470 | (?\x094f . "[U+094f]") | ||
| 471 | (?\x0950 . "(5!i(B") | ||
| 472 | (?\x0951 . "(5p5(B") | ||
| 473 | (?\x0952 . "(5p8(B") | ||
| 474 | (?\x0953 . "[DEVANAGARI GRAVE ACCENT]") | ||
| 475 | (?\x0954 . "[DEVANAGARI ACUTE ACCENT]") | ||
| 476 | (?\x0955 . "[U+0955]") | ||
| 477 | (?\x0956 . "[U+0956]") | ||
| 478 | (?\x0957 . "[U+0957]") | ||
| 479 | (?\x0958 . "(53i(B") | ||
| 480 | (?\x0959 . "(54i(B") | ||
| 481 | (?\x095a . "(55i(B") | ||
| 482 | (?\x095b . "(5:i(B") | ||
| 483 | (?\x095c . "(5?i(B") | ||
| 484 | (?\x095d . "(5@i(B") | ||
| 485 | (?\x095e . "(5Ii(B") | ||
| 486 | (?\x095f . "(5N(B") | ||
| 487 | (?\x0960 . "(5*i(B") | ||
| 488 | (?\x0961 . "(5'i(B") | ||
| 489 | (?\x0962 . "(5[i(B") | ||
| 490 | (?\x0963 . "(5ei(B") | ||
| 491 | (?\x0964 . "(5j(B") | ||
| 492 | (?\x0965 . "(5jj(B") | ||
| 493 | (?\x0966 . "(5q(B") | ||
| 494 | (?\x0967 . "(5r(B") | ||
| 495 | (?\x0968 . "(5s(B") | ||
| 496 | (?\x0969 . "(5t(B") | ||
| 497 | (?\x096a . "(5u(B") | ||
| 498 | (?\x096b . "(5v(B") | ||
| 499 | (?\x096c . "(5w(B") | ||
| 500 | (?\x096d . "(5x(B") | ||
| 501 | (?\x096e . "(5y(B") | ||
| 502 | (?\x096f . "(5z(B") | ||
| 503 | (?\x0970 . "[U+0970]") | ||
| 504 | (?\x0971 . "[U+0971]") | ||
| 505 | (?\x0972 . "[U+0972]") | ||
| 506 | (?\x0973 . "[U+0973]") | ||
| 507 | (?\x0974 . "[U+0974]") | ||
| 508 | (?\x0975 . "[U+0975]") | ||
| 509 | (?\x0976 . "[U+0976]") | ||
| 510 | (?\x0977 . "[U+0977]") | ||
| 511 | (?\x0978 . "[U+0978]") | ||
| 512 | (?\x0979 . "[U+0979]") | ||
| 513 | (?\x097a . "[U+097a]") | ||
| 514 | (?\x097b . "[U+097b]") | ||
| 515 | (?\x097c . "[U+097c]") | ||
| 516 | (?\x097d . "[U+097d]") | ||
| 517 | (?\x097e . "[U+097e]") | ||
| 518 | (?\x097f . "[U+097f]"))) | ||
| 519 | (ucs-bengali-to-is13194-alist nil) | ||
| 520 | (ucs-assamese-to-is13194-alist nil) | ||
| 521 | (ucs-gurmukhi-to-is13194-alist nil) | ||
| 522 | (ucs-gujarati-to-is13194-alist nil) | ||
| 523 | (ucs-oriya-to-is13194-alist nil) | ||
| 524 | (ucs-tamil-to-is13194-alist nil) | ||
| 525 | (ucs-telugu-to-is13194-alist nil) | ||
| 526 | (ucs-malayalam-to-is13194-alist nil)) | ||
| 527 | (dolist (script '(devanagari bengali assamese gurmukhi gujarati | ||
| 528 | oriya tamil telugu malayalam)) | ||
| 399 | (let ((hashtable (intern (concat "is13194-to-ucs-" | 529 | (let ((hashtable (intern (concat "is13194-to-ucs-" |
| 400 | (symbol-name script) "-hashtbl" ))) | 530 | (symbol-name script) "-hashtbl" ))) |
| 401 | (regexp (intern (concat "is13194-to-ucs-" | 531 | (regexp (intern (concat "is13194-to-ucs-" |
| 402 | (symbol-name script) "-regexp")))) | 532 | (symbol-name script) "-regexp")))) |
| 403 | (set hashtable (make-hash-table :test 'equal :size 128)) | 533 | (set hashtable (make-hash-table :test 'equal :size 128)) |
| 404 | (mapc | 534 | (dolist (x (eval (intern (concat "ucs-" (symbol-name script) |
| 405 | (function (lambda (x) | 535 | "-to-is13194-alist")))) |
| 406 | (put-char-code-property (car x) 'script script) | 536 | (put-char-code-property (car x) 'script script) |
| 407 | (put-char-code-property (car x) 'iscii (cdr x)) | 537 | (put-char-code-property (car x) 'iscii (cdr x)) |
| 408 | (puthash (cdr x) (char-to-string (car x)) | 538 | (puthash (cdr x) (char-to-string (car x)) (eval hashtable))) |
| 409 | (eval hashtable)))) | ||
| 410 | (eval (intern (concat "ucs-" (symbol-name script) | ||
| 411 | "-to-is13194-alist")))) | ||
| 412 | (set regexp (indian-regexp-of-hashtbl-keys (eval hashtable)))))) | 539 | (set regexp (indian-regexp-of-hashtbl-keys (eval hashtable)))))) |
| 413 | '(devanagari bengali assamese gurmukhi gujarati | ||
| 414 | oriya tamil telugu malayalam)) | ||
| 415 | 540 | ||
| 416 | (defvar ucs-to-is13194-regexp | 541 | (defvar ucs-to-is13194-regexp |
| 417 | ;; only Devanagari is supported now. | 542 | ;; only Devanagari is supported now. |