]> code.delx.au - gnu-emacs/commitdiff
(cp858): New.
authorDave Love <fx@gnu.org>
Sat, 7 Sep 2002 23:56:18 +0000 (23:56 +0000)
committerDave Love <fx@gnu.org>
Sat, 7 Sep 2002 23:56:18 +0000 (23:56 +0000)
("Turkish"): Add special case rules.

lisp/language/european.el

index 49735d8b819667294dcbaa23563acac856e8cce8..d6c51d8a89a1f8589601a47c8a719a0addeaa707 100644 (file)
@@ -348,6 +348,13 @@ Latin-9 is sometimes nicknamed `Latin-0'."))
   :mime-charset 'cp857)
 (define-coding-system-alias 'ibm857 'cp857)
 
+(define-coding-system 'cp858
+  "Codepage 858 (Multilingual Latin I + Euro)"
+  :coding-type 'charset
+  :mnemonic ?D
+  :charset-list '(cp858)
+  :mime-charset 'cp858)
+
 (define-coding-system 'cp860
   "DOS codepage 860 (Portuguese)"
   :coding-type 'charset
@@ -479,7 +486,18 @@ but it selects the Dutch tutorial and input method."))
             (unibyte-display . iso-latin-5)
             (input-method . "turkish-postfix")
             (sample-text . "Turkish (T\e,A|\e(Brk\e,Ag\e(Be)       Merhaba")
-            (documentation . t)))
+            (setup-function
+             . (lambda ()
+                 (set-case-syntax-pair ?I ?\e,C9\e(B (standard-case-table))
+                 (set-case-syntax-pair ?\e,C)\e(B ?i (standard-case-table))))
+            (exit-function
+             . (lambda ()
+                 (set-case-syntax-pair ?I ?i (standard-case-table))
+                 (set-case-syntax ?\e,C9\e(B "w" (standard-case-table))
+                 (set-case-syntax ?\e,C)\e(B "w" (standard-case-table))))
+            (documentation . "Support for Turkish.
+Differs from the Latin-5 environment in using the `turkish-postfix' input
+method and applying Turkish case rules for the characters i, I, \e,C9\e(B, \e,C)\e(B.")))
 
 ;; Polish ISO 8859-2 environment.
 ;; Maintainer: Wlodek Bzyl <matwb@univ.gda.pl>