pdfboss-encoding 2.6.0

Shared font encoding tables and glyph-name mappings for pdfboss (ISO 32000 Appendix D)
Documentation
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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
//! The built-in encodings of the Symbol and ZapfDingbats fonts (ISO 32000-1
//! Annex D.5 and D.6): code to glyph name from the standard's tables, and
//! the ZapfDingbats glyphs' Unicode values, which the Adobe Glyph List does
//! not carry, from unicode.org's Adobe mapping table. Written by a script
//! from those sources; regenerate rather than edit.
//!
//! The ZapfDingbats Unicode values come from
//! <https://www.unicode.org/Public/MAPPINGS/VENDORS/ADOBE/zdingbat.txt>,
//! whose notice reads:
//!
//! Copyright (c) 1991-2011 Unicode, Inc. All Rights reserved.
//!
//! This file is provided as-is by Unicode, Inc. (The Unicode Consortium). No
//! claims are made as to fitness for any particular purpose. No warranties of
//! any kind are expressed or implied. The recipient agrees to determine
//! applicability of information provided. If this file has been provided on
//! magnetic media by Unicode, Inc., the sole remedy for any claim will be
//! exchange of defective media within 90 days of receipt.
//!
//! Unicode, Inc. hereby grants the right to freely use the information
//! supplied in this file in the creation of products supporting the
//! Unicode Standard, and to make copies of this file in any form for
//! internal or external distribution as long as this notice remains
//! attached.

