~ubuntu-branches/ubuntu/lucid/kterm/lucid

« back to all changes in this revision

Viewing changes to gset.h

  • Committer: Bazaar Package Importer
  • Author(s): ISHIKAWA Mutsumi
  • Date: 2002-02-15 00:30:40 UTC
  • Revision ID: james.westby@ubuntu.com-20020215003040-6cphq76lfqka32oq
Tags: 6.2.0-40
add Build-Depends: m4, closes: #133904

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#define MBCS            0x40 /* multi-byte character sets */
30
30
#define MBC2            0x7f /* second byte of a mbcs character */
31
31
  /*
32
 
   * No character set uses designating characters less than '/'.
33
 
   * Final characters more than 'n' can not be used in current kterm.
 
32
   * No character set uses designating characters less than '@'
 
33
   * except for ESC ( 0.
34
34
   */
35
 
#define GSET(c)         ((c) - '/')
36
 
#define GSETFC(i)       (((i) & ~(MBCS|CS96)) + '/')
 
35
#define GSET(c)         ((c) - ('@' - 1))
 
36
#define GSETFC(i)       (((i) & ~(MBCS|CS96)) + ('@' - 1))
37
37
                /* final character of a designation sequense for a gset */
38
38
/* code of Ichr,Bchr */
39
39
 
40
 
#define GSET_GRAPH      GSET('0')
 
40
#define GSET_GRAPH      (CS96|0)
41
41
#define GSET_IRV        GSET('@')
42
42
#define GSET_UK         GSET('A')
43
43
#define GSET_ASCII      GSET('B')
60
60
#define GSET_LATIN5R    (CS96|GSET('M'))
61
61
 
62
62
#ifdef KTERM_MBCS
63
 
# define GSET_OLDKANJI  (MBCS|GSET('@'))
64
 
# define GSET_HANZI     (MBCS|GSET('A'))
65
 
# define GSET_KANJI     (MBCS|GSET('B'))
66
 
# define GSET_HANJA     (MBCS|GSET('C'))
67
 
# define GSET_HOJOKANJI (MBCS|GSET('D'))
 
63
# define GSET_OLDKANJI  (MBCS|GSET('@'))
 
64
# define GSET_HANZI     (MBCS|GSET('A'))
 
65
# define GSET_KANJI     (MBCS|GSET('B'))
 
66
# define GSET_HANJA     (MBCS|GSET('C'))
 
67
# define GSET_HOJOKANJI (MBCS|GSET('D'))
 
68
# define GSET_CNS1      (MBCS|GSET('G'))
 
69
# define GSET_CNS2      (MBCS|GSET('H'))
 
70
# define GSET_CNS3      (MBCS|GSET('I'))
 
71
# define GSET_CNS4      (MBCS|GSET('J'))
 
72
# define GSET_CNS5      (MBCS|GSET('K'))
 
73
# define GSET_CNS6      (MBCS|GSET('L'))
 
74
# define GSET_CNS7      (MBCS|GSET('M'))
 
75
# define GSET_EXTKANJI1 (MBCS|GSET('O'))
 
76
# define GSET_EXTKANJI2 (MBCS|GSET('P'))
 
77
# define GSET_90KANJI   (MBCS|GSET('_'))
68
78
#endif /* KTERM_MBCS */
69
79
 
70
80
#define F_ISO8859_1     0
78
88
#define F_ISO8859_9     8
79
89
#define F_JISX0201_0    9
80
90
#ifdef KTERM_MBCS
81
 
#  define F_JISX0208_0  10
82
 
#  define F_JISX0212_0  11
83
 
#  define F_GB2312_0    12
84
 
#  define F_KSC5601_0   13
85
 
#  define F_JISC6226_0  14
86
 
#  define FCNT          15
 
91
#  define F_JISX0208_1990_0     10
 
92
#  define F_JISX0208_0          11
 
93
#  define F_JISX0212_0          12
 
94
#  define F_GB2312_0            13
 
95
#  define F_KSC5601_0           14
 
96
#  define F_JISC6226_0          15
 
97
#  define F_CNS11643_1          16
 
98
#  define F_CNS11643_2          17
 
99
#  define F_CNS11643_3          18
 
100
#  define F_CNS11643_4          19
 
101
#  define F_CNS11643_5          20
 
102
#  define F_CNS11643_6          21
 
103
#  define F_CNS11643_7          22
 
104
#  define F_JISX0213_1          23
 
105
#  define F_JISX0213_2          24
 
106
#  define FCNT                  25
87
107
#else
88
108
#  define FCNT          10
89
109
#endif