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 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966
// dialect-specs/cp437_wingdings start #[inline(always)] fn cp437_wingdings_cp437_overlaps(b: u8) -> bool { b == 0 || (b > 0x1F && b < 0x7F) } #[inline(always)] fn cp437_wingdings_unicode_overlaps(c: char) -> bool { c == '\u{00}' || (c > '\u{1F}' && c < '\u{7F}') } fn cp437_wingdings_encode(unicode: char) -> Option<u8> { Some(match unicode { '\u{00263A}' => 0x1, // WHITE SMILING FACE '\u{00263B}' => 0x2, // BLACK SMILING FACE '\u{002665}' => 0x3, // BLACK HEART SUIT '\u{002666}' => 0x4, // BLACK DIAMOND SUIT '\u{002663}' => 0x5, // BLACK CLUB SUIT '\u{002660}' => 0x6, // BLACK SPADE SUIT '\u{002022}' => 0x7, // BULLET '\u{0025D8}' => 0x8, // INVERSE BULLET '\u{0025CB}' => 0x9, // WHITE CIRCLE '\u{0025D9}' => 0xA, // INVERSE WHITE CIRCLE '\u{002642}' => 0xB, // MALE SIGN '\u{002640}' => 0xC, // FEMALE SIGN '\u{00266A}' => 0xD, // EIGHTH NOTE '\u{00266B}' => 0xE, // BEAMED EIGHTH NOTES '\u{00263C}' => 0xF, // WHITE SUN WITH RAYS '\u{0025BA}' => 0x10, // BLACK RIGHT-POINTING POINTER '\u{0025C4}' => 0x11, // BLACK LEFT-POINTING POINTER '\u{002195}' => 0x12, // UP DOWN ARROW '\u{00203C}' => 0x13, // DOUBLE EXCLAMATION MARK '\u{0000B6}' => 0x14, // PILCROW SIGN '\u{0000A7}' => 0x15, // SECTION SIGN '\u{0025AC}' => 0x16, // BLACK RECTANGLE '\u{0021A8}' => 0x17, // UP DOWN ARROW WITH BASE '\u{002191}' => 0x18, // UPWARDS ARROW '\u{002193}' => 0x19, // DOWNWARDS ARROW '\u{002192}' => 0x1A, // RIGHTWARDS ARROW '\u{002190}' => 0x1B, // LEFTWARDS ARROW '\u{00221F}' => 0x1C, // RIGHT ANGLE '\u{002194}' => 0x1D, // LEFT RIGHT ARROW '\u{0025B2}' => 0x1E, // BLACK UP-POINTING TRIANGLE '\u{0025BC}' => 0x1F, // BLACK DOWN-POINTING TRIANGLE '\u{002302}' => 0x7F, // HOUSE '\u{0000C7}' => 0x80, // LATIN CAPITAL LETTER C WITH CEDILLA '\u{0000FC}' => 0x81, // LATIN SMALL LETTER U WITH DIAERESIS '\u{0000E9}' => 0x82, // LATIN SMALL LETTER E WITH ACUTE '\u{0000E2}' => 0x83, // LATIN SMALL LETTER A WITH CIRCUMFLEX '\u{0000E4}' => 0x84, // LATIN SMALL LETTER A WITH DIAERESIS '\u{0000E0}' => 0x85, // LATIN SMALL LETTER A WITH GRAVE '\u{0000E5}' => 0x86, // LATIN SMALL LETTER A WITH RING ABOVE '\u{0000E7}' => 0x87, // LATIN SMALL LETTER C WITH CEDILLA '\u{0000EA}' => 0x88, // LATIN SMALL LETTER E WITH CIRCUMFLEX '\u{0000EB}' => 0x89, // LATIN SMALL LETTER E WITH DIAERESIS '\u{0000E8}' => 0x8A, // LATIN SMALL LETTER E WITH GRAVE '\u{0000EF}' => 0x8B, // LATIN SMALL LETTER I WITH DIAERESIS '\u{0000EE}' => 0x8C, // LATIN SMALL LETTER I WITH CIRCUMFLEX '\u{0000EC}' => 0x8D, // LATIN SMALL LETTER I WITH GRAVE '\u{0000C4}' => 0x8E, // LATIN CAPITAL LETTER A WITH DIAERESIS '\u{0000C5}' => 0x8F, // LATIN CAPITAL LETTER A WITH RING ABOVE '\u{0000C9}' => 0x90, // LATIN CAPITAL LETTER E WITH ACUTE '\u{0000E6}' => 0x91, // LATIN SMALL LETTER AE '\u{0000C6}' => 0x92, // LATIN CAPITAL LETTER AE '\u{0000F4}' => 0x93, // LATIN SMALL LETTER O WITH CIRCUMFLEX '\u{0000F6}' => 0x94, // LATIN SMALL LETTER O WITH DIAERESIS '\u{0000F2}' => 0x95, // LATIN SMALL LETTER O WITH GRAVE '\u{0000FB}' => 0x96, // LATIN SMALL LETTER U WITH CIRCUMFLEX '\u{0000F9}' => 0x97, // LATIN SMALL LETTER U WITH GRAVE '\u{0000FF}' => 0x98, // LATIN SMALL LETTER Y WITH DIAERESIS '\u{0000D6}' => 0x99, // LATIN CAPITAL LETTER O WITH DIAERESIS '\u{0000DC}' => 0x9A, // LATIN CAPITAL LETTER U WITH DIAERESIS '\u{0000A2}' => 0x9B, // CENT SIGN '\u{0000A3}' => 0x9C, // POUND SIGN '\u{0000A5}' => 0x9D, // YEN SIGN '\u{0020A7}' => 0x9E, // PESETA SIGN '\u{000192}' => 0x9F, // LATIN SMALL LETTER F WITH HOOK '\u{0000E1}' => 0xA0, // LATIN SMALL LETTER A WITH ACUTE '\u{0000ED}' => 0xA1, // LATIN SMALL LETTER I WITH ACUTE '\u{0000F3}' => 0xA2, // LATIN SMALL LETTER O WITH ACUTE '\u{0000FA}' => 0xA3, // LATIN SMALL LETTER U WITH ACUTE '\u{0000F1}' => 0xA4, // LATIN SMALL LETTER N WITH TILDE '\u{0000D1}' => 0xA5, // LATIN CAPITAL LETTER N WITH TILDE '\u{0000AA}' => 0xA6, // FEMININE ORDINAL INDICATOR '\u{0000BA}' => 0xA7, // MASCULINE ORDINAL INDICATOR '\u{0000BF}' => 0xA8, // INVERTED QUESTION MARK '\u{002310}' => 0xA9, // REVERSED NOT SIGN '\u{0000AC}' => 0xAA, // NOT SIGN '\u{0000BD}' => 0xAB, // VULGAR FRACTION ONE HALF '\u{0000BC}' => 0xAC, // VULGAR FRACTION ONE QUARTER '\u{0000A1}' => 0xAD, // INVERTED EXCLAMATION MARK '\u{0000AB}' => 0xAE, // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{0000BB}' => 0xAF, // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{002591}' => 0xB0, // LIGHT SHADE '\u{002592}' => 0xB1, // MEDIUM SHADE '\u{002593}' => 0xB2, // DARK SHADE '\u{002502}' => 0xB3, // BOX DRAWINGS LIGHT VERTICAL '\u{002524}' => 0xB4, // BOX DRAWINGS LIGHT VERTICAL AND LEFT '\u{002561}' => 0xB5, // BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE '\u{002562}' => 0xB6, // BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE '\u{002556}' => 0xB7, // BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE '\u{002555}' => 0xB8, // BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE '\u{002563}' => 0xB9, // BOX DRAWINGS DOUBLE VERTICAL AND LEFT '\u{002551}' => 0xBA, // BOX DRAWINGS DOUBLE VERTICAL '\u{002557}' => 0xBB, // BOX DRAWINGS DOUBLE DOWN AND LEFT '\u{00255D}' => 0xBC, // BOX DRAWINGS DOUBLE UP AND LEFT '\u{00255C}' => 0xBD, // BOX DRAWINGS UP DOUBLE AND LEFT SINGLE '\u{00255B}' => 0xBE, // BOX DRAWINGS UP SINGLE AND LEFT DOUBLE '\u{002510}' => 0xBF, // BOX DRAWINGS LIGHT DOWN AND LEFT '\u{002514}' => 0xC0, // BOX DRAWINGS LIGHT UP AND RIGHT '\u{002534}' => 0xC1, // BOX DRAWINGS LIGHT UP AND HORIZONTAL '\u{00252C}' => 0xC2, // BOX DRAWINGS LIGHT DOWN AND HORIZONTAL '\u{00251C}' => 0xC3, // BOX DRAWINGS LIGHT VERTICAL AND RIGHT '\u{002500}' => 0xC4, // BOX DRAWINGS LIGHT HORIZONTAL '\u{00253C}' => 0xC5, // BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL '\u{00255E}' => 0xC6, // BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE '\u{00255F}' => 0xC7, // BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE '\u{00255A}' => 0xC8, // BOX DRAWINGS DOUBLE UP AND RIGHT '\u{002554}' => 0xC9, // BOX DRAWINGS DOUBLE DOWN AND RIGHT '\u{002569}' => 0xCA, // BOX DRAWINGS DOUBLE UP AND HORIZONTAL '\u{002566}' => 0xCB, // BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL '\u{002560}' => 0xCC, // BOX DRAWINGS DOUBLE VERTICAL AND RIGHT '\u{002550}' => 0xCD, // BOX DRAWINGS DOUBLE HORIZONTAL '\u{00256C}' => 0xCE, // BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL '\u{002567}' => 0xCF, // BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE '\u{002568}' => 0xD0, // BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE '\u{002564}' => 0xD1, // BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE '\u{002565}' => 0xD2, // BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE '\u{002559}' => 0xD3, // BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE '\u{002558}' => 0xD4, // BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE '\u{002552}' => 0xD5, // BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE '\u{002553}' => 0xD6, // BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE '\u{00256B}' => 0xD7, // BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE '\u{00256A}' => 0xD8, // BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE '\u{002518}' => 0xD9, // BOX DRAWINGS LIGHT UP AND LEFT '\u{00250C}' => 0xDA, // BOX DRAWINGS LIGHT DOWN AND RIGHT '\u{002588}' => 0xDB, // FULL BLOCK '\u{002584}' => 0xDC, // LOWER HALF BLOCK '\u{00258C}' => 0xDD, // LEFT HALF BLOCK '\u{002590}' => 0xDE, // RIGHT HALF BLOCK '\u{002580}' => 0xDF, // UPPER HALF BLOCK '\u{0003B1}' => 0xE0, // GREEK SMALL LETTER ALPHA '\u{0000DF}' => 0xE1, // LATIN SMALL LETTER SHARP S '\u{000393}' => 0xE2, // GREEK CAPITAL LETTER GAMMA '\u{0003C0}' => 0xE3, // GREEK SMALL LETTER PI '\u{0003A3}' => 0xE4, // GREEK CAPITAL LETTER SIGMA '\u{0003C3}' => 0xE5, // GREEK SMALL LETTER SIGMA '\u{0000B5}' => 0xE6, // MICRO SIGN '\u{0003C4}' => 0xE7, // GREEK SMALL LETTER TAU '\u{0003A6}' => 0xE8, // GREEK CAPITAL LETTER PHI '\u{000398}' => 0xE9, // GREEK CAPITAL LETTER THETA '\u{0003A9}' => 0xEA, // GREEK CAPITAL LETTER OMEGA '\u{0003B4}' => 0xEB, // GREEK SMALL LETTER DELTA '\u{00221E}' => 0xEC, // INFINITY '\u{0003C6}' => 0xED, // GREEK SMALL LETTER PHI '\u{0003B5}' => 0xEE, // GREEK SMALL LETTER EPSILON '\u{002229}' => 0xEF, // INTERSECTION '\u{002261}' => 0xF0, // IDENTICAL TO '\u{0000B1}' => 0xF1, // PLUS-MINUS SIGN '\u{002265}' => 0xF2, // GREATER-THAN OR EQUAL TO '\u{002264}' => 0xF3, // LESS-THAN OR EQUAL TO '\u{002320}' => 0xF4, // TOP HALF INTEGRAL '\u{002321}' => 0xF5, // BOTTOM HALF INTEGRAL '\u{0000F7}' => 0xF6, // DIVISION SIGN '\u{002248}' => 0xF7, // ALMOST EQUAL TO '\u{0000B0}' => 0xF8, // DEGREE SIGN '\u{002219}' => 0xF9, // BULLET OPERATOR '\u{0000B7}' => 0xFA, // MIDDLE DOT '\u{00221A}' => 0xFB, // SQUARE ROOT '\u{00207F}' => 0xFC, // SUPERSCRIPT LATIN SMALL LETTER N '\u{0000B2}' => 0xFD, // SUPERSCRIPT TWO '\u{0025A0}' => 0xFE, // BLACK SQUARE '\u{0000A0}' => 0xFF, // NO-BREAK SPACE '\u{000394}' => 0x7F, // Greek capital delta '\u{0003B2}' => 0xE1, // Greek small beta '\u{0003A0}' => 0xE3, // Greek capital pi '\u{00220F}' => 0xE3, // n-ary product sign '\u{002211}' => 0xE4, // n-ary summation sign '\u{0003BC}' => 0xE6, // Mu Small '\u{0000F0}' => 0xEB, // small eth '\u{002202}' => 0xEB, // partial derivative sign '\u{0003D5}' => 0xED, // Phi Small (Closed Form) '\u{01D719}' => 0xED, // Italicized Phi Small (Closed Form) '\u{002205}' => 0xED, // empty set sign '\u{002300}' => 0xED, // diameter sign '\u{0000D8}' => 0xED, // Capital Latin letter O with stroke '\u{0000F8}' => 0xED, // Lowercase Latin letter O with stroke '\u{002208}' => 0xEE, // element-of sign '\u{0020AC}' => 0xEE, // euro sign '\u{002713}' => 0xFB, // check mark c => if cp437_wingdings_unicode_overlaps(c) { c as u8 } else { return None }, }) } const CP437_WINGDINGS_INIT: Cp437Dialect = Cp437Dialect { cp437_to_unicode: [ '\u{000000}', '\u{00263A}', // WHITE SMILING FACE '\u{00263B}', // BLACK SMILING FACE '\u{002665}', // BLACK HEART SUIT '\u{002666}', // BLACK DIAMOND SUIT '\u{002663}', // BLACK CLUB SUIT '\u{002660}', // BLACK SPADE SUIT '\u{002022}', // BULLET '\u{0025D8}', // INVERSE BULLET '\u{0025CB}', // WHITE CIRCLE '\u{0025D9}', // INVERSE WHITE CIRCLE '\u{002642}', // MALE SIGN '\u{002640}', // FEMALE SIGN '\u{00266A}', // EIGHTH NOTE '\u{00266B}', // BEAMED EIGHTH NOTES '\u{00263C}', // WHITE SUN WITH RAYS '\u{0025BA}', // BLACK RIGHT-POINTING POINTER '\u{0025C4}', // BLACK LEFT-POINTING POINTER '\u{002195}', // UP DOWN ARROW '\u{00203C}', // DOUBLE EXCLAMATION MARK '\u{0000B6}', // PILCROW SIGN '\u{0000A7}', // SECTION SIGN '\u{0025AC}', // BLACK RECTANGLE '\u{0021A8}', // UP DOWN ARROW WITH BASE '\u{002191}', // UPWARDS ARROW '\u{002193}', // DOWNWARDS ARROW '\u{002192}', // RIGHTWARDS ARROW '\u{002190}', // LEFTWARDS ARROW '\u{00221F}', // RIGHT ANGLE '\u{002194}', // LEFT RIGHT ARROW '\u{0025B2}', // BLACK UP-POINTING TRIANGLE '\u{0025BC}', // BLACK DOWN-POINTING TRIANGLE '\u{000020}', '\u{000021}', '\u{000022}', '\u{000023}', '\u{000024}', '\u{000025}', '\u{000026}', '\u{000027}', '\u{000028}', '\u{000029}', '\u{00002A}', '\u{00002B}', '\u{00002C}', '\u{00002D}', '\u{00002E}', '\u{00002F}', '\u{000030}', '\u{000031}', '\u{000032}', '\u{000033}', '\u{000034}', '\u{000035}', '\u{000036}', '\u{000037}', '\u{000038}', '\u{000039}', '\u{00003A}', '\u{00003B}', '\u{00003C}', '\u{00003D}', '\u{00003E}', '\u{00003F}', '\u{000040}', '\u{000041}', '\u{000042}', '\u{000043}', '\u{000044}', '\u{000045}', '\u{000046}', '\u{000047}', '\u{000048}', '\u{000049}', '\u{00004A}', '\u{00004B}', '\u{00004C}', '\u{00004D}', '\u{00004E}', '\u{00004F}', '\u{000050}', '\u{000051}', '\u{000052}', '\u{000053}', '\u{000054}', '\u{000055}', '\u{000056}', '\u{000057}', '\u{000058}', '\u{000059}', '\u{00005A}', '\u{00005B}', '\u{00005C}', '\u{00005D}', '\u{00005E}', '\u{00005F}', '\u{000060}', '\u{000061}', '\u{000062}', '\u{000063}', '\u{000064}', '\u{000065}', '\u{000066}', '\u{000067}', '\u{000068}', '\u{000069}', '\u{00006A}', '\u{00006B}', '\u{00006C}', '\u{00006D}', '\u{00006E}', '\u{00006F}', '\u{000070}', '\u{000071}', '\u{000072}', '\u{000073}', '\u{000074}', '\u{000075}', '\u{000076}', '\u{000077}', '\u{000078}', '\u{000079}', '\u{00007A}', '\u{00007B}', '\u{00007C}', '\u{00007D}', '\u{00007E}', '\u{002302}', // HOUSE '\u{0000C7}', // LATIN CAPITAL LETTER C WITH CEDILLA '\u{0000FC}', // LATIN SMALL LETTER U WITH DIAERESIS '\u{0000E9}', // LATIN SMALL LETTER E WITH ACUTE '\u{0000E2}', // LATIN SMALL LETTER A WITH CIRCUMFLEX '\u{0000E4}', // LATIN SMALL LETTER A WITH DIAERESIS '\u{0000E0}', // LATIN SMALL LETTER A WITH GRAVE '\u{0000E5}', // LATIN SMALL LETTER A WITH RING ABOVE '\u{0000E7}', // LATIN SMALL LETTER C WITH CEDILLA '\u{0000EA}', // LATIN SMALL LETTER E WITH CIRCUMFLEX '\u{0000EB}', // LATIN SMALL LETTER E WITH DIAERESIS '\u{0000E8}', // LATIN SMALL LETTER E WITH GRAVE '\u{0000EF}', // LATIN SMALL LETTER I WITH DIAERESIS '\u{0000EE}', // LATIN SMALL LETTER I WITH CIRCUMFLEX '\u{0000EC}', // LATIN SMALL LETTER I WITH GRAVE '\u{0000C4}', // LATIN CAPITAL LETTER A WITH DIAERESIS '\u{0000C5}', // LATIN CAPITAL LETTER A WITH RING ABOVE '\u{0000C9}', // LATIN CAPITAL LETTER E WITH ACUTE '\u{0000E6}', // LATIN SMALL LETTER AE '\u{0000C6}', // LATIN CAPITAL LETTER AE '\u{0000F4}', // LATIN SMALL LETTER O WITH CIRCUMFLEX '\u{0000F6}', // LATIN SMALL LETTER O WITH DIAERESIS '\u{0000F2}', // LATIN SMALL LETTER O WITH GRAVE '\u{0000FB}', // LATIN SMALL LETTER U WITH CIRCUMFLEX '\u{0000F9}', // LATIN SMALL LETTER U WITH GRAVE '\u{0000FF}', // LATIN SMALL LETTER Y WITH DIAERESIS '\u{0000D6}', // LATIN CAPITAL LETTER O WITH DIAERESIS '\u{0000DC}', // LATIN CAPITAL LETTER U WITH DIAERESIS '\u{0000A2}', // CENT SIGN '\u{0000A3}', // POUND SIGN '\u{0000A5}', // YEN SIGN '\u{0020A7}', // PESETA SIGN '\u{000192}', // LATIN SMALL LETTER F WITH HOOK '\u{0000E1}', // LATIN SMALL LETTER A WITH ACUTE '\u{0000ED}', // LATIN SMALL LETTER I WITH ACUTE '\u{0000F3}', // LATIN SMALL LETTER O WITH ACUTE '\u{0000FA}', // LATIN SMALL LETTER U WITH ACUTE '\u{0000F1}', // LATIN SMALL LETTER N WITH TILDE '\u{0000D1}', // LATIN CAPITAL LETTER N WITH TILDE '\u{0000AA}', // FEMININE ORDINAL INDICATOR '\u{0000BA}', // MASCULINE ORDINAL INDICATOR '\u{0000BF}', // INVERTED QUESTION MARK '\u{002310}', // REVERSED NOT SIGN '\u{0000AC}', // NOT SIGN '\u{0000BD}', // VULGAR FRACTION ONE HALF '\u{0000BC}', // VULGAR FRACTION ONE QUARTER '\u{0000A1}', // INVERTED EXCLAMATION MARK '\u{0000AB}', // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{0000BB}', // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{002591}', // LIGHT SHADE '\u{002592}', // MEDIUM SHADE '\u{002593}', // DARK SHADE '\u{002502}', // BOX DRAWINGS LIGHT VERTICAL '\u{002524}', // BOX DRAWINGS LIGHT VERTICAL AND LEFT '\u{002561}', // BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE '\u{002562}', // BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE '\u{002556}', // BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE '\u{002555}', // BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE '\u{002563}', // BOX DRAWINGS DOUBLE VERTICAL AND LEFT '\u{002551}', // BOX DRAWINGS DOUBLE VERTICAL '\u{002557}', // BOX DRAWINGS DOUBLE DOWN AND LEFT '\u{00255D}', // BOX DRAWINGS DOUBLE UP AND LEFT '\u{00255C}', // BOX DRAWINGS UP DOUBLE AND LEFT SINGLE '\u{00255B}', // BOX DRAWINGS UP SINGLE AND LEFT DOUBLE '\u{002510}', // BOX DRAWINGS LIGHT DOWN AND LEFT '\u{002514}', // BOX DRAWINGS LIGHT UP AND RIGHT '\u{002534}', // BOX DRAWINGS LIGHT UP AND HORIZONTAL '\u{00252C}', // BOX DRAWINGS LIGHT DOWN AND HORIZONTAL '\u{00251C}', // BOX DRAWINGS LIGHT VERTICAL AND RIGHT '\u{002500}', // BOX DRAWINGS LIGHT HORIZONTAL '\u{00253C}', // BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL '\u{00255E}', // BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE '\u{00255F}', // BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE '\u{00255A}', // BOX DRAWINGS DOUBLE UP AND RIGHT '\u{002554}', // BOX DRAWINGS DOUBLE DOWN AND RIGHT '\u{002569}', // BOX DRAWINGS DOUBLE UP AND HORIZONTAL '\u{002566}', // BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL '\u{002560}', // BOX DRAWINGS DOUBLE VERTICAL AND RIGHT '\u{002550}', // BOX DRAWINGS DOUBLE HORIZONTAL '\u{00256C}', // BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL '\u{002567}', // BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE '\u{002568}', // BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE '\u{002564}', // BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE '\u{002565}', // BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE '\u{002559}', // BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE '\u{002558}', // BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE '\u{002552}', // BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE '\u{002553}', // BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE '\u{00256B}', // BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE '\u{00256A}', // BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE '\u{002518}', // BOX DRAWINGS LIGHT UP AND LEFT '\u{00250C}', // BOX DRAWINGS LIGHT DOWN AND RIGHT '\u{002588}', // FULL BLOCK '\u{002584}', // LOWER HALF BLOCK '\u{00258C}', // LEFT HALF BLOCK '\u{002590}', // RIGHT HALF BLOCK '\u{002580}', // UPPER HALF BLOCK '\u{0003B1}', // GREEK SMALL LETTER ALPHA '\u{0000DF}', // LATIN SMALL LETTER SHARP S '\u{000393}', // GREEK CAPITAL LETTER GAMMA '\u{0003C0}', // GREEK SMALL LETTER PI '\u{0003A3}', // GREEK CAPITAL LETTER SIGMA '\u{0003C3}', // GREEK SMALL LETTER SIGMA '\u{0000B5}', // MICRO SIGN '\u{0003C4}', // GREEK SMALL LETTER TAU '\u{0003A6}', // GREEK CAPITAL LETTER PHI '\u{000398}', // GREEK CAPITAL LETTER THETA '\u{0003A9}', // GREEK CAPITAL LETTER OMEGA '\u{0003B4}', // GREEK SMALL LETTER DELTA '\u{00221E}', // INFINITY '\u{0003C6}', // GREEK SMALL LETTER PHI '\u{0003B5}', // GREEK SMALL LETTER EPSILON '\u{002229}', // INTERSECTION '\u{002261}', // IDENTICAL TO '\u{0000B1}', // PLUS-MINUS SIGN '\u{002265}', // GREATER-THAN OR EQUAL TO '\u{002264}', // LESS-THAN OR EQUAL TO '\u{002320}', // TOP HALF INTEGRAL '\u{002321}', // BOTTOM HALF INTEGRAL '\u{0000F7}', // DIVISION SIGN '\u{002248}', // ALMOST EQUAL TO '\u{0000B0}', // DEGREE SIGN '\u{002219}', // BULLET OPERATOR '\u{0000B7}', // MIDDLE DOT '\u{00221A}', // SQUARE ROOT '\u{00207F}', // SUPERSCRIPT LATIN SMALL LETTER N '\u{0000B2}', // SUPERSCRIPT TWO '\u{0025A0}', // BLACK SQUARE '\u{0000A0}', // NO-BREAK SPACE ], overlap_unicode: cp437_wingdings_unicode_overlaps, overlap_cp437: cp437_wingdings_cp437_overlaps, encode: cp437_wingdings_encode, remaps: Cow::Borrowed(&[]), }; /// cp437 [with wingdings](https://en.wikipedia.org/wiki/Code_page_437#Character_set), as seen on Wikipedia. /// /// Contains wingdings in the `'\x00'..'\x20'` area. /// /// The decode table is additionally enriched from the the [variant table](https://en.wikipedia.org/wiki/Code_page_437#Notes). /// /// # Examples /// /// Decoding: /// /// ```rust /// # use codepage_437::CP437_WINGDINGS; /// assert_eq!(CP437_WINGDINGS.decode(0x41), 'A'); /// assert_eq!(CP437_WINGDINGS.decode(0x02), '☻'); // BLACK SMILING FACE /// ``` /// /// Encoding: /// /// ```rust /// # use codepage_437::CP437_WINGDINGS; /// assert_eq!(CP437_WINGDINGS.encode('A'), Some(0x41)); /// assert_eq!(CP437_WINGDINGS.encode('☻'), Some(0x02)); // BLACK SMILING FACE /// /// assert_eq!(CP437_WINGDINGS.encode('ź'), None); // LATIN SMALL LETTER Z WITH ACUTE /// ``` pub static CP437_WINGDINGS: Cp437Dialect = CP437_WINGDINGS_INIT; // dialect-specs/cp437_wingdings end // dialect-specs/cp437_control start #[inline(always)] fn cp437_control_cp437_overlaps(b: u8) -> bool { b.is_ascii() } #[inline(always)] fn cp437_control_unicode_overlaps(c: char) -> bool { c.is_ascii() } fn cp437_control_encode(unicode: char) -> Option<u8> { Some(match unicode { '\u{0000C7}' => 0x80, // LATIN CAPITAL LETTER C WITH CEDILLA '\u{0000FC}' => 0x81, // LATIN SMALL LETTER U WITH DIAERESIS '\u{0000E9}' => 0x82, // LATIN SMALL LETTER E WITH ACUTE '\u{0000E2}' => 0x83, // LATIN SMALL LETTER A WITH CIRCUMFLEX '\u{0000E4}' => 0x84, // LATIN SMALL LETTER A WITH DIAERESIS '\u{0000E0}' => 0x85, // LATIN SMALL LETTER A WITH GRAVE '\u{0000E5}' => 0x86, // LATIN SMALL LETTER A WITH RING ABOVE '\u{0000E7}' => 0x87, // LATIN SMALL LETTER C WITH CEDILLA '\u{0000EA}' => 0x88, // LATIN SMALL LETTER E WITH CIRCUMFLEX '\u{0000EB}' => 0x89, // LATIN SMALL LETTER E WITH DIAERESIS '\u{0000E8}' => 0x8A, // LATIN SMALL LETTER E WITH GRAVE '\u{0000EF}' => 0x8B, // LATIN SMALL LETTER I WITH DIAERESIS '\u{0000EE}' => 0x8C, // LATIN SMALL LETTER I WITH CIRCUMFLEX '\u{0000EC}' => 0x8D, // LATIN SMALL LETTER I WITH GRAVE '\u{0000C4}' => 0x8E, // LATIN CAPITAL LETTER A WITH DIAERESIS '\u{0000C5}' => 0x8F, // LATIN CAPITAL LETTER A WITH RING ABOVE '\u{0000C9}' => 0x90, // LATIN CAPITAL LETTER E WITH ACUTE '\u{0000E6}' => 0x91, // LATIN SMALL LIGATURE AE '\u{0000C6}' => 0x92, // LATIN CAPITAL LIGATURE AE '\u{0000F4}' => 0x93, // LATIN SMALL LETTER O WITH CIRCUMFLEX '\u{0000F6}' => 0x94, // LATIN SMALL LETTER O WITH DIAERESIS '\u{0000F2}' => 0x95, // LATIN SMALL LETTER O WITH GRAVE '\u{0000FB}' => 0x96, // LATIN SMALL LETTER U WITH CIRCUMFLEX '\u{0000F9}' => 0x97, // LATIN SMALL LETTER U WITH GRAVE '\u{0000FF}' => 0x98, // LATIN SMALL LETTER Y WITH DIAERESIS '\u{0000D6}' => 0x99, // LATIN CAPITAL LETTER O WITH DIAERESIS '\u{0000DC}' => 0x9A, // LATIN CAPITAL LETTER U WITH DIAERESIS '\u{0000A2}' => 0x9B, // CENT SIGN '\u{0000A3}' => 0x9C, // POUND SIGN '\u{0000A5}' => 0x9D, // YEN SIGN '\u{0020A7}' => 0x9E, // PESETA SIGN '\u{000192}' => 0x9F, // LATIN SMALL LETTER F WITH HOOK '\u{0000E1}' => 0xA0, // LATIN SMALL LETTER A WITH ACUTE '\u{0000ED}' => 0xA1, // LATIN SMALL LETTER I WITH ACUTE '\u{0000F3}' => 0xA2, // LATIN SMALL LETTER O WITH ACUTE '\u{0000FA}' => 0xA3, // LATIN SMALL LETTER U WITH ACUTE '\u{0000F1}' => 0xA4, // LATIN SMALL LETTER N WITH TILDE '\u{0000D1}' => 0xA5, // LATIN CAPITAL LETTER N WITH TILDE '\u{0000AA}' => 0xA6, // FEMININE ORDINAL INDICATOR '\u{0000BA}' => 0xA7, // MASCULINE ORDINAL INDICATOR '\u{0000BF}' => 0xA8, // INVERTED QUESTION MARK '\u{002310}' => 0xA9, // REVERSED NOT SIGN '\u{0000AC}' => 0xAA, // NOT SIGN '\u{0000BD}' => 0xAB, // VULGAR FRACTION ONE HALF '\u{0000BC}' => 0xAC, // VULGAR FRACTION ONE QUARTER '\u{0000A1}' => 0xAD, // INVERTED EXCLAMATION MARK '\u{0000AB}' => 0xAE, // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{0000BB}' => 0xAF, // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{002591}' => 0xB0, // LIGHT SHADE '\u{002592}' => 0xB1, // MEDIUM SHADE '\u{002593}' => 0xB2, // DARK SHADE '\u{002502}' => 0xB3, // BOX DRAWINGS LIGHT VERTICAL '\u{002524}' => 0xB4, // BOX DRAWINGS LIGHT VERTICAL AND LEFT '\u{002561}' => 0xB5, // BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE '\u{002562}' => 0xB6, // BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE '\u{002556}' => 0xB7, // BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE '\u{002555}' => 0xB8, // BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE '\u{002563}' => 0xB9, // BOX DRAWINGS DOUBLE VERTICAL AND LEFT '\u{002551}' => 0xBA, // BOX DRAWINGS DOUBLE VERTICAL '\u{002557}' => 0xBB, // BOX DRAWINGS DOUBLE DOWN AND LEFT '\u{00255D}' => 0xBC, // BOX DRAWINGS DOUBLE UP AND LEFT '\u{00255C}' => 0xBD, // BOX DRAWINGS UP DOUBLE AND LEFT SINGLE '\u{00255B}' => 0xBE, // BOX DRAWINGS UP SINGLE AND LEFT DOUBLE '\u{002510}' => 0xBF, // BOX DRAWINGS LIGHT DOWN AND LEFT '\u{002514}' => 0xC0, // BOX DRAWINGS LIGHT UP AND RIGHT '\u{002534}' => 0xC1, // BOX DRAWINGS LIGHT UP AND HORIZONTAL '\u{00252C}' => 0xC2, // BOX DRAWINGS LIGHT DOWN AND HORIZONTAL '\u{00251C}' => 0xC3, // BOX DRAWINGS LIGHT VERTICAL AND RIGHT '\u{002500}' => 0xC4, // BOX DRAWINGS LIGHT HORIZONTAL '\u{00253C}' => 0xC5, // BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL '\u{00255E}' => 0xC6, // BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE '\u{00255F}' => 0xC7, // BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE '\u{00255A}' => 0xC8, // BOX DRAWINGS DOUBLE UP AND RIGHT '\u{002554}' => 0xC9, // BOX DRAWINGS DOUBLE DOWN AND RIGHT '\u{002569}' => 0xCA, // BOX DRAWINGS DOUBLE UP AND HORIZONTAL '\u{002566}' => 0xCB, // BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL '\u{002560}' => 0xCC, // BOX DRAWINGS DOUBLE VERTICAL AND RIGHT '\u{002550}' => 0xCD, // BOX DRAWINGS DOUBLE HORIZONTAL '\u{00256C}' => 0xCE, // BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL '\u{002567}' => 0xCF, // BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE '\u{002568}' => 0xD0, // BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE '\u{002564}' => 0xD1, // BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE '\u{002565}' => 0xD2, // BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE '\u{002559}' => 0xD3, // BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE '\u{002558}' => 0xD4, // BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE '\u{002552}' => 0xD5, // BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE '\u{002553}' => 0xD6, // BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE '\u{00256B}' => 0xD7, // BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE '\u{00256A}' => 0xD8, // BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE '\u{002518}' => 0xD9, // BOX DRAWINGS LIGHT UP AND LEFT '\u{00250C}' => 0xDA, // BOX DRAWINGS LIGHT DOWN AND RIGHT '\u{002588}' => 0xDB, // FULL BLOCK '\u{002584}' => 0xDC, // LOWER HALF BLOCK '\u{00258C}' => 0xDD, // LEFT HALF BLOCK '\u{002590}' => 0xDE, // RIGHT HALF BLOCK '\u{002580}' => 0xDF, // UPPER HALF BLOCK '\u{0003B1}' => 0xE0, // GREEK SMALL LETTER ALPHA '\u{0000DF}' => 0xE1, // LATIN SMALL LETTER SHARP S '\u{000393}' => 0xE2, // GREEK CAPITAL LETTER GAMMA '\u{0003C0}' => 0xE3, // GREEK SMALL LETTER PI '\u{0003A3}' => 0xE4, // GREEK CAPITAL LETTER SIGMA '\u{0003C3}' => 0xE5, // GREEK SMALL LETTER SIGMA '\u{0000B5}' => 0xE6, // MICRO SIGN '\u{0003C4}' => 0xE7, // GREEK SMALL LETTER TAU '\u{0003A6}' => 0xE8, // GREEK CAPITAL LETTER PHI '\u{000398}' => 0xE9, // GREEK CAPITAL LETTER THETA '\u{0003A9}' => 0xEA, // GREEK CAPITAL LETTER OMEGA '\u{0003B4}' => 0xEB, // GREEK SMALL LETTER DELTA '\u{00221E}' => 0xEC, // INFINITY '\u{0003C6}' => 0xED, // GREEK SMALL LETTER PHI '\u{0003B5}' => 0xEE, // GREEK SMALL LETTER EPSILON '\u{002229}' => 0xEF, // INTERSECTION '\u{002261}' => 0xF0, // IDENTICAL TO '\u{0000B1}' => 0xF1, // PLUS-MINUS SIGN '\u{002265}' => 0xF2, // GREATER-THAN OR EQUAL TO '\u{002264}' => 0xF3, // LESS-THAN OR EQUAL TO '\u{002320}' => 0xF4, // TOP HALF INTEGRAL '\u{002321}' => 0xF5, // BOTTOM HALF INTEGRAL '\u{0000F7}' => 0xF6, // DIVISION SIGN '\u{002248}' => 0xF7, // ALMOST EQUAL TO '\u{0000B0}' => 0xF8, // DEGREE SIGN '\u{002219}' => 0xF9, // BULLET OPERATOR '\u{0000B7}' => 0xFA, // MIDDLE DOT '\u{00221A}' => 0xFB, // SQUARE ROOT '\u{00207F}' => 0xFC, // SUPERSCRIPT LATIN SMALL LETTER N '\u{0000B2}' => 0xFD, // SUPERSCRIPT TWO '\u{0025A0}' => 0xFE, // BLACK SQUARE '\u{0000A0}' => 0xFF, // NO-BREAK SPACE '\u{000394}' => 0x7F, // Greek capital delta '\u{0003B2}' => 0xE1, // Greek small beta '\u{0003A0}' => 0xE3, // Greek capital pi '\u{00220F}' => 0xE3, // n-ary product sign '\u{002211}' => 0xE4, // n-ary summation sign '\u{0003BC}' => 0xE6, // Mu Small '\u{0000F0}' => 0xEB, // small eth '\u{002202}' => 0xEB, // partial derivative sign '\u{0003D5}' => 0xED, // Phi Small (Closed Form) '\u{01D719}' => 0xED, // Italicized Phi Small (Closed Form) '\u{002205}' => 0xED, // empty set sign '\u{002300}' => 0xED, // diameter sign '\u{0000D8}' => 0xED, // Capital Latin letter O with stroke '\u{0000F8}' => 0xED, // Lowercase Latin letter O with stroke '\u{002208}' => 0xEE, // element-of sign '\u{0020AC}' => 0xEE, // euro sign '\u{002713}' => 0xFB, // check mark c => if cp437_control_unicode_overlaps(c) { c as u8 } else { return None }, }) } const CP437_CONTROL_INIT: Cp437Dialect = Cp437Dialect { cp437_to_unicode: [ '\u{000000}', '\u{000001}', '\u{000002}', '\u{000003}', '\u{000004}', '\u{000005}', '\u{000006}', '\u{000007}', '\u{000008}', '\u{000009}', '\u{00000A}', '\u{00000B}', '\u{00000C}', '\u{00000D}', '\u{00000E}', '\u{00000F}', '\u{000010}', '\u{000011}', '\u{000012}', '\u{000013}', '\u{000014}', '\u{000015}', '\u{000016}', '\u{000017}', '\u{000018}', '\u{000019}', '\u{00001A}', '\u{00001B}', '\u{00001C}', '\u{00001D}', '\u{00001E}', '\u{00001F}', '\u{000020}', '\u{000021}', '\u{000022}', '\u{000023}', '\u{000024}', '\u{000025}', '\u{000026}', '\u{000027}', '\u{000028}', '\u{000029}', '\u{00002A}', '\u{00002B}', '\u{00002C}', '\u{00002D}', '\u{00002E}', '\u{00002F}', '\u{000030}', '\u{000031}', '\u{000032}', '\u{000033}', '\u{000034}', '\u{000035}', '\u{000036}', '\u{000037}', '\u{000038}', '\u{000039}', '\u{00003A}', '\u{00003B}', '\u{00003C}', '\u{00003D}', '\u{00003E}', '\u{00003F}', '\u{000040}', '\u{000041}', '\u{000042}', '\u{000043}', '\u{000044}', '\u{000045}', '\u{000046}', '\u{000047}', '\u{000048}', '\u{000049}', '\u{00004A}', '\u{00004B}', '\u{00004C}', '\u{00004D}', '\u{00004E}', '\u{00004F}', '\u{000050}', '\u{000051}', '\u{000052}', '\u{000053}', '\u{000054}', '\u{000055}', '\u{000056}', '\u{000057}', '\u{000058}', '\u{000059}', '\u{00005A}', '\u{00005B}', '\u{00005C}', '\u{00005D}', '\u{00005E}', '\u{00005F}', '\u{000060}', '\u{000061}', '\u{000062}', '\u{000063}', '\u{000064}', '\u{000065}', '\u{000066}', '\u{000067}', '\u{000068}', '\u{000069}', '\u{00006A}', '\u{00006B}', '\u{00006C}', '\u{00006D}', '\u{00006E}', '\u{00006F}', '\u{000070}', '\u{000071}', '\u{000072}', '\u{000073}', '\u{000074}', '\u{000075}', '\u{000076}', '\u{000077}', '\u{000078}', '\u{000079}', '\u{00007A}', '\u{00007B}', '\u{00007C}', '\u{00007D}', '\u{00007E}', '\u{00007F}', '\u{0000C7}', // LATIN CAPITAL LETTER C WITH CEDILLA '\u{0000FC}', // LATIN SMALL LETTER U WITH DIAERESIS '\u{0000E9}', // LATIN SMALL LETTER E WITH ACUTE '\u{0000E2}', // LATIN SMALL LETTER A WITH CIRCUMFLEX '\u{0000E4}', // LATIN SMALL LETTER A WITH DIAERESIS '\u{0000E0}', // LATIN SMALL LETTER A WITH GRAVE '\u{0000E5}', // LATIN SMALL LETTER A WITH RING ABOVE '\u{0000E7}', // LATIN SMALL LETTER C WITH CEDILLA '\u{0000EA}', // LATIN SMALL LETTER E WITH CIRCUMFLEX '\u{0000EB}', // LATIN SMALL LETTER E WITH DIAERESIS '\u{0000E8}', // LATIN SMALL LETTER E WITH GRAVE '\u{0000EF}', // LATIN SMALL LETTER I WITH DIAERESIS '\u{0000EE}', // LATIN SMALL LETTER I WITH CIRCUMFLEX '\u{0000EC}', // LATIN SMALL LETTER I WITH GRAVE '\u{0000C4}', // LATIN CAPITAL LETTER A WITH DIAERESIS '\u{0000C5}', // LATIN CAPITAL LETTER A WITH RING ABOVE '\u{0000C9}', // LATIN CAPITAL LETTER E WITH ACUTE '\u{0000E6}', // LATIN SMALL LIGATURE AE '\u{0000C6}', // LATIN CAPITAL LIGATURE AE '\u{0000F4}', // LATIN SMALL LETTER O WITH CIRCUMFLEX '\u{0000F6}', // LATIN SMALL LETTER O WITH DIAERESIS '\u{0000F2}', // LATIN SMALL LETTER O WITH GRAVE '\u{0000FB}', // LATIN SMALL LETTER U WITH CIRCUMFLEX '\u{0000F9}', // LATIN SMALL LETTER U WITH GRAVE '\u{0000FF}', // LATIN SMALL LETTER Y WITH DIAERESIS '\u{0000D6}', // LATIN CAPITAL LETTER O WITH DIAERESIS '\u{0000DC}', // LATIN CAPITAL LETTER U WITH DIAERESIS '\u{0000A2}', // CENT SIGN '\u{0000A3}', // POUND SIGN '\u{0000A5}', // YEN SIGN '\u{0020A7}', // PESETA SIGN '\u{000192}', // LATIN SMALL LETTER F WITH HOOK '\u{0000E1}', // LATIN SMALL LETTER A WITH ACUTE '\u{0000ED}', // LATIN SMALL LETTER I WITH ACUTE '\u{0000F3}', // LATIN SMALL LETTER O WITH ACUTE '\u{0000FA}', // LATIN SMALL LETTER U WITH ACUTE '\u{0000F1}', // LATIN SMALL LETTER N WITH TILDE '\u{0000D1}', // LATIN CAPITAL LETTER N WITH TILDE '\u{0000AA}', // FEMININE ORDINAL INDICATOR '\u{0000BA}', // MASCULINE ORDINAL INDICATOR '\u{0000BF}', // INVERTED QUESTION MARK '\u{002310}', // REVERSED NOT SIGN '\u{0000AC}', // NOT SIGN '\u{0000BD}', // VULGAR FRACTION ONE HALF '\u{0000BC}', // VULGAR FRACTION ONE QUARTER '\u{0000A1}', // INVERTED EXCLAMATION MARK '\u{0000AB}', // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{0000BB}', // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK '\u{002591}', // LIGHT SHADE '\u{002592}', // MEDIUM SHADE '\u{002593}', // DARK SHADE '\u{002502}', // BOX DRAWINGS LIGHT VERTICAL '\u{002524}', // BOX DRAWINGS LIGHT VERTICAL AND LEFT '\u{002561}', // BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE '\u{002562}', // BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE '\u{002556}', // BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE '\u{002555}', // BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE '\u{002563}', // BOX DRAWINGS DOUBLE VERTICAL AND LEFT '\u{002551}', // BOX DRAWINGS DOUBLE VERTICAL '\u{002557}', // BOX DRAWINGS DOUBLE DOWN AND LEFT '\u{00255D}', // BOX DRAWINGS DOUBLE UP AND LEFT '\u{00255C}', // BOX DRAWINGS UP DOUBLE AND LEFT SINGLE '\u{00255B}', // BOX DRAWINGS UP SINGLE AND LEFT DOUBLE '\u{002510}', // BOX DRAWINGS LIGHT DOWN AND LEFT '\u{002514}', // BOX DRAWINGS LIGHT UP AND RIGHT '\u{002534}', // BOX DRAWINGS LIGHT UP AND HORIZONTAL '\u{00252C}', // BOX DRAWINGS LIGHT DOWN AND HORIZONTAL '\u{00251C}', // BOX DRAWINGS LIGHT VERTICAL AND RIGHT '\u{002500}', // BOX DRAWINGS LIGHT HORIZONTAL '\u{00253C}', // BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL '\u{00255E}', // BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE '\u{00255F}', // BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE '\u{00255A}', // BOX DRAWINGS DOUBLE UP AND RIGHT '\u{002554}', // BOX DRAWINGS DOUBLE DOWN AND RIGHT '\u{002569}', // BOX DRAWINGS DOUBLE UP AND HORIZONTAL '\u{002566}', // BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL '\u{002560}', // BOX DRAWINGS DOUBLE VERTICAL AND RIGHT '\u{002550}', // BOX DRAWINGS DOUBLE HORIZONTAL '\u{00256C}', // BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL '\u{002567}', // BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE '\u{002568}', // BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE '\u{002564}', // BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE '\u{002565}', // BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE '\u{002559}', // BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE '\u{002558}', // BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE '\u{002552}', // BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE '\u{002553}', // BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE '\u{00256B}', // BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE '\u{00256A}', // BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE '\u{002518}', // BOX DRAWINGS LIGHT UP AND LEFT '\u{00250C}', // BOX DRAWINGS LIGHT DOWN AND RIGHT '\u{002588}', // FULL BLOCK '\u{002584}', // LOWER HALF BLOCK '\u{00258C}', // LEFT HALF BLOCK '\u{002590}', // RIGHT HALF BLOCK '\u{002580}', // UPPER HALF BLOCK '\u{0003B1}', // GREEK SMALL LETTER ALPHA '\u{0000DF}', // LATIN SMALL LETTER SHARP S '\u{000393}', // GREEK CAPITAL LETTER GAMMA '\u{0003C0}', // GREEK SMALL LETTER PI '\u{0003A3}', // GREEK CAPITAL LETTER SIGMA '\u{0003C3}', // GREEK SMALL LETTER SIGMA '\u{0000B5}', // MICRO SIGN '\u{0003C4}', // GREEK SMALL LETTER TAU '\u{0003A6}', // GREEK CAPITAL LETTER PHI '\u{000398}', // GREEK CAPITAL LETTER THETA '\u{0003A9}', // GREEK CAPITAL LETTER OMEGA '\u{0003B4}', // GREEK SMALL LETTER DELTA '\u{00221E}', // INFINITY '\u{0003C6}', // GREEK SMALL LETTER PHI '\u{0003B5}', // GREEK SMALL LETTER EPSILON '\u{002229}', // INTERSECTION '\u{002261}', // IDENTICAL TO '\u{0000B1}', // PLUS-MINUS SIGN '\u{002265}', // GREATER-THAN OR EQUAL TO '\u{002264}', // LESS-THAN OR EQUAL TO '\u{002320}', // TOP HALF INTEGRAL '\u{002321}', // BOTTOM HALF INTEGRAL '\u{0000F7}', // DIVISION SIGN '\u{002248}', // ALMOST EQUAL TO '\u{0000B0}', // DEGREE SIGN '\u{002219}', // BULLET OPERATOR '\u{0000B7}', // MIDDLE DOT '\u{00221A}', // SQUARE ROOT '\u{00207F}', // SUPERSCRIPT LATIN SMALL LETTER N '\u{0000B2}', // SUPERSCRIPT TWO '\u{0025A0}', // BLACK SQUARE '\u{0000A0}', // NO-BREAK SPACE ], overlap_unicode: cp437_control_unicode_overlaps, overlap_cp437: cp437_control_cp437_overlaps, encode: cp437_control_encode, remaps: Cow::Borrowed(&[]), }; /// [`cp437_DOSLatinUS`](http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP437.TXT) as provided by the Unicode Consortium. /// /// Contains control characters in the `'\x00'..'\x20'` area. /// /// The decode table is additionally enriched from the the [variant table](https://en.wikipedia.org/wiki/Code_page_437#Notes) on Wikipedia. /// /// # Examples /// /// Decoding: /// /// ```rust /// # use codepage_437::CP437_CONTROL; /// assert_eq!(CP437_CONTROL.decode(0x41), 'A'); /// assert_eq!(CP437_CONTROL.decode(0x91), 'æ'); // LATIN SMALL LIGATURE AE /// ``` /// /// Encoding: /// /// ```rust /// # use codepage_437::CP437_CONTROL; /// assert_eq!(CP437_CONTROL.encode('A'), Some(0x41)); /// assert_eq!(CP437_CONTROL.encode('æ'), Some(0x91)); // LATIN SMALL LIGATURE AE /// /// assert_eq!(CP437_CONTROL.encode('ź'), None); // LATIN SMALL LETTER Z WITH ACUTE /// ``` pub static CP437_CONTROL: Cp437Dialect = CP437_CONTROL_INIT; // dialect-specs/cp437_control end