From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: Texinfo in descriptions? Date: Tue, 01 Sep 2015 18:41:16 +0200 Message-ID: <87613udrdf.fsf@openmailbox.org> References: <87wpy0nygt.fsf@gmail.com> <87y4ige2ux.fsf@openmailbox.org> <87wpy0t83c.fsf@gnu.org> <87r3o7pz3h.fsf@openmailbox.org> <87y4ietrdz.fsf_-_@gnu.org> <874mkx8a5o.fsf@openmailbox.org> <87wpxs9ux0.fsf@gnu.org> <87h9ov51j9.fsf@gnu.org> <87a8tcfnox.fsf@openmailbox.org> <87a8tbf5lu.fsf@openmailbox.org> <87613wlmgv.fsf@gnu.org> <87zj18ik3d.fsf@openmailbox.org> <87egij2lyi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWocm-0005Lr-9T for guix-devel@gnu.org; Tue, 01 Sep 2015 12:41:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWoci-00048Z-Pf for guix-devel@gnu.org; Tue, 01 Sep 2015 12:41:32 -0400 In-Reply-To: <87egij2lyi.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 31 Aug 2015 23:21:25 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, Alex Kost ludo@gnu.org (Ludovic Court=C3=A8s) writes: > AFAICS =E2=80=98stexi->plain-text=E2=80=99 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 > =E2=80=98string->recutils=E2=80=99 did so far. To work around that, we= =E2=80=99ll have to > monkey-patch the =E2=80=98wrap*=E2=80=99 procedure of (texinfo plain-text= ), along these > lines: > > (define %text-width > (make-parameter (or (and=3D> (getenv "WIDTH") string->number) > 80))) > > (set! (@@ (texinfo plain-text) wrap*) > (lambda strings > ... #:line-width (%text-width) ...)) > > and then in =E2=80=98package->recutils=E2=80=99, we need to =E2=80=98para= meterize=E2=80=99 that. > > We need a similar hack for #:initial-indent, that would allow us to > mimic the 3rd argument of =E2=80=98fill-paragraph=E2=80=99. > > 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