comparison lisp/international/latin-5.el @ 61440:cc32b1ad8413

Give punctuation syntax to NBSP.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 10 Apr 2005 20:49:54 +0000
parents 632c63e59879
children 18a818a2ee7c
comparison
equal deleted inserted replaced
61439:267229876c56 61440:cc32b1ad8413
1 ;;; latin-5.el --- set up case-conversion and syntax tables for ISO latin-5 1 ;;; latin-5.el --- set up case-conversion and syntax tables for ISO latin-5
2 2
3 ;; Copyright (C) 1997 Free Software Foundation, Inc. 3 ;; Copyright (C) 1997, 2005 Free Software Foundation, Inc.
4 4
5 ;; Author: Erik Naggum 5 ;; Author: Erik Naggum
6 ;; Maintainer: FSF 6 ;; Maintainer: FSF
7 ;; Keywords: i18n 7 ;; Keywords: i18n
8 8
34 (let ((tbl (standard-case-table)) 34 (let ((tbl (standard-case-table))
35 (set-case-syntax-offset 35 (set-case-syntax-offset
36 (if set-case-syntax-set-multibyte 36 (if set-case-syntax-set-multibyte
37 (- (make-char 'latin-iso8859-9) 128) 37 (- (make-char 'latin-iso8859-9) 128)
38 0))) 38 0)))
39 (set-case-syntax 160 " " tbl) ;no-break space 39 ;; NBSP isn't semantically interchangeable with other whitespace chars,
40 ;; so it's more like punctation.
41 (set-case-syntax 160 "." tbl) ;no-break space
40 (set-case-syntax 161 "." tbl) ;inverted exclamation mark 42 (set-case-syntax 161 "." tbl) ;inverted exclamation mark
41 (set-case-syntax 162 "w" tbl) ;cent sign 43 (set-case-syntax 162 "w" tbl) ;cent sign
42 (set-case-syntax 163 "w" tbl) ;pound sign 44 (set-case-syntax 163 "w" tbl) ;pound sign
43 (set-case-syntax 164 "w" tbl) ;currency sign 45 (set-case-syntax 164 "w" tbl) ;currency sign
44 (set-case-syntax 165 "w" tbl) ;yen sign 46 (set-case-syntax 165 "w" tbl) ;yen sign
109 ;; When preloading this file, don't provide the feature. 111 ;; When preloading this file, don't provide the feature.
110 ;; Explicit `require' is used to load this for 8-bit characters. 112 ;; Explicit `require' is used to load this for 8-bit characters.
111 (or set-case-syntax-set-multibyte 113 (or set-case-syntax-set-multibyte
112 (provide 'latin-5)) 114 (provide 'latin-5))
113 115
114 ;;; Don't compile this file: src/Makefile.in instructs make-docfile 116 ;; Don't compile this file: src/Makefile.in instructs make-docfile
115 ;;; to look at the .el file! 117 ;; to look at the .el file!
116 ;;; Local Variables: 118 ;; Local Variables:
117 ;;; no-byte-compile: t 119 ;; no-byte-compile: t
118 ;;; End: 120 ;; End:
119 121
120 ;;; arch-tag: 7f91a36a-39fb-4b5d-806f-f171abee71ad 122 ;; arch-tag: 7f91a36a-39fb-4b5d-806f-f171abee71ad
121 ;;; latin-5.el ends here 123 ;;; latin-5.el ends here