Ignore:
Timestamp:
Mar 15, 2006, 9:39:43 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Added a few more Unicode characters to the export and unicode tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/unicode.c

    r577 r626  
    3737
    3838    cucul_set_color(qq, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
    39     cucul_putstr(qq, 1, 2, "This is ASCII:   [ abc DEF 123 !@# ]");
    40     cucul_putstr(qq, 1, 3, "This is Unicode: [ äβç ΔЗҒ ░▒▓ ♩♔✈ ]");
     39    cucul_putstr(qq, 1, 2, "This is ASCII:    | abc DEF 123 !@# |");
     40    cucul_putstr(qq, 1, 3, "This is Unicode:  | äßç δεφ ░▒▓ ╞╬╗ |");
     41    cucul_putstr(qq, 1, 4, "And this is, too: | ἀβϛ ΔЗҒ ᚴᛒᛯ ♩♔✈ |");
    4142
    42     cucul_putstr(qq, 1, 4, "If the two lines do not have the same length, there is a bug somewhere.");
     43    cucul_putstr(qq, 1, 5, "If the three lines do not have the same length, there is a bug somewhere.");
    4344
    4445    cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    45     cucul_putstr(qq, 1, 6, "Gradient glyphs");
     46    cucul_putstr(qq, 1, 7, "Gradient glyphs");
    4647
    4748    cucul_set_color(qq, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
    48     cucul_putstr(qq, 31,  7, "  0%");
    49     cucul_putstr(qq, 31,  8, " 25%");
    50     cucul_putstr(qq, 31,  9, " 50%");
    51     cucul_putstr(qq, 31, 10, " 75%");
    52     cucul_putstr(qq, 31, 11, "100%");
     49    cucul_putstr(qq, 31,  8, "  0%");
     50    cucul_putstr(qq, 31,  9, " 25%");
     51    cucul_putstr(qq, 31, 10, " 50%");
     52    cucul_putstr(qq, 31, 11, " 75%");
     53    cucul_putstr(qq, 31, 12, "100%");
    5354
    54     cucul_set_color(qq, CUCUL_COLOR_RED, CUCUL_COLOR_CYAN);
    55     cucul_putstr(qq, 1,  7, "                             ");
    56     cucul_putstr(qq, 1,  8, "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░");
    57     cucul_putstr(qq, 1,  9, "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒");
    58     cucul_putstr(qq, 1, 10, "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓");
    59     cucul_putstr(qq, 1, 11, "█████████████████████████████");
     55    cucul_set_color(qq, CUCUL_COLOR_LIGHTRED, CUCUL_COLOR_LIGHTGREEN);
     56    cucul_putstr(qq, 1,  8, "                             ");
     57    cucul_putstr(qq, 1,  9, "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░");
     58    cucul_putstr(qq, 1, 10, "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒");
     59    cucul_putstr(qq, 1, 11, "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓");
     60    cucul_putstr(qq, 1, 12, "█████████████████████████████");
    6061
    61     cucul_set_color(qq, CUCUL_COLOR_CYAN, CUCUL_COLOR_RED);
    62     cucul_putstr(qq, 36,  7, "█████████████████████████████");
    63     cucul_putstr(qq, 36,  8, "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓");
    64     cucul_putstr(qq, 36,  9, "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒");
    65     cucul_putstr(qq, 36, 10, "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░");
    66     cucul_putstr(qq, 36, 11, "                             ");
     62    cucul_set_color(qq, CUCUL_COLOR_LIGHTGREEN, CUCUL_COLOR_LIGHTRED);
     63    cucul_putstr(qq, 36,  8, "█████████████████████████████");
     64    cucul_putstr(qq, 36,  9, "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓");
     65    cucul_putstr(qq, 36, 10, "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒");
     66    cucul_putstr(qq, 36, 11, "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░");
     67    cucul_putstr(qq, 36, 12, "                             ");
    6768
    6869    cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    69     cucul_putstr(qq, 1, 13, "Double width characters");
     70    cucul_putstr(qq, 1, 14, "Double width characters");
    7071
    7172    cucul_set_color(qq, CUCUL_COLOR_LIGHTRED, CUCUL_COLOR_BLACK);
    72     cucul_putstr(qq, 1, 14, "ドラゴン ボーレ |");
     73    cucul_putstr(qq, 1, 15, "| ドラゴン ボーレ |");
    7374    cucul_set_color(qq, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
    74     cucul_putstr(qq, 1, 15, "()()()() ()()() |");
     75    cucul_putstr(qq, 1, 16, "| ()()()() ()()() |");
    7576    cucul_set_color(qq, CUCUL_COLOR_YELLOW, CUCUL_COLOR_BLACK);
    76     cucul_putstr(qq, 1, 16, "ドラゴン");
    77     cucul_putstr(qq, 10, 16, "ボーレ |");
     77    cucul_putstr(qq, 1, 17, "| ドラゴン");
     78    cucul_putstr(qq, 10, 17, "ボーレ |");
    7879
    7980    cucul_set_color(qq, CUCUL_COLOR_LIGHTGRAY, CUCUL_COLOR_BLACK);
    80     cucul_putstr(qq, 1, 17, "If the three lines do not have the same length, there is a bug somewhere.");
     81    cucul_putstr(qq, 1, 18, "If the three lines do not have the same length, there is a bug somewhere.");
    8182
    8283    caca_display(kk);
Note: See TracChangeset for help on using the changeset viewer.