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
/// A number of constants to give a name to all characters in this block.
mod constants {
    /// \u{1ed01}: '𞴁'
    pub const OTTOMAN_SIYAQ_NUMBER_ONE: char = '𞴁';
    /// \u{1ed02}: '𞴂'
    pub const OTTOMAN_SIYAQ_NUMBER_TWO: char = '𞴂';
    /// \u{1ed03}: '𞴃'
    pub const OTTOMAN_SIYAQ_NUMBER_THREE: char = '𞴃';
    /// \u{1ed04}: '𞴄'
    pub const OTTOMAN_SIYAQ_NUMBER_FOUR: char = '𞴄';
    /// \u{1ed05}: '𞴅'
    pub const OTTOMAN_SIYAQ_NUMBER_FIVE: char = '𞴅';
    /// \u{1ed06}: '𞴆'
    pub const OTTOMAN_SIYAQ_NUMBER_SIX: char = '𞴆';
    /// \u{1ed07}: '𞴇'
    pub const OTTOMAN_SIYAQ_NUMBER_SEVEN: char = '𞴇';
    /// \u{1ed08}: '𞴈'
    pub const OTTOMAN_SIYAQ_NUMBER_EIGHT: char = '𞴈';
    /// \u{1ed09}: '𞴉'
    pub const OTTOMAN_SIYAQ_NUMBER_NINE: char = '𞴉';
    /// \u{1ed0a}: '𞴊'
    pub const OTTOMAN_SIYAQ_NUMBER_TEN: char = '𞴊';
    /// \u{1ed0b}: '𞴋'
    pub const OTTOMAN_SIYAQ_NUMBER_TWENTY: char = '𞴋';
    /// \u{1ed0c}: '𞴌'
    pub const OTTOMAN_SIYAQ_NUMBER_THIRTY: char = '𞴌';
    /// \u{1ed0d}: '𞴍'
    pub const OTTOMAN_SIYAQ_NUMBER_FORTY: char = '𞴍';
    /// \u{1ed0e}: '𞴎'
    pub const OTTOMAN_SIYAQ_NUMBER_FIFTY: char = '𞴎';
    /// \u{1ed0f}: '𞴏'
    pub const OTTOMAN_SIYAQ_NUMBER_SIXTY: char = '𞴏';
    /// \u{1ed10}: '𞴐'
    pub const OTTOMAN_SIYAQ_NUMBER_SEVENTY: char = '𞴐';
    /// \u{1ed11}: '𞴑'
    pub const OTTOMAN_SIYAQ_NUMBER_EIGHTY: char = '𞴑';
    /// \u{1ed12}: '𞴒'
    pub const OTTOMAN_SIYAQ_NUMBER_NINETY: char = '𞴒';
    /// \u{1ed13}: '𞴓'
    pub const OTTOMAN_SIYAQ_NUMBER_ONE_HUNDRED: char = '𞴓';
    /// \u{1ed14}: '𞴔'
    pub const OTTOMAN_SIYAQ_NUMBER_TWO_HUNDRED: char = '𞴔';
    /// \u{1ed15}: '𞴕'
    pub const OTTOMAN_SIYAQ_NUMBER_THREE_HUNDRED: char = '𞴕';
    /// \u{1ed16}: '𞴖'
    pub const OTTOMAN_SIYAQ_NUMBER_FOUR_HUNDRED: char = '𞴖';
    /// \u{1ed17}: '𞴗'
    pub const OTTOMAN_SIYAQ_NUMBER_FIVE_HUNDRED: char = '𞴗';
    /// \u{1ed18}: '𞴘'
    pub const OTTOMAN_SIYAQ_NUMBER_SIX_HUNDRED: char = '𞴘';
    /// \u{1ed19}: '𞴙'
    pub const OTTOMAN_SIYAQ_NUMBER_SEVEN_HUNDRED: char = '𞴙';
    /// \u{1ed1a}: '𞴚'
    pub const OTTOMAN_SIYAQ_NUMBER_EIGHT_HUNDRED: char = '𞴚';
    /// \u{1ed1b}: '𞴛'
    pub const OTTOMAN_SIYAQ_NUMBER_NINE_HUNDRED: char = '𞴛';
    /// \u{1ed1c}: '𞴜'
    pub const OTTOMAN_SIYAQ_NUMBER_ONE_THOUSAND: char = '𞴜';
    /// \u{1ed1d}: '𞴝'
    pub const OTTOMAN_SIYAQ_NUMBER_TWO_THOUSAND: char = '𞴝';
    /// \u{1ed1e}: '𞴞'
    pub const OTTOMAN_SIYAQ_NUMBER_THREE_THOUSAND: char = '𞴞';
    /// \u{1ed1f}: '𞴟'
    pub const OTTOMAN_SIYAQ_NUMBER_FOUR_THOUSAND: char = '𞴟';
    /// \u{1ed20}: '𞴠'
    pub const OTTOMAN_SIYAQ_NUMBER_FIVE_THOUSAND: char = '𞴠';
    /// \u{1ed21}: '𞴡'
    pub const OTTOMAN_SIYAQ_NUMBER_SIX_THOUSAND: char = '𞴡';
    /// \u{1ed22}: '𞴢'
    pub const OTTOMAN_SIYAQ_NUMBER_SEVEN_THOUSAND: char = '𞴢';
    /// \u{1ed23}: '𞴣'
    pub const OTTOMAN_SIYAQ_NUMBER_EIGHT_THOUSAND: char = '𞴣';
    /// \u{1ed24}: '𞴤'
    pub const OTTOMAN_SIYAQ_NUMBER_NINE_THOUSAND: char = '𞴤';
    /// \u{1ed25}: '𞴥'
    pub const OTTOMAN_SIYAQ_NUMBER_TEN_THOUSAND: char = '𞴥';
    /// \u{1ed26}: '𞴦'
    pub const OTTOMAN_SIYAQ_NUMBER_TWENTY_THOUSAND: char = '𞴦';
    /// \u{1ed27}: '𞴧'
    pub const OTTOMAN_SIYAQ_NUMBER_THIRTY_THOUSAND: char = '𞴧';
    /// \u{1ed28}: '𞴨'
    pub const OTTOMAN_SIYAQ_NUMBER_FORTY_THOUSAND: char = '𞴨';
    /// \u{1ed29}: '𞴩'
    pub const OTTOMAN_SIYAQ_NUMBER_FIFTY_THOUSAND: char = '𞴩';
    /// \u{1ed2a}: '𞴪'
    pub const OTTOMAN_SIYAQ_NUMBER_SIXTY_THOUSAND: char = '𞴪';
    /// \u{1ed2b}: '𞴫'
    pub const OTTOMAN_SIYAQ_NUMBER_SEVENTY_THOUSAND: char = '𞴫';
    /// \u{1ed2c}: '𞴬'
    pub const OTTOMAN_SIYAQ_NUMBER_EIGHTY_THOUSAND: char = '𞴬';
    /// \u{1ed2d}: '𞴭'
    pub const OTTOMAN_SIYAQ_NUMBER_NINETY_THOUSAND: char = '𞴭';
    /// \u{1ed2e}: '𞴮'
    pub const OTTOMAN_SIYAQ_MARRATAN: char = '𞴮';
    /// \u{1ed2f}: '𞴯'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO: char = '𞴯';
    /// \u{1ed30}: '𞴰'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_THREE: char = '𞴰';
    /// \u{1ed31}: '𞴱'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR: char = '𞴱';
    /// \u{1ed32}: '𞴲'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FIVE: char = '𞴲';
    /// \u{1ed33}: '𞴳'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX: char = '𞴳';
    /// \u{1ed34}: '𞴴'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SEVEN: char = '𞴴';
    /// \u{1ed35}: '𞴵'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_EIGHT: char = '𞴵';
    /// \u{1ed36}: '𞴶'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_NINE: char = '𞴶';
    /// \u{1ed37}: '𞴷'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN: char = '𞴷';
    /// \u{1ed38}: '𞴸'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR_HUNDRED: char = '𞴸';
    /// \u{1ed39}: '𞴹'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX_HUNDRED: char = '𞴹';
    /// \u{1ed3a}: '𞴺'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO_THOUSAND: char = '𞴺';
    /// \u{1ed3b}: '𞴻'
    pub const OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN_THOUSAND: char = '𞴻';
    /// \u{1ed3c}: '𞴼'
    pub const OTTOMAN_SIYAQ_FRACTION_ONE_HALF: char = '𞴼';
    /// \u{1ed3d}: '𞴽'
    pub const OTTOMAN_SIYAQ_FRACTION_ONE_SIXTH: char = '𞴽';
}

