* [ANN] Guile-DSV 0.4.1 released
@ 2021-12-11 9:08 Artyom V. Poptsov
2021-12-11 11:01 ` Dr. Arne Babenhauserheide
0 siblings, 1 reply; 2+ messages in thread
From: Artyom V. Poptsov @ 2021-12-11 9:08 UTC (permalink / raw)
To: Guile Users' Mailing List
[-- Attachment #1: Type: text/plain, Size: 3419 bytes --]
Hello Guilers,
I'm pleased to announce Guile-DSV 0.4.1:
https://github.com/artyom-poptsov/guile-dsv/releases/tag/v0.4.1
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:
--8<---------------cut here---------------start------------->8---
$ echo -e "a1,b1,c1\na2,b2,c2\n" | dsv -D, -b "ascii"
.-----------------------------.
| a1 | b1 | c1 |
|---------+---------+---------|
| a2 | b2 | c2 |
'-----------------------------'
$ echo -e "a1,b1,c1\na2,b2,c2\n" | dsv -D, -b "graphic"
┌─────────┬─────────┬─────────┐
│ a1 │ b1 │ c1 │
├─────────┼─────────┼─────────┤
│ a2 │ b2 │ c2 │
└─────────┴─────────┴─────────┘
$ echo -e "a1,b1,c1\na2,b2,c2\n" | dsv -D, -b "graphic-bold"
┏━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┓
┃ a1 ┃ b1 ┃ c1 ┃
┣━━━━━━━━━╋━━━━━━━━━╋━━━━━━━━━┫
┃ a2 ┃ b2 ┃ c2 ┃
┗━━━━━━━━━┻━━━━━━━━━┻━━━━━━━━━┛
$ echo -e "a1,b1,c1\na2,b2,c2\n" | dsv -D, -b "graphic-double"
╔═════════╦═════════╦═════════╗
║ a1 ║ b1 ║ c1 ║
╠═════════╬═════════╬═════════╣
║ a2 ║ b2 ║ c2 ║
╚═════════╩═════════╩═════════╝
--8<---------------cut here---------------end--------------->8---
Presets are installed to '$(pkgdatadir)/presets' (e.g.
'/usr/local/share/guile-dsv/presets'.)
Also please see the 'dsv --help' output for details.
* What is Guile-DSV?
Guile-DSV is a library that allows to parse Delimiter-Separated Values
format (DSV). It supports two flavors of DSV: Unix-style[1] and RFC4180[2].
Also Guile-DSV is shipped with a program named "dsv" that allows to read
and process DSV format (including delimiter change and conversion from
one standard to another.) See README file for usage examples.
* List of user visible changes
Here's an excerpt from the NEWS file:
--8<---------------cut here---------------start------------->8---
* Changes in version 0.4.1 (2021-12-11)
** Changes in the =dsv= tool
*** Allow to specify wider range of table border parameters
*** Allow to use table border presets
Currently the following presets are available:
- ascii
- graphic
- graphic-bold
- graphic-double
--8<---------------cut here---------------end--------------->8---
Thanks and happy hacking!
- Artyom
[1] http://www.catb.org/~esr/writings/taoup/html/ch05s02.html#id2901882
[2] https://tools.ietf.org/html/rfc4180
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ANN] Guile-DSV 0.4.1 released
2021-12-11 9:08 [ANN] Guile-DSV 0.4.1 released Artyom V. Poptsov
@ 2021-12-11 11:01 ` Dr. Arne Babenhauserheide
0 siblings, 0 replies; 2+ messages in thread
From: Dr. Arne Babenhauserheide @ 2021-12-11 11:01 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: guile-user
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-11 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-11 9:08 [ANN] Guile-DSV 0.4.1 released Artyom V. Poptsov
2021-12-11 11:01 ` Dr. Arne Babenhauserheide
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).