Re: [racket-users] Scribbling hexadecimal values

2020-09-19 Thread Robby Findler
I don't have any good hints but the reader supplies span information that can be used to disambiguate the original versions of some things (notably "#t" vs "#true"). I doubt this is enough for numbers in any general sense but following the path of actually carrying more information from the reader

Re: [racket-users] Scribbling hexadecimal values

2020-09-18 Thread Eric Griffis
Hi Dominik, If you put the hex number in a string, many of the formatting functions in the Scribble manual, section 4.2.1.4 will work: (proc-doc/names name (->* () (integer?) void?) (() ((argument #,(racketvalfont "#x1f" @{ some description })) Eric On Fri, Sep 18, 2020

Re: [racket-users] Scribbling hexadecimal values

2020-09-18 Thread Ben Greenman
+1 For now, I've used hacks like `(string->number "#x...")` for typesetting https://docs.racket-lang.org/pict-abbrevs/index.html On 9/18/20, Dominik Pantůček wrote: > Hello Racketeers, > > I am struggling to make scribble typeset default values in > proc-doc/names in hexadecimal. An example

[racket-users] Scribbling hexadecimal values

2020-09-18 Thread Dominik Pantůček
Hello Racketeers, I am struggling to make scribble typeset default values in proc-doc/names in hexadecimal. An example would be: (proc-doc/names name (->* () (integer?) void?) (() ((argument #x1f))) @{ some description }) ; yes, at-exp reader The same applies to values in nested