/// An enum to represent all characters in the OttomanSiyaqNumbers block.
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
pub enum OttomanSiyaqNumbers {
    /// \u{1ed01}: '𞴁'
    OttomanSiyaqNumberOne,
    /// \u{1ed02}: '𞴂'
    OttomanSiyaqNumberTwo,
    /// \u{1ed03}: '𞴃'
    OttomanSiyaqNumberThree,
    /// \u{1ed04}: '𞴄'
    OttomanSiyaqNumberFour,
    /// \u{1ed05}: '𞴅'
    OttomanSiyaqNumberFive,
    /// \u{1ed06}: '𞴆'
    OttomanSiyaqNumberSix,
    /// \u{1ed07}: '𞴇'
    OttomanSiyaqNumberSeven,
    /// \u{1ed08}: '𞴈'
    OttomanSiyaqNumberEight,
    /// \u{1ed09}: '𞴉'
    OttomanSiyaqNumberNine,
    /// \u{1ed0a}: '𞴊'
    OttomanSiyaqNumberTen,
    /// \u{1ed0b}: '𞴋'
    OttomanSiyaqNumberTwenty,
    /// \u{1ed0c}: '𞴌'
    OttomanSiyaqNumberThirty,
    /// \u{1ed0d}: '𞴍'
    OttomanSiyaqNumberForty,
    /// \u{1ed0e}: '𞴎'
    OttomanSiyaqNumberFifty,
    /// \u{1ed0f}: '𞴏'
    OttomanSiyaqNumberSixty,
    /// \u{1ed10}: '𞴐'
    OttomanSiyaqNumberSeventy,
    /// \u{1ed11}: '𞴑'
    OttomanSiyaqNumberEighty,
    /// \u{1ed12}: '𞴒'
    OttomanSiyaqNumberNinety,
    /// \u{1ed13}: '𞴓'
    OttomanSiyaqNumberOneHundred,
    /// \u{1ed14}: '𞴔'
    OttomanSiyaqNumberTwoHundred,
    /// \u{1ed15}: '𞴕'
    OttomanSiyaqNumberThreeHundred,
    /// \u{1ed16}: '𞴖'
    OttomanSiyaqNumberFourHundred,
    /// \u{1ed17}: '𞴗'
    OttomanSiyaqNumberFiveHundred,
    /// \u{1ed18}: '𞴘'
    OttomanSiyaqNumberSixHundred,
    /// \u{1ed19}: '𞴙'
    OttomanSiyaqNumberSevenHundred,
    /// \u{1ed1a}: '𞴚'
    OttomanSiyaqNumberEightHundred,
    /// \u{1ed1b}: '𞴛'
    OttomanSiyaqNumberNineHundred,
    /// \u{1ed1c}: '𞴜'
    OttomanSiyaqNumberOneThousand,
    /// \u{1ed1d}: '𞴝'
    OttomanSiyaqNumberTwoThousand,
    /// \u{1ed1e}: '𞴞'
    OttomanSiyaqNumberThreeThousand,
    /// \u{1ed1f}: '𞴟'
    OttomanSiyaqNumberFourThousand,
    /// \u{1ed20}: '𞴠'
    OttomanSiyaqNumberFiveThousand,
    /// \u{1ed21}: '𞴡'
    OttomanSiyaqNumberSixThousand,
    /// \u{1ed22}: '𞴢'
    OttomanSiyaqNumberSevenThousand,
    /// \u{1ed23}: '𞴣'
    OttomanSiyaqNumberEightThousand,
    /// \u{1ed24}: '𞴤'
    OttomanSiyaqNumberNineThousand,
    /// \u{1ed25}: '𞴥'
    OttomanSiyaqNumberTenThousand,
    /// \u{1ed26}: '𞴦'
    OttomanSiyaqNumberTwentyThousand,
    /// \u{1ed27}: '𞴧'
    OttomanSiyaqNumberThirtyThousand,
    /// \u{1ed28}: '𞴨'
    OttomanSiyaqNumberFortyThousand,
    /// \u{1ed29}: '𞴩'
    OttomanSiyaqNumberFiftyThousand,
    /// \u{1ed2a}: '𞴪'
    OttomanSiyaqNumberSixtyThousand,
    /// \u{1ed2b}: '𞴫'
    OttomanSiyaqNumberSeventyThousand,
    /// \u{1ed2c}: '𞴬'
    OttomanSiyaqNumberEightyThousand,
    /// \u{1ed2d}: '𞴭'
    OttomanSiyaqNumberNinetyThousand,
    /// \u{1ed2e}: '𞴮'
    OttomanSiyaqMarratan,
    /// \u{1ed2f}: '𞴯'
    OttomanSiyaqAlternateNumberTwo,
    /// \u{1ed30}: '𞴰'
    OttomanSiyaqAlternateNumberThree,
    /// \u{1ed31}: '𞴱'
    OttomanSiyaqAlternateNumberFour,
    /// \u{1ed32}: '𞴲'
    OttomanSiyaqAlternateNumberFive,
    /// \u{1ed33}: '𞴳'
    OttomanSiyaqAlternateNumberSix,
    /// \u{1ed34}: '𞴴'
    OttomanSiyaqAlternateNumberSeven,
    /// \u{1ed35}: '𞴵'
    OttomanSiyaqAlternateNumberEight,
    /// \u{1ed36}: '𞴶'
    OttomanSiyaqAlternateNumberNine,
    /// \u{1ed37}: '𞴷'
    OttomanSiyaqAlternateNumberTen,
    /// \u{1ed38}: '𞴸'
    OttomanSiyaqAlternateNumberFourHundred,
    /// \u{1ed39}: '𞴹'
    OttomanSiyaqAlternateNumberSixHundred,
    /// \u{1ed3a}: '𞴺'
    OttomanSiyaqAlternateNumberTwoThousand,
    /// \u{1ed3b}: '𞴻'
    OttomanSiyaqAlternateNumberTenThousand,
    /// \u{1ed3c}: '𞴼'
    OttomanSiyaqFractionOneHalf,
    /// \u{1ed3d}: '𞴽'
    OttomanSiyaqFractionOneSixth,
}

