
Happy New Year! :slightly_smiling_face: - I know it’s the 7th but I just returned from holidays.

Does anybody have any experience in converting scribble to odt?

I am trying pandoc to do scribble -> html -> odt but the output is ridiculously bad.

scribble -> latex -> odt doesn’t seem to work as pandoc complains about malformed latex although latex is happy with it.

@pocmatos ISTR someone on twitter saying scribble -> (latex or pdf?) -> doc (using pandoc) worked okay, so maybe taking a -> odt on the end there will work for you?

@florence will try but I am not keeping my hopes high. Pandoc to odt was pretty poor. Lost scheme block highlighting and indentation, footnotes and margin notes.

Better until now was tex4ht oolatex from scribble latex to odt. In any case, will try word as soon as I am back on the PC. Thanks.

while we are at scribble does anyone know if when using #lang scribble/lp2
you can get the content of the expanded chunk
(e.g. for printing or saving to file)?

@mflatt I’m now testing things on Windows. Even with stock 7.1, I’m seeing a boatload of logger warnings doing things with UDP: error for long-term poll set: unsupported; rktio_err=1
This comes from scheme_rktio_fd_to_semaphore
in thread.c
getting a NULL
value from rktio_ltps_add
in rktio_ltps.c
. The very start of which is: rktio_ltps_handle_t *rktio_ltps_add(rktio_t *rktio, rktio_ltps_t *lt, rktio_fd_t *rfd, int mode)
{
#ifdef RKTIO_SYSTEM_WINDOWS
set_racket_error(RKTIO_ERROR_UNSUPPORTED);
return NULL;
And yet, things seem to work anyway, albeit maybe somewhat more slowly due to the deluge of log-warning
s.

I’ll look into this more in the next couple of days, but probably the solution is to not log a warning on RKTIO_ERROR_UNSUPPORTED
.

Although I don’t really comprehend the code, that’s what I was wondering.

(I’ve been running lots of things with specific defined loggers of my own, cranked up. But hadn’t run with the default logger level set >= ’warning, in quite awhile. I added a log-warning to my own code, not sure if I was going to go on and define a logger for it, and that’s when I noticed.)

Shortest way to go from ’(a b c d) to ’((a b) (b c) (c d)) ?

What about (define (f xs) (for/list ([x xs] [y (rest xs)]) (list x y)))
? Note that it will error when the input is an empty list.

Much better than what I had.

If we had an in-pair: (for/list ([p (in-pairs xs)]) (take p 2))

You can do (and xs (or (list) (list _)))
, I think.

You can also use the #:when
clause if the above pattern looks too ugly