guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] import: Move beautify description from cran to utils. (was Re: [


From: Ben Woodcroft
Subject: [PATCH] import: Move beautify description from cran to utils. (was Re: [PATCH 6/6] gnu: Add emacs-slime.)
Date: Wed, 6 Jan 2016 00:25:12 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0



On 02/01/16 01:04, Ricardo Wurmus wrote:
Ben Woodcroft <address@hidden> writes:

On 01/01/16 18:25, Ricardo Wurmus wrote:
Alex Kost <address@hidden> writes:

Ricardo Wurmus (2015-12-31 12:52 +0300) wrote:

Ben Woodcroft <address@hidden> writes:

Do you know though, is there any way to get emacs to insert the extra
space in description strings and comments automatically (without it
messing things up of course). Perhaps we should modify the importers to
insert this automatically in the description field.
The CRAN and Bioconductor importers already do this.  See
“beautify-description” in “guix/import/cran.scm”.
Hm, is it reliable?  Not all dots specify an end of a sentence: there
are things like "e.g.", "i.e.", "etc.".  Also there may be abbreviations
like "ATA S.M.A.R.T. reading and parsing library" (synopsis of
'libatasmart' package).  Or even things like “<form> ... </form>”
(description of 'perl-html-form') — it should probably be wrapped in
@code{} by the way.
It’s not supposed to be maintenance-free.  Descriptions often start with
sentence fragments, which cannot be detected easily.  I found that
“beautify-description” works well enough to make packaging R stuff much
simpler for me.
I'd like to add this to the Ruby importer. Do you think it is a good
idea to make your beautify-description available in import/utils ?
I think it could be generally useful to have something like that for all
importers.  Do you want to prepare a patch?

Pretty straightforward stuff. The first patch moves beautify-description to import/utils and the second uses it in the rubygem importer. Any good?

ta,
ben

Attachment: 0001-import-cran-Move-beautify-description-to-utils-modul.patch
Description: Text Data

Attachment: 0002-import-gem-Beautify-description-field.patch
Description: Text Data


reply via email to

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