From: Ben Harris Date: Sat, 4 May 2024 13:36:34 +0000 (+0100) Subject: Private use area mappings for separated 4-cell mosaic graphics X-Git-Tag: bedstead-002.005~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=dd35eed4ed411ca3468306f5a281118cef8a2f28;p=bedstead.git Private use area mappings for separated 4-cell mosaic graphics --- diff --git a/bedstead.c b/bedstead.c index 43f77cc..a1a5f87 100644 --- a/bedstead.c +++ b/bedstead.c @@ -1703,22 +1703,20 @@ 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}, 0x2588, "block", MOS4 }, {{0x0f}, -1, "block.sep4", SEP4 }, - {{0x3f}, -1, "block.sep6", SEP6 }, - {{0x05}, 0x258c, "lfblock", MOS4 }, {{0x05}, -1, "lfblock.sep4", SEP4 }, - {{0x15}, -1, "lfblock.sep6", SEP6 }, - {{0x0a}, 0x2590, "rtblock", MOS4 }, {{0x0a}, -1, "rtblock.sep4", SEP4 }, - {{0x2a}, -1, "rtblock.sep6", SEP6 }, +#define M4N(x, u, n) { {x}, u, n, MOS4 }, { {x}, u+0xd000, n ".sep4", SEP4 } + M4N(0x03, 0x2580, "upblock"), M4N(0x0c, 0x2584, "dnblock"), + M4N(0x0f, 0x2588, "block"), {{0x3f}, -1, "block.sep6", SEP6 }, + M4N(0x05, 0x258c, "lfblock"), {{0x15}, -1, "lfblock.sep6", SEP6 }, + M4N(0x0a, 0x2590, "rtblock"), {{0x2a}, -1, "rtblock.sep6", SEP6 }, {{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 } - 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), -#undef M +#define M4(x, u) M4N(x, 0x ## u, "uni" #u) + M4( 4, 2596), M4( 8, 2597), M4( 1, 2598), M4(13, 2599), + M4( 9, 259A), M4( 7, 259B), M4(11, 259C), M4( 2, 259D), + M4( 6, 259E), M4(14, 259F), +#undef M4 +#undef M4N /* Geometric shapes */ {{037,021,021,021,021,021,037,000,000}, 0x25a1, "H22073" }, @@ -1985,8 +1983,9 @@ static struct glyph { * that would otherwise be unencoded so as to make them easier to * use. These encodings should be stable, but they do not use uniXXXX * glyph names. U+F1D0 to U+F1D9 are used above for glyphs from real - * character generators. U+F1C0 and U+F1C1 are used below for small - * caps glyphs. + * character generators. U+F580 to U+F59F are used above for + * separated 4-cell mosaic graphics. U+F1C0 and U+F1C1 are used + * below for small caps glyphs. */ /* Alphabetic presentation forms */