|
|
|
@ -12,21 +12,4 @@
|
|
|
|
|
(define-runtime-path fira-path "assets/fira.ttf")
|
|
|
|
|
(define-runtime-path fira-otf-path "assets/fira.otf")
|
|
|
|
|
(define-runtime-path charter-directory-path "assets/charter-directory.rktd")
|
|
|
|
|
(define-runtime-path charter-italic-directory-path "assets/charter-italic-directory.rktd")
|
|
|
|
|
|
|
|
|
|
(define-syntax (test-module stx)
|
|
|
|
|
(syntax-case stx ()
|
|
|
|
|
[(_ . EXPRS)
|
|
|
|
|
#`(module+ test
|
|
|
|
|
(require #,(datum->syntax stx 'rackunit) #,(datum->syntax stx 'racket/serialize))
|
|
|
|
|
. EXPRS)]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define (is-mark? codepoint)
|
|
|
|
|
;; mark classes = Mn Me Mc
|
|
|
|
|
(regexp-match #px"\\p{Mn}|\\p{Me}|\\p{Mc}" (string (integer->char codepoint))))
|
|
|
|
|
|
|
|
|
|
(module+ test
|
|
|
|
|
(require rackunit)
|
|
|
|
|
(check-true (and (is-mark? #x300) #t))
|
|
|
|
|
(check-false (and (is-mark? #x2ee) #t)))
|
|
|
|
|
(define-runtime-path charter-italic-directory-path "assets/charter-italic-directory.rktd")
|