Mercurial > emacs
annotate lisp/language/czech.el @ 25506:ba0ad349e792
(SPLIT_COMPOSITE_SEQ): New macro.
(SPLIT_CHARACTER_SEQ): New macro.
(SPLIT_MULTIBYTE_SEQ): New macro.
(CHAR_COMPONENT_VALID_P): New macro.
(non_ascii_char_to_string): Generate a multibyte sequence as far
as possible.
(string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
(split_non_ascii_string): Likewise.
(multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
(char_printable_p): New function.
(translate_char): Check character by NATNUMP instead of INTEGERP.
(unibyte_char_to_multibyte): Call char_valid_p instead of
VALID_MULTIBYTE_CHAR_P.
(Fmake_char_internal): Check the arguments more rigidly.
(Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
(char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
(Fmultibyte_char_to_unibyte): Check the validity of character by
CHAR_VALID_P.
(chars_in_text): Call multibyte_chars_in_text.
(multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
(Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 03 Sep 1999 01:28:42 +0000 |
parents | 5c0a4ed13900 |
children | 60eb71a9f901 |
rev | line source |
---|---|
23158
5c0a4ed13900
Add coding: local variable, to avoid bootstrapping problem
Paul Eggert <eggert@twinsun.com>
parents:
22982
diff
changeset
|
1 ;;; czech.el -- support for Czech -*- coding: iso-2022-7bit; -*- |
21196 | 2 |
3 ;; Copyright (C) 1998 Free Software Foundation. | |
4 | |
5 ;; Maintainer: Milan Zamazal <pdm@fi.muni.cz> | |
6 ;; Keywords: multilingual, Czech | |
7 | |
21420
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
8 ;; This file is part of GNU Emacs. |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
9 |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
11 ;; it under the terms of the GNU General Public License as published by |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
12 ;; the Free Software Foundation; either version 2, or (at your option) |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
13 ;; any later version. |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
14 |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
15 ;; GNU Emacs is distributed in the hope that it will be useful, |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
18 ;; GNU General Public License for more details. |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
19 |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
20 ;; You should have received a copy of the GNU General Public License |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
23 ;; Boston, MA 02111-1307, USA. |
21196 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;; Czech ISO 8859-2 environment. | |
28 | |
29 ;;; Code: | |
30 | |
31 (defun setup-czech-environment () | |
32 "Setup multilingual environment (MULE) for Czech." | |
33 (interactive) | |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21894
diff
changeset
|
34 (set-language-environment "Latin-2")) |
21196 | 35 |
36 (set-language-info-alist | |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21894
diff
changeset
|
37 "Czech" '((charset . (ascii latin-iso8859-2)) |
21196 | 38 (coding-system . (iso-8859-2)) |
21420
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
39 (coding-priority . (iso-8859-2)) |
22982
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21894
diff
changeset
|
40 (input-method . "czech") |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21894
diff
changeset
|
41 (nonascii-translation . latin-iso8859-2) |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21894
diff
changeset
|
42 (unibyte-syntax . "latin-2") |
5fef9d1a7fc2
(setup-XXX-environment): Just call set-language-environment. If
Kenichi Handa <handa@m17n.org>
parents:
21894
diff
changeset
|
43 (unibyte-display . iso-8859-2) |
21464
c914aef13b33
Fix previous change, TUTORIAL.ch > TUTORIAL.cs.
Kenichi Handa <handa@m17n.org>
parents:
21463
diff
changeset
|
44 (tutorial . "TUTORIAL.cs") |
21420
d51476961314
Add coding-priority. Improve sample text.
Karl Heuer <kwzh@gnu.org>
parents:
21203
diff
changeset
|
45 (sample-text . "P,Bx(Bejeme v,Ba(Bm hezk,B}(B den!") |
21473
1f46ca9f3ff3
Put Czech lang. env. under European..
Kenichi Handa <handa@m17n.org>
parents:
21464
diff
changeset
|
46 (documentation . t)) |
1f46ca9f3ff3
Put Czech lang. env. under European..
Kenichi Handa <handa@m17n.org>
parents:
21464
diff
changeset
|
47 '("European")) |
21196 | 48 |
49 (provide 'czech) | |
50 | |
51 ;; czech.el ends here |