From: Ben Harris Date: Thu, 20 Nov 2025 23:13:15 +0000 (+0000) Subject: Horizontal square brackets X-Git-Tag: bedstead-3.261~10 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=331392b073f86f1e6d68d40d36332af9c8a38d56;p=bedstead.git Horizontal square brackets I was looking for something completely different in the Unicode Standard and found a note that U+23B4..U+23B6 can be used in terminal applications with text printed vertically. So obviously I had to add them. Apparently the same doesn't apply to the other horizontal brackets at U+23DC..U+32E1, which are purely stretchy mathematical brackets and not interesting to us. The odd positioning in the character cell is based on the Unicode code chart. --- diff --git a/bedstead.c b/bedstead.c index f6e134e..f535969 100644 --- a/bedstead.c +++ b/bedstead.c @@ -2118,6 +2118,9 @@ static struct glyph { {"\30\04\04\04\04\04\04\04\03", U(23B1) }, /* two-level brace \ */ {"\37\20\10\10\04\04\02\02\01", U(23B2), JOIN_D }, /* summation top */ {"\01\02\02\04\04\10\10\20\37", U(23B3), JOIN_U }, /* summation bottom */ + {"\37\21\21\00\00\00\00\00\00", U(23B4) }, /* brackettop */ + {"\00\00\00\00\21\21\37\00\00", U(23B5) }, /* bracketbottom */ + {"\21\21\37\00\37\21\21\00\00", U(23B6) }, /* bracketbottom + brackettop */ {"\37\00\00\00\00\00\00\00\00", U(23BA), JOIN_H }, /* horizontal scan 1 */ {"\00\00\37\00\00\00\00\00\00", U(23BB), JOIN_H }, /* horizontal scan 3 */ {"\00\00\00\00\00\00\37\00\00", U(23BC), JOIN_H }, /* horizontal scan 7 */