summaryrefslogtreecommitdiff
path: root/pdf/pdf_cmap_table.c
blob: a1f61365546797140025a77ca039dcd388d43252 (plain)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
/*
 * :r !grep -h '^pdf_cmap' build/macosx-x86-debug/cmap_*.c
 * :.,'as/\(pdf_cmap.*\) =/extern \1;/
 * :.,'as/pdf_cmap \(pdf_cmap.*\) =/\&\1;/
 */

#include "fitz.h"
#include "mupdf.h"

extern pdf_cmap pdf_cmap_Adobe_CNS1_0;
extern pdf_cmap pdf_cmap_Adobe_CNS1_1;
extern pdf_cmap pdf_cmap_Adobe_CNS1_2;
extern pdf_cmap pdf_cmap_Adobe_CNS1_3;
extern pdf_cmap pdf_cmap_Adobe_CNS1_4;
extern pdf_cmap pdf_cmap_Adobe_CNS1_5;
extern pdf_cmap pdf_cmap_Adobe_CNS1_6;
extern pdf_cmap pdf_cmap_B5_H;
extern pdf_cmap pdf_cmap_B5_V;
extern pdf_cmap pdf_cmap_B5pc_H;
extern pdf_cmap pdf_cmap_B5pc_V;
extern pdf_cmap pdf_cmap_CNS_EUC_H;
extern pdf_cmap pdf_cmap_CNS_EUC_V;
extern pdf_cmap pdf_cmap_CNS1_H;
extern pdf_cmap pdf_cmap_CNS1_V;
extern pdf_cmap pdf_cmap_CNS2_H;
extern pdf_cmap pdf_cmap_CNS2_V;
extern pdf_cmap pdf_cmap_ETen_B5_H;
extern pdf_cmap pdf_cmap_ETen_B5_V;
extern pdf_cmap pdf_cmap_ETenms_B5_H;
extern pdf_cmap pdf_cmap_ETenms_B5_V;
extern pdf_cmap pdf_cmap_ETHK_B5_H;
extern pdf_cmap pdf_cmap_ETHK_B5_V;
extern pdf_cmap pdf_cmap_HKdla_B5_H;
extern pdf_cmap pdf_cmap_HKdla_B5_V;
extern pdf_cmap pdf_cmap_HKdlb_B5_H;
extern pdf_cmap pdf_cmap_HKdlb_B5_V;
extern pdf_cmap pdf_cmap_HKgccs_B5_H;
extern pdf_cmap pdf_cmap_HKgccs_B5_V;
extern pdf_cmap pdf_cmap_HKm314_B5_H;
extern pdf_cmap pdf_cmap_HKm314_B5_V;
extern pdf_cmap pdf_cmap_HKm471_B5_H;
extern pdf_cmap pdf_cmap_HKm471_B5_V;
extern pdf_cmap pdf_cmap_HKscs_B5_H;
extern pdf_cmap pdf_cmap_HKscs_B5_V;
extern pdf_cmap pdf_cmap_UniCNS_UCS2_H;
extern pdf_cmap pdf_cmap_UniCNS_UCS2_V;
extern pdf_cmap pdf_cmap_UniCNS_UTF16_H;
extern pdf_cmap pdf_cmap_UniCNS_UTF16_V;
extern pdf_cmap pdf_cmap_Adobe_GB1_0;
extern pdf_cmap pdf_cmap_Adobe_GB1_1;
extern pdf_cmap pdf_cmap_Adobe_GB1_2;
extern pdf_cmap pdf_cmap_Adobe_GB1_3;
extern pdf_cmap pdf_cmap_Adobe_GB1_4;
extern pdf_cmap pdf_cmap_Adobe_GB1_5;
extern pdf_cmap pdf_cmap_GB_EUC_H;
extern pdf_cmap pdf_cmap_GB_EUC_V;
extern pdf_cmap pdf_cmap_GB_H;
extern pdf_cmap pdf_cmap_GB_V;
extern pdf_cmap pdf_cmap_GBK_EUC_H;
extern pdf_cmap pdf_cmap_GBK_EUC_V;
extern pdf_cmap pdf_cmap_GBK2K_H;
extern pdf_cmap pdf_cmap_GBK2K_V;
extern pdf_cmap pdf_cmap_GBKp_EUC_H;
extern pdf_cmap pdf_cmap_GBKp_EUC_V;
extern pdf_cmap pdf_cmap_GBpc_EUC_H;
extern pdf_cmap pdf_cmap_GBpc_EUC_V;
extern pdf_cmap pdf_cmap_GBT_EUC_H;
extern pdf_cmap pdf_cmap_GBT_EUC_V;
extern pdf_cmap pdf_cmap_GBT_H;
extern pdf_cmap pdf_cmap_GBT_V;
extern pdf_cmap pdf_cmap_GBTpc_EUC_H;
extern pdf_cmap pdf_cmap_GBTpc_EUC_V;
extern pdf_cmap pdf_cmap_UniGB_UCS2_H;
extern pdf_cmap pdf_cmap_UniGB_UCS2_V;
extern pdf_cmap pdf_cmap_UniGB_UTF16_H;
extern pdf_cmap pdf_cmap_UniGB_UTF16_V;
extern pdf_cmap pdf_cmap_78_EUC_H;
extern pdf_cmap pdf_cmap_78_EUC_V;
extern pdf_cmap pdf_cmap_78_H;
extern pdf_cmap pdf_cmap_78_RKSJ_H;
extern pdf_cmap pdf_cmap_78_RKSJ_V;
extern pdf_cmap pdf_cmap_78_V;
extern pdf_cmap pdf_cmap_78ms_RKSJ_H;
extern pdf_cmap pdf_cmap_78ms_RKSJ_V;
extern pdf_cmap pdf_cmap_83pv_RKSJ_H;
extern pdf_cmap pdf_cmap_90ms_RKSJ_H;
extern pdf_cmap pdf_cmap_90ms_RKSJ_V;
extern pdf_cmap pdf_cmap_90msp_RKSJ_H;
extern pdf_cmap pdf_cmap_90msp_RKSJ_V;
extern pdf_cmap pdf_cmap_90pv_RKSJ_H;
extern pdf_cmap pdf_cmap_90pv_RKSJ_V;
extern pdf_cmap pdf_cmap_Add_H;
extern pdf_cmap pdf_cmap_Add_RKSJ_H;
extern pdf_cmap pdf_cmap_Add_RKSJ_V;
extern pdf_cmap pdf_cmap_Add_V;
extern pdf_cmap pdf_cmap_Adobe_Japan1_0;
extern pdf_cmap pdf_cmap_Adobe_Japan1_1;
extern pdf_cmap pdf_cmap_Adobe_Japan1_2;
extern pdf_cmap pdf_cmap_Adobe_Japan1_3;
extern pdf_cmap pdf_cmap_Adobe_Japan1_4;
extern pdf_cmap pdf_cmap_Adobe_Japan1_5;
extern pdf_cmap pdf_cmap_Adobe_Japan1_6;
extern pdf_cmap pdf_cmap_EUC_H;
extern pdf_cmap pdf_cmap_EUC_V;
extern pdf_cmap pdf_cmap_Ext_H;
extern pdf_cmap pdf_cmap_Ext_RKSJ_H;
extern pdf_cmap pdf_cmap_Ext_RKSJ_V;
extern pdf_cmap pdf_cmap_Ext_V;
extern pdf_cmap pdf_cmap_H;
extern pdf_cmap pdf_cmap_Hankaku;
extern pdf_cmap pdf_cmap_Hiragana;
extern pdf_cmap pdf_cmap_Katakana;
extern pdf_cmap pdf_cmap_NWP_H;
extern pdf_cmap pdf_cmap_NWP_V;
extern pdf_cmap pdf_cmap_RKSJ_H;
extern pdf_cmap pdf_cmap_RKSJ_V;
extern pdf_cmap pdf_cmap_Roman;
extern pdf_cmap pdf_cmap_UniJIS_UCS2_H;
extern pdf_cmap pdf_cmap_UniJIS_UCS2_HW_H;
extern pdf_cmap pdf_cmap_UniJIS_UCS2_HW_V;
extern pdf_cmap pdf_cmap_UniJIS_UCS2_V;
extern pdf_cmap pdf_cmap_UniJISPro_UCS2_HW_V;
extern pdf_cmap pdf_cmap_UniJISPro_UCS2_V;
extern pdf_cmap pdf_cmap_V;
extern pdf_cmap pdf_cmap_WP_Symbol;
extern pdf_cmap pdf_cmap_Adobe_Japan2_0;
extern pdf_cmap pdf_cmap_Hojo_EUC_H;
extern pdf_cmap pdf_cmap_Hojo_EUC_V;
extern pdf_cmap pdf_cmap_Hojo_H;
extern pdf_cmap pdf_cmap_Hojo_V;
extern pdf_cmap pdf_cmap_UniHojo_UCS2_H;
extern pdf_cmap pdf_cmap_UniHojo_UCS2_V;
extern pdf_cmap pdf_cmap_UniHojo_UTF16_H;
extern pdf_cmap pdf_cmap_UniHojo_UTF16_V;
extern pdf_cmap pdf_cmap_UniJIS_UTF16_H;
extern pdf_cmap pdf_cmap_UniJIS_UTF16_V;
extern pdf_cmap pdf_cmap_Adobe_Korea1_0;
extern pdf_cmap pdf_cmap_Adobe_Korea1_1;
extern pdf_cmap pdf_cmap_Adobe_Korea1_2;
extern pdf_cmap pdf_cmap_KSC_EUC_H;
extern pdf_cmap pdf_cmap_KSC_EUC_V;
extern pdf_cmap pdf_cmap_KSC_H;
extern pdf_cmap pdf_cmap_KSC_Johab_H;
extern pdf_cmap pdf_cmap_KSC_Johab_V;
extern pdf_cmap pdf_cmap_KSC_V;
extern pdf_cmap pdf_cmap_KSCms_UHC_H;
extern pdf_cmap pdf_cmap_KSCms_UHC_HW_H;
extern pdf_cmap pdf_cmap_KSCms_UHC_HW_V;
extern pdf_cmap pdf_cmap_KSCms_UHC_V;
extern pdf_cmap pdf_cmap_KSCpc_EUC_H;
extern pdf_cmap pdf_cmap_KSCpc_EUC_V;
extern pdf_cmap pdf_cmap_UniKS_UCS2_H;
extern pdf_cmap pdf_cmap_UniKS_UCS2_V;
extern pdf_cmap pdf_cmap_UniKS_UTF16_H;
extern pdf_cmap pdf_cmap_UniKS_UTF16_V;
extern pdf_cmap pdf_cmap_Adobe_CNS1_UCS2;
extern pdf_cmap pdf_cmap_Adobe_GB1_UCS2;
extern pdf_cmap pdf_cmap_Adobe_Japan1_UCS2;
extern pdf_cmap pdf_cmap_Adobe_Korea1_UCS2;