impl Into<char> for OttomanSiyaqNumbers {
    fn into(self) -> char {
        use constants::*;
        match self {
            OttomanSiyaqNumbers::OttomanSiyaqNumberOne => OTTOMAN_SIYAQ_NUMBER_ONE,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwo => OTTOMAN_SIYAQ_NUMBER_TWO,
            OttomanSiyaqNumbers::OttomanSiyaqNumberThree => OTTOMAN_SIYAQ_NUMBER_THREE,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFour => OTTOMAN_SIYAQ_NUMBER_FOUR,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFive => OTTOMAN_SIYAQ_NUMBER_FIVE,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSix => OTTOMAN_SIYAQ_NUMBER_SIX,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSeven => OTTOMAN_SIYAQ_NUMBER_SEVEN,
            OttomanSiyaqNumbers::OttomanSiyaqNumberEight => OTTOMAN_SIYAQ_NUMBER_EIGHT,
            OttomanSiyaqNumbers::OttomanSiyaqNumberNine => OTTOMAN_SIYAQ_NUMBER_NINE,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTen => OTTOMAN_SIYAQ_NUMBER_TEN,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwenty => OTTOMAN_SIYAQ_NUMBER_TWENTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberThirty => OTTOMAN_SIYAQ_NUMBER_THIRTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberForty => OTTOMAN_SIYAQ_NUMBER_FORTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFifty => OTTOMAN_SIYAQ_NUMBER_FIFTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixty => OTTOMAN_SIYAQ_NUMBER_SIXTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSeventy => OTTOMAN_SIYAQ_NUMBER_SEVENTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberEighty => OTTOMAN_SIYAQ_NUMBER_EIGHTY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberNinety => OTTOMAN_SIYAQ_NUMBER_NINETY,
            OttomanSiyaqNumbers::OttomanSiyaqNumberOneHundred => OTTOMAN_SIYAQ_NUMBER_ONE_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwoHundred => OTTOMAN_SIYAQ_NUMBER_TWO_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberThreeHundred => OTTOMAN_SIYAQ_NUMBER_THREE_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFourHundred => OTTOMAN_SIYAQ_NUMBER_FOUR_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFiveHundred => OTTOMAN_SIYAQ_NUMBER_FIVE_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixHundred => OTTOMAN_SIYAQ_NUMBER_SIX_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSevenHundred => OTTOMAN_SIYAQ_NUMBER_SEVEN_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberEightHundred => OTTOMAN_SIYAQ_NUMBER_EIGHT_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberNineHundred => OTTOMAN_SIYAQ_NUMBER_NINE_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqNumberOneThousand => OTTOMAN_SIYAQ_NUMBER_ONE_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwoThousand => OTTOMAN_SIYAQ_NUMBER_TWO_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberThreeThousand => OTTOMAN_SIYAQ_NUMBER_THREE_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFourThousand => OTTOMAN_SIYAQ_NUMBER_FOUR_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFiveThousand => OTTOMAN_SIYAQ_NUMBER_FIVE_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixThousand => OTTOMAN_SIYAQ_NUMBER_SIX_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSevenThousand => OTTOMAN_SIYAQ_NUMBER_SEVEN_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberEightThousand => OTTOMAN_SIYAQ_NUMBER_EIGHT_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberNineThousand => OTTOMAN_SIYAQ_NUMBER_NINE_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTenThousand => OTTOMAN_SIYAQ_NUMBER_TEN_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwentyThousand => OTTOMAN_SIYAQ_NUMBER_TWENTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberThirtyThousand => OTTOMAN_SIYAQ_NUMBER_THIRTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFortyThousand => OTTOMAN_SIYAQ_NUMBER_FORTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberFiftyThousand => OTTOMAN_SIYAQ_NUMBER_FIFTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixtyThousand => OTTOMAN_SIYAQ_NUMBER_SIXTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberSeventyThousand => OTTOMAN_SIYAQ_NUMBER_SEVENTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberEightyThousand => OTTOMAN_SIYAQ_NUMBER_EIGHTY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqNumberNinetyThousand => OTTOMAN_SIYAQ_NUMBER_NINETY_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqMarratan => OTTOMAN_SIYAQ_MARRATAN,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwo => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberThree => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_THREE,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFour => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFive => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FIVE,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSix => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSeven => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SEVEN,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberEight => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_EIGHT,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberNine => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_NINE,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTen => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFourHundred => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSixHundred => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX_HUNDRED,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwoThousand => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTenThousand => OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN_THOUSAND,
            OttomanSiyaqNumbers::OttomanSiyaqFractionOneHalf => OTTOMAN_SIYAQ_FRACTION_ONE_HALF,
            OttomanSiyaqNumbers::OttomanSiyaqFractionOneSixth => OTTOMAN_SIYAQ_FRACTION_ONE_SIXTH,
        }
    }
}

