From 1c7667ea503926340da47d1a1f54f6d70d583d18 Mon Sep 17 00:00:00 2001 From: Martin Vidner Date: Sun, 1 Oct 2006 13:09:01 +0000 Subject: [PATCH] UTF-6 (useless table fun, 6 new styles) --- tools/zmart/zypper-tabulator.cc | 10 ++++++++-- tools/zmart/zypper-tabulator.h | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/tools/zmart/zypper-tabulator.cc b/tools/zmart/zypper-tabulator.cc index a102c53..1c2d8f7 100644 --- a/tools/zmart/zypper-tabulator.cc +++ b/tools/zmart/zypper-tabulator.cc @@ -8,9 +8,15 @@ static char * lines[][3] = { { "|", "-", "+"}, ///< Ascii // utf 8. TODO wchars? - { "\xE2\x95\x91", "\xE2\x95\x90", "\xE2\x95\xAC"}, ///< Fancy: double lines - { "\xE2\x94\x83", "\xE2\x94\x81", "\xE2\x95\x8B"}, ///< heavy { "\xE2\x94\x82", "\xE2\x94\x80", "\xE2\x94\xBC"}, ///< light + { "\xE2\x94\x83", "\xE2\x94\x81", "\xE2\x95\x8B"}, ///< heavy + { "\xE2\x95\x91", "\xE2\x95\x90", "\xE2\x95\xAC"}, ///< double + { "\xE2\x94\x86", "\xE2\x94\x84", "\xE2\x94\xBC"}, ///< light 3 + { "\xE2\x94\x87", "\xE2\x94\x85", "\xE2\x94\x8B"}, ///< heavy 3 + { "\xE2\x94\x82", "\xE2\x94\x81", "\xE2\x94\xBF"}, ///< v light, h heavy + { "\xE2\x94\x82", "\xE2\x95\x90", "\xE2\x95\xAA"}, ///< v light, h double + { "\xE2\x94\x83", "\xE2\x94\x80", "\xE2\x95\x82"}, ///< v heavy, h light + { "\xE2\x95\x91", "\xE2\x94\x80", "\xE2\x95\xAB"}, ///< v double, h light }; void TableRow::add (const string& s) { diff --git a/tools/zmart/zypper-tabulator.h b/tools/zmart/zypper-tabulator.h index 8657374..f5a697b 100644 --- a/tools/zmart/zypper-tabulator.h +++ b/tools/zmart/zypper-tabulator.h @@ -22,9 +22,15 @@ using std::vector; //! table drawing style enum TableStyle { Ascii, ///< | - + - Fancy, ///< unspecified unicode fancy style - Heavy, Light, + Heavy, + Double, + Light3, + Heavy3, + LightHeavy, + LightDouble, + HeavyLight, + DoubleLight, _End, ///< sentinel }; -- 2.7.4