jerryj
2017-4-7 15:35:19

@cky I found your s/o question about ffi/libusb. did you ever make progress? i’m trying to learn all the ffi stuff now and its overwhelming


jerryj
2017-4-7 15:39:30

overwhelming was the wrong word choice, sorry. the ffi library and documentation are fantastic from what i understand of them, i just haven’t put in the effort to understand it all properly. i am feeling a little overwhelmed with trying to figure it all out :grin:


danl-ndi
2017-4-7 17:55:39

how do I do a simple hyperlink in scribble?


lexi.lambda
2017-4-7 17:58:18

@danl-ndi: hyperlink


danl-ndi
2017-4-7 17:59:28

I can’t figure hyperlink out O_o


danl-ndi
2017-4-7 17:59:44

@url{asdf} works, but I want different text in the doc


danl-ndi
2017-4-7 18:00:28

@hyperlink{"http://…"} is not it


ben
2017-4-7 18:01:13

@hyperlink["http://..."]{text here}


danl-ndi
2017-4-7 18:01:57

urg I’m so sure I tried exactly that.


danl-ndi
2017-4-7 18:02:03

yes, that’s it, thanks.


ben
2017-4-7 18:03:02

yeah @ expressions are fun … maybe I should have said @hyperlink["http://...." "text here"]


danl-ndi
2017-4-7 18:03:20

so those are the same?


ben
2017-4-7 18:03:26

yes


ben
2017-4-7 18:03:39

also @(hyperlink "http://..." "text here")


danl-ndi
2017-4-7 18:04:34

in the docs, “pre-content” is an opaque term to see when parachuting in to that section.


danl-ndi
2017-4-7 18:04:50

ah, i see



danl-ndi
2017-4-7 18:06:43

that section is confusing….


danl-ndi
2017-4-7 18:07:21

it seems to be saying that @asdf[a b c] is the same as (asdf a b c)? but you need an ’@’ for the 2nd expression too…..


danl-ndi
2017-4-7 18:07:51

I think I go in to scribble docs with the same mindset as markdown or restructured text, but it’s really a steeper learning curve


ben
2017-4-7 18:07:53

oh I think those examples are from different #langs


ben
2017-4-7 18:08:35

yeah definitely steeper learning curve. I feel like I learned just from examples / trying things, and the docs only make sense in retrospect


stamourv
2017-4-7 18:09:00

@ben: That’s been my experience as well, and of most people I’ve seen learn scribble.


danl-ndi
2017-4-7 18:09:42

yeah, it’s very powerful and cool, but it’s not simply a markup language…


lexi.lambda
2017-4-7 18:09:46

I find scribble makes a lot of sense if you have used LaTeX before


lexi.lambda
2017-4-7 18:09:53

(and Racket, of course)


danl-ndi
2017-4-7 18:10:01

yes, it’s more on the level of LaTex


lexi.lambda
2017-4-7 18:10:41

tbh I found scribble much, much easier to understand than LaTeX because it’s a far more predictable/consistent model


danl-ndi
2017-4-7 18:11:11

once you’ve mastered #lang, that is :stuck_out_tongue:


lexi.lambda
2017-4-7 18:11:47

I think scribble can be relatively easily understood as two modes—expression mode and text mode—and a set of translation rules


lexi.lambda
2017-4-7 18:12:05

in #lang scribble/manual, the top level is in text mode


lexi.lambda
2017-4-7 18:12:30

using @ in text mode transitions into expression mode, and @foo{...} transitions back into text mode


lexi.lambda
2017-4-7 18:12:56

everything inside @foo[...] or @(...) is in expression mode


lexi.lambda
2017-4-7 18:13:17

the @ syntax is still permitted in expression mode, but it isn’t required, and all Racket syntax is permitted


ben
2017-4-7 18:14:46

stamourv: thinking more, I guess I had the same experience with LaTeX


danl-ndi
2017-4-7 18:15:47

hmm… I appreciate that description, but it kind of lost me a little. What I struggle with here (and in other areas of Racket docs, like syntax-parse) is that I’d learn it so much more quickly with a series of basic to intermediate examples.


stamourv
2017-4-7 18:16:51

Yeah, LaTeX is similar, but much much worse.


lexi.lambda
2017-4-7 18:17:00

I agree that both scribble and syntax/parse could use more examples


stamourv
2017-4-7 18:17:16

Maybe it’s a guide vs reference thing?


danl-ndi
2017-4-7 18:17:42

they’re both missing what LaTeX does have, which is scores of frustrated users who work it out and write tutorials and examples to teach themselves


stamourv
2017-4-7 18:18:07

Good point.


danl-ndi
2017-4-7 18:18:15

(adding to my todo list)


danl-ndi
2017-4-7 18:18:55

racket needs more frustrated users :smile:


stamourv
2017-4-7 18:19:05

:)


ben
2017-4-7 18:19:07

oh about syntax/parse, I’ve been wanting to put a “syntax/parse recipes” post on the racket blog


ben
2017-4-7 18:19:13

and encourage contributions from everyone


andreiformiga
2017-4-7 18:20:27

wouldn’t a wiki be a better fit?


danl-ndi
2017-4-7 18:20:40

the syntax-parse docs have the bones of a great set of examples


ben
2017-4-7 18:22:43

andreiformiga: good point (maybe just announce it via the blog)


andreiformiga
2017-4-7 18:23:06

sure


andreiformiga
2017-4-7 18:23:20

maybe a gh wiki, considering everyone has a github account nowadays


danl-ndi
2017-4-7 18:32:21

ben: implementing for, cond, and/or struct end-to-end would be great examples


ben
2017-4-7 18:33:02

yeah, on racket/racket


notjack
2017-4-7 23:38:40

If it’s gonna be in a wiki or other more-permanent-than-blog-post kind of thing, I’d rather it be an actual Scribble document included in the docs and linked from the docs for syntax-parse


greg
2017-4-8 03:09:18

dear lazy slack how can I prevent conversion of -- to an ndash in Scribble — and do so inline? I tried @tt{--foo}, @tt\|{--foo}\| but no joy. @verbatim\|{--foo}\| works but forces a block.


greg
2017-4-8 03:09:58

is converting Frog’s huge README into proper Scribble docs, to avoid the upcoming red badge of shame on pkgs w/o docs :slightly_smiling_face:


lexi.lambda
2017-4-8 03:40:50

@greg: I think you want literal


greg
2017-4-8 04:31:34

@lexi.lambda thanks!