From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Texinfo in descriptions? Date: Sun, 30 Aug 2015 13:10:07 +0300 Message-ID: <87a8t99jeo.fsf@gmail.com> 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> 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]:57461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVzYv-00073t-1O for guix-devel@gnu.org; Sun, 30 Aug 2015 06:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVzYr-00036Y-S6 for guix-devel@gnu.org; Sun, 30 Aug 2015 06:10:08 -0400 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:35077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVzYr-00035I-KV for guix-devel@gnu.org; Sun, 30 Aug 2015 06:10:05 -0400 Received: by lanb10 with SMTP id b10so20386011lan.2 for ; Sun, 30 Aug 2015 03:10:04 -0700 (PDT) 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: Mathieu Lirzin Cc: guix-devel@gnu.org Mathieu Lirzin (2015-08-28 00:04 +0300) wrote: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> With Benno being OK, we should start looking at implementing the change. >> The various parts that I can think of are: >> >> =E2=80=A2 Having a =E2=80=98package-description-string=E2=80=99 proced= ure that would return >> the description rendered as a string, using the (stexi) modules. >> >> =E2=80=A2 =E2=80=98--search=E2=80=99 could use the raw description (in= cluding markup). >> However, =E2=80=98package->recutils=E2=80=99 must use =E2=80=98packa= ge-description-string=E2=80=99 >> or similar. > > Here is a first attempt. It doesn't feel right to me but fornow I don't > know what to do without duplicating code or reorganizing the world. The > problem is that translations are handle in (guix ui) so we need to > regenerate texi->plain-text. I don't understand what you mean by 'regenerate texi->plain-text'. > - (define (description->recutils str) > - (let ((str (P_ str))) > + (define (description->recutils str) > + (let ((str (texi->plain-text (P_ str)))) IIUC there is no need to use 'texi->plain-text' here. Instead you can replace 'package-description' with 'package-description-string' in the body of 'package->recutils'. Or did I miss anything? Also I think the same replacement should be done in (guix scripts lint) and (guix scripts package). The rest looks absolutely fine for me. --=20 Alex