Selaa lähdekoodia

* Added some box drawing glyphs that are used by TOIlet's future.tlf font

to the flip/flop/rotation filters.
tags/v0.99.beta14
Sam Hocevar sam 18 vuotta sitten
vanhempi
commit
a17cf905f2
1 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. +12
    -2
      cucul/transform.c

+ 12
- 2
cucul/transform.c Näytä tiedosto

@@ -225,11 +225,12 @@ static uint32_t flipchar(uint32_t ch)
' ', '"', '#', '\'', '-', '.', '*', '+', ':', '=', '0', '8',
'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y', '^',
'_', 'i', 'o', 'v', 'w', 'x', '|',
/* CP437 */
/* CP437 and box drawing */
0x2591, 0x2592, 0x2593, 0x2588, 0x2584, 0x2580, /* ░ ▒ ▓ █ ▄ ▀ */
0x2500, 0x2501, 0x2503, 0x2503, 0x253c, 0x254b, /* ─ ━ │ ┃ ┼ ╋ */
0x252c, 0x2534, 0x2533, 0x253b, 0x2566, 0x2569, /* ┬ ┴ ┳ ┻ ╦ ╩ */
0x2550, 0x2551, 0x256c, /* ═ ║ ╬ */
0x2575, 0x2577, 0x2579, 0x257b, /* ╵ ╷ ╹ ╻ */
0
};

@@ -274,6 +275,8 @@ static uint32_t flipchar(uint32_t ch)
0x2554, 0x2557, /* ╔ ╗ */
0x255a, 0x255d, /* ╚ ╝ */
0x2560, 0x2563, /* ╠ ╣ */
0x2574, 0x2576, /* ╴ ╶ */
0x2578, 0x257a, /* ╸ ╺ */
0
};

@@ -298,11 +301,12 @@ static uint32_t flopchar(uint32_t ch)
' ', '(', ')', '*', '+', '-', '0', '3', '8', ':', '<', '=',
'>', 'B', 'C', 'D', 'E', 'H', 'I', 'K', 'O', 'X', '[', ']',
'c', 'o', '{', '|', '}',
/* CP437 */
/* CP437 and box drawing */
0x2591, 0x2592, 0x2593, 0x2588, 0x258c, 0x2590, /* ░ ▒ ▓ █ ▌ ▐ */
0x2500, 0x2501, 0x2503, 0x2503, 0x253c, 0x254b, /* ─ ━ │ ┃ ┼ ╋ */
0x251c, 0x2524, 0x2523, 0x252b, 0x2560, 0x2563, /* ├ ┤ ┣ ┫ ╠ ╣ */
0x2550, 0x2551, 0x256c, /* ═ ║ ╬ */
0x2574, 0x2576, 0x2578, 0x257a, /* ╴ ╶ ╸ ╺ */
0
};

@@ -353,6 +357,8 @@ static uint32_t flopchar(uint32_t ch)
0x2554, 0x255a, /* ╔ ╚ */
0x2557, 0x255d, /* ╗ ╝ */
0x2566, 0x2569, /* ╦ ╩ */
0x2575, 0x2577, /* ╵ ╷ */
0x2579, 0x257b, /* ╹ ╻ */
0
};

@@ -444,6 +450,10 @@ static uint32_t rotatechar(uint32_t ch)
0x2557, 0x255a, /* ╗ ╚ */
0x2560, 0x2563, /* ╠ ╣ */
0x2566, 0x2569, /* ╦ ╩ */
0x2574, 0x2576, /* ╴ ╶ */
0x2575, 0x2577, /* ╵ ╷ */
0x2578, 0x257a, /* ╸ ╺ */
0x2579, 0x257b, /* ╹ ╻ */
0
};



Ladataan…
Peruuta
Tallenna