(unibyte-display . iso-latin-5)
(input-method . "turkish-postfix")
(sample-text . "Turkish (T\e,M|\e(Brk\e,Mg\e(Be) Merhaba")
- (documentation . t)))
+ (documentation . t)
+ (setup-function . turkish-case-conversion-enable)
+ (exit-function . turkish-case-conversion-disable)))
+
+(defun turkish-case-conversion-enable ()
+ "Set up Turkish case conversion of `i' and `I' into `\e$,1 P\e(B' and `\e$,1 Q\e(B'."
+ (let ((table (standard-case-table)))
+ (set-case-syntax-pair ?\e$,1 P\e(B ?i table)
+ (set-case-syntax-pair ?I ?\e$,1 Q\e(B table)))
+
+(defun turkish-case-conversion-disable ()
+ "Set up normal (non-Turkish) case conversion of `i' into `I'."
+ (let ((table (standard-case-table)))
+ (set-case-syntax-pair ?I ?i table)
+ (set-case-syntax ?\e$,1 P\e(B "w" table)
+ (set-case-syntax ?\e$,1 Q\e(B "w" table)))
;; Polish ISO 8859-2 environment.
;; Maintainer: Wlodek Bzyl <matwb@univ.gda.pl>