Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/unisym2decsp.map

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2491 - (hide annotations) (download)
Fri Apr 25 12:32:33 2008 UTC (15 years, 11 months ago) by doda
Original Path: teraterm/trunk/teraterm/unisym2decsp.map
File size: 8805 byte(s)
受信漢字コードがUTF-8の時、罫線(Box Drawing:U+2500~U+257F)および一部の記号文字をDEC特殊文字を使って表示するようにした。
# [Ttssh2-devel 925]の実装

1 doda 2491 #include "codemap.h"
2    
3     /*
4     * Map of Unicode Symbols to Dec Special Characters
5     */
6     static codemap_t mapUnicodeSymbolToDecSp[] = {
7     /*
8     * Box drawing
9     * http://www.unicode.org/charts/PDF/U2500.pdf
10     */
11     { 0x2500, 0x0071 }, // Box drawings light horizontal
12     { 0x2501, 0x0071 }, // Box drawings heavy horizontal
13     { 0x2502, 0x0078 }, // Box drawings light vertical
14     { 0x2503, 0x0078 }, // Box drawings heavy vertical
15     { 0x2504, 0x0071 }, // Box drawings light triple dash horizontal
16     { 0x2505, 0x0071 }, // Box drawings heavy triple dash horizontal
17     { 0x2506, 0x0078 }, // Box drawings light triple dash vertical
18     { 0x2507, 0x0078 }, // Box drawings heavy triple dash vertical
19     { 0x2508, 0x0071 }, // Box drawings light quadruple dash horizontal
20     { 0x2509, 0x0071 }, // Box drawings heavy quadruple dash horizontal
21     { 0x250A, 0x0078 }, // Box drawings light quadruple dash vertical
22     { 0x250B, 0x0078 }, // Box drawings heavy quadruple dash vertical
23     { 0x250C, 0x006C }, // Box drawings light down and right
24     { 0x250D, 0x006C }, // Box drawings down light and right heavy
25     { 0x250E, 0x006C }, // Box drawings down heavy and right light
26     { 0x250F, 0x006C }, // Box drawings heavy down and right
27     { 0x2510, 0x006B }, // Box drawings light down and left
28     { 0x2511, 0x006B }, // Box drawings down light and left heavy
29     { 0x2512, 0x006B }, // Box drawings down heavy and left light
30     { 0x2513, 0x006B }, // Box drawings heavy down and left
31     { 0x2514, 0x006D }, // Box drawings light up and right
32     { 0x2515, 0x006D }, // Box drawings up light and right heavy
33     { 0x2516, 0x006D }, // Box drawings up heavy and right light
34     { 0x2517, 0x006D }, // Box drawings heavy up and right
35     { 0x2518, 0x006A }, // Box drawings light up and left
36     { 0x2519, 0x006A }, // Box drawings up light and left heavy
37     { 0x251A, 0x006A }, // Box drawings up heavy and left light
38     { 0x251B, 0x006A }, // Box drawings heavy up and left
39     { 0x251C, 0x0074 }, // Box drawings light vertical and right
40     { 0x251D, 0x0074 }, // Box drawings vertical light and right heavy
41     { 0x251E, 0x0074 }, // Box drawings up heavy and right down light
42     { 0x251F, 0x0074 }, // Box drawings down heavy and right up light
43     { 0x2520, 0x0074 }, // Box drawings vertical heavy and right light
44     { 0x2521, 0x0074 }, // Box drawings down light and right up heavy
45     { 0x2522, 0x0074 }, // Box drawings up light and right down heavy
46     { 0x2523, 0x0074 }, // Box drawings heavy vertical and right
47     { 0x2524, 0x0075 }, // Box drawings light vertical and left
48     { 0x2525, 0x0075 }, // Box drawings vertical light and left heavy
49     { 0x2526, 0x0075 }, // Box drawings up heavy and left down light
50     { 0x2527, 0x0075 }, // Box drawings down heavy and left up light
51     { 0x2528, 0x0075 }, // Box drawings vertical heavy and left light
52     { 0x2529, 0x0075 }, // Box drawings down light and left up heavy
53     { 0x252A, 0x0075 }, // Box drawings up light and left down heavy
54     { 0x252B, 0x0075 }, // Box drawings heavy vertical and left
55     { 0x252C, 0x0077 }, // Box drawings light down and horizontal
56     { 0x252D, 0x0077 }, // Box drawings left heavy and right down light
57     { 0x252E, 0x0077 }, // Box drawings right heavy and left down light
58     { 0x252F, 0x0077 }, // Box drawings down light and horizontal heavy
59     { 0x2530, 0x0077 }, // Box drawings down heavy and horizontal light
60     { 0x2531, 0x0077 }, // Box drawings right light and left down heavy
61     { 0x2532, 0x0077 }, // Box drawings left light and right down heavy
62     { 0x2533, 0x0077 }, // Box drawings heavy down and horizontal
63     { 0x2534, 0x0076 }, // Box drawings light up and horizontal
64     { 0x2535, 0x0076 }, // Box drawings left heavy and right up light
65     { 0x2536, 0x0076 }, // Box drawings right heavy and left up light
66     { 0x2537, 0x0076 }, // Box drawings up light and horizontal heavy
67     { 0x2538, 0x0076 }, // Box drawings up heavy and horizontal light
68     { 0x2539, 0x0076 }, // Box drawings right light and left up heavy
69     { 0x253A, 0x0076 }, // Box drawings left light and right up heavy
70     { 0x253B, 0x0076 }, // Box drawings right up and horizontal
71     { 0x253C, 0x006e }, // Box drawings light vertical and horizontal
72     { 0x253D, 0x006e }, // Box drawings left heavy and right vertical light
73     { 0x253E, 0x006e }, // Box drawings right heavy and left vertical light
74     { 0x253F, 0x006e }, // Box drawings vertical light and horizontal heavy
75     { 0x2540, 0x006e }, // Box drawings up heavy and down horizontal light
76     { 0x2541, 0x006e }, // Box drawings down heavy and up horizontal light
77     { 0x2542, 0x006e }, // Box drawings vertical heavy and horizontal light
78     { 0x2543, 0x006e }, // Box drawings left up heavy and right down light
79     { 0x2544, 0x006e }, // Box drawings right up heavy and left down light
80     { 0x2545, 0x006e }, // Box drawings left down heavy and right up light
81     { 0x2546, 0x006e }, // Box drawings right down heavy and left up light
82     { 0x2547, 0x006e }, // Box drawings down light and up horizontal heavy
83     { 0x2548, 0x006e }, // Box drawings up light and up horizontal heavy
84     { 0x2549, 0x006e }, // Box drawings right light and left vertical heavy
85     { 0x254A, 0x006e }, // Box drawings left light and right vertical heavy
86     { 0x254B, 0x006e }, // Box drawings heavy vertical and horizontal
87     { 0x254C, 0x0071 }, // Box drawings light double dash horizontal
88     { 0x254D, 0x0071 }, // Box drawings heavy double dash horizontal
89     { 0x254E, 0x0078 }, // Box drawings light double dash vertical
90     { 0x254F, 0x0078 }, // Box drawings heavy double dash vertical
91     { 0x2550, 0x0071 }, // Box drawings double horizontal
92     { 0x2551, 0x0078 }, // Box drawings double vertical
93     { 0x2552, 0x006C }, // Box drawings down single and right double
94     { 0x2553, 0x006C }, // Box drawings down double and right single
95     { 0x2554, 0x006C }, // Box drawings double down and right
96     { 0x2555, 0x006B }, // Box drawings down single and left double
97     { 0x2556, 0x006B }, // Box drawings down double and left single
98     { 0x2557, 0x006B }, // Box drawings double down and left
99     { 0x2558, 0x006D }, // Box drawings up single and right double
100     { 0x2559, 0x006D }, // Box drawings up double and right single
101     { 0x255A, 0x006D }, // Box drawings double up and right
102     { 0x255B, 0x006A }, // Box drawings up single and left double
103     { 0x255C, 0x006A }, // Box drawings up double and left single
104     { 0x255D, 0x006A }, // Box drawings double up and left
105     { 0x255E, 0x0074 }, // Box drawings vertical single and right double
106     { 0x255F, 0x0074 }, // Box drawings vertical double and right single
107     { 0x2560, 0x0074 }, // Box drawings double vertical and right
108     { 0x2561, 0x0075 }, // Box drawings vertical single and left double
109     { 0x2562, 0x0075 }, // Box drawings vertical double and left single
110     { 0x2563, 0x0075 }, // Box drawings double vertical and left
111     { 0x2564, 0x0077 }, // Box drawings down single and horizontal double
112     { 0x2565, 0x0077 }, // Box drawings down double and horizontal single
113     { 0x2566, 0x0077 }, // Box drawings double down and horizontal
114     { 0x2567, 0x0076 }, // Box drawings up single and horizontal double
115     { 0x2568, 0x0076 }, // Box drawings up double and horizontal single
116     { 0x2569, 0x0076 }, // Box drawings double up and horizontal
117     { 0x256A, 0x006E }, // Box drawings double vertical single and horizontal double
118     { 0x256B, 0x006E }, // Box drawings double vertical double and horizontal single
119     { 0x256C, 0x006E }, // Box drawings double vertical and horizontal
120     { 0x256D, 0x006C }, // Box drawings light arc down and right
121     { 0x256E, 0x006B }, // Box drawings light arc down and left
122     { 0x256F, 0x006A }, // Box drawings light arc up and left
123     { 0x2570, 0x006D }, // Box drawings light arc left and right
124     /*
125     { 0x2571, 0x0000 }, // Box drawings light diagonal upper right to lower left
126     { 0x2572, 0x0000 }, // Box drawings light diagonal upper left to lower right
127     { 0x2573, 0x0000 }, // Box drawings light diagonal cross
128     { 0x2574, 0x0000 }, // Box drawings light left
129     { 0x2575, 0x0000 }, // Box drawings light up
130     { 0x2576, 0x0000 }, // Box drawings light right
131     { 0x2577, 0x0000 }, // Box drawings light down
132     { 0x2578, 0x0000 }, // Box drawings heavy left
133     { 0x2579, 0x0000 }, // Box drawings heavy up
134     { 0x257A, 0x0000 }, // Box drawings heavy right
135     { 0x257B, 0x0000 }, // Box drawings heavy down
136     */
137     { 0x257C, 0x0071 }, // Box drawings light left and heavy right
138     { 0x257D, 0x0078 }, // Box drawings light up and heavy down
139     { 0x257E, 0x0071 }, // Box drawings heavy left and light right
140     { 0x257F, 0x0078 }, // Box drawings heavy up and light down
141    
142     /*
143     * Block Elements and Shade Characters
144     * http://www.unicode.org/charts/PDF/U2580.pdf
145     */
146     // { 0x2588, 0x0060 }, // Full block
147     { 0x2591, 0x0061 }, // Light shade (25%)
148     { 0x2592, 0x0061 }, // Medium shade (50%)
149     { 0x2593, 0x0061 }, // Dark shade (75%)
150    
151     /*
152     * Geometric Shapes
153     * http://www.unicode.org/charts/PDF/U25A0.pdf
154     */
155     { 0x25AE, 0x0060 }, // Black vertical rectangle
156     };

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26