Re: [racket] Images in Scribble?

2011-07-01 Thread Matthew Flatt
At Fri, 1 Jul 2011 17:59:04 -0500, Don Blaheta wrote: > I was just Scribble-ing and needed a (small) image, so I thought, hey > this is DrRacket, I'll just paste it in. DrRacket can handle it, and > the WXME format is readable by scribble, but I do get this message: > > regexp-match: non-characte

Re: [racket] Print Cookie Path issue

2011-07-01 Thread Eli Barzilay
6 hours ago, Neil Van Dyke wrote: > J G Cho wrote at 07/01/2011 03:27 PM: > > Looking at net/cookie-unit.rkt, it's not obvious to me why "" are being > > printed. > > > > Looks like "cookie-path", for one, can add the quotes (indirectly; > ultimately in "convert-to-quoted"). > > Offhand, I co

Re: [racket] Images in Scribble?

2011-07-01 Thread Prabhakar Ragde
Sam Tobin-Hochstadt wrote: You can see examples of using images in scribble examples in the documentation for the `2htdp/image' teachpack: https://github.com/plt/racket/blob/master/collects/teachpack/2htdp/scribblings/image.scrbl and the results: http://docs.racket-lang.org/teachpack/2htdpi

Re: [racket] Images in Scribble?

2011-07-01 Thread Sam Tobin-Hochstadt
On Fri, Jul 1, 2011 at 8:16 PM, Don Blaheta wrote: > > Quoth Matthias Felleisen: >> You can use the image library to write images into the scribble output. You can see examples of using images in scribble examples in the documentation for the `2htdp/image' teachpack: https://github.com/plt/rac

Re: [racket] Images in Scribble?

2011-07-01 Thread Don Blaheta
Huh. I was coming back to reply to my own post and say, "oh duh, of course you can't do that", and I found Matthias's response: Quoth Matthias Felleisen: > You can use the image library to write images into the scribble output. And now I'm intrigued. My "oh duh" was remembering that the output

Re: [racket] Print Cookie Path issue

2011-07-01 Thread J G Cho
> Looks like "cookie-path", for one, can add the quotes (indirectly; > ultimately in "convert-to-quoted"). I read that part after sending this email inquiry. It does seem to have some rules RFC rules about quoting string. ;; value: token | quoted-string (define (rfc2109:value? s) (or (rfc2068:

Re: [racket] Images in Scribble?

2011-07-01 Thread Matthias Felleisen
You can use the image library to write images into the scribble output. On Jul 1, 2011, at 6:59 PM, Don Blaheta wrote: > I was just Scribble-ing and needed a (small) image, so I thought, hey > this is DrRacket, I'll just paste it in. DrRacket can handle it, and > the WXME format is readable b

[racket] Images in Scribble?

2011-07-01 Thread Don Blaheta
I was just Scribble-ing and needed a (small) image, so I thought, hey this is DrRacket, I'll just paste it in. DrRacket can handle it, and the WXME format is readable by scribble, but I do get this message: regexp-match: non-character in an unsupported context, from port: # which seems like mor

Re: [racket] Print Cookie Path issue

2011-07-01 Thread Neil Van Dyke
J G Cho wrote at 07/01/2011 03:27 PM: Looking at net/cookie-unit.rkt, it's not obvious to me why "" are being printed. Looks like "cookie-path", for one, can add the quotes (indirectly; ultimately in "convert-to-quoted"). Offhand, I could not tell you with certainty what the correct behav

[racket] Print Cookie Path issue

2011-07-01 Thread J G Cho
(map (λ (item) (display (header-field item)) (display " ") (display (header-value item)) (newline) item) (list (cookie->header (make-cookie "id" "joseph" #:max-age 500 #:path "/" outputs: Set-Cookie id=joseph; Max-Age=500; Path="/"; Version=1 I thin

Re: [racket] [slideshow/code] typesetting comments

2011-07-01 Thread Eli Barzilay
8 minutes ago, Danny Yoo wrote: > On Fri, Jul 1, 2011 at 9:13 AM, Eric Tanter wrote: > > I tried: > > > > #lang slideshow > > > > @slide[ > >  @t{Blah blah}] > > Try: > > ;;; > #lang at-exp slideshow > @slide[@t{Blah blah}] > ;;; >

Re: [racket] [slideshow/code] typesetting comments

2011-07-01 Thread Robby Findler
I think you want to read the scribble documentation for the scribble reader (which is where the @s come from: they are another notation for sexps; @slide[stuff] is the same as (slide stuff), for example). Robby On Fri, Jul 1, 2011 at 9:13 PM, Eric Tanter wrote: > I tried: > > #lang slideshow > >

Re: [racket] [slideshow/code] typesetting comments

2011-07-01 Thread Danny Yoo
On Fri, Jul 1, 2011 at 9:13 AM, Eric Tanter wrote: > I tried: > > #lang slideshow > > @slide[ >  @t{Blah blah}] Try: ;;; #lang at-exp slideshow @slide[@t{Blah blah}] ;;; The "@" feature is enabled by the use of the 'at-exp' in the

Re: [racket] [slideshow/code] typesetting comments

2011-07-01 Thread Eric Tanter
I tried: #lang slideshow @slide[ @t{Blah blah}] but that gives me: compile: unbound identifier in module in: @slide Can you point me to the documentation for this syntax? (@slide does not give any result in the Help desk search) Thanks, -- Éric On Jul 1, 2011, at 1:51 AM, Eli Barzilay wro

Re: [racket] erasing a line?

2011-07-01 Thread Matthew Flatt
At Thu, 30 Jun 2011 21:55:38 -0500, John Riedl wrote: > In any case, this is a usability fail. The two ways of making bitmaps > should have the same defaults, even if their designers disagree on > which is preferred :). To whom do I mention that? Just to augment Robby's response, the two ways ex