l...@gnu.org (Ludovic Courtès) writes:

> AFAICS ‘stexi->plain-text’ already does paragraph filling, so the call
> above is redundant (and could break the rendering.)
>
> However, the width of the rendered text is fixed, unlike what
> ‘string->recutils’ did so far.  To work around that, we’ll have to
> monkey-patch the ‘wrap*’ procedure of (texinfo plain-text), along these
> lines:
>
>   (define %text-width
>     (make-parameter (or (and=> (getenv "WIDTH") string->number)
>                         80)))
>
>   (set! (@@ (texinfo plain-text) wrap*)
>         (lambda strings
>           ... #:line-width (%text-width) ...))
>
> and then in ‘package->recutils’, we need to ‘parameterize’ that.
>
> We need a similar hack for #:initial-indent, that would allow us to
> mimic the 3rd argument of ‘fill-paragraph’.
>
> Could you try it?

With my limited knowledge, it's not trivial to implement such thing. But
I will try to do something and hopefully learn new things! :)

--
Mathieu Lirzin

Reply via email to