impl std::convert::TryFrom<char> for OttomanSiyaqNumbers {
    type Error = ();
    fn try_from(c: char) -> Result<Self, Self::Error> {
        use constants::*;
        match c {
            OTTOMAN_SIYAQ_NUMBER_ONE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberOne),
            OTTOMAN_SIYAQ_NUMBER_TWO => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwo),
            OTTOMAN_SIYAQ_NUMBER_THREE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThree),
            OTTOMAN_SIYAQ_NUMBER_FOUR => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFour),
            OTTOMAN_SIYAQ_NUMBER_FIVE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFive),
            OTTOMAN_SIYAQ_NUMBER_SIX => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSix),
            OTTOMAN_SIYAQ_NUMBER_SEVEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSeven),
            OTTOMAN_SIYAQ_NUMBER_EIGHT => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEight),
            OTTOMAN_SIYAQ_NUMBER_NINE => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNine),
            OTTOMAN_SIYAQ_NUMBER_TEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTen),
            OTTOMAN_SIYAQ_NUMBER_TWENTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwenty),
            OTTOMAN_SIYAQ_NUMBER_THIRTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThirty),
            OTTOMAN_SIYAQ_NUMBER_FORTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberForty),
            OTTOMAN_SIYAQ_NUMBER_FIFTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFifty),
            OTTOMAN_SIYAQ_NUMBER_SIXTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixty),
            OTTOMAN_SIYAQ_NUMBER_SEVENTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSeventy),
            OTTOMAN_SIYAQ_NUMBER_EIGHTY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEighty),
            OTTOMAN_SIYAQ_NUMBER_NINETY => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNinety),
            OTTOMAN_SIYAQ_NUMBER_ONE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberOneHundred),
            OTTOMAN_SIYAQ_NUMBER_TWO_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwoHundred),
            OTTOMAN_SIYAQ_NUMBER_THREE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThreeHundred),
            OTTOMAN_SIYAQ_NUMBER_FOUR_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFourHundred),
            OTTOMAN_SIYAQ_NUMBER_FIVE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFiveHundred),
            OTTOMAN_SIYAQ_NUMBER_SIX_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixHundred),
            OTTOMAN_SIYAQ_NUMBER_SEVEN_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSevenHundred),
            OTTOMAN_SIYAQ_NUMBER_EIGHT_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEightHundred),
            OTTOMAN_SIYAQ_NUMBER_NINE_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNineHundred),
            OTTOMAN_SIYAQ_NUMBER_ONE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberOneThousand),
            OTTOMAN_SIYAQ_NUMBER_TWO_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwoThousand),
            OTTOMAN_SIYAQ_NUMBER_THREE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThreeThousand),
            OTTOMAN_SIYAQ_NUMBER_FOUR_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFourThousand),
            OTTOMAN_SIYAQ_NUMBER_FIVE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFiveThousand),
            OTTOMAN_SIYAQ_NUMBER_SIX_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixThousand),
            OTTOMAN_SIYAQ_NUMBER_SEVEN_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSevenThousand),
            OTTOMAN_SIYAQ_NUMBER_EIGHT_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEightThousand),
            OTTOMAN_SIYAQ_NUMBER_NINE_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNineThousand),
            OTTOMAN_SIYAQ_NUMBER_TEN_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTenThousand),
            OTTOMAN_SIYAQ_NUMBER_TWENTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberTwentyThousand),
            OTTOMAN_SIYAQ_NUMBER_THIRTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberThirtyThousand),
            OTTOMAN_SIYAQ_NUMBER_FORTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFortyThousand),
            OTTOMAN_SIYAQ_NUMBER_FIFTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberFiftyThousand),
            OTTOMAN_SIYAQ_NUMBER_SIXTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSixtyThousand),
            OTTOMAN_SIYAQ_NUMBER_SEVENTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberSeventyThousand),
            OTTOMAN_SIYAQ_NUMBER_EIGHTY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberEightyThousand),
            OTTOMAN_SIYAQ_NUMBER_NINETY_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqNumberNinetyThousand),
            OTTOMAN_SIYAQ_MARRATAN => Ok(OttomanSiyaqNumbers::OttomanSiyaqMarratan),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwo),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_THREE => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberThree),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFour),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FIVE => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFive),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSix),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SEVEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSeven),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_EIGHT => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberEight),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_NINE => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberNine),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTen),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_FOUR_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFourHundred),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_SIX_HUNDRED => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSixHundred),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TWO_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwoThousand),
            OTTOMAN_SIYAQ_ALTERNATE_NUMBER_TEN_THOUSAND => Ok(OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTenThousand),
            OTTOMAN_SIYAQ_FRACTION_ONE_HALF => Ok(OttomanSiyaqNumbers::OttomanSiyaqFractionOneHalf),
            OTTOMAN_SIYAQ_FRACTION_ONE_SIXTH => Ok(OttomanSiyaqNumbers::OttomanSiyaqFractionOneSixth),
            _ => Err(()),
        }
    }
}

