comparison lisp/international/characters.el @ 89146:4b3fdf998612

Add Latin-1.
author Dave Love <fx@gnu.org>
date Sat, 05 Oct 2002 18:51:37 +0000
parents d7638593beca
children f0d0b7118166
comparison
equal deleted inserted replaced
89145:9feda646c377 89146:4b3fdf998612
447 ;; In some languages, U+0049 LATIN CAPITAL LETTER I and U+0131 LATIN 447 ;; In some languages, U+0049 LATIN CAPITAL LETTER I and U+0131 LATIN
448 ;; SMALL LETTER DOTLESS I make a case pair, and so do U+0130 LATIN 448 ;; SMALL LETTER DOTLESS I make a case pair, and so do U+0130 LATIN
449 ;; CAPITAL LETTER I WITH DOT ABOVE and U+0069 LATIN SMALL LETTER I. 449 ;; CAPITAL LETTER I WITH DOT ABOVE and U+0069 LATIN SMALL LETTER I.
450 ;; Thus we have to check language-environment to handle casing 450 ;; Thus we have to check language-environment to handle casing
451 ;; correctly. Currently only I<->i is available. 451 ;; correctly. Currently only I<->i is available.
452
453 ;; Latin-1
454
455 ;; Fixme: Some of the non-word syntaxes here perhaps should be
456 ;; reviewed. (Note that the following all implicitly have word
457 ;; syntax: ¢£¤¥¨ª¯²³´¶¸¹º.) There should be a well-defined way of
458 ;; relating Unicode categories to Emacs syntax codes.
459 (set-case-syntax ?  " " tbl) ; dubious
460 (set-case-syntax ?¡ "." tbl)
461 (set-case-syntax ?¦ "_" tbl)
462 (set-case-syntax ?§ "." tbl)
463 (set-case-syntax ?© "_" tbl)
464 (set-case-syntax-delims 171 187 tbl) ; « »
465 (set-case-syntax ?¬ "_" tbl)
466 (set-case-syntax ?­ "_" tbl)
467 (set-case-syntax ?® "_" tbl)
468 (set-case-syntax ?° "_" tbl)
469 (set-case-syntax ?± "_" tbl)
470 (set-case-syntax ?µ "_" tbl)
471 (set-case-syntax ?· "_" tbl)
472 (set-case-syntax ?¼ "_" tbl)
473 (set-case-syntax ?½ "_" tbl)
474 (set-case-syntax ?¾ "_" tbl)
475 (set-case-syntax ?¿ "." tbl)
476 (let ((c 192))
477 (while (<= c 222)
478 (set-case-syntax-pair c (+ c 32) tbl)
479 (setq c (1+ c))))
480 (set-case-syntax ?× "_" tbl)
481 (set-case-syntax ?ß "w" tbl)
482 (set-case-syntax ?÷ "_" tbl)
483 ;; See below for ÿ.
452 484
453 ;; Latin Extended-A, Latin Extended-B 485 ;; Latin Extended-A, Latin Extended-B
454 (setq c #x0100) 486 (setq c #x0100)
455 (while (<= c #x0233) 487 (while (<= c #x0233)
456 (and (or (<= c #x012e) 488 (and (or (<= c #x012e)
678 (setq c #x2160) 710 (setq c #x2160)
679 (while (<= c #x216f) 711 (while (<= c #x216f)
680 (set-case-syntax-pair c (+ c #x10) tbl) 712 (set-case-syntax-pair c (+ c #x10) tbl)
681 (setq c (1+ c))) 713 (setq c (1+ c)))
682 714
715 ;; Fixme: The following blocks might be better as symbol rather than
716 ;; punctuation.
683 ;; Arrows 717 ;; Arrows
684 (setq c #x2190) 718 (setq c #x2190)
685 (while (<= c #x21FF) 719 (while (<= c #x21FF)
686 (set-case-syntax c "." tbl) 720 (set-case-syntax c "." tbl)
687 (setq c (1+ c))) 721 (setq c (1+ c)))