guix-devel
[Top][All Lists]
Advanced

[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: Thu, 27 Aug 2015 23:04:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> With Benno being OK, we should start looking at implementing the change.
> The various parts that I can think of are:
>
>   • Having a ‘package-description-string’ procedure that would return
>     the description rendered as a string, using the (stexi) modules.
>
>   • ‘--search’ could use the raw description (including markup).
>     However, ‘package->recutils’ must use ‘package-description-string’
>     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.

Attachment: 0001-packages-Add-package-description-string.patch
Description: Text Data

>
>   • guix.el, guix-web, and the web site need to do the right thing when
>     displaying descriptions.

I've succeed to do something for the website but with the same
aftertaste.

Attachment: 0001-website-packages-Support-Texinfo-s-markup.patch
Description: Text Data

What "feels right" to me is to redefine 'package-description' in (guix
package) to return an stexi output by default with optional #:plain-text
#:l10n keys And that each interface handle other ways of displaying
description by using (stexi->...).  IIUC This would lead to reorganize a
few modules so I prefer asking for advices or other proposals before
digging too far. ;)

--
Mathieu Lirzin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]