output-path is cased

main
Matthew Butterick 4 years ago
parent 17abeaf252
commit 7aa542f286

@ -7,7 +7,7 @@
(define (list->attrs . kvs) (define (list->attrs . kvs)
(for/list ([kv (in-slice 2 kvs)]) (for/list ([kv (in-slice 2 kvs)])
kv)) kv))
(define (pica->pts prefix [suffix #false]) (define (pica->pts prefix [suffix #false])
;; both pieces of measurement are either positive or negative ;; both pieces of measurement are either positive or negative
@ -84,17 +84,17 @@
(define (copy-block-attrs source-hash dest-hash) (define (copy-block-attrs source-hash dest-hash)
(define new-hash (make-hasheq)) (define new-hash (make-hasheq))
(for ([(k v) (in-hash dest-hash)]) (for ([(k v) (in-hash dest-hash)])
(hash-set! new-hash k v)) (hash-set! new-hash k v))
(for ([(k v) (in-hash source-hash)] (for ([(k v) (in-hash source-hash)]
#:when (memq k block-attrs)) #:when (memq k block-attrs))
(hash-set! new-hash k v)) (hash-set! new-hash k v))
new-hash) new-hash)
(define-syntax (define-attrs stx) (define-syntax (define-attrs stx)
(syntax-case stx () (syntax-case stx ()
[(_ (ATTR-NAME ...)) [(_ (ATTR-NAME ...))
(with-syntax ([(ATTR-ID ...) (for/list ([attr-id (in-list (syntax->list #'(ATTR-NAME ...)))]) (with-syntax ([(ATTR-ID ...) (for/list ([attr-id (in-list (syntax->list #'(ATTR-NAME ...)))])
(format-id stx ":~a" (syntax-e attr-id)))]) (format-id stx ":~a" (syntax-e attr-id)))])
#'(begin #'(begin
(define ATTR-ID 'ATTR-NAME) ...))] (define ATTR-ID 'ATTR-NAME) ...))]
[(_ ID (ATTR-NAME ...)) [(_ ID (ATTR-NAME ...))
@ -128,6 +128,7 @@ Naming guidelines
font-tracking font-tracking
font-baseline-shift font-baseline-shift
font-case font-case
bg bg
link link
href href
@ -139,6 +140,8 @@ Naming guidelines
page-number page-number
doc-title doc-title
output-path
pdf-title pdf-title
pdf-subject pdf-subject
pdf-author pdf-author
@ -293,7 +296,8 @@ Naming guidelines
:pdf-author :pdf-author
:pdf-keywords :pdf-keywords
:string :string
:footer-text)) #true)) :footer-text
:output-path)) #true))
(define (takes-path? k) (define (takes-path? k)
(and (memq k (list :image-file)) #true)) (and (memq k (list :image-file)) #true))

Loading…
Cancel
Save