From a17cf905f2ae946106630a96bc4dd9ca83411218 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 16 Nov 2006 02:08:05 +0000 Subject: [PATCH] * Added some box drawing glyphs that are used by TOIlet's future.tlf font to the flip/flop/rotation filters. --- cucul/transform.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cucul/transform.c b/cucul/transform.c index f017fd3..1d60186 100644 --- a/cucul/transform.c +++ b/cucul/transform.c @@ -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 };