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
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
/// A number of constants to give a name to all characters in this block.
mod constants {
    /// \u{2d80}: 'ⶀ'
    pub const ETHIOPIC_SYLLABLE_LOA: char = 'ⶀ';
    /// \u{2d81}: 'ⶁ'
    pub const ETHIOPIC_SYLLABLE_MOA: char = 'ⶁ';
    /// \u{2d82}: 'ⶂ'
    pub const ETHIOPIC_SYLLABLE_ROA: char = 'ⶂ';
    /// \u{2d83}: 'ⶃ'
    pub const ETHIOPIC_SYLLABLE_SOA: char = 'ⶃ';
    /// \u{2d84}: 'ⶄ'
    pub const ETHIOPIC_SYLLABLE_SHOA: char = 'ⶄ';
    /// \u{2d85}: 'ⶅ'
    pub const ETHIOPIC_SYLLABLE_BOA: char = 'ⶅ';
    /// \u{2d86}: 'ⶆ'
    pub const ETHIOPIC_SYLLABLE_TOA: char = 'ⶆ';
    /// \u{2d87}: 'ⶇ'
    pub const ETHIOPIC_SYLLABLE_COA: char = 'ⶇ';
    /// \u{2d88}: 'ⶈ'
    pub const ETHIOPIC_SYLLABLE_NOA: char = 'ⶈ';
    /// \u{2d89}: 'ⶉ'
    pub const ETHIOPIC_SYLLABLE_NYOA: char = 'ⶉ';
    /// \u{2d8a}: 'ⶊ'
    pub const ETHIOPIC_SYLLABLE_GLOTTAL_OA: char = 'ⶊ';
    /// \u{2d8b}: 'ⶋ'
    pub const ETHIOPIC_SYLLABLE_ZOA: char = 'ⶋ';
    /// \u{2d8c}: 'ⶌ'
    pub const ETHIOPIC_SYLLABLE_DOA: char = 'ⶌ';
    /// \u{2d8d}: 'ⶍ'
    pub const ETHIOPIC_SYLLABLE_DDOA: char = 'ⶍ';
    /// \u{2d8e}: 'ⶎ'
    pub const ETHIOPIC_SYLLABLE_JOA: char = 'ⶎ';
    /// \u{2d8f}: 'ⶏ'
    pub const ETHIOPIC_SYLLABLE_THOA: char = 'ⶏ';
    /// \u{2d90}: 'ⶐ'
    pub const ETHIOPIC_SYLLABLE_CHOA: char = 'ⶐ';
    /// \u{2d91}: 'ⶑ'
    pub const ETHIOPIC_SYLLABLE_PHOA: char = 'ⶑ';
    /// \u{2d92}: 'ⶒ'
    pub const ETHIOPIC_SYLLABLE_POA: char = 'ⶒ';
    /// \u{2d93}: 'ⶓ'
    pub const ETHIOPIC_SYLLABLE_GGWA: char = 'ⶓ';
    /// \u{2d94}: 'ⶔ'
    pub const ETHIOPIC_SYLLABLE_GGWI: char = 'ⶔ';
    /// \u{2d95}: 'ⶕ'
    pub const ETHIOPIC_SYLLABLE_GGWEE: char = 'ⶕ';
    /// \u{2d96}: 'ⶖ'
    pub const ETHIOPIC_SYLLABLE_GGWE: char = 'ⶖ';
    /// \u{2da0}: 'ⶠ'
    pub const ETHIOPIC_SYLLABLE_SSA: char = 'ⶠ';
    /// \u{2da1}: 'ⶡ'
    pub const ETHIOPIC_SYLLABLE_SSU: char = 'ⶡ';
    /// \u{2da2}: 'ⶢ'
    pub const ETHIOPIC_SYLLABLE_SSI: char = 'ⶢ';
    /// \u{2da3}: 'ⶣ'
    pub const ETHIOPIC_SYLLABLE_SSAA: char = 'ⶣ';
    /// \u{2da4}: 'ⶤ'
    pub const ETHIOPIC_SYLLABLE_SSEE: char = 'ⶤ';
    /// \u{2da5}: 'ⶥ'
    pub const ETHIOPIC_SYLLABLE_SSE: char = 'ⶥ';
    /// \u{2da6}: 'ⶦ'
    pub const ETHIOPIC_SYLLABLE_SSO: char = 'ⶦ';
    /// \u{2da8}: 'ⶨ'
    pub const ETHIOPIC_SYLLABLE_CCA: char = 'ⶨ';
    /// \u{2da9}: 'ⶩ'
    pub const ETHIOPIC_SYLLABLE_CCU: char = 'ⶩ';
    /// \u{2daa}: 'ⶪ'
    pub const ETHIOPIC_SYLLABLE_CCI: char = 'ⶪ';
    /// \u{2dab}: 'ⶫ'
    pub const ETHIOPIC_SYLLABLE_CCAA: char = 'ⶫ';
    /// \u{2dac}: 'ⶬ'
    pub const ETHIOPIC_SYLLABLE_CCEE: char = 'ⶬ';
    /// \u{2dad}: 'ⶭ'
    pub const ETHIOPIC_SYLLABLE_CCE: char = 'ⶭ';
    /// \u{2dae}: 'ⶮ'
    pub const ETHIOPIC_SYLLABLE_CCO: char = 'ⶮ';
    /// \u{2db0}: 'ⶰ'
    pub const ETHIOPIC_SYLLABLE_ZZA: char = 'ⶰ';
    /// \u{2db1}: 'ⶱ'
    pub const ETHIOPIC_SYLLABLE_ZZU: char = 'ⶱ';
    /// \u{2db2}: 'ⶲ'
    pub const ETHIOPIC_SYLLABLE_ZZI: char = 'ⶲ';
    /// \u{2db3}: 'ⶳ'
    pub const ETHIOPIC_SYLLABLE_ZZAA: char = 'ⶳ';
    /// \u{2db4}: 'ⶴ'
    pub const ETHIOPIC_SYLLABLE_ZZEE: char = 'ⶴ';
    /// \u{2db5}: 'ⶵ'
    pub const ETHIOPIC_SYLLABLE_ZZE: char = 'ⶵ';
    /// \u{2db6}: 'ⶶ'
    pub const ETHIOPIC_SYLLABLE_ZZO: char = 'ⶶ';
    /// \u{2db8}: 'ⶸ'
    pub const ETHIOPIC_SYLLABLE_CCHA: char = 'ⶸ';
    /// \u{2db9}: 'ⶹ'
    pub const ETHIOPIC_SYLLABLE_CCHU: char = 'ⶹ';
    /// \u{2dba}: 'ⶺ'
    pub const ETHIOPIC_SYLLABLE_CCHI: char = 'ⶺ';
    /// \u{2dbb}: 'ⶻ'
    pub const ETHIOPIC_SYLLABLE_CCHAA: char = 'ⶻ';
    /// \u{2dbc}: 'ⶼ'
    pub const ETHIOPIC_SYLLABLE_CCHEE: char = 'ⶼ';
    /// \u{2dbd}: 'ⶽ'
    pub const ETHIOPIC_SYLLABLE_CCHE: char = 'ⶽ';
    /// \u{2dbe}: 'ⶾ'
    pub const ETHIOPIC_SYLLABLE_CCHO: char = 'ⶾ';
    /// \u{2dc0}: 'ⷀ'
    pub const ETHIOPIC_SYLLABLE_QYA: char = 'ⷀ';
    /// \u{2dc1}: 'ⷁ'
    pub const ETHIOPIC_SYLLABLE_QYU: char = 'ⷁ';
    /// \u{2dc2}: 'ⷂ'
    pub const ETHIOPIC_SYLLABLE_QYI: char = 'ⷂ';
    /// \u{2dc3}: 'ⷃ'
    pub const ETHIOPIC_SYLLABLE_QYAA: char = 'ⷃ';
    /// \u{2dc4}: 'ⷄ'
    pub const ETHIOPIC_SYLLABLE_QYEE: char = 'ⷄ';
    /// \u{2dc5}: 'ⷅ'
    pub const ETHIOPIC_SYLLABLE_QYE: char = 'ⷅ';
    /// \u{2dc6}: 'ⷆ'
    pub const ETHIOPIC_SYLLABLE_QYO: char = 'ⷆ';
    /// \u{2dc8}: 'ⷈ'
    pub const ETHIOPIC_SYLLABLE_KYA: char = 'ⷈ';
    /// \u{2dc9}: 'ⷉ'
    pub const ETHIOPIC_SYLLABLE_KYU: char = 'ⷉ';
    /// \u{2dca}: 'ⷊ'
    pub const ETHIOPIC_SYLLABLE_KYI: char = 'ⷊ';
    /// \u{2dcb}: 'ⷋ'
    pub const ETHIOPIC_SYLLABLE_KYAA: char = 'ⷋ';
    /// \u{2dcc}: 'ⷌ'
    pub const ETHIOPIC_SYLLABLE_KYEE: char = 'ⷌ';
    /// \u{2dcd}: 'ⷍ'
    pub const ETHIOPIC_SYLLABLE_KYE: char = 'ⷍ';
    /// \u{2dce}: 'ⷎ'
    pub const ETHIOPIC_SYLLABLE_KYO: char = 'ⷎ';
    /// \u{2dd0}: 'ⷐ'
    pub const ETHIOPIC_SYLLABLE_XYA: char = 'ⷐ';
    /// \u{2dd1}: 'ⷑ'
    pub const ETHIOPIC_SYLLABLE_XYU: char = 'ⷑ';
    /// \u{2dd2}: 'ⷒ'
    pub const ETHIOPIC_SYLLABLE_XYI: char = 'ⷒ';
    /// \u{2dd3}: 'ⷓ'
    pub const ETHIOPIC_SYLLABLE_XYAA: char = 'ⷓ';
    /// \u{2dd4}: 'ⷔ'
    pub const ETHIOPIC_SYLLABLE_XYEE: char = 'ⷔ';
    /// \u{2dd5}: 'ⷕ'
    pub const ETHIOPIC_SYLLABLE_XYE: char = 'ⷕ';
    /// \u{2dd6}: 'ⷖ'
    pub const ETHIOPIC_SYLLABLE_XYO: char = 'ⷖ';
    /// \u{2dd8}: 'ⷘ'
    pub const ETHIOPIC_SYLLABLE_GYA: char = 'ⷘ';
    /// \u{2dd9}: 'ⷙ'
    pub const ETHIOPIC_SYLLABLE_GYU: char = 'ⷙ';
    /// \u{2dda}: 'ⷚ'
    pub const ETHIOPIC_SYLLABLE_GYI: char = 'ⷚ';
    /// \u{2ddb}: 'ⷛ'
    pub const ETHIOPIC_SYLLABLE_GYAA: char = 'ⷛ';
    /// \u{2ddc}: 'ⷜ'
    pub const ETHIOPIC_SYLLABLE_GYEE: char = 'ⷜ';
    /// \u{2ddd}: 'ⷝ'
    pub const ETHIOPIC_SYLLABLE_GYE: char = 'ⷝ';
    /// \u{2dde}: 'ⷞ'
    pub const ETHIOPIC_SYLLABLE_GYO: char = 'ⷞ';
}