/// Symbol's built-in encoding: `(code, glyph name)`, sorted by code; the
/// 189 codes Annex D.5 assigns.
///
/// Covers ISO 32000-1 Annex D.5.
#[rustfmt::skip]
pub(crate) const SYMBOL: &[(u8, &str)] = &[
    (0o040, "space"),
    (0o041, "exclam"),
    (0o042, "universal"),
    (0o043, "numbersign"),
    (0o044, "existential"),
    (0o045, "percent"),
    (0o046, "ampersand"),
    (0o047, "suchthat"),
    (0o050, "parenleft"),
    (0o051, "parenright"),
    (0o052, "asteriskmath"),
    (0o053, "plus"),
    (0o054, "comma"),
    (0o055, "minus"),
    (0o056, "period"),
    (0o057, "slash"),
    (0o060, "zero"),
    (0o061, "one"),
    (0o062, "two"),
    (0o063, "three"),
    (0o064, "four"),
    (0o065, "five"),
    (0o066, "six"),
    (0o067, "seven"),
    (0o070, "eight"),
    (0o071, "nine"),
    (0o072, "colon"),
    (0o073, "semicolon"),
    (0o074, "less"),
    (0o075, "equal"),
    (0o076, "greater"),
    (0o077, "question"),
    (0o100, "congruent"),
    (0o101, "Alpha"),
    (0o102, "Beta"),
    (0o103, "Chi"),
    (0o104, "Delta"),
    (0o105, "Epsilon"),
    (0o106, "Phi"),
    (0o107, "Gamma"),
    (0o110, "Eta"),
    (0o111, "Iota"),
    (0o112, "theta1"),
    (0o113, "Kappa"),
    (0o114, "Lambda"),
    (0o115, "Mu"),
    (0o116, "Nu"),
    (0o117, "Omicron"),
    (0o120, "Pi"),
    (0o121, "Theta"),
    (0o122, "Rho"),
    (0o123, "Sigma"),
    (0o124, "Tau"),
    (0o125, "Upsilon"),
    (0o126, "sigma1"),
    (0o127, "Omega"),
    (0o130, "Xi"),
    (0o131, "Psi"),
    (0o132, "Zeta"),
    (0o133, "bracketleft"),
    (0o134, "therefore"),
    (0o135, "bracketright"),
    (0o136, "perpendicular"),
    (0o137, "underscore"),
    (0o140, "radicalex"),
    (0o141, "alpha"),
    (0o142, "beta"),
    (0o143, "chi"),
    (0o144, "delta"),
    (0o145, "epsilon"),
    (0o146, "phi"),
    (0o147, "gamma"),
    (0o150, "eta"),
    (0o151, "iota"),
    (0o152, "phi1"),
    (0o153, "kappa"),
    (0o154, "lambda"),
    (0o155, "mu"),
    (0o156, "nu"),
    (0o157, "omicron"),
    (0o160, "pi"),
    (0o161, "theta"),
    (0o162, "rho"),
    (0o163, "sigma"),
    (0o164, "tau"),
    (0o165, "upsilon"),
    (0o166, "omega1"),
    (0o167, "omega"),
    (0o170, "xi"),
    (0o171, "psi"),
    (0o172, "zeta"),
    (0o173, "braceleft"),
    (0o174, "bar"),
    (0o175, "braceright"),
    (0o176, "similar"),
    (0o240, "Euro"),
    (0o241, "Upsilon1"),
    (0o242, "minute"),
    (0o243, "lessequal"),
    (0o244, "fraction"),
    (0o245, "infinity"),
    (0o246, "florin"),
    (0o247, "club"),
    (0o250, "diamond"),
    (0o251, "heart"),
    (0o252, "spade"),
    (0o253, "arrowboth"),
    (0o254, "arrowleft"),
    (0o255, "arrowup"),
    (0o256, "arrowright"),
    (0o257, "arrowdown"),
    (0o260, "degree"),
    (0o261, "plusminus"),
    (0o262, "second"),
    (0o263, "greaterequal"),
    (0o264, "multiply"),
    (0o265, "proportional"),
    (0o266, "partialdiff"),
    (0o267, "bullet"),
    (0o270, "divide"),
    (0o271, "notequal"),
    (0o272, "equivalence"),
    (0o273, "approxequal"),
    (0o274, "ellipsis"),
    (0o275, "arrowvertex"),
    (0o276, "arrowhorizex"),
    (0o277, "carriagereturn"),
    (0o300, "aleph"),
    (0o301, "Ifraktur"),
    (0o302, "Rfraktur"),
    (0o303, "weierstrass"),
    (0o304, "circlemultiply"),
    (0o305, "circleplus"),
    (0o306, "emptyset"),
    (0o307, "intersection"),
    (0o310, "union"),
    (0o311, "propersuperset"),
    (0o312, "reflexsuperset"),
    (0o313, "notsubset"),
    (0o314, "propersubset"),
    (0o315, "reflexsubset"),
    (0o316, "element"),
    (0o317, "notelement"),
    (0o320, "angle"),
    (0o321, "gradient"),
    (0o322, "registerserif"),
    (0o323, "copyrightserif"),
    (0o324, "trademarkserif"),
    (0o325, "product"),
    (0o326, "radical"),
    (0o327, "dotmath"),
    (0o330, "logicalnot"),
    (0o331, "logicaland"),
    (0o332, "logicalor"),
    (0o333, "arrowdblboth"),
    (0o334, "arrowdblleft"),
    (0o335, "arrowdblup"),
    (0o336, "arrowdblright"),
    (0o337, "arrowdbldown"),
    (0o340, "lozenge"),
    (0o341, "angleleft"),
    (0o342, "registersans"),
    (0o343, "copyrightsans"),
    (0o344, "trademarksans"),
    (0o345, "summation"),
    (0o346, "parenlefttp"),
    (0o347, "parenleftex"),
    (0o350, "parenleftbt"),
    (0o351, "bracketlefttp"),
    (0o352, "bracketleftex"),
    (0o353, "bracketleftbt"),
    (0o354, "bracelefttp"),
    (0o355, "braceleftmid"),
    (0o356, "braceleftbt"),
    (0o357, "braceex"),
    (0o361, "angleright"),
    (0o362, "integral"),
    (0o363, "integraltp"),
    (0o364, "integralex"),
    (0o365, "integralbt"),
    (0o366, "parenrighttp"),
    (0o367, "parenrightex"),
    (0o370, "parenrightbt"),
    (0o371, "bracketrighttp"),
    (0o372, "bracketrightex"),
    (0o373, "bracketrightbt"),
    (0o374, "bracerighttp"),
    (0o375, "bracerightmid"),
    (0o376, "bracerightbt"),
];

/// ZapfDingbats' built-in encoding: `(code, glyph name, character)`, sorted
/// by code; the 188 codes Annex D.6 assigns, each with the Unicode
/// character unicode.org lists first for it.
///
/// Covers ISO 32000-1 Annex D.6.
#[rustfmt::skip]
pub(crate) const ZAPF_DINGBATS: &[(u8, &str, char)] = &[
    (0o040, "space", '\u{0020}'),
    (0o041, "a1", '\u{2701}'),
    (0o042, "a2", '\u{2702}'),
    (0o043, "a202", '\u{2703}'),
    (0o044, "a3", '\u{2704}'),
    (0o045, "a4", '\u{260E}'),
    (0o046, "a5", '\u{2706}'),
    (0o047, "a119", '\u{2707}'),
    (0o050, "a118", '\u{2708}'),
    (0o051, "a117", '\u{2709}'),
    (0o052, "a11", '\u{261B}'),
    (0o053, "a12", '\u{261E}'),
    (0o054, "a13", '\u{270C}'),
    (0o055, "a14", '\u{270D}'),
    (0o056, "a15", '\u{270E}'),
    (0o057, "a16", '\u{270F}'),
    (0o060, "a105", '\u{2710}'),
    (0o061, "a17", '\u{2711}'),
    (0o062, "a18", '\u{2712}'),
    (0o063, "a19", '\u{2713}'),
    (0o064, "a20", '\u{2714}'),
    (0o065, "a21", '\u{2715}'),
    (0o066, "a22", '\u{2716}'),
    (0o067, "a23", '\u{2717}'),
    (0o070, "a24", '\u{2718}'),
    (0o071, "a25", '\u{2719}'),
    (0o072, "a26", '\u{271A}'),
    (0o073, "a27", '\u{271B}'),
    (0o074, "a28", '\u{271C}'),
    (0o075, "a6", '\u{271D}'),
    (0o076, "a7", '\u{271E}'),
    (0o077, "a8", '\u{271F}'),
    (0o100, "a9", '\u{2720}'),
    (0o101, "a10", '\u{2721}'),
    (0o102, "a29", '\u{2722}'),
    (0o103, "a30", '\u{2723}'),
    (0o104, "a31", '\u{2724}'),
    (0o105, "a32", '\u{2725}'),
    (0o106, "a33", '\u{2726}'),
    (0o107, "a34", '\u{2727}'),
    (0o110, "a35", '\u{2605}'),
    (0o111, "a36", '\u{2729}'),
    (0o112, "a37", '\u{272A}'),
    (0o113, "a38", '\u{272B}'),
    (0o114, "a39", '\u{272C}'),
    (0o115, "a40", '\u{272D}'),
    (0o116, "a41", '\u{272E}'),
    (0o117, "a42", '\u{272F}'),
    (0o120, "a43", '\u{2730}'),
    (0o121, "a44", '\u{2731}'),
    (0o122, "a45", '\u{2732}'),
    (0o123, "a46", '\u{2733}'),
    (0o124, "a47", '\u{2734}'),
    (0o125, "a48", '\u{2735}'),
    (0o126, "a49", '\u{2736}'),
    (0o127, "a50", '\u{2737}'),
    (0o130, "a51", '\u{2738}'),
    (0o131, "a52", '\u{2739}'),
    (0o132, "a53", '\u{273A}'),
    (0o133, "a54", '\u{273B}'),
    (0o134, "a55", '\u{273C}'),
    (0o135, "a56", '\u{273D}'),
    (0o136, "a57", '\u{273E}'),
    (0o137, "a58", '\u{273F}'),
    (0o140, "a59", '\u{2740}'),
    (0o141, "a60", '\u{2741}'),
    (0o142, "a61", '\u{2742}'),
    (0o143, "a62", '\u{2743}'),
    (0o144, "a63", '\u{2744}'),
    (0o145, "a64", '\u{2745}'),
    (0o146, "a65", '\u{2746}'),
    (0o147, "a66", '\u{2747}'),
    (0o150, "a67", '\u{2748}'),
    (0o151, "a68", '\u{2749}'),
    (0o152, "a69", '\u{274A}'),
    (0o153, "a70", '\u{274B}'),
    (0o154, "a71", '\u{25CF}'),
    (0o155, "a72", '\u{274D}'),
    (0o156, "a73", '\u{25A0}'),
    (0o157, "a74", '\u{274F}'),
    (0o160, "a203", '\u{2750}'),
    (0o161, "a75", '\u{2751}'),
    (0o162, "a204", '\u{2752}'),
    (0o163, "a76", '\u{25B2}'),
    (0o164, "a77", '\u{25BC}'),
    (0o165, "a78", '\u{25C6}'),
    (0o166, "a79", '\u{2756}'),
    (0o167, "a81", '\u{25D7}'),
    (0o170, "a82", '\u{2758}'),
    (0o171, "a83", '\u{2759}'),
    (0o172, "a84", '\u{275A}'),
    (0o173, "a97", '\u{275B}'),
    (0o174, "a98", '\u{275C}'),
    (0o175, "a99", '\u{275D}'),
    (0o176, "a100", '\u{275E}'),
    (0o241, "a101", '\u{2761}'),
    (0o242, "a102", '\u{2762}'),
    (0o243, "a103", '\u{2763}'),
    (0o244, "a104", '\u{2764}'),
    (0o245, "a106", '\u{2765}'),
    (0o246, "a107", '\u{2766}'),
    (0o247, "a108", '\u{2767}'),
    (0o250, "a112", '\u{2663}'),
    (0o251, "a111", '\u{2666}'),
    (0o252, "a110", '\u{2665}'),
    (0o253, "a109", '\u{2660}'),
    (0o254, "a120", '\u{2460}'),
    (0o255, "a121", '\u{2461}'),
    (0o256, "a122", '\u{2462}'),
    (0o257, "a123", '\u{2463}'),
    (0o260, "a124", '\u{2464}'),
    (0o261, "a125", '\u{2465}'),
    (0o262, "a126", '\u{2466}'),
    (0o263, "a127", '\u{2467}'),
    (0o264, "a128", '\u{2468}'),
    (0o265, "a129", '\u{2469}'),
    (0o266, "a130", '\u{2776}'),
    (0o267, "a131", '\u{2777}'),
    (0o270, "a132", '\u{2778}'),
    (0o271, "a133", '\u{2779}'),
    (0o272, "a134", '\u{277A}'),
    (0o273, "a135", '\u{277B}'),
    (0o274, "a136", '\u{277C}'),
    (0o275, "a137", '\u{277D}'),
    (0o276, "a138", '\u{277E}'),
    (0o277, "a139", '\u{277F}'),
    (0o300, "a140", '\u{2780}'),
    (0o301, "a141", '\u{2781}'),
    (0o302, "a142", '\u{2782}'),
    (0o303, "a143", '\u{2783}'),
    (0o304, "a144", '\u{2784}'),
    (0o305, "a145", '\u{2785}'),
    (0o306, "a146", '\u{2786}'),
    (0o307, "a147", '\u{2787}'),
    (0o310, "a148", '\u{2788}'),
    (0o311, "a149", '\u{2789}'),
    (0o312, "a150", '\u{278A}'),
    (0o313, "a151", '\u{278B}'),
    (0o314, "a152", '\u{278C}'),
    (0o315, "a153", '\u{278D}'),
    (0o316, "a154", '\u{278E}'),
    (0o317, "a155", '\u{278F}'),
    (0o320, "a156", '\u{2790}'),
    (0o321, "a157", '\u{2791}'),
    (0o322, "a158", '\u{2792}'),
    (0o323, "a159", '\u{2793}'),
    (0o324, "a160", '\u{2794}'),
    (0o325, "a161", '\u{2192}'),
    (0o326, "a163", '\u{2194}'),
    (0o327, "a164", '\u{2195}'),
    (0o330, "a196", '\u{2798}'),
    (0o331, "a165", '\u{2799}'),
    (0o332, "a192", '\u{279A}'),
    (0o333, "a166", '\u{279B}'),
    (0o334, "a167", '\u{279C}'),
    (0o335, "a168", '\u{279D}'),
    (0o336, "a169", '\u{279E}'),
    (0o337, "a170", '\u{279F}'),
    (0o340, "a171", '\u{27A0}'),
    (0o341, "a172", '\u{27A1}'),
    (0o342, "a173", '\u{27A2}'),
    (0o343, "a162", '\u{27A3}'),
    (0o344, "a174", '\u{27A4}'),
    (0o345, "a175", '\u{27A5}'),
    (0o346, "a176", '\u{27A6}'),
    (0o347, "a177", '\u{27A7}'),
    (0o350, "a178", '\u{27A8}'),
    (0o351, "a179", '\u{27A9}'),
    (0o352, "a193", '\u{27AA}'),
    (0o353, "a180", '\u{27AB}'),
    (0o354, "a199", '\u{27AC}'),
    (0o355, "a181", '\u{27AD}'),
    (0o356, "a200", '\u{27AE}'),
    (0o357, "a182", '\u{27AF}'),
    (0o361, "a201", '\u{27B1}'),
    (0o362, "a183", '\u{27B2}'),
    (0o363, "a184", '\u{27B3}'),
    (0o364, "a197", '\u{27B4}'),
    (0o365, "a185", '\u{27B5}'),
    (0o366, "a194", '\u{27B6}'),
    (0o367, "a198", '\u{27B7}'),
    (0o370, "a186", '\u{27B8}'),
    (0o371, "a195", '\u{27B9}'),
    (0o372, "a187", '\u{27BA}'),
    (0o373, "a188", '\u{27BB}'),
    (0o374, "a189", '\u{27BC}'),
    (0o375, "a190", '\u{27BD}'),
    (0o376, "a191", '\u{27BE}'),
];