add overflow error handling
parent
ee85254a77
commit
9ab47b1c65
@ -0,0 +1,9 @@
|
||||
#lang racket/base
|
||||
(provide (all-defined-out))
|
||||
|
||||
(struct exn:quad-overflow exn:fail ())
|
||||
(define (raise-overflow-error)
|
||||
(raise
|
||||
(exn:quad-overflow
|
||||
"overflow error: No breakpoint available. Increase line width"
|
||||
(current-continuation-marks))))
|
@ -1,28 +0,0 @@
|
||||
#lang quad/text #:fit 300 150
|
||||
Produces a list of three-element lists, where each three-element list represents a set of consecutive code points for which the Unicode standard specifies character properties. Each three-element list contains two integers and a boolean; the first integer is a starting code-point value (inclusive), the second integer is an ending code-point value (inclusive), and the boolean is #t when all characters in the code-point range have identical results for all of the character predicates above. The three-element lists are ordered in the overall result list such that later lists represent larger code-point values, and all three-element lists are separated from every other by at least one code-point value that is not specified by Unicode.
|
||||
|
||||
@quad[(make-attrs #:size 7)]{One morning, when Gregor Samsa woke from troubled dreams, he found
|
||||
himself transformed in his bed into a horrible vermin. He lay on
|
||||
his armour-like back, and if he lifted his head a little he could
|
||||
see his brown belly, slightly domed and divided by arches into stiff
|
||||
sections. The bedding was hardly able to cover it and seemed ready
|
||||
to slide off any moment. His many legs, pitifully thin compared
|
||||
with the size of the rest of him, waved about helplessly as he
|
||||
looked.}
|
||||
|
||||
"What's happened to me?" he thought. It wasn't a dream. His room,
|
||||
a proper human room although a little too small, lay peacefully
|
||||
between its four familiar walls. A collection of textile samples
|
||||
lay spread out on the table - Samsa was a travelling salesman - and
|
||||
above it there hung a picture that he had recently cut out of an
|
||||
illustrated magazine and housed in a nice, gilded frame. It showed
|
||||
a lady fitted out with a fur hat and fur boa who sat upright,
|
||||
raising a heavy fur muff that covered the whole of her lower arm
|
||||
towards the viewer.
|
||||
|
||||
Gregor then turned to look out the window at the dull weather.
|
||||
Drops of rain could be heard hitting the pane, which made him feel
|
||||
quite sad. "How about if I sleep a little bit longer and forget all
|
||||
this nonsense", he thought, but that was something he was unable to
|
||||
do because he was used to sleeping on his right, and in his present
|
||||
state couldn't get into that position. However hard he threw
|
@ -1,3 +1,2 @@
|
||||
#lang quad/text
|
||||
|
||||
Meg is an ally. @;{@(line-break) Meg is an ally.}
|
||||
#lang quad/text test 300
|
||||
Produces a list of three-element lists, where each three-element list represents a set of consecutive code points for which the Unicode standard specifies character properties. Each three-element list contains two integers and a boolean; the first integer is a starting code-point value (inclusive), the second integer is an ending code-point value (inclusive), and the boolean is #t when all characters in the code-point range have identical results for all of the character predicates above. The three-element lists are ordered in the overall result list such that later lists represent larger code-point values, and all three-element lists are separated from every other by at least one code-point value that is not specified by Unicode.
|
Loading…
Reference in New Issue