~sforman/Pagemage

c7a9002103b0d2b26b0b789d6fe803691507cb90 — Simon Forman 2 years ago e62d5c3
Misc. blah blah
1 files changed, 11 insertions(+), 6 deletions(-)

M README.md
M README.md => README.md +11 -6
@@ 53,11 53,7 @@ List styles:

    pygmentize -L styles | less

Misc CLI snippets:

    gprolog --consult-file pagemage.pl --consult-file highlight.pl --query-goal do

    clear ; make && ./pagemage
-------
 
One of the interesting things about this code is that it's not much
larger than the grammar of Gemini plus the HTML template.  It approaches


@@ 67,4 63,13 @@ other words it's not so compressed that the meaning is obscured.)
Both HTML escaping and syntax highlighting are Prolog-shaped problems, so
in theory the condition holds even if I were to implement that
functionality in Prolog.  (It would be fun, but in this case I went with
off-the-shelf solutions to get to the desired end result faster.)
off-the-shelf solutions to get to the desired end result faster.  It's
slow to shell out so many times, but I rarely need to rebuild anyway, so
it's not a big deal, even with Python's relatively long start-up time.
(I have to admit it's been getting faster.) HTML escaping is simple
enough that rewriting it in Prolog might be well worth the effort in
terms of time saved waiting for builds.  The obvious question arises,
someone else has had this problem?  There must be HTML escapin' code out
there already?  In fact, where is the GNU Prolog std lib?  Does such a
thing exist?)