impl Into<u32> for OttomanSiyaqNumbers {
    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 OttomanSiyaqNumbers {
    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 OttomanSiyaqNumbers {
    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 OttomanSiyaqNumbers {
    /// The character with the lowest index in this unicode block
    pub fn new() -> Self {
        OttomanSiyaqNumbers::OttomanSiyaqNumberOne
    }

    /// The character's name, all lowercase and space-separated
    pub fn name(&self) -> &str {
        match self {
            OttomanSiyaqNumbers::OttomanSiyaqNumberOne => "ottoman siyaq number one",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwo => "ottoman siyaq number two",
            OttomanSiyaqNumbers::OttomanSiyaqNumberThree => "ottoman siyaq number three",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFour => "ottoman siyaq number four",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFive => "ottoman siyaq number five",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSix => "ottoman siyaq number six",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSeven => "ottoman siyaq number seven",
            OttomanSiyaqNumbers::OttomanSiyaqNumberEight => "ottoman siyaq number eight",
            OttomanSiyaqNumbers::OttomanSiyaqNumberNine => "ottoman siyaq number nine",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTen => "ottoman siyaq number ten",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwenty => "ottoman siyaq number twenty",
            OttomanSiyaqNumbers::OttomanSiyaqNumberThirty => "ottoman siyaq number thirty",
            OttomanSiyaqNumbers::OttomanSiyaqNumberForty => "ottoman siyaq number forty",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFifty => "ottoman siyaq number fifty",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixty => "ottoman siyaq number sixty",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSeventy => "ottoman siyaq number seventy",
            OttomanSiyaqNumbers::OttomanSiyaqNumberEighty => "ottoman siyaq number eighty",
            OttomanSiyaqNumbers::OttomanSiyaqNumberNinety => "ottoman siyaq number ninety",
            OttomanSiyaqNumbers::OttomanSiyaqNumberOneHundred => "ottoman siyaq number one hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwoHundred => "ottoman siyaq number two hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberThreeHundred => "ottoman siyaq number three hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFourHundred => "ottoman siyaq number four hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFiveHundred => "ottoman siyaq number five hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixHundred => "ottoman siyaq number six hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSevenHundred => "ottoman siyaq number seven hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberEightHundred => "ottoman siyaq number eight hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberNineHundred => "ottoman siyaq number nine hundred",
            OttomanSiyaqNumbers::OttomanSiyaqNumberOneThousand => "ottoman siyaq number one thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwoThousand => "ottoman siyaq number two thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberThreeThousand => "ottoman siyaq number three thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFourThousand => "ottoman siyaq number four thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFiveThousand => "ottoman siyaq number five thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixThousand => "ottoman siyaq number six thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSevenThousand => "ottoman siyaq number seven thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberEightThousand => "ottoman siyaq number eight thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberNineThousand => "ottoman siyaq number nine thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTenThousand => "ottoman siyaq number ten thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberTwentyThousand => "ottoman siyaq number twenty thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberThirtyThousand => "ottoman siyaq number thirty thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFortyThousand => "ottoman siyaq number forty thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberFiftyThousand => "ottoman siyaq number fifty thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSixtyThousand => "ottoman siyaq number sixty thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberSeventyThousand => "ottoman siyaq number seventy thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberEightyThousand => "ottoman siyaq number eighty thousand",
            OttomanSiyaqNumbers::OttomanSiyaqNumberNinetyThousand => "ottoman siyaq number ninety thousand",
            OttomanSiyaqNumbers::OttomanSiyaqMarratan => "ottoman siyaq marratan",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwo => "ottoman siyaq alternate number two",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberThree => "ottoman siyaq alternate number three",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFour => "ottoman siyaq alternate number four",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFive => "ottoman siyaq alternate number five",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSix => "ottoman siyaq alternate number six",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSeven => "ottoman siyaq alternate number seven",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberEight => "ottoman siyaq alternate number eight",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberNine => "ottoman siyaq alternate number nine",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTen => "ottoman siyaq alternate number ten",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberFourHundred => "ottoman siyaq alternate number four hundred",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberSixHundred => "ottoman siyaq alternate number six hundred",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTwoThousand => "ottoman siyaq alternate number two thousand",
            OttomanSiyaqNumbers::OttomanSiyaqAlternateNumberTenThousand => "ottoman siyaq alternate number ten thousand",
            OttomanSiyaqNumbers::OttomanSiyaqFractionOneHalf => "ottoman siyaq fraction one half",
            OttomanSiyaqNumbers::OttomanSiyaqFractionOneSixth => "ottoman siyaq fraction one sixth",
        }
    }
}