chiark / gitweb /
Horizontal square brackets
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 20 Nov 2025 23:13:15 +0000 (23:13 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:55:10 +0000 (21:55 +0000)
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.

bedstead.c

index f6e134efa9e6081584728ceca142d62cd99f1534..f535969171ebb613040f0be94a85675d065e1a46 100644 (file)
@@ -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 */