2d/collects/framework/private/dir-chars.rkt
Robby Findler dcee0e5cf9 more adjustments to the c:x;r;a keystroke
The goal is to better handle situations like this one:

╔═══╗
║ - ║
╚═══╝

where the hyphen should not change.

original commit: a0f910c3dcf6ad40971257e9a4bd1b9ca94d3435
2013-01-21 20:25:40 -06:00

44 lines
728 B
Racket

#lang racket/base
(require racket/list)
(provide adjustable-chars
double-barred-chars
up-chars
dn-chars
lt-chars
rt-chars)
(define up-chars
'(#\╬
#\╩ #\╣ #\╠
#\╝ #\╚
#\║
#\+ #\|))
(define dn-chars
'(#\╬
#\╦ #\╣ #\╠
#\╗ #\╔
#\║
#\+ #\|))
(define lt-chars
'(#\╬
#\╩ #\╦ #\╣
#\╝ #\╗
#\═
#\+ #\- #\=))
(define rt-chars
'(#\╬
#\╩ #\╦ #\╠
#\╔ #\╚
#\═
#\+ #\- #\=))
(define adjustable-chars
(remove-duplicates
(append up-chars dn-chars lt-chars rt-chars)))
(define double-barred-chars
(remove* '(#\+ #\- #\= #\|)
adjustable-chars))