Re: [racket-users] Re: Pretty display of tabular data?

2019-03-13 Thread Alex Harsanyi
On Thursday, March 14, 2019 at 9:06:12 AM UTC+8, Matt Jadud wrote: > > First, thank you for all the great pointers in this thread. It is clear > that different renderings will be useful in different contexts, and there's > good libraries to leverage in the community. That's what I was hoping. >

Re: [racket-users] Re: Pretty display of tabular data?

2019-03-13 Thread Matt Jadud
First, thank you for all the great pointers in this thread. It is clear that different renderings will be useful in different contexts, and there's good libraries to leverage in the community. That's what I was hoping. https://bitbucket.org/jadudm/tbl/ (I'll add Github as a second push

Re: [racket-users] Writing scribble?

2019-03-13 Thread Matt Jadud
I was going to say... is ESC-B some kind of shortcut from one of those "text editors" I hear people talk about? ;) (I should have remembered that DrR has bindings for many Emacs shortcuts...) Also, thanks for the reminder about the prefs/bindings; this is essentially the first time I've spent

Re: [racket-users] Writing scribble?

2019-03-13 Thread Robby Findler
It is control-left and control-right to go by words in DrRacket. If you go to Edit|Keybindings|Show Active Keybindings and type "word" you'll see those and the ones Matthias mentioned and some other word-related keystrokes. Robby On Wed, Mar 13, 2019 at 1:24 PM Matt Jadud wrote: > > Hi all, > >

[racket-users] Re: Pretty display of tabular data?

2019-03-13 Thread Alex Harsanyi
You can use the table pict constructor to construct tables, https://docs.racket-lang.org/pict/Pict_Combiners.html?q=table#%28def._%28%28lib._pict%2Fmain..rkt%29._table%29%29 Here is an example: #lang racket (require racket/draw pict) (define (make-pretty-table items) (define

[racket-users] Re: Pretty display of tabular data?

2019-03-13 Thread jackhfirth
I've wanted this too, and got the sense that working with `snip%` instead of `gen:custom-write` was 1) the way to go and 2) very difficult. Are you planning on using this in some open source code you have right now in a github repo or something similar? I'd like to bookmark it. On Wednesday,

Re: [racket-users] Writing scribble?

2019-03-13 Thread Matthias Felleisen
esc-b, esc-f > On Mar 13, 2019, at 2:24 PM, Matt Jadud wrote: > > Hi all, > > I assume people use DrRacket to write Scribblings. > > I'll be writing text, and want to move back one word. On the Mac, most of the > time I can hit Option-LeftArrow, and I go back one word. > > I DrRacket,

Re: [racket-users] Pretty display of tabular data?

2019-03-13 Thread Jay McCarthy
I started with the good text-table library, but found I wanted more and more other drawing tools and ended up making something pict-like for the terminal. On Wed, Mar 13, 2019 at 2:26 PM Jay McCarthy wrote: > > 90% of the reason I made `raart` is because of this. > >

Re: [racket-users] Pretty display of tabular data?

2019-03-13 Thread Laurent
Not sure how much this would help you, but there's a `text-table`package. It's fairly simple though. Docs: https://docs.racket-lang.org/text-table/index.html On Wed, Mar 13, 2019 at 6:19 PM Matt Jadud wrote: > Hi all, > > I have a tabular data type that I'd like (I think) to be able to render

Re: [racket-users] Pretty display of tabular data?

2019-03-13 Thread Jay McCarthy
90% of the reason I made `raart` is because of this. https://docs.racket-lang.org/raart/index.html#%28def._%28%28lib._raart%2Fdraw..rkt%29._table%29%29 (require raart (draw-here (table (text-rows THE-TABULAR-DATA))) Jay On Wed, Mar 13, 2019 at 2:19 PM Matt Jadud wrote: > > Hi all, > > I have

[racket-users] Writing scribble?

2019-03-13 Thread Matt Jadud
Hi all, I assume people use DrRacket to write Scribblings. I'll be writing text, and want to move back one word. On the Mac, most of the time I can hit Option-LeftArrow, and I go back one word. I DrRacket, this takes me back an expression, which in Scribble is a whole paragraph. Are there

[racket-users] Pretty display of tabular data?

2019-03-13 Thread Matt Jadud
Hi all, I have a tabular data type that I'd like (I think) to be able to render it either in ASCII or in a prettier way in the Interactions pane. I've explored gen:write and friends, and can get the struct to display the way I want---with ASCII. Essentially easy-peasy. What I wonder is: am I

[racket-users] Re: Season of docs participation

2019-03-13 Thread Jérôme Martin
It looks great, but I have a hard time understanding the gist of it. The rules are written in fine prints like the Terms of Service of an insurance company. What benefits does Google actually brings in that event? Couldn't we just make a campaign on our networks to ask students in summer