unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: [ANN] Guile-DSV 0.4.1 released
Date: Sat, 11 Dec 2021 12:01:00 +0100	[thread overview]
Message-ID: <87pmq3s8bv.fsf@web.de> (raw)
In-Reply-To: <87wnkb5x0d.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]


poptsov.artyom@gmail.com (Artyom V. Poptsov) writes:

> I'm pleased to announce Guile-DSV 0.4.1:
>   https://github.com/artyom-poptsov/guile-dsv/releases/tag/v0.4.1

Wow, congrats!

> The main changes in this release are related to the 'dsv' tool: now it
> allows to print the DSV data as fancy tables using extended table
> parameters and table presets.  See the full list of user-visible changes
> below.
>
> Examples:
>
> $ echo -e "a1,b1,c1\na2,b2,c2\n" | dsv -D, -b "ascii"
> .-----------------------------.
> | a1      | b1      | c1      |
> |---------+---------+---------|
> | a2      | b2      | c2      |
> '-----------------------------'

Does the ascii-version cope mith headers?

Would it be possible to add org-mode output?

Wisful thinking:

$ echo -e "ah,bh,ch\na1,b1,c1\na2,b2,c2\n" | dsv -D, --with-header -b "org"
| ah      | bh      | ch      |
|---------+---------+---------|
| a1      | b1      | c1      |
| a2      | b2      | c2      |

With this I could easily convert a CSV to org-mode and then add
#+TBLFM: @2$1..@>$>='(arbitrary-lisp-code @# $# $0)
for complex evaluation of the data.

See https://orgmode.org/manual/Field-and-range-formulas.html
and https://orgmode.org/manual/Formula-syntax-for-Calc.html
and https://orgmode.org/manual/Formula-syntax-for-Lisp.html

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

      reply	other threads:[~2021-12-11 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-11  9:08 [ANN] Guile-DSV 0.4.1 released Artyom V. Poptsov
2021-12-11 11:01 ` Dr. Arne Babenhauserheide [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmq3s8bv.fsf@web.de \
    --to=arne_bab@web.de \
    --cc=guile-user@gnu.org \
    --cc=poptsov.artyom@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).