pdf_cmap *pdf_cmaptable[] =
{
#ifndef NOCJK
	&pdf_cmap_Adobe_CNS1_0,
	&p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&pdf_cmap_H,
	&pdf_cmap_Hankaku,
	&pdf_cmap_Hiragana,
	&pdf_cmap_Katakana,
	&pdf_cmap_NWP_H,
	&pdf_cmap_NWP_V,
	&pdf_cmap_RKSJ_H,
	&pdf_cmap_RKSJ_V,
	&pdf_cmap_Roman,
	&pdf_cmap_UniJIS_UCS2_H,
	&pdf_cmap_UniJIS_UCS2_HW_H,
	&pdf_cmap_UniJIS_UCS2_HW_V,
	&pdf_cmap_UniJIS_UCS2_V,
	&pdf_cmap_UniJISPro_UCS2_HW_V,
	&pdf_cmap_UniJISPro_UCS2_V,
	&pdf_cmap_V,
	&pdf_cmap_WP_Symbol,
	&pdf_cmap_Adobe_Japan2_0,
	&pdf_cmap_Hojo_EUC_H,
	&pdf_cmap_Hojo_EUC_V,
	&pdf_cmap_Hojo_H,
	&pdf_cmap_Hojo_V,
	&pdf_cmap_UniHojo_UCS2_H,
	&pdf_cmap_UniHojo_UCS2_V,
	&pdf_cmap_UniHojo_UTF16_H,
	&pdf_cmap_UniHojo_UTF16_V,
	&pdf_cmap_UniJIS_UTF16_H,
	&pdf_cmap_UniJIS_UTF16_V,
	&pdf_cmap_Adobe_Korea1_0,
	&pdf_cmap_Adobe_Korea1_1,
	&pdf_cmap_Adobe_Korea1_2,
	&pdf_cmap_KSC_EUC_H,
	&pdf_cmap_KSC_EUC_V,
	&pdf_cmap_KSC_H,
	&pdf_cmap_KSC_Johab_H,
	&pdf_cmap_KSC_Johab_V,
	&pdf_cmap_KSC_V,
	&pdf_cmap_KSCms_UHC_H,
	&pdf_cmap_KSCms_UHC_HW_H,
	&pdf_cmap_KSCms_UHC_HW_V,
	&pdf_cmap_KSCms_UHC_V,
	&pdf_cmap_KSCpc_EUC_H,
	&pdf_cmap_KSCpc_EUC_V,
	&pdf_cmap_UniKS_UCS2_H,
	&pdf_cmap_UniKS_UCS2_V,
	&pdf_cmap_UniKS_UTF16_H,
	&pdf_cmap_UniKS_UTF16_V,
	&pdf_cmap_Adobe_CNS1_UCS2,
	&pdf_cmap_Adobe_GB1_UCS2,
	&pdf_cmap_Adobe_Japan1_UCS2,
	&pdf_cmap_Adobe_Korea1_UCS2,
#endif
	0
};