Re: [racket-users] SVG as pict

2016-09-03 Thread Asumu Takikawa
On 2016-09-03 20:53:59 +0200, Jens Axel Søgaard wrote: > I took a quick look at the code of rsvg. It seems svg-bytes->pict does what > you want? Asumu: can you confirm this I think it should let you scale picts and have no pixelation. Like this: #lang racket (require pict rsvg) (define

Re: [racket-users] DrRacket says #%module-begin not a module

2016-09-03 Thread 'John Clements' via Racket Users
> On Sep 3, 2016, at 6:07 PM, David Storrs wrote: > > > > On Sat, Sep 3, 2016 at 6:03 PM, John Clements > wrote: > > > On Sep 3, 2016, at 5:54 PM, David Storrs wrote: > > > > The best would probably be if DrRacket's out-of-the-box language setting > > was something like "Use whatever is s

Re: [racket-users] DrRacket says #%module-begin not a module

2016-09-03 Thread David Storrs
On Sat, Sep 3, 2016 at 6:03 PM, John Clements wrote: > > > On Sep 3, 2016, at 5:54 PM, David Storrs wrote: > > > > The best would probably be if DrRacket's out-of-the-box language setting > was something like "Use whatever is specified in the file; if nothing is > specified then default to ” > >

Re: [racket-users] DrRacket says #%module-begin not a module

2016-09-03 Thread 'John Clements' via Racket Users
> On Sep 3, 2016, at 5:54 PM, David Storrs wrote: > > Hi John, > > > On Sat, Sep 3, 2016 at 5:25 PM, John Clements > wrote: > > > On Sep 3, 2016, at 4:43 PM, David Storrs wrote: > > > > I typically use Emacs, but I thought I would experiment with DrRacket a > > bit. I'm on OSX 10.11 usin

[racket-users] Re: DrRacket says #%module-begin not a module

2016-09-03 Thread Dupéron Georges
Le dimanche 4 septembre 2016 01:44:01 UTC+2, David K. Storrs a écrit : > Welcome to DrRacket, version 6.6 [3m]. > Language: R5RS [custom]; memory limit: 128 MB. It seems that DrRacket is configured to use the R5RS language. Using the bottom-left menu (or Ctrl+L), select "The Racket language Use #

Re: [racket-users] DrRacket says #%module-begin not a module

2016-09-03 Thread 'John Clements' via Racket Users
> On Sep 3, 2016, at 4:43 PM, David Storrs wrote: > > I typically use Emacs, but I thought I would experiment with DrRacket a bit. > I'm on OSX 10.11 using DrRacket v6.6, freshly installed an hour ago. I > started it up, File>New, typed this: > > > #lang racket > (displayln "hello world")

[racket-users] DrRacket says #%module-begin not a module

2016-09-03 Thread David Storrs
I typically use Emacs, but I thought I would experiment with DrRacket a bit. I'm on OSX 10.11 using DrRacket v6.6, freshly installed an hour ago. I started it up, File>New, typed this: #lang racket (displayln "hello world") and hit the Run button at top right. I get the following message at b

Re: [racket-users] Spreadsheet widget?

2016-09-03 Thread David Storrs
Spiffy, thanks. Also, what license is your spreadsheet under? I'm building a for-commerce app and I don't want to step on your toes if you'd rather it not be used that way. Dave On Sat, Sep 3, 2016 at 10:03 AM, Dmitry Pavlov wrote: > David, > >invalid symbol: 'hide-hscroll >>given: '(

Re: [racket-users] SVG as pict

2016-09-03 Thread Jens Axel Søgaard
I took a quick look at the code of rsvg. It seems svg-bytes->pict does what you want? Asumu: can you confirm this > Den 3. sep. 2016 kl. 09.36 skrev Byron Davies : > > svg images have a second-class status in Racket. If you want to use an svg > image in a drawing, it seems that you have to us

Re: [racket-users] Re: Whalesong instead of Clojurescript

2016-09-03 Thread Shriram Krishnamurthi
There has indeed not been a lot of activity, but that doesn't mean it isn't functional. I've heard now and then of people using it. It's at least worth a try — a few minutes will let you know if it's suitable for your needs. -- You received this message because you are subscribed to the Google Gr

Re: [racket-users] SVG as pict

2016-09-03 Thread Robby Findler
Are you talking about dc<%> or something below that? If you are at the dc<%> level then you can interoperate with the rest of racket/gui library and things built on it more easily. Like picts. Robby On Saturday, September 3, 2016, Byron Davies wrote: > Are you suggesting translating the SVG rep

Re: [racket-users] Spreadsheet widget?

2016-09-03 Thread Dmitry Pavlov
David, invalid symbol: 'hide-hscroll given: '(hide-hscroll) This is relatively new in Racket GUI. (Matthew added this option at my request not long ago). If you can update your Racket installation to the latest version, it is probably the easiest way to get past this error. Best regard

Re: [racket-users] Spreadsheet widget?

2016-09-03 Thread David K. Storrs
Hi Dmitry, Thank you for this, and pardon my long ping time. I had a little trouble with running it; the output I get is: $ raco pkg install spreadsheet-editor https://github.com/kugelblitz/spreadsheet-editor/blob/master/spreadsheet-editor-demo.rkt $ cd spreadsheet-editor $ racket spreadsheet

Re: [racket-users] SVG as pict

2016-09-03 Thread Byron Davies
Are you suggesting translating the SVG representation to pict drawing commands? I was thinking, instead, of handing the SVG information off to the platform drawing libraries, which I didn’t see as requiring XML parsing. Or is there another option? > On Sep 3, 2016, at 5:34 AM, Robby Findler w

[racket-users] Re: Whalesong instead of Clojurescript

2016-09-03 Thread tbrooke
On Friday, September 2, 2016 at 1:46:29 PM UTC-4, Shriram Krishnamurthi wrote: > On Thursday, August 25, 2016 at 9:53:40 AM UTC-4, tbrooke wrote: > > I briefly looked at Whalesong and I was wondering if anyone is using it and > > if it is mature and ready to use. I use Clojurescript and it seems t

Re: [racket-users] Can't display accented characters at the Windows console

2016-09-03 Thread Cleverson Casarin Uliana
Hello, just as an update: When I run an rkt text file through racket.exe, the problem is solved. Running code interactively inside the racket console still doesn't work, but in any case, running rkt files is fair enough for me. The code that works for me is: (current-output-port (reencode-outp

Re: [racket-users] SVG as pict

2016-09-03 Thread Robby Findler
I think that would be fantastic. The drawing models are compatible, iiuc, so I think the main part is dealing with parsing the svg file. Robby On Sat, Sep 3, 2016 at 2:36 AM, Byron Davies wrote: > svg images have a second-class status in Racket. If you want to use an svg > image in a drawing,

[racket-users] SVG as pict

2016-09-03 Thread Byron Davies
svg images have a second-class status in Racket. If you want to use an svg image in a drawing, it seems that you have to use the RSVG package to load it from a file, which then renders it to a bitmap, subject to pixelation if scaled. How hard would it be to create an svg-pict primitive that yo