Re: [pollen] A few questions about pollen capabilities

2019-05-10 Thread Matthew Butterick
You can also `(require "a-pollen-file.html.pm")` just like any Racket module. Every Pollen source exports `doc`, which is an S-expression representing the content of the document. > On May 10, 2019, at 8:12 AM, Joel McCracken wrote: > > The thing that worries me the most is the `racket

Re: [pollen] new Quad demo

2019-04-30 Thread Matthew Butterick
> On Apr 27, 2019, at 4:05 PM, dueckofe...@gmail.com wrote: > > From what I understand Quad/Quadwriter at this stage seems sort of analagous > to TeX, which is kind of a low-level typesetting language that lets you plunk > down individual text blocks on a page. (I have never tried learning TeX

[pollen] new Quad demo

2019-04-27 Thread Matthew Butterick
I've restored Quad to a state where it can be installed and demoed. Docs are here [1] and will continue to be expanded. Quad is my Racket software for programmatically generating PDFs from markup, similar to how LaTeX works. It has been slow going because producing reasonable PDFs meant

Re: [pollen] Parallelism?

2019-04-26 Thread Matthew Butterick
After some more fiddling, I think the problem was that the `current-poly-target` was not being communicated to the parallel rendering places, so they were just regenerating HTML when you asked for PDF. I just pushed a fix that addresses this. I don't have LaTeX on my machine right now, but let

Re: [pollen] parallel rendering fixes

2019-06-27 Thread Matthew Butterick
gt; Basu > > On Thu, Jun 27, 2019 at 6:01 PM Matthew Butterick <mailto:m...@mbtype.com>> wrote: > I just use `raco pollen render -p` rather than plain `raco pollen render` in > my Makefile, for the top directory in the project. > > I'd guess this is more efficient tha

Re: [pollen] parallel rendering fixes

2019-06-27 Thread Matthew Butterick
I just use `raco pollen render -p` rather than plain `raco pollen render` in my Makefile, for the top directory in the project. I'd guess this is more efficient than `make -j x` because all the files are inventoried and then doled out to each processor as fast as they can be rendered. But try

[pollen] Re: parallel rendering fixes

2019-06-26 Thread Matthew Butterick
Armed with more knowledge, I have reinstated parallel rendering. `raco pollen setup` is also faster. On Thursday, June 13, 2019 at 8:01:15 PM UTC-7, Matthew Butterick wrote: > > I'm afraid the parallel-processing problem is going to require more > scrutiny about how it can be do

Re: [pollen] Parallelism?

2019-04-22 Thread Matthew Butterick
Separately, I pushed a fix that makes the preheat operation go faster generally, so try that and see if it helps. > On Apr 22, 2019, at 11:26 AM, Joel Dueck wrote: > > My CPU was maxed out during `raco pollen setup` and I could see it churning > through them roughly four at a time, so that

Re: [pollen] Parallelism?

2019-04-23 Thread Matthew Butterick
OK, I've pushed a parallel-rendering routine which you can access by passing the `-p` or `--parallel` flag to any invocation of `raco pollen render`. (I will leave it undocumented for now until it has proven itself). If you just do `raco pollen render -p` instead of `raco pollen render`, as I

Re: [pollen] Parallelism?

2019-04-23 Thread Matthew Butterick
<http://beautifulracket.com/> render: `raco pollen setup` then `raco pollen render` = 285s `raco pollen setup` then `raco pollen render -p` = 190s > On Apr 23, 2019, at 11:10 AM, Matthew Butterick wrote: > > OK, I've pushed a parallel-rendering routine which you can access

Re: [pollen] Unquoted values in HTML tags

2019-04-24 Thread Matthew Butterick
> On Apr 24, 2019, at 11:00 AM, afol...@gmail.com wrote: > How do I pass in multi-character strings that will be "unquoted" in the > resulting HTML output? Do I have to write my own decode function for this? In HTML, how is the meaning of an unquoted attribute value different from that of a

Re: [pollen] Creating a meta from a .rkt file

2019-04-10 Thread Matthew Butterick
> On Apr 10, 2019, at 11:33 AM, Daniel Sockwell wrote: > > I guess what I'm asking, though, is whether it's possible to use > `define-meta` in a non-pollen file (i.e., in a racket file). No, because `define-meta` depends on special cooperation with the `#lang pollen` reader (= the thing

Re: [pollen] Creating a meta from a .rkt file

2019-04-10 Thread Matthew Butterick
Values on the right-hand side of `define-meta` can't be expressions or variables imported from elsewhere. They can only be raw datums. This is a deliberate limitation that goes back early in Pollen history, when folks decided they wanted to be able to extract metas (quickly) without evaluating

Re: [pollen] Re: Infinite loops?

2019-06-28 Thread Matthew Butterick
Should -p take an argument to limit the max number of parallel jobs? > On Jun 28, 2019, at 11:47 AM, Shrutarshi Basu wrote: > > After some more experimentation, it seems like the problem goes away if I > drop the -p flag. So `raco pollen render -s .` works just fine. My hypothesis > is that

[pollen] New `pollen-users` repo for Pollen discussions

2019-08-13 Thread Matthew Butterick
I’ve set up a new repo to use as the successor for this Google Group: https://github.com/mbutterick/pollen-users We'll post the threads in the Issues section and see how that goes. If you have a GitHub account, then you know how it works. If you

Re: [pollen] Google Groups replacement needed

2019-08-13 Thread Matthew Butterick
Though I appreciate the candor of the warning "Here be dragons!", it tends to deter further scrutiny, much like actual dragons. > On 13 Aug 19, at 10:00 AM, Matthew Singletary > wrote: > > It might be worth investigating SourceHut (https://sr.ht / > https://sourcehut.org/

Re: [pollen] Confused about omitted-path

2019-07-23 Thread Matthew Butterick
Pollen source files, including preproc and pagetree files, test #true for `omitted-path?`, because they shouldn't be published.) So now I'm wondering if the behavior you want is permanently in tension with this (long established) default behavior. > On Jul 16, 2019, at 6:09 PM, Matthew Butter

Re: [pollen] Custom pre-processing before pollen does its stuff

2019-07-24 Thread Matthew Butterick
Without deterring any enthusiasm, be aware that this kind of thing (= using ordinary characters like * _ / as formatting delimiters) is trickier to get right than it looks. Usually, formatting codes can be nested recusrively, therefore regular expressions won't work on their own. If you plan on

Re: [pollen] Caching failed when doing setup on a subfolder?

2019-07-07 Thread Matthew Butterick
When I follow your example, the test files end up with literal "\n\n" in them: #lang racket\n\n #lang pollen\n\n◊h1{Hello} Which causes the setup to fail. > On Jul 7, 2019, at 6:05 PM, Joel Dueck wrote: > > Today in prep for the upcoming week I’ve updated to Racket 7.3 and the latest >

Re: [pollen] Caching failed when doing setup on a subfolder?

2019-07-07 Thread Matthew Butterick
I think there are two problems intersecting: 1) v7.3 seems to have changed something in the way data serialization works, which breaks Pollen's disk caches. That's not supposed to happen, but I guess it did. Anyhow try `raco pollen reset`. 2) I was being sloppy in how I handled paths in the

<    1   2