[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texinfo in descriptions?
From: |
Mathieu Lirzin |
Subject: |
Re: Texinfo in descriptions? |
Date: |
Tue, 01 Sep 2015 18:41:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden (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
- Re: Texinfo in descriptions?,
Mathieu Lirzin <=
- Re: Texinfo in descriptions?, Mathieu Lirzin, 2015/09/02
- Re: Texinfo in descriptions?, Ludovic Courtès, 2015/09/03
- Re: Texinfo in descriptions?, Mathieu Lirzin, 2015/09/04
- Re: Texinfo in descriptions?, Ludovic Courtès, 2015/09/06
- Re: Texinfo in descriptions?, Alex Kost, 2015/09/06
- Re: Texinfo in descriptions?, Ludovic Courtès, 2015/09/06
- Re: Texinfo in descriptions?, Alex Kost, 2015/09/07
- Re: Texinfo in descriptions?, Ludovic Courtès, 2015/09/07