Re: [racket-users] Is it possible with Scrible's @hyperlink, to open the linked document in a new webpage?

2017-06-21 Thread Ben Greenman
#lang scribble/manual @require[ (only-in scribble/core style) (only-in scribble/html-properties attributes)] @(define new-window-style (style #f (list (attributes '((target . "_blank")) @hyperlink[#:style new-window-style "https://www.racket-lang.org"]{Racket} On Tue, Jun 20, 2017

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Jon Zeppieri
And I should heed my own advice about testing. On Wed, Jun 21, 2017 at 8:40 PM, Jon Zeppieri wrote: > > #lang at-exp racket > > (define (normalize-keywords in) > (regexp-replace* >@pregexp|{Keywords ?= ?\{\s*([^}]*)\}}| >in >(λ (_ s) You may have noticed that

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Jon Zeppieri
On Wed, Jun 21, 2017 at 8:40 PM, Jon Zeppieri wrote: > > #lang at-exp racket > > ;; normalize-keywords: string? -> string? > #lang at-exp racket > Sorry, I made some bad edits here. Should have been: #lang at-exp racket ;; normalize-keywords: string? -> string? (define

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Jon Zeppieri
Hi Glenn, This is pretty good! I added some remarks below: On Wed, Jun 21, 2017 at 3:48 PM, Glenn Hoetker wrote: > > ;;; > #lang racket > > (define in (open-input-file "/Users/me/BibDeskPapers/oldBib.bib")) > (define

[racket-users] Controlling the installation-specific "Racket Documentation" page

2017-06-21 Thread Philip McGrath
Hi everyone, I'm looking for information on how to customize the top-level "Racket Documentation" page generated by Scribble for a particular Racket installation. Specifically, I am working with a group that has now accumulated a few internal Racket packages with documentation, as well as some

Re: [racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Deren Dohoda
Hi Glenn, Because of the submodule system it's not necessarily a good idea to put running code in the file directly. If you want something to run when the file is the main file (e.g. run in drracket) you can use (module* main #f ...). This way (module+ test ...) doesn't execute these things, and

[racket-users] Code critique (of naive code) would be very appreciated

2017-06-21 Thread Glenn Hoetker
With help from this group, I've written my first baby-program in Racket and would really appreciate any feedback on how to make it more idiomatic, efficient and well-formatted (I struggle with where to break lines). Thank you in advance. The purpose is to fix the irregular capitalization of