/// An enum to represent all characters in the EthiopicExtended block.
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
pub enum EthiopicExtended {
    /// \u{2d80}: 'ⶀ'
    EthiopicSyllableLoa,
    /// \u{2d81}: 'ⶁ'
    EthiopicSyllableMoa,
    /// \u{2d82}: 'ⶂ'
    EthiopicSyllableRoa,
    /// \u{2d83}: 'ⶃ'
    EthiopicSyllableSoa,
    /// \u{2d84}: 'ⶄ'
    EthiopicSyllableShoa,
    /// \u{2d85}: 'ⶅ'
    EthiopicSyllableBoa,
    /// \u{2d86}: 'ⶆ'
    EthiopicSyllableToa,
    /// \u{2d87}: 'ⶇ'
    EthiopicSyllableCoa,
    /// \u{2d88}: 'ⶈ'
    EthiopicSyllableNoa,
    /// \u{2d89}: 'ⶉ'
    EthiopicSyllableNyoa,
    /// \u{2d8a}: 'ⶊ'
    EthiopicSyllableGlottalOa,
    /// \u{2d8b}: 'ⶋ'
    EthiopicSyllableZoa,
    /// \u{2d8c}: 'ⶌ'
    EthiopicSyllableDoa,
    /// \u{2d8d}: 'ⶍ'
    EthiopicSyllableDdoa,
    /// \u{2d8e}: 'ⶎ'
    EthiopicSyllableJoa,
    /// \u{2d8f}: 'ⶏ'
    EthiopicSyllableThoa,
    /// \u{2d90}: 'ⶐ'
    EthiopicSyllableChoa,
    /// \u{2d91}: 'ⶑ'
    EthiopicSyllablePhoa,
    /// \u{2d92}: 'ⶒ'
    EthiopicSyllablePoa,
    /// \u{2d93}: 'ⶓ'
    EthiopicSyllableGgwa,
    /// \u{2d94}: 'ⶔ'
    EthiopicSyllableGgwi,
    /// \u{2d95}: 'ⶕ'
    EthiopicSyllableGgwee,
    /// \u{2d96}: 'ⶖ'
    EthiopicSyllableGgwe,
    /// \u{2da0}: 'ⶠ'
    EthiopicSyllableSsa,
    /// \u{2da1}: 'ⶡ'
    EthiopicSyllableSsu,
    /// \u{2da2}: 'ⶢ'
    EthiopicSyllableSsi,
    /// \u{2da3}: 'ⶣ'
    EthiopicSyllableSsaa,
    /// \u{2da4}: 'ⶤ'
    EthiopicSyllableSsee,
    /// \u{2da5}: 'ⶥ'
    EthiopicSyllableSse,
    /// \u{2da6}: 'ⶦ'
    EthiopicSyllableSso,
    /// \u{2da8}: 'ⶨ'
    EthiopicSyllableCca,
    /// \u{2da9}: 'ⶩ'
    EthiopicSyllableCcu,
    /// \u{2daa}: 'ⶪ'
    EthiopicSyllableCci,
    /// \u{2dab}: 'ⶫ'
    EthiopicSyllableCcaa,
    /// \u{2dac}: 'ⶬ'
    EthiopicSyllableCcee,
    /// \u{2dad}: 'ⶭ'
    EthiopicSyllableCce,
    /// \u{2dae}: 'ⶮ'
    EthiopicSyllableCco,
    /// \u{2db0}: 'ⶰ'
    EthiopicSyllableZza,
    /// \u{2db1}: 'ⶱ'
    EthiopicSyllableZzu,
    /// \u{2db2}: 'ⶲ'
    EthiopicSyllableZzi,
    /// \u{2db3}: 'ⶳ'
    EthiopicSyllableZzaa,
    /// \u{2db4}: 'ⶴ'
    EthiopicSyllableZzee,
    /// \u{2db5}: 'ⶵ'
    EthiopicSyllableZze,
    /// \u{2db6}: 'ⶶ'
    EthiopicSyllableZzo,
    /// \u{2db8}: 'ⶸ'
    EthiopicSyllableCcha,
    /// \u{2db9}: 'ⶹ'
    EthiopicSyllableCchu,
    /// \u{2dba}: 'ⶺ'
    EthiopicSyllableCchi,
    /// \u{2dbb}: 'ⶻ'
    EthiopicSyllableCchaa,
    /// \u{2dbc}: 'ⶼ'
    EthiopicSyllableCchee,
    /// \u{2dbd}: 'ⶽ'
    EthiopicSyllableCche,
    /// \u{2dbe}: 'ⶾ'
    EthiopicSyllableCcho,
    /// \u{2dc0}: 'ⷀ'
    EthiopicSyllableQya,
    /// \u{2dc1}: 'ⷁ'
    EthiopicSyllableQyu,
    /// \u{2dc2}: 'ⷂ'
    EthiopicSyllableQyi,
    /// \u{2dc3}: 'ⷃ'
    EthiopicSyllableQyaa,
    /// \u{2dc4}: 'ⷄ'
    EthiopicSyllableQyee,
    /// \u{2dc5}: 'ⷅ'
    EthiopicSyllableQye,
    /// \u{2dc6}: 'ⷆ'
    EthiopicSyllableQyo,
    /// \u{2dc8}: 'ⷈ'
    EthiopicSyllableKya,
    /// \u{2dc9}: 'ⷉ'
    EthiopicSyllableKyu,
    /// \u{2dca}: 'ⷊ'
    EthiopicSyllableKyi,
    /// \u{2dcb}: 'ⷋ'
    EthiopicSyllableKyaa,
    /// \u{2dcc}: 'ⷌ'
    EthiopicSyllableKyee,
    /// \u{2dcd}: 'ⷍ'
    EthiopicSyllableKye,
    /// \u{2dce}: 'ⷎ'
    EthiopicSyllableKyo,
    /// \u{2dd0}: 'ⷐ'
    EthiopicSyllableXya,
    /// \u{2dd1}: 'ⷑ'
    EthiopicSyllableXyu,
    /// \u{2dd2}: 'ⷒ'
    EthiopicSyllableXyi,
    /// \u{2dd3}: 'ⷓ'
    EthiopicSyllableXyaa,
    /// \u{2dd4}: 'ⷔ'
    EthiopicSyllableXyee,
    /// \u{2dd5}: 'ⷕ'
    EthiopicSyllableXye,
    /// \u{2dd6}: 'ⷖ'
    EthiopicSyllableXyo,
    /// \u{2dd8}: 'ⷘ'
    EthiopicSyllableGya,
    /// \u{2dd9}: 'ⷙ'
    EthiopicSyllableGyu,
    /// \u{2dda}: 'ⷚ'
    EthiopicSyllableGyi,
    /// \u{2ddb}: 'ⷛ'
    EthiopicSyllableGyaa,
    /// \u{2ddc}: 'ⷜ'
    EthiopicSyllableGyee,
    /// \u{2ddd}: 'ⷝ'
    EthiopicSyllableGye,
    /// \u{2dde}: 'ⷞ'
    EthiopicSyllableGyo,
}

impl Into<char> for EthiopicExtended {
    fn into(self) -> char {
        use constants::*;
        match self {
            EthiopicExtended::EthiopicSyllableLoa => ETHIOPIC_SYLLABLE_LOA,
            EthiopicExtended::EthiopicSyllableMoa => ETHIOPIC_SYLLABLE_MOA,
            EthiopicExtended::EthiopicSyllableRoa => ETHIOPIC_SYLLABLE_ROA,
            EthiopicExtended::EthiopicSyllableSoa => ETHIOPIC_SYLLABLE_SOA,
            EthiopicExtended::EthiopicSyllableShoa => ETHIOPIC_SYLLABLE_SHOA,
            EthiopicExtended::EthiopicSyllableBoa => ETHIOPIC_SYLLABLE_BOA,
            EthiopicExtended::EthiopicSyllableToa => ETHIOPIC_SYLLABLE_TOA,
            EthiopicExtended::EthiopicSyllableCoa => ETHIOPIC_SYLLABLE_COA,
            EthiopicExtended::EthiopicSyllableNoa => ETHIOPIC_SYLLABLE_NOA,
            EthiopicExtended::EthiopicSyllableNyoa => ETHIOPIC_SYLLABLE_NYOA,
            EthiopicExtended::EthiopicSyllableGlottalOa => ETHIOPIC_SYLLABLE_GLOTTAL_OA,
            EthiopicExtended::EthiopicSyllableZoa => ETHIOPIC_SYLLABLE_ZOA,
            EthiopicExtended::EthiopicSyllableDoa => ETHIOPIC_SYLLABLE_DOA,
            EthiopicExtended::EthiopicSyllableDdoa => ETHIOPIC_SYLLABLE_DDOA,
            EthiopicExtended::EthiopicSyllableJoa => ETHIOPIC_SYLLABLE_JOA,
            EthiopicExtended::EthiopicSyllableThoa => ETHIOPIC_SYLLABLE_THOA,
            EthiopicExtended::EthiopicSyllableChoa => ETHIOPIC_SYLLABLE_CHOA,
            EthiopicExtended::EthiopicSyllablePhoa => ETHIOPIC_SYLLABLE_PHOA,
            EthiopicExtended::EthiopicSyllablePoa => ETHIOPIC_SYLLABLE_POA,
            EthiopicExtended::EthiopicSyllableGgwa => ETHIOPIC_SYLLABLE_GGWA,
            EthiopicExtended::EthiopicSyllableGgwi => ETHIOPIC_SYLLABLE_GGWI,
            EthiopicExtended::EthiopicSyllableGgwee => ETHIOPIC_SYLLABLE_GGWEE,
            EthiopicExtended::EthiopicSyllableGgwe => ETHIOPIC_SYLLABLE_GGWE,
            EthiopicExtended::EthiopicSyllableSsa => ETHIOPIC_SYLLABLE_SSA,
            EthiopicExtended::EthiopicSyllableSsu => ETHIOPIC_SYLLABLE_SSU,
            EthiopicExtended::EthiopicSyllableSsi => ETHIOPIC_SYLLABLE_SSI,
            EthiopicExtended::EthiopicSyllableSsaa => ETHIOPIC_SYLLABLE_SSAA,
            EthiopicExtended::EthiopicSyllableSsee => ETHIOPIC_SYLLABLE_SSEE,
            EthiopicExtended::EthiopicSyllableSse => ETHIOPIC_SYLLABLE_SSE,
            EthiopicExtended::EthiopicSyllableSso => ETHIOPIC_SYLLABLE_SSO,
            EthiopicExtended::EthiopicSyllableCca => ETHIOPIC_SYLLABLE_CCA,
            EthiopicExtended::EthiopicSyllableCcu => ETHIOPIC_SYLLABLE_CCU,
            EthiopicExtended::EthiopicSyllableCci => ETHIOPIC_SYLLABLE_CCI,
            EthiopicExtended::EthiopicSyllableCcaa => ETHIOPIC_SYLLABLE_CCAA,
            EthiopicExtended::EthiopicSyllableCcee => ETHIOPIC_SYLLABLE_CCEE,
            EthiopicExtended::EthiopicSyllableCce => ETHIOPIC_SYLLABLE_CCE,
            EthiopicExtended::EthiopicSyllableCco => ETHIOPIC_SYLLABLE_CCO,
            EthiopicExtended::EthiopicSyllableZza => ETHIOPIC_SYLLABLE_ZZA,
            EthiopicExtended::EthiopicSyllableZzu => ETHIOPIC_SYLLABLE_ZZU,
            EthiopicExtended::EthiopicSyllableZzi => ETHIOPIC_SYLLABLE_ZZI,
            EthiopicExtended::EthiopicSyllableZzaa => ETHIOPIC_SYLLABLE_ZZAA,
            EthiopicExtended::EthiopicSyllableZzee => ETHIOPIC_SYLLABLE_ZZEE,
            EthiopicExtended::EthiopicSyllableZze => ETHIOPIC_SYLLABLE_ZZE,
            EthiopicExtended::EthiopicSyllableZzo => ETHIOPIC_SYLLABLE_ZZO,
            EthiopicExtended::EthiopicSyllableCcha => ETHIOPIC_SYLLABLE_CCHA,
            EthiopicExtended::EthiopicSyllableCchu => ETHIOPIC_SYLLABLE_CCHU,
            EthiopicExtended::EthiopicSyllableCchi => ETHIOPIC_SYLLABLE_CCHI,
            EthiopicExtended::EthiopicSyllableCchaa => ETHIOPIC_SYLLABLE_CCHAA,
            EthiopicExtended::EthiopicSyllableCchee => ETHIOPIC_SYLLABLE_CCHEE,
            EthiopicExtended::EthiopicSyllableCche => ETHIOPIC_SYLLABLE_CCHE,
            EthiopicExtended::EthiopicSyllableCcho => ETHIOPIC_SYLLABLE_CCHO,
            EthiopicExtended::EthiopicSyllableQya => ETHIOPIC_SYLLABLE_QYA,
            EthiopicExtended::EthiopicSyllableQyu => ETHIOPIC_SYLLABLE_QYU,
            EthiopicExtended::EthiopicSyllableQyi => ETHIOPIC_SYLLABLE_QYI,
            EthiopicExtended::EthiopicSyllableQyaa => ETHIOPIC_SYLLABLE_QYAA,
            EthiopicExtended::EthiopicSyllableQyee => ETHIOPIC_SYLLABLE_QYEE,
            EthiopicExtended::EthiopicSyllableQye => ETHIOPIC_SYLLABLE_QYE,
            EthiopicExtended::EthiopicSyllableQyo => ETHIOPIC_SYLLABLE_QYO,
            EthiopicExtended::EthiopicSyllableKya => ETHIOPIC_SYLLABLE_KYA,
            EthiopicExtended::EthiopicSyllableKyu => ETHIOPIC_SYLLABLE_KYU,
            EthiopicExtended::EthiopicSyllableKyi => ETHIOPIC_SYLLABLE_KYI,
            EthiopicExtended::EthiopicSyllableKyaa => ETHIOPIC_SYLLABLE_KYAA,
            EthiopicExtended::EthiopicSyllableKyee => ETHIOPIC_SYLLABLE_KYEE,
            EthiopicExtended::EthiopicSyllableKye => ETHIOPIC_SYLLABLE_KYE,
            EthiopicExtended::EthiopicSyllableKyo => ETHIOPIC_SYLLABLE_KYO,
            EthiopicExtended::EthiopicSyllableXya => ETHIOPIC_SYLLABLE_XYA,
            EthiopicExtended::EthiopicSyllableXyu => ETHIOPIC_SYLLABLE_XYU,
            EthiopicExtended::EthiopicSyllableXyi => ETHIOPIC_SYLLABLE_XYI,
            EthiopicExtended::EthiopicSyllableXyaa => ETHIOPIC_SYLLABLE_XYAA,
            EthiopicExtended::EthiopicSyllableXyee => ETHIOPIC_SYLLABLE_XYEE,
            EthiopicExtended::EthiopicSyllableXye => ETHIOPIC_SYLLABLE_XYE,
            EthiopicExtended::EthiopicSyllableXyo => ETHIOPIC_SYLLABLE_XYO,
            EthiopicExtended::EthiopicSyllableGya => ETHIOPIC_SYLLABLE_GYA,
            EthiopicExtended::EthiopicSyllableGyu => ETHIOPIC_SYLLABLE_GYU,
            EthiopicExtended::EthiopicSyllableGyi => ETHIOPIC_SYLLABLE_GYI,
            EthiopicExtended::EthiopicSyllableGyaa => ETHIOPIC_SYLLABLE_GYAA,
            EthiopicExtended::EthiopicSyllableGyee => ETHIOPIC_SYLLABLE_GYEE,
            EthiopicExtended::EthiopicSyllableGye => ETHIOPIC_SYLLABLE_GYE,
            EthiopicExtended::EthiopicSyllableGyo => ETHIOPIC_SYLLABLE_GYO,
        }
    }
}

impl std::convert::TryFrom<char> for EthiopicExtended {
    type Error = ();
    fn try_from(c: char) -> Result<Self, Self::Error> {
        use constants::*;
        match c {
            ETHIOPIC_SYLLABLE_LOA => Ok(EthiopicExtended::EthiopicSyllableLoa),
            ETHIOPIC_SYLLABLE_MOA => Ok(EthiopicExtended::EthiopicSyllableMoa),
            ETHIOPIC_SYLLABLE_ROA => Ok(EthiopicExtended::EthiopicSyllableRoa),
            ETHIOPIC_SYLLABLE_SOA => Ok(EthiopicExtended::EthiopicSyllableSoa),
            ETHIOPIC_SYLLABLE_SHOA => Ok(EthiopicExtended::EthiopicSyllableShoa),
            ETHIOPIC_SYLLABLE_BOA => Ok(EthiopicExtended::EthiopicSyllableBoa),
            ETHIOPIC_SYLLABLE_TOA => Ok(EthiopicExtended::EthiopicSyllableToa),
            ETHIOPIC_SYLLABLE_COA => Ok(EthiopicExtended::EthiopicSyllableCoa),
            ETHIOPIC_SYLLABLE_NOA => Ok(EthiopicExtended::EthiopicSyllableNoa),
            ETHIOPIC_SYLLABLE_NYOA => Ok(EthiopicExtended::EthiopicSyllableNyoa),
            ETHIOPIC_SYLLABLE_GLOTTAL_OA => Ok(EthiopicExtended::EthiopicSyllableGlottalOa),
            ETHIOPIC_SYLLABLE_ZOA => Ok(EthiopicExtended::EthiopicSyllableZoa),
            ETHIOPIC_SYLLABLE_DOA => Ok(EthiopicExtended::EthiopicSyllableDoa),
            ETHIOPIC_SYLLABLE_DDOA => Ok(EthiopicExtended::EthiopicSyllableDdoa),
            ETHIOPIC_SYLLABLE_JOA => Ok(EthiopicExtended::EthiopicSyllableJoa),
            ETHIOPIC_SYLLABLE_THOA => Ok(EthiopicExtended::EthiopicSyllableThoa),
            ETHIOPIC_SYLLABLE_CHOA => Ok(EthiopicExtended::EthiopicSyllableChoa),
            ETHIOPIC_SYLLABLE_PHOA => Ok(EthiopicExtended::EthiopicSyllablePhoa),
            ETHIOPIC_SYLLABLE_POA => Ok(EthiopicExtended::EthiopicSyllablePoa),
            ETHIOPIC_SYLLABLE_GGWA => Ok(EthiopicExtended::EthiopicSyllableGgwa),
            ETHIOPIC_SYLLABLE_GGWI => Ok(EthiopicExtended::EthiopicSyllableGgwi),
            ETHIOPIC_SYLLABLE_GGWEE => Ok(EthiopicExtended::EthiopicSyllableGgwee),
            ETHIOPIC_SYLLABLE_GGWE => Ok(EthiopicExtended::EthiopicSyllableGgwe),
            ETHIOPIC_SYLLABLE_SSA => Ok(EthiopicExtended::EthiopicSyllableSsa),
            ETHIOPIC_SYLLABLE_SSU => Ok(EthiopicExtended::EthiopicSyllableSsu),
            ETHIOPIC_SYLLABLE_SSI => Ok(EthiopicExtended::EthiopicSyllableSsi),
            ETHIOPIC_SYLLABLE_SSAA => Ok(EthiopicExtended::EthiopicSyllableSsaa),
            ETHIOPIC_SYLLABLE_SSEE => Ok(EthiopicExtended::EthiopicSyllableSsee),
            ETHIOPIC_SYLLABLE_SSE => Ok(EthiopicExtended::EthiopicSyllableSse),
            ETHIOPIC_SYLLABLE_SSO => Ok(EthiopicExtended::EthiopicSyllableSso),
            ETHIOPIC_SYLLABLE_CCA => Ok(EthiopicExtended::EthiopicSyllableCca),
            ETHIOPIC_SYLLABLE_CCU => Ok(EthiopicExtended::EthiopicSyllableCcu),
            ETHIOPIC_SYLLABLE_CCI => Ok(EthiopicExtended::EthiopicSyllableCci),
            ETHIOPIC_SYLLABLE_CCAA => Ok(EthiopicExtended::EthiopicSyllableCcaa),
            ETHIOPIC_SYLLABLE_CCEE => Ok(EthiopicExtended::EthiopicSyllableCcee),
            ETHIOPIC_SYLLABLE_CCE => Ok(EthiopicExtended::EthiopicSyllableCce),
            ETHIOPIC_SYLLABLE_CCO => Ok(EthiopicExtended::EthiopicSyllableCco),
            ETHIOPIC_SYLLABLE_ZZA => Ok(EthiopicExtended::EthiopicSyllableZza),
            ETHIOPIC_SYLLABLE_ZZU => Ok(EthiopicExtended::EthiopicSyllableZzu),
            ETHIOPIC_SYLLABLE_ZZI => Ok(EthiopicExtended::EthiopicSyllableZzi),
            ETHIOPIC_SYLLABLE_ZZAA => Ok(EthiopicExtended::EthiopicSyllableZzaa),
            ETHIOPIC_SYLLABLE_ZZEE => Ok(EthiopicExtended::EthiopicSyllableZzee),
            ETHIOPIC_SYLLABLE_ZZE => Ok(EthiopicExtended::EthiopicSyllableZze),
            ETHIOPIC_SYLLABLE_ZZO => Ok(EthiopicExtended::EthiopicSyllableZzo),
            ETHIOPIC_SYLLABLE_CCHA => Ok(EthiopicExtended::EthiopicSyllableCcha),
            ETHIOPIC_SYLLABLE_CCHU => Ok(EthiopicExtended::EthiopicSyllableCchu),
            ETHIOPIC_SYLLABLE_CCHI => Ok(EthiopicExtended::EthiopicSyllableCchi),
            ETHIOPIC_SYLLABLE_CCHAA => Ok(EthiopicExtended::EthiopicSyllableCchaa),
            ETHIOPIC_SYLLABLE_CCHEE => Ok(EthiopicExtended::EthiopicSyllableCchee),
            ETHIOPIC_SYLLABLE_CCHE => Ok(EthiopicExtended::EthiopicSyllableCche),
            ETHIOPIC_SYLLABLE_CCHO => Ok(EthiopicExtended::EthiopicSyllableCcho),
            ETHIOPIC_SYLLABLE_QYA => Ok(EthiopicExtended::EthiopicSyllableQya),
            ETHIOPIC_SYLLABLE_QYU => Ok(EthiopicExtended::EthiopicSyllableQyu),
            ETHIOPIC_SYLLABLE_QYI => Ok(EthiopicExtended::EthiopicSyllableQyi),
            ETHIOPIC_SYLLABLE_QYAA => Ok(EthiopicExtended::EthiopicSyllableQyaa),
            ETHIOPIC_SYLLABLE_QYEE => Ok(EthiopicExtended::EthiopicSyllableQyee),
            ETHIOPIC_SYLLABLE_QYE => Ok(EthiopicExtended::EthiopicSyllableQye),
            ETHIOPIC_SYLLABLE_QYO => Ok(EthiopicExtended::EthiopicSyllableQyo),
            ETHIOPIC_SYLLABLE_KYA => Ok(EthiopicExtended::EthiopicSyllableKya),
            ETHIOPIC_SYLLABLE_KYU => Ok(EthiopicExtended::EthiopicSyllableKyu),
            ETHIOPIC_SYLLABLE_KYI => Ok(EthiopicExtended::EthiopicSyllableKyi),
            ETHIOPIC_SYLLABLE_KYAA => Ok(EthiopicExtended::EthiopicSyllableKyaa),
            ETHIOPIC_SYLLABLE_KYEE => Ok(EthiopicExtended::EthiopicSyllableKyee),
            ETHIOPIC_SYLLABLE_KYE => Ok(EthiopicExtended::EthiopicSyllableKye),
            ETHIOPIC_SYLLABLE_KYO => Ok(EthiopicExtended::EthiopicSyllableKyo),
            ETHIOPIC_SYLLABLE_XYA => Ok(EthiopicExtended::EthiopicSyllableXya),
            ETHIOPIC_SYLLABLE_XYU => Ok(EthiopicExtended::EthiopicSyllableXyu),
            ETHIOPIC_SYLLABLE_XYI => Ok(EthiopicExtended::EthiopicSyllableXyi),
            ETHIOPIC_SYLLABLE_XYAA => Ok(EthiopicExtended::EthiopicSyllableXyaa),
            ETHIOPIC_SYLLABLE_XYEE => Ok(EthiopicExtended::EthiopicSyllableXyee),
            ETHIOPIC_SYLLABLE_XYE => Ok(EthiopicExtended::EthiopicSyllableXye),
            ETHIOPIC_SYLLABLE_XYO => Ok(EthiopicExtended::EthiopicSyllableXyo),
            ETHIOPIC_SYLLABLE_GYA => Ok(EthiopicExtended::EthiopicSyllableGya),
            ETHIOPIC_SYLLABLE_GYU => Ok(EthiopicExtended::EthiopicSyllableGyu),
            ETHIOPIC_SYLLABLE_GYI => Ok(EthiopicExtended::EthiopicSyllableGyi),
            ETHIOPIC_SYLLABLE_GYAA => Ok(EthiopicExtended::EthiopicSyllableGyaa),
            ETHIOPIC_SYLLABLE_GYEE => Ok(EthiopicExtended::EthiopicSyllableGyee),
            ETHIOPIC_SYLLABLE_GYE => Ok(EthiopicExtended::EthiopicSyllableGye),
            ETHIOPIC_SYLLABLE_GYO => Ok(EthiopicExtended::EthiopicSyllableGyo),
            _ => Err(()),
        }
    }
}

impl Into<u32> for EthiopicExtended {
    fn into(self) -> u32 {
        let c: char = self.into();
        let hex = c
            .escape_unicode()
            .to_string()
            .replace("\\u{", "")
            .replace("}", "");
        u32::from_str_radix(&hex, 16).unwrap()
    }
}

impl std::convert::TryFrom<u32> for EthiopicExtended {
    type Error = ();
    fn try_from(u: u32) -> Result<Self, Self::Error> {
        if let Ok(c) = char::try_from(u) {
            Self::try_from(c)
        } else {
            Err(())
        }
    }
}

impl Iterator for EthiopicExtended {
    type Item = Self;
    fn next(&mut self) -> Option<Self> {
        let index: u32 = (*self).into();
        use std::convert::TryFrom;
        Self::try_from(index + 1).ok()
    }
}

impl EthiopicExtended {
    /// The character with the lowest index in this unicode block
    pub fn new() -> Self {
        EthiopicExtended::EthiopicSyllableLoa
    }

    /// The character's name, all lowercase and space-separated
    pub fn name(&self) -> &str {
        match self {
            EthiopicExtended::EthiopicSyllableLoa => "ethiopic syllable loa",
            EthiopicExtended::EthiopicSyllableMoa => "ethiopic syllable moa",
            EthiopicExtended::EthiopicSyllableRoa => "ethiopic syllable roa",
            EthiopicExtended::EthiopicSyllableSoa => "ethiopic syllable soa",
            EthiopicExtended::EthiopicSyllableShoa => "ethiopic syllable shoa",
            EthiopicExtended::EthiopicSyllableBoa => "ethiopic syllable boa",
            EthiopicExtended::EthiopicSyllableToa => "ethiopic syllable toa",
            EthiopicExtended::EthiopicSyllableCoa => "ethiopic syllable coa",
            EthiopicExtended::EthiopicSyllableNoa => "ethiopic syllable noa",
            EthiopicExtended::EthiopicSyllableNyoa => "ethiopic syllable nyoa",
            EthiopicExtended::EthiopicSyllableGlottalOa => "ethiopic syllable glottal oa",
            EthiopicExtended::EthiopicSyllableZoa => "ethiopic syllable zoa",
            EthiopicExtended::EthiopicSyllableDoa => "ethiopic syllable doa",
            EthiopicExtended::EthiopicSyllableDdoa => "ethiopic syllable ddoa",
            EthiopicExtended::EthiopicSyllableJoa => "ethiopic syllable joa",
            EthiopicExtended::EthiopicSyllableThoa => "ethiopic syllable thoa",
            EthiopicExtended::EthiopicSyllableChoa => "ethiopic syllable choa",
            EthiopicExtended::EthiopicSyllablePhoa => "ethiopic syllable phoa",
            EthiopicExtended::EthiopicSyllablePoa => "ethiopic syllable poa",
            EthiopicExtended::EthiopicSyllableGgwa => "ethiopic syllable ggwa",
            EthiopicExtended::EthiopicSyllableGgwi => "ethiopic syllable ggwi",
            EthiopicExtended::EthiopicSyllableGgwee => "ethiopic syllable ggwee",
            EthiopicExtended::EthiopicSyllableGgwe => "ethiopic syllable ggwe",
            EthiopicExtended::EthiopicSyllableSsa => "ethiopic syllable ssa",
            EthiopicExtended::EthiopicSyllableSsu => "ethiopic syllable ssu",
            EthiopicExtended::EthiopicSyllableSsi => "ethiopic syllable ssi",
            EthiopicExtended::EthiopicSyllableSsaa => "ethiopic syllable ssaa",
            EthiopicExtended::EthiopicSyllableSsee => "ethiopic syllable ssee",
            EthiopicExtended::EthiopicSyllableSse => "ethiopic syllable sse",
            EthiopicExtended::EthiopicSyllableSso => "ethiopic syllable sso",
            EthiopicExtended::EthiopicSyllableCca => "ethiopic syllable cca",
            EthiopicExtended::EthiopicSyllableCcu => "ethiopic syllable ccu",
            EthiopicExtended::EthiopicSyllableCci => "ethiopic syllable cci",
            EthiopicExtended::EthiopicSyllableCcaa => "ethiopic syllable ccaa",
            EthiopicExtended::EthiopicSyllableCcee => "ethiopic syllable ccee",
            EthiopicExtended::EthiopicSyllableCce => "ethiopic syllable cce",
            EthiopicExtended::EthiopicSyllableCco => "ethiopic syllable cco",
            EthiopicExtended::EthiopicSyllableZza => "ethiopic syllable zza",
            EthiopicExtended::EthiopicSyllableZzu => "ethiopic syllable zzu",
            EthiopicExtended::EthiopicSyllableZzi => "ethiopic syllable zzi",
            EthiopicExtended::EthiopicSyllableZzaa => "ethiopic syllable zzaa",
            EthiopicExtended::EthiopicSyllableZzee => "ethiopic syllable zzee",
            EthiopicExtended::EthiopicSyllableZze => "ethiopic syllable zze",
            EthiopicExtended::EthiopicSyllableZzo => "ethiopic syllable zzo",
            EthiopicExtended::EthiopicSyllableCcha => "ethiopic syllable ccha",
            EthiopicExtended::EthiopicSyllableCchu => "ethiopic syllable cchu",
            EthiopicExtended::EthiopicSyllableCchi => "ethiopic syllable cchi",
            EthiopicExtended::EthiopicSyllableCchaa => "ethiopic syllable cchaa",
            EthiopicExtended::EthiopicSyllableCchee => "ethiopic syllable cchee",
            EthiopicExtended::EthiopicSyllableCche => "ethiopic syllable cche",
            EthiopicExtended::EthiopicSyllableCcho => "ethiopic syllable ccho",
            EthiopicExtended::EthiopicSyllableQya => "ethiopic syllable qya",
            EthiopicExtended::EthiopicSyllableQyu => "ethiopic syllable qyu",
            EthiopicExtended::EthiopicSyllableQyi => "ethiopic syllable qyi",
            EthiopicExtended::EthiopicSyllableQyaa => "ethiopic syllable qyaa",
            EthiopicExtended::EthiopicSyllableQyee => "ethiopic syllable qyee",
            EthiopicExtended::EthiopicSyllableQye => "ethiopic syllable qye",
            EthiopicExtended::EthiopicSyllableQyo => "ethiopic syllable qyo",
            EthiopicExtended::EthiopicSyllableKya => "ethiopic syllable kya",
            EthiopicExtended::EthiopicSyllableKyu => "ethiopic syllable kyu",
            EthiopicExtended::EthiopicSyllableKyi => "ethiopic syllable kyi",
            EthiopicExtended::EthiopicSyllableKyaa => "ethiopic syllable kyaa",
            EthiopicExtended::EthiopicSyllableKyee => "ethiopic syllable kyee",
            EthiopicExtended::EthiopicSyllableKye => "ethiopic syllable kye",
            EthiopicExtended::EthiopicSyllableKyo => "ethiopic syllable kyo",
            EthiopicExtended::EthiopicSyllableXya => "ethiopic syllable xya",
            EthiopicExtended::EthiopicSyllableXyu => "ethiopic syllable xyu",
            EthiopicExtended::EthiopicSyllableXyi => "ethiopic syllable xyi",
            EthiopicExtended::EthiopicSyllableXyaa => "ethiopic syllable xyaa",
            EthiopicExtended::EthiopicSyllableXyee => "ethiopic syllable xyee",
            EthiopicExtended::EthiopicSyllableXye => "ethiopic syllable xye",
            EthiopicExtended::EthiopicSyllableXyo => "ethiopic syllable xyo",
            EthiopicExtended::EthiopicSyllableGya => "ethiopic syllable gya",
            EthiopicExtended::EthiopicSyllableGyu => "ethiopic syllable gyu",
            EthiopicExtended::EthiopicSyllableGyi => "ethiopic syllable gyi",
            EthiopicExtended::EthiopicSyllableGyaa => "ethiopic syllable gyaa",
            EthiopicExtended::EthiopicSyllableGyee => "ethiopic syllable gyee",
            EthiopicExtended::EthiopicSyllableGye => "ethiopic syllable gye",
            EthiopicExtended::EthiopicSyllableGyo => "ethiopic syllable gyo",
        }
    }
}