Ben Woodcroft <b.woodcr...@uq.edu.au> writes: > On 01/01/16 18:25, Ricardo Wurmus wrote: >> Alex Kost <alez...@gmail.com> writes: >> >>> Ricardo Wurmus (2015-12-31 12:52 +0300) wrote: >>> >>>> Ben Woodcroft <b.woodcr...@uq.edu.au> 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? ~~ Ricardo