From: Ben Harris Date: Mon, 23 Sep 2024 15:22:59 +0000 (+0100) Subject: Add PUA mappings for separated 4-cell graphics X-Git-Tag: bedstead-002.007~4 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=c5b858632bac0d37f3965ae928a3ae513555496c;p=bedstead.git Add PUA mappings for separated 4-cell graphics I'm a bit uncertain about this because I currently think these glyphs shouldn't be in Bedstead at all. They're not based on any real system or standard, so they don't really have any good reason to be here. But here they are nonetheless, at least until Bedstead 003.000. So while I don't really want to encourage their use, I think gratuitously leaving them difficult to use will just annoy anyone who actually has a use for them and they thus deserve encodings. --- diff --git a/bedstead.c b/bedstead.c index 31b17b5..e83c878 100644 --- a/bedstead.c +++ b/bedstead.c @@ -2006,15 +2006,15 @@ static struct glyph { {{016,016,016,016,016,004,004,004,004}, U(257F) }, /* Block elements */ - {{0x03}, 0x2580, "upblock", MOS4 }, {{0x03}, -1, "upblock.sep4", SEP4 }, - {{0x0c}, 0x2584, "dnblock", MOS4 }, {{0x0c}, -1, "dnblock.sep4", SEP4 }, - {{0x0f}, -1, "block.sep4", SEP4 }, - {{0x05}, -1, "lfblock.sep4", SEP4 }, - {{0x0a}, -1, "rtblock.sep4", SEP4 }, + {{0x03}, 0x2580, "upblock", MOS4 }, {{0x3}, 0xf1e3, "upblock.sep4", SEP4 }, + {{0x0c}, 0x2584, "dnblock", MOS4 }, {{0xc}, 0xf1ec, "dnblock.sep4", SEP4 }, + {{0xf}, 0xf1ef, "block.sep4", SEP4 }, + {{0x5}, 0xf1e5, "lfblock.sep4", SEP4 }, + {{0xa}, 0xf1ea, "rtblock.sep4", SEP4 }, {{025,000,012,000,025,000,012,000,025}, 0x2591, "ltshade" }, {{022,011,004,022,011,004,022,011,004}, 0x2592, "shade" }, {{025,037,012,037,025,037,012,037,025}, 0x2593, "dkshade" }, -#define M(x, u) { {x}, U(u), MOS4 }, { {x}, -1, "uni" #u ".sep4", SEP4 } +#define M(x, u) { {x}, U(u), MOS4 }, { {x}, 0xf1e0 + x, "uni" #u ".sep4", SEP4 } M( 4, 2596), M( 8, 2597), M( 1, 2598), M(13, 2599), M( 9, 259A), M( 7, 259B), M(11, 259C), M( 2, 259D), M( 6, 259E), M(14, 259F),