diff options
| -rw-r--r-- | lisp/term/mac-win.el | 288 |
1 files changed, 144 insertions, 144 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el index b97a3a9ec3a..b40e021d42d 100644 --- a/lisp/term/mac-win.el +++ b/lisp/term/mac-win.el | |||
| @@ -1130,6 +1130,146 @@ correspoinding TextEncodingBase value." | |||
| 1130 | (mac-add-charset-info "mac-dingbats" 34) | 1130 | (mac-add-charset-info "mac-dingbats" 34) |
| 1131 | (mac-add-charset-info "iso10646-1" 126) ; for ATSUI | 1131 | (mac-add-charset-info "iso10646-1" 126) ; for ATSUI |
| 1132 | 1132 | ||
| 1133 | (define-charset 'mac-centraleurroman | ||
| 1134 | "Mac Central European Roman" | ||
| 1135 | :short-name "Mac CE" | ||
| 1136 | :ascii-compatible-p t | ||
| 1137 | :code-space [0 255] | ||
| 1138 | :map | ||
| 1139 | (let ((tbl | ||
| 1140 | [?\Ä ?\Ā ?\ā ?\É ?\Ą ?\Ö ?\Ü ?\á ?\ą ?\Č ?\ä ?\č ?\Ć ?\ć ?\é ?\Ź | ||
| 1141 | ?\ź ?\Ď ?\í ?\ď ?\Ē ?\ē ?\Ė ?\ó ?\ė ?\ô ?\ö ?\õ ?\ú ?\Ě ?\ě ?\ü | ||
| 1142 | ?\† ?\° ?\Ę ?\£ ?\§ ?\• ?\¶ ?\ß ?\® ?\© ?\™ ?\ę ?\¨ ?\≠ ?\ģ ?\Į | ||
| 1143 | ?\į ?\Ī ?\≤ ?\≥ ?\ī ?\Ķ ?\∂ ?\∑ ?\ł ?\Ļ ?\ļ ?\Ľ ?\ľ ?\Ĺ ?\ĺ ?\Ņ | ||
| 1144 | ?\ņ ?\Ń ?\¬ ?\√ ?\ń ?\Ň ?\∆ ?\« ?\» ?\… ?\ ?\ň ?\Ő ?\Õ ?\ő ?\Ō | ||
| 1145 | ?\– ?\— ?\“ ?\” ?\‘ ?\’ ?\÷ ?\◊ ?\ō ?\Ŕ ?\ŕ ?\Ř ?\‹ ?\› ?\ř ?\Ŗ | ||
| 1146 | ?\ŗ ?\Š ?\‚ ?\„ ?\š ?\Ś ?\ś ?\Á ?\Ť ?\ť ?\Í ?\Ž ?\ž ?\Ū ?\Ó ?\Ô | ||
| 1147 | ?\ū ?\Ů ?\Ú ?\ů ?\Ű ?\ű ?\Ų ?\ų ?\Ý ?\ý ?\ķ ?\Ż ?\Ł ?\ż ?\Ģ ?\ˇ]) | ||
| 1148 | (map (make-vector 512 nil))) | ||
| 1149 | (or (= (length tbl) 128) | ||
| 1150 | (error "Invalid vector length: %d" (length tbl))) | ||
| 1151 | (dotimes (i 128) | ||
| 1152 | (aset map (* i 2) i) | ||
| 1153 | (aset map (1+ (* i 2)) i)) | ||
| 1154 | (dotimes (i 128) | ||
| 1155 | (aset map (+ 256 (* i 2)) (+ 128 i)) | ||
| 1156 | (aset map (+ 256 (1+ (* i 2))) (aref tbl i))) | ||
| 1157 | map)) | ||
| 1158 | |||
| 1159 | (define-coding-system 'mac-centraleurroman | ||
| 1160 | "Mac Central European Roman Encoding (MIME:x-mac-centraleurroman)." | ||
| 1161 | :coding-type 'charset | ||
| 1162 | :mnemonic ?* | ||
| 1163 | :charset-list '(mac-centraleurroman) | ||
| 1164 | :mime-charset 'x-mac-centraleurroman) | ||
| 1165 | |||
| 1166 | (define-charset 'mac-cyrillic | ||
| 1167 | "Mac Cyrillic" | ||
| 1168 | :short-name "Mac CYRILLIC" | ||
| 1169 | :ascii-compatible-p t | ||
| 1170 | :code-space [0 255] | ||
| 1171 | :map | ||
| 1172 | (let ((tbl | ||
| 1173 | [?\А ?\Б ?\В ?\Г ?\Д ?\Е ?\Ж ?\З ?\И ?\Й ?\К ?\Л ?\М ?\Н ?\О ?\П | ||
| 1174 | ?\Р ?\С ?\Т ?\У ?\Ф ?\Х ?\Ц ?\Ч ?\Ш ?\Щ ?\Ъ ?\Ы ?\Ь ?\Э ?\Ю ?\Я | ||
| 1175 | ?\† ?\° ?\Ґ ?\£ ?\§ ?\• ?\¶ ?\І ?\® ?\© ?\™ ?\Ђ ?\ђ ?\≠ ?\Ѓ ?\ѓ | ||
| 1176 | ?\∞ ?\± ?\≤ ?\≥ ?\і ?\µ ?\ґ ?\Ј ?\Є ?\є ?\Ї ?\ї ?\Љ ?\љ ?\Њ ?\њ | ||
| 1177 | ?\ј ?\Ѕ ?\¬ ?\√ ?\ƒ ?\≈ ?\∆ ?\« ?\» ?\… ?\ ?\Ћ ?\ћ ?\Ќ ?\ќ ?\ѕ | ||
| 1178 | ?\– ?\— ?\“ ?\” ?\‘ ?\’ ?\÷ ?\„ ?\Ў ?\ў ?\Џ ?\џ ?\№ ?\Ё ?\ё ?\я | ||
| 1179 | ?\а ?\б ?\в ?\г ?\д ?\е ?\ж ?\з ?\и ?\й ?\к ?\л ?\м ?\н ?\о ?\п | ||
| 1180 | ?\р ?\с ?\т ?\у ?\ф ?\х ?\ц ?\ч ?\ш ?\щ ?\ъ ?\ы ?\ь ?\э ?\ю ?\€]) | ||
| 1181 | (map (make-vector 512 nil))) | ||
| 1182 | (or (= (length tbl) 128) | ||
| 1183 | (error "Invalid vector length: %d" (length tbl))) | ||
| 1184 | (dotimes (i 128) | ||
| 1185 | (aset map (* i 2) i) | ||
| 1186 | (aset map (1+ (* i 2)) i)) | ||
| 1187 | (dotimes (i 128) | ||
| 1188 | (aset map (+ 256 (* i 2)) (+ 128 i)) | ||
| 1189 | (aset map (+ 256 (1+ (* i 2))) (aref tbl i))) | ||
| 1190 | map)) | ||
| 1191 | |||
| 1192 | (define-coding-system 'mac-cyrillic | ||
| 1193 | "Mac Cyrillic Encoding (MIME:x-mac-cyrillic)." | ||
| 1194 | :coding-type 'charset | ||
| 1195 | :mnemonic ?* | ||
| 1196 | :charset-list '(mac-cyrillic) | ||
| 1197 | :mime-charset 'x-mac-cyrillic) | ||
| 1198 | |||
| 1199 | (define-charset 'mac-symbol | ||
| 1200 | "Mac Symbol" | ||
| 1201 | :short-name "Mac SYMBOL" | ||
| 1202 | :code-space [32 254] | ||
| 1203 | :map | ||
| 1204 | (let ((tbl-32-126 | ||
| 1205 | [?\ ?\! ?\∀ ?\# ?\∃ ?\% ?\& ?\∍ ?\( ?\) ?\∗ ?\+ ?\, ?\− ?\. ?\/ | ||
| 1206 | ?\0 ?\1 ?\2 ?\3 ?\4 ?\5 ?\6 ?\7 ?\8 ?\9 ?\: ?\; ?\< ?\= ?\> ?\? | ||
| 1207 | ?\≅ ?\Α ?\Β ?\Χ ?\Δ ?\Ε ?\Φ ?\Γ ?\Η ?\Ι ?\ϑ ?\Κ ?\Λ ?\Μ ?\Ν ?\Ο | ||
| 1208 | ?\Π ?\Θ ?\Ρ ?\Σ ?\Τ ?\Υ ?\ς ?\Ω ?\Ξ ?\Ψ ?\Ζ ?\[ ?\∴ ?\] ?\⊥ ?\_ | ||
| 1209 | ?\ ?\α ?\β ?\χ ?\δ ?\ε ?\φ ?\γ ?\η ?\ι ?\ϕ ?\κ ?\λ ?\μ ?\ν ?\ο | ||
| 1210 | ?\π ?\θ ?\ρ ?\σ ?\τ ?\υ ?\ϖ ?\ω ?\ξ ?\ψ ?\ζ ?\{ ?\| ?\} ?\∼]) | ||
| 1211 | (map-32-126 (make-vector (* (1+ (- 126 32)) 2) nil)) | ||
| 1212 | (tbl-160-254 | ||
| 1213 | ;; Mapping of the following characters are changed from the | ||
| 1214 | ;; original one: | ||
| 1215 | ;; 0xE2 0x00AE+0xF87F->0x00AE # REGISTERED SIGN, alternate: sans serif | ||
| 1216 | ;; 0xE3 0x00A9+0xF87F->0x00A9 # COPYRIGHT SIGN, alternate: sans serif | ||
| 1217 | ;; 0xE4 0x2122+0xF87F->0x2122 # TRADE MARK SIGN, alternate: sans serif | ||
| 1218 | [?\€ ?\ϒ ?\′ ?\≤ ?\⁄ ?\∞ ?\ƒ ?\♣ ?\♦ ?\♥ ?\♠ ?\↔ ?\← ?\↑ ?\→ ?\↓ | ||
| 1219 | ?\° ?\± ?\″ ?\≥ ?\× ?\∝ ?\∂ ?\• ?\÷ ?\≠ ?\≡ ?\≈ ?\… ?\⏐ ?\⎯ ?\↵ | ||
| 1220 | ?\ℵ ?\ℑ ?\ℜ ?\℘ ?\⊗ ?\⊕ ?\∅ ?\∩ ?\∪ ?\⊃ ?\⊇ ?\⊄ ?\⊂ ?\⊆ ?\∈ ?\∉ | ||
| 1221 | ?\∠ ?\∇ ?\® ?\© ?\™ ?\∏ ?\√ ?\⋅ ?\¬ ?\∧ ?\∨ ?\⇔ ?\⇐ ?\⇑ ?\⇒ ?\⇓ | ||
| 1222 | ?\◊ ?\〈 ?\® ?\© ?\™ ?\∑ ?\⎛ ?\⎜ ?\⎝ ?\⎡ ?\⎢ ?\⎣ ?\⎧ ?\⎨ ?\⎩ ?\⎪ | ||
| 1223 | ?\ ?\〉 ?\∫ ?\⌠ ?\⎮ ?\⌡ ?\⎞ ?\⎟ ?\⎠ ?\⎤ ?\⎥ ?\⎦ ?\⎫ ?\⎬ ?\⎭]) | ||
| 1224 | (map-160-254 (make-vector (* (1+ (- 254 160)) 2) nil))) | ||
| 1225 | (dotimes (i (1+ (- 126 32))) | ||
| 1226 | (aset map-32-126 (* i 2) (+ 32 i)) | ||
| 1227 | (aset map-32-126 (1+ (* i 2)) (aref tbl-32-126 i))) | ||
| 1228 | (dotimes (i (1+ (- 254 160))) | ||
| 1229 | (aset map-160-254 (* i 2) (+ 160 i)) | ||
| 1230 | (aset map-160-254 (1+ (* i 2)) (aref tbl-160-254 i))) | ||
| 1231 | (vconcat map-32-126 map-160-254))) | ||
| 1232 | |||
| 1233 | (define-charset 'mac-dingbats | ||
| 1234 | "Mac Dingbats" | ||
| 1235 | :short-name "Mac Dingbats" | ||
| 1236 | :code-space [32 254] | ||
| 1237 | :map | ||
| 1238 | (let ((tbl-32-126 | ||
| 1239 | [?\ ?\✁ ?\✂ ?\✃ ?\✄ ?\☎ ?\✆ ?\✇ ?\✈ ?\✉ ?\☛ ?\☞ ?\✌ ?\✍ ?\✎ ?\✏ | ||
| 1240 | ?\✐ ?\✑ ?\✒ ?\✓ ?\✔ ?\✕ ?\✖ ?\✗ ?\✘ ?\✙ ?\✚ ?\✛ ?\✜ ?\✝ ?\✞ ?\✟ | ||
| 1241 | ?\✠ ?\✡ ?\✢ ?\✣ ?\✤ ?\✥ ?\✦ ?\✧ ?\★ ?\✩ ?\✪ ?\✫ ?\✬ ?\✭ ?\✮ ?\✯ | ||
| 1242 | ?\✰ ?\✱ ?\✲ ?\✳ ?\✴ ?\✵ ?\✶ ?\✷ ?\✸ ?\✹ ?\✺ ?\✻ ?\✼ ?\✽ ?\✾ ?\✿ | ||
| 1243 | ?\❀ ?\❁ ?\❂ ?\❃ ?\❄ ?\❅ ?\❆ ?\❇ ?\❈ ?\❉ ?\❊ ?\❋ ?\● ?\❍ ?\■ ?\❏ | ||
| 1244 | ?\❐ ?\❑ ?\❒ ?\▲ ?\▼ ?\◆ ?\❖ ?\◗ ?\❘ ?\❙ ?\❚ ?\❛ ?\❜ ?\❝ ?\❞]) | ||
| 1245 | (map-32-126 (make-vector (* (1+ (- 126 32)) 2) nil)) | ||
| 1246 | (tbl-128-141 | ||
| 1247 | [?\❨ ?\❩ ?\❪ ?\❫ ?\❬ ?\❭ ?\❮ ?\❯ ?\❰ ?\❱ ?\❲ ?\❳ ?\❴ ?\❵]) | ||
| 1248 | (map-128-141 (make-vector (* (1+ (- 141 128)) 2) nil)) | ||
| 1249 | (tbl-161-239 | ||
| 1250 | [?\❡ ?\❢ ?\❣ ?\❤ ?\❥ ?\❦ ?\❧ ?\♣ ?\♦ ?\♥ ?\♠ ?\① ?\② ?\③ ?\④ | ||
| 1251 | ?\⑤ ?\⑥ ?\⑦ ?\⑧ ?\⑨ ?\⑩ ?\❶ ?\❷ ?\❸ ?\❹ ?\❺ ?\❻ ?\❼ ?\❽ ?\❾ ?\❿ | ||
| 1252 | ?\➀ ?\➁ ?\➂ ?\➃ ?\➄ ?\➅ ?\➆ ?\➇ ?\➈ ?\➉ ?\➊ ?\➋ ?\➌ ?\➍ ?\➎ ?\➏ | ||
| 1253 | ?\➐ ?\➑ ?\➒ ?\➓ ?\➔ ?\→ ?\↔ ?\↕ ?\➘ ?\➙ ?\➚ ?\➛ ?\➜ ?\➝ ?\➞ ?\➟ | ||
| 1254 | ?\➠ ?\➡ ?\➢ ?\➣ ?\➤ ?\➥ ?\➦ ?\➧ ?\➨ ?\➩ ?\➪ ?\➫ ?\➬ ?\➭ ?\➮ ?\➯]) | ||
| 1255 | (map-161-239 (make-vector (* (1+ (- 239 161)) 2) nil)) | ||
| 1256 | (tbl-241-254 | ||
| 1257 | [?\➱ ?\➲ ?\➳ ?\➴ ?\➵ ?\➶ ?\➷ ?\➸ ?\➹ ?\➺ ?\➻ ?\➼ ?\➽ ?\➾]) | ||
| 1258 | (map-241-254 (make-vector (* (1+ (- 254 241)) 2) nil))) | ||
| 1259 | (dotimes (i (1+ (- 126 32))) | ||
| 1260 | (aset map-32-126 (* i 2) (+ 32 i)) | ||
| 1261 | (aset map-32-126 (1+ (* i 2)) (aref tbl-32-126 i))) | ||
| 1262 | (dotimes (i (1+ (- 141 128))) | ||
| 1263 | (aset map-128-141 (* i 2) (+ 128 i)) | ||
| 1264 | (aset map-128-141 (1+ (* i 2)) (aref tbl-128-141 i))) | ||
| 1265 | (dotimes (i (1+ (- 239 161))) | ||
| 1266 | (aset map-161-239 (* i 2) (+ 161 i)) | ||
| 1267 | (aset map-161-239 (1+ (* i 2)) (aref tbl-161-239 i))) | ||
| 1268 | (dotimes (i (1+ (- 254 241))) | ||
| 1269 | (aset map-241-254 (* i 2) (+ 241 i)) | ||
| 1270 | (aset map-241-254 (1+ (* i 2)) (aref tbl-241-254 i))) | ||
| 1271 | (vconcat map-32-126 map-128-141 map-161-239 map-241-254))) | ||
| 1272 | |||
| 1133 | (defconst mac-system-coding-system | 1273 | (defconst mac-system-coding-system |
| 1134 | (let ((base (or (cdr (assq mac-system-script-code | 1274 | (let ((base (or (cdr (assq mac-system-script-code |
| 1135 | mac-script-code-coding-systems)) | 1275 | mac-script-code-coding-systems)) |
| @@ -1179,7 +1319,7 @@ correspoinding TextEncodingBase value." | |||
| 1179 | (setq str nil) | 1319 | (setq str nil) |
| 1180 | ;; ASCII-only? | 1320 | ;; ASCII-only? |
| 1181 | (unless (string-match "\\`[[:ascii:]]*\\'" str) | 1321 | (unless (string-match "\\`[[:ascii:]]*\\'" str) |
| 1182 | (subst-char-in-string ?\x5c ?\(J\(B str t) | 1322 | (subst-char-in-string ?\x5c ?\¥ str t) |
| 1183 | (subst-char-in-string ?\x80 ?\\ str t))))) | 1323 | (subst-char-in-string ?\x80 ?\\ str t))))) |
| 1184 | (or str | 1324 | (or str |
| 1185 | (decode-coding-string data | 1325 | (decode-coding-string data |
| @@ -1197,7 +1337,7 @@ correspoinding TextEncodingBase value." | |||
| 1197 | (eq coding-system 'japanese-shift-jis-mac)) | 1337 | (eq coding-system 'japanese-shift-jis-mac)) |
| 1198 | (setq encoding mac-text-encoding-mac-japanese-basic-variant) | 1338 | (setq encoding mac-text-encoding-mac-japanese-basic-variant) |
| 1199 | (setq string (subst-char-in-string ?\\ ?\x80 string)) | 1339 | (setq string (subst-char-in-string ?\\ ?\x80 string)) |
| 1200 | (subst-char-in-string ?\(J\(B ?\x5c string t)) | 1340 | (subst-char-in-string ?\¥ ?\x5c string t)) |
| 1201 | (setq data (mac-code-convert-string | 1341 | (setq data (mac-code-convert-string |
| 1202 | (encode-coding-string string coding-system) | 1342 | (encode-coding-string string coding-system) |
| 1203 | (or encoding coding-system) nil))) | 1343 | (or encoding coding-system) nil))) |
| @@ -1209,7 +1349,7 @@ correspoinding TextEncodingBase value." | |||
| 1209 | (or coding-system (setq coding-system mac-system-coding-system)) | 1349 | (or coding-system (setq coding-system mac-system-coding-system)) |
| 1210 | (prog1 (setq data (decode-coding-string data coding-system)) | 1350 | (prog1 (setq data (decode-coding-string data coding-system)) |
| 1211 | (when (eq (coding-system-base coding-system) 'japanese-shift-jis) | 1351 | (when (eq (coding-system-base coding-system) 'japanese-shift-jis) |
| 1212 | ;; (subst-char-in-string ?\x5c ?\(J\(B data t) | 1352 | ;; (subst-char-in-string ?\x5c ?\¥ data t) |
| 1213 | (subst-char-in-string ?\x80 ?\\ data t)))) | 1353 | (subst-char-in-string ?\x80 ?\\ data t)))) |
| 1214 | 1354 | ||
| 1215 | (defun mac-string-to-TEXT (string &optional coding-system) | 1355 | (defun mac-string-to-TEXT (string &optional coding-system) |
| @@ -1225,7 +1365,7 @@ correspoinding TextEncodingBase value." | |||
| 1225 | (coding-system-change-eol-conversion coding-system 'mac)) | 1365 | (coding-system-change-eol-conversion coding-system 'mac)) |
| 1226 | (when (eq coding-system 'japanese-shift-jis-mac) | 1366 | (when (eq coding-system 'japanese-shift-jis-mac) |
| 1227 | ;; (setq string (subst-char-in-string ?\\ ?\x80 string)) | 1367 | ;; (setq string (subst-char-in-string ?\\ ?\x80 string)) |
| 1228 | (setq string (subst-char-in-string ?\(J\(B ?\x5c string))) | 1368 | (setq string (subst-char-in-string ?\¥ ?\x5c string))) |
| 1229 | (encode-coding-string string coding-system)) | 1369 | (encode-coding-string string coding-system)) |
| 1230 | 1370 | ||
| 1231 | (defun mac-furl-to-string (data) | 1371 | (defun mac-furl-to-string (data) |
| @@ -1842,146 +1982,6 @@ See also `mac-dnd-known-types'." | |||
| 1842 | 1982 | ||
| 1843 | (setq frame-creation-function 'x-create-frame-with-faces) | 1983 | (setq frame-creation-function 'x-create-frame-with-faces) |
| 1844 | 1984 | ||
| 1845 | (define-charset 'mac-centraleurroman | ||
| 1846 | "Mac Central European Roman" | ||
| 1847 | :short-name "Mac CE" | ||
| 1848 | :ascii-compatible-p t | ||
| 1849 | :code-space [0 255] | ||
| 1850 | :map | ||
| 1851 | (let ((tbl | ||
| 1852 | [?\Ä ?\Ā ?\ā ?\É ?\Ą ?\Ö ?\Ü ?\á ?\ą ?\Č ?\ä ?\č ?\Ć ?\ć ?\é ?\Ź | ||
| 1853 | ?\ź ?\Ď ?\í ?\ď ?\Ē ?\ē ?\Ė ?\ó ?\ė ?\ô ?\ö ?\õ ?\ú ?\Ě ?\ě ?\ü | ||
| 1854 | ?\† ?\° ?\Ę ?\£ ?\§ ?\• ?\¶ ?\ß ?\® ?\© ?\™ ?\ę ?\¨ ?\≠ ?\ģ ?\Į | ||
| 1855 | ?\į ?\Ī ?\≤ ?\≥ ?\ī ?\Ķ ?\∂ ?\∑ ?\ł ?\Ļ ?\ļ ?\Ľ ?\ľ ?\Ĺ ?\ĺ ?\Ņ | ||
| 1856 | ?\ņ ?\Ń ?\¬ ?\√ ?\ń ?\Ň ?\∆ ?\« ?\» ?\… ?\ ?\ň ?\Ő ?\Õ ?\ő ?\Ō | ||
| 1857 | ?\– ?\— ?\“ ?\” ?\‘ ?\’ ?\÷ ?\◊ ?\ō ?\Ŕ ?\ŕ ?\Ř ?\‹ ?\› ?\ř ?\Ŗ | ||
| 1858 | ?\ŗ ?\Š ?\‚ ?\„ ?\š ?\Ś ?\ś ?\Á ?\Ť ?\ť ?\Í ?\Ž ?\ž ?\Ū ?\Ó ?\Ô | ||
| 1859 | ?\ū ?\Ů ?\Ú ?\ů ?\Ű ?\ű ?\Ų ?\ų ?\Ý ?\ý ?\ķ ?\Ż ?\Ł ?\ż ?\Ģ ?\ˇ]) | ||
| 1860 | (map (make-vector 512 nil))) | ||
| 1861 | (or (= (length tbl) 128) | ||
| 1862 | (error "Invalid vector length: %d" (length tbl))) | ||
| 1863 | (dotimes (i 128) | ||
| 1864 | (aset map (* i 2) i) | ||
| 1865 | (aset map (1+ (* i 2)) i)) | ||
| 1866 | (dotimes (i 128) | ||
| 1867 | (aset map (+ 256 (* i 2)) (+ 128 i)) | ||
| 1868 | (aset map (+ 256 (1+ (* i 2))) (aref tbl i))) | ||
| 1869 | map)) | ||
| 1870 | |||
| 1871 | (define-coding-system 'mac-centraleurroman | ||
| 1872 | "Mac Central European Roman Encoding (MIME:x-mac-centraleurroman)." | ||
| 1873 | :coding-type 'charset | ||
| 1874 | :mnemonic ?* | ||
| 1875 | :charset-list '(mac-centraleurroman) | ||
| 1876 | :mime-charset 'x-mac-centraleurroman) | ||
| 1877 | |||
| 1878 | (define-charset 'mac-cyrillic | ||
| 1879 | "Mac Cyrillic" | ||
| 1880 | :short-name "Mac CYRILLIC" | ||
| 1881 | :ascii-compatible-p t | ||
| 1882 | :code-space [0 255] | ||
| 1883 | :map | ||
| 1884 | (let ((tbl | ||
| 1885 | [?\А ?\Б ?\В ?\Г ?\Д ?\Е ?\Ж ?\З ?\И ?\Й ?\К ?\Л ?\М ?\Н ?\О ?\П | ||
| 1886 | ?\Р ?\С ?\Т ?\У ?\Ф ?\Х ?\Ц ?\Ч ?\Ш ?\Щ ?\Ъ ?\Ы ?\Ь ?\Э ?\Ю ?\Я | ||
| 1887 | ?\† ?\° ?\Ґ ?\£ ?\§ ?\• ?\¶ ?\І ?\® ?\© ?\™ ?\Ђ ?\ђ ?\≠ ?\Ѓ ?\ѓ | ||
| 1888 | ?\∞ ?\± ?\≤ ?\≥ ?\і ?\µ ?\ґ ?\Ј ?\Є ?\є ?\Ї ?\ї ?\Љ ?\љ ?\Њ ?\њ | ||
| 1889 | ?\ј ?\Ѕ ?\¬ ?\√ ?\ƒ ?\≈ ?\∆ ?\« ?\» ?\… ?\ ?\Ћ ?\ћ ?\Ќ ?\ќ ?\ѕ | ||
| 1890 | ?\– ?\— ?\“ ?\” ?\‘ ?\’ ?\÷ ?\„ ?\Ў ?\ў ?\Џ ?\џ ?\№ ?\Ё ?\ё ?\я | ||
| 1891 | ?\а ?\б ?\в ?\г ?\д ?\е ?\ж ?\з ?\и ?\й ?\к ?\л ?\м ?\н ?\о ?\п | ||
| 1892 | ?\р ?\с ?\т ?\у ?\ф ?\х ?\ц ?\ч ?\ш ?\щ ?\ъ ?\ы ?\ь ?\э ?\ю ?\€]) | ||
| 1893 | (map (make-vector 512 nil))) | ||
| 1894 | (or (= (length tbl) 128) | ||
| 1895 | (error "Invalid vector length: %d" (length tbl))) | ||
| 1896 | (dotimes (i 128) | ||
| 1897 | (aset map (* i 2) i) | ||
| 1898 | (aset map (1+ (* i 2)) i)) | ||
| 1899 | (dotimes (i 128) | ||
| 1900 | (aset map (+ 256 (* i 2)) (+ 128 i)) | ||
| 1901 | (aset map (+ 256 (1+ (* i 2))) (aref tbl i))) | ||
| 1902 | map)) | ||
| 1903 | |||
| 1904 | (define-coding-system 'mac-cyrillic | ||
| 1905 | "Mac Cyrillic Encoding (MIME:x-mac-cyrillic)." | ||
| 1906 | :coding-type 'charset | ||
| 1907 | :mnemonic ?* | ||
| 1908 | :charset-list '(mac-cyrillic) | ||
| 1909 | :mime-charset 'x-mac-cyrillic) | ||
| 1910 | |||
| 1911 | (define-charset 'mac-symbol | ||
| 1912 | "Mac Symbol" | ||
| 1913 | :short-name "Mac SYMBOL" | ||
| 1914 | :code-space [32 254] | ||
| 1915 | :map | ||
| 1916 | (let ((tbl-32-126 | ||
| 1917 | [?\ ?\! ?\∀ ?\# ?\∃ ?\% ?\& ?\∍ ?\( ?\) ?\∗ ?\+ ?\, ?\− ?\. ?\/ | ||
| 1918 | ?\0 ?\1 ?\2 ?\3 ?\4 ?\5 ?\6 ?\7 ?\8 ?\9 ?\: ?\; ?\< ?\= ?\> ?\? | ||
| 1919 | ?\≅ ?\Α ?\Β ?\Χ ?\Δ ?\Ε ?\Φ ?\Γ ?\Η ?\Ι ?\ϑ ?\Κ ?\Λ ?\Μ ?\Ν ?\Ο | ||
| 1920 | ?\Π ?\Θ ?\Ρ ?\Σ ?\Τ ?\Υ ?\ς ?\Ω ?\Ξ ?\Ψ ?\Ζ ?\[ ?\∴ ?\] ?\⊥ ?\_ | ||
| 1921 | ?\ ?\α ?\β ?\χ ?\δ ?\ε ?\φ ?\γ ?\η ?\ι ?\ϕ ?\κ ?\λ ?\μ ?\ν ?\ο | ||
| 1922 | ?\π ?\θ ?\ρ ?\σ ?\τ ?\υ ?\ϖ ?\ω ?\ξ ?\ψ ?\ζ ?\{ ?\| ?\} ?\∼]) | ||
| 1923 | (map-32-126 (make-vector (* (1+ (- 126 32)) 2) nil)) | ||
| 1924 | (tbl-160-254 | ||
| 1925 | ;; Mapping of the following characters are changed from the | ||
| 1926 | ;; original one: | ||
| 1927 | ;; 0xE2 0x00AE+0xF87F->0x00AE # REGISTERED SIGN, alternate: sans serif | ||
| 1928 | ;; 0xE3 0x00A9+0xF87F->0x00A9 # COPYRIGHT SIGN, alternate: sans serif | ||
| 1929 | ;; 0xE4 0x2122+0xF87F->0x2122 # TRADE MARK SIGN, alternate: sans serif | ||
| 1930 | [?\€ ?\ϒ ?\′ ?\≤ ?\⁄ ?\∞ ?\ƒ ?\♣ ?\♦ ?\♥ ?\♠ ?\↔ ?\← ?\↑ ?\→ ?\↓ | ||
| 1931 | ?\° ?\± ?\″ ?\≥ ?\× ?\∝ ?\∂ ?\• ?\÷ ?\≠ ?\≡ ?\≈ ?\… ?\⏐ ?\⎯ ?\↵ | ||
| 1932 | ?\ℵ ?\ℑ ?\ℜ ?\℘ ?\⊗ ?\⊕ ?\∅ ?\∩ ?\∪ ?\⊃ ?\⊇ ?\⊄ ?\⊂ ?\⊆ ?\∈ ?\∉ | ||
| 1933 | ?\∠ ?\∇ ?\® ?\© ?\™ ?\∏ ?\√ ?\⋅ ?\¬ ?\∧ ?\∨ ?\⇔ ?\⇐ ?\⇑ ?\⇒ ?\⇓ | ||
| 1934 | ?\◊ ?\〈 ?\® ?\© ?\™ ?\∑ ?\⎛ ?\⎜ ?\⎝ ?\⎡ ?\⎢ ?\⎣ ?\⎧ ?\⎨ ?\⎩ ?\⎪ | ||
| 1935 | ?\ ?\〉 ?\∫ ?\⌠ ?\⎮ ?\⌡ ?\⎞ ?\⎟ ?\⎠ ?\⎤ ?\⎥ ?\⎦ ?\⎫ ?\⎬ ?\⎭]) | ||
| 1936 | (map-160-254 (make-vector (* (1+ (- 254 160)) 2) nil))) | ||
| 1937 | (dotimes (i (1+ (- 126 32))) | ||
| 1938 | (aset map-32-126 (* i 2) (+ 32 i)) | ||
| 1939 | (aset map-32-126 (1+ (* i 2)) (aref tbl-32-126 i))) | ||
| 1940 | (dotimes (i (1+ (- 254 160))) | ||
| 1941 | (aset map-160-254 (* i 2) (+ 160 i)) | ||
| 1942 | (aset map-160-254 (1+ (* i 2)) (aref tbl-160-254 i))) | ||
| 1943 | (vconcat map-32-126 map-160-254))) | ||
| 1944 | |||
| 1945 | (define-charset 'mac-dingbats | ||
| 1946 | "Mac Dingbats" | ||
| 1947 | :short-name "Mac Dingbats" | ||
| 1948 | :code-space [32 254] | ||
| 1949 | :map | ||
| 1950 | (let ((tbl-32-126 | ||
| 1951 | [?\ ?\✁ ?\✂ ?\✃ ?\✄ ?\☎ ?\✆ ?\✇ ?\✈ ?\✉ ?\☛ ?\☞ ?\✌ ?\✍ ?\✎ ?\✏ | ||
| 1952 | ?\✐ ?\✑ ?\✒ ?\✓ ?\✔ ?\✕ ?\✖ ?\✗ ?\✘ ?\✙ ?\✚ ?\✛ ?\✜ ?\✝ ?\✞ ?\✟ | ||
| 1953 | ?\✠ ?\✡ ?\✢ ?\✣ ?\✤ ?\✥ ?\✦ ?\✧ ?\★ ?\✩ ?\✪ ?\✫ ?\✬ ?\✭ ?\✮ ?\✯ | ||
| 1954 | ?\✰ ?\✱ ?\✲ ?\✳ ?\✴ ?\✵ ?\✶ ?\✷ ?\✸ ?\✹ ?\✺ ?\✻ ?\✼ ?\✽ ?\✾ ?\✿ | ||
| 1955 | ?\❀ ?\❁ ?\❂ ?\❃ ?\❄ ?\❅ ?\❆ ?\❇ ?\❈ ?\❉ ?\❊ ?\❋ ?\● ?\❍ ?\■ ?\❏ | ||
| 1956 | ?\❐ ?\❑ ?\❒ ?\▲ ?\▼ ?\◆ ?\❖ ?\◗ ?\❘ ?\❙ ?\❚ ?\❛ ?\❜ ?\❝ ?\❞]) | ||
| 1957 | (map-32-126 (make-vector (* (1+ (- 126 32)) 2) nil)) | ||
| 1958 | (tbl-128-141 | ||
| 1959 | [?\❨ ?\❩ ?\❪ ?\❫ ?\❬ ?\❭ ?\❮ ?\❯ ?\❰ ?\❱ ?\❲ ?\❳ ?\❴ ?\❵]) | ||
| 1960 | (map-128-141 (make-vector (* (1+ (- 141 128)) 2) nil)) | ||
| 1961 | (tbl-161-239 | ||
| 1962 | [?\❡ ?\❢ ?\❣ ?\❤ ?\❥ ?\❦ ?\❧ ?\♣ ?\♦ ?\♥ ?\♠ ?\① ?\② ?\③ ?\④ | ||
| 1963 | ?\⑤ ?\⑥ ?\⑦ ?\⑧ ?\⑨ ?\⑩ ?\❶ ?\❷ ?\❸ ?\❹ ?\❺ ?\❻ ?\❼ ?\❽ ?\❾ ?\❿ | ||
| 1964 | ?\➀ ?\➁ ?\➂ ?\➃ ?\➄ ?\➅ ?\➆ ?\➇ ?\➈ ?\➉ ?\➊ ?\➋ ?\➌ ?\➍ ?\➎ ?\➏ | ||
| 1965 | ?\➐ ?\➑ ?\➒ ?\➓ ?\➔ ?\→ ?\↔ ?\↕ ?\➘ ?\➙ ?\➚ ?\➛ ?\➜ ?\➝ ?\➞ ?\➟ | ||
| 1966 | ?\➠ ?\➡ ?\➢ ?\➣ ?\➤ ?\➥ ?\➦ ?\➧ ?\➨ ?\➩ ?\➪ ?\➫ ?\➬ ?\➭ ?\➮ ?\➯]) | ||
| 1967 | (map-161-239 (make-vector (* (1+ (- 239 161)) 2) nil)) | ||
| 1968 | (tbl-241-254 | ||
| 1969 | [?\➱ ?\➲ ?\➳ ?\➴ ?\➵ ?\➶ ?\➷ ?\➸ ?\➹ ?\➺ ?\➻ ?\➼ ?\➽ ?\➾]) | ||
| 1970 | (map-241-254 (make-vector (* (1+ (- 254 241)) 2) nil))) | ||
| 1971 | (dotimes (i (1+ (- 126 32))) | ||
| 1972 | (aset map-32-126 (* i 2) (+ 32 i)) | ||
| 1973 | (aset map-32-126 (1+ (* i 2)) (aref tbl-32-126 i))) | ||
| 1974 | (dotimes (i (1+ (- 141 128))) | ||
| 1975 | (aset map-128-141 (* i 2) (+ 128 i)) | ||
| 1976 | (aset map-128-141 (1+ (* i 2)) (aref tbl-128-141 i))) | ||
| 1977 | (dotimes (i (1+ (- 239 161))) | ||
| 1978 | (aset map-161-239 (* i 2) (+ 161 i)) | ||
| 1979 | (aset map-161-239 (1+ (* i 2)) (aref tbl-161-239 i))) | ||
| 1980 | (dotimes (i (1+ (- 254 241))) | ||
| 1981 | (aset map-241-254 (* i 2) (+ 241 i)) | ||
| 1982 | (aset map-241-254 (1+ (* i 2)) (aref tbl-241-254 i))) | ||
| 1983 | (vconcat map-32-126 map-128-141 map-161-239 map-241-254))) | ||
| 1984 | |||
| 1985 | (setq font-encoding-alist | 1985 | (setq font-encoding-alist |
| 1986 | (append | 1986 | (append |
| 1987 | '(("mac-roman" . mac-roman) | 1987 | '(("mac-roman" . mac-roman) |