On Thursday, August 1, 2019 at 10:14:09 AM UTC-5, David Storrs wrote: > > > A) Could conditionally include sections depending on environment variables > or command-line switches > B) Could seamlessly generate PDF, MOBI, EPUB, and clean and valid HTML > that either inlines the CSS or links to a specified CSS file as specified > at publication time. (The inline option is important for when publishing > on Amazon.) > C) Handles UTF-8 correctly > > > I’m not going to just come in here and scream “POLLEN!”
But, I think Pollen is ideal for this. It does HTML very well and puts you a lot closer to the HTML/CSS "metal" than Scribble does. Your HTML/CSS output can look and be structured pretty much however you want. The “downside” is that there are no prepackaged templates, you have to be able to do HTML and CSS yourself. But that’s not an issue for you! It doesn’t come with PDF or ebook support “built in”. But the fact that adding it is so conceptually straightforward is kind of why I ended up learning Racket. I’ve published books to both HTML and print-ready PDF from the same set of Pollen source files. MOBI and EPUB are (IIRC) mostly weird subsets of HTML/CSS so supporting them would mainly be a matter of some wrapper code in the corresponding template to package everything correctly. And of course it’s UTF-8 friendly. Scribble is great for Racket docs. But its document model is extremely heavy and opinionated for simple works of prose. And talking of separating content from presentation, Pollen is kind of the ultimate framework for this. You decide what markup you want and don’t want, and you decide exactly what that markup will produce for your different output targets. This can be different for each project. Each of your Pollen projects has its own custom “markup engine” sitting right there alongside the prose sources. If you decide you want one of your tags to produce different output than before, you update your pollen.rkt file and may not even need to touch your prose sources. So your markup can be as light or as heavy as you wish, and as separate from any particular output format as you wish. (This post seeems like it may have been specially designed to trigger me into blurting out the stock Pollen elevator pitch. If so, it worked!) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/f7e805c1-c400-403c-9962-2bef31787e76%40googlegroups.com.