File: gset.h

package info (click to toggle)
kterm 6.2.0-46.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,268 kB
  • ctags: 1,980
  • sloc: ansic: 25,769; makefile: 52; sh: 5
file content (113 lines) | stat: -rw-r--r-- 3,636 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 *	$Id: gset.h,v 1.3 1996/06/23 08:00:09 kagotani Rel $
 */

/*
 * Copyright (c) 1996
 * XXI working group in Japan Unix Society (XXI).
 *
 * The X Consortium, and any party obtaining a copy of these files from
 * the X Consortium, directly or indirectly, is granted, free of charge, a
 * full and unrestricted irrevocable, world-wide, paid up, royalty-free,
 * nonexclusive right and license to deal in this software and
 * documentation files (the "Software"), including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons who receive
 * copies from any such party to do so.  This license includes without
 * limitation a license to do the foregoing actions under any patents of
 * the party supplying this software to the X Consortium.
 * 
 * Author:
 * 	Hiroto Kagotani
 * 	Department of Information Technology
 *	Okayama University
 * 	3-1-1 Tsushima-Naka, Okayama-shi 700, Japan
 * 	kagotani@in.it.okayama-u.ac.jp
 */ 

#define CS96		0x80 /* character sets which have 96 characters */
#define MBCS		0x40 /* multi-byte character sets */
#define MBC2		0x7f /* second byte of a mbcs character */
  /*
   * No character set uses designating characters less than '@'
   * except for ESC ( 0.
   */
#define GSET(c)		((c) - ('@' - 1))
#define GSETFC(i)	(((i) & ~(MBCS|CS96)) + ('@' - 1))
		/* final character of a designation sequense for a gset */
/* code of Ichr,Bchr */

#define GSET_GRAPH	(CS96|0)
#define GSET_IRV	GSET('@')
#define GSET_UK		GSET('A')
#define GSET_ASCII	GSET('B')
#define GSET_SWEDISH	GSET('C')
#define GSET_NORWEGIAN	GSET('E')
#define GSET_KANA	GSET('I')
#define GSET_JISROMAN	GSET('J')
#define GSET_GERMAN	GSET('K')
#define GSET_FRENCH	GSET('R')
#define GSET_ITALIAN	GSET('Y')
#define GSET_SPANISH	GSET('Z')
#define GSET_LATIN1R	(CS96|GSET('A'))
#define GSET_LATIN2R	(CS96|GSET('B'))
#define GSET_LATIN3R	(CS96|GSET('C'))
#define GSET_LATIN4R	(CS96|GSET('D'))
#define GSET_CYRILLIC	(CS96|GSET('L'))
#define GSET_ARABIC	(CS96|GSET('G'))
#define GSET_GREEK	(CS96|GSET('F'))
#define GSET_HEBREW	(CS96|GSET('H'))
#define GSET_LATIN5R	(CS96|GSET('M'))

#ifdef KTERM_MBCS
# define GSET_OLDKANJI  (MBCS|GSET('@'))
# define GSET_HANZI     (MBCS|GSET('A'))
# define GSET_KANJI     (MBCS|GSET('B'))
# define GSET_HANJA     (MBCS|GSET('C'))
# define GSET_HOJOKANJI (MBCS|GSET('D'))
# define GSET_CNS1      (MBCS|GSET('G'))
# define GSET_CNS2      (MBCS|GSET('H'))
# define GSET_CNS3      (MBCS|GSET('I'))
# define GSET_CNS4      (MBCS|GSET('J'))
# define GSET_CNS5      (MBCS|GSET('K'))
# define GSET_CNS6      (MBCS|GSET('L'))
# define GSET_CNS7      (MBCS|GSET('M'))
# define GSET_EXTKANJI1 (MBCS|GSET('O'))
# define GSET_EXTKANJI2 (MBCS|GSET('P'))
# define GSET_90KANJI   (MBCS|GSET('_'))
#endif /* KTERM_MBCS */

#define F_ISO8859_1	0
#define F_ISO8859_2	1
#define F_ISO8859_3	2
#define F_ISO8859_4	3
#define F_ISO8859_5	4
#define F_ISO8859_6	5
#define F_ISO8859_7	6
#define F_ISO8859_8	7
#define F_ISO8859_9	8
#define F_JISX0201_0	9
#ifdef KTERM_MBCS
#  define F_JISX0208_1990_0	10
#  define F_JISX0208_0		11
#  define F_JISX0212_0		12
#  define F_GB2312_0		13
#  define F_KSC5601_0		14
#  define F_JISC6226_0		15
#  define F_CNS11643_1		16
#  define F_CNS11643_2		17
#  define F_CNS11643_3		18
#  define F_CNS11643_4		19
#  define F_CNS11643_5		20
#  define F_CNS11643_6		21
#  define F_CNS11643_7		22
#  define F_JISX0213_1		23
#  define F_JISX0213_2		24
#  define FCNT                  25
#else
#  define FCNT		10
#endif

extern int gsettofnum[];
extern Boolean gsetontheright[];
extern Char *gsetmaponfont[];