author | František Kučera <franta-hg@frantovo.cz> |
Sat, 06 Jun 2020 13:21:38 +0200 | |
branch | v_0 |
changeset 299 | dd7aeff5ef0c |
parent 258 | 2868d772c27e |
child 329 | 5bc2bb8b7946 |
permissions | -rw-r--r-- |
23
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
1 |
<stránka |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
2 |
xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
3 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
4 |
|
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
5 |
<nadpis>Release v0.12</nadpis> |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
6 |
<perex>fifth public release of Relational pipes</perex> |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
7 |
<m:release>v0.12</m:release> |
4
1bb39595a51c
genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
8 |
|
2
ab9099ff88fa
vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
9 |
<text xmlns="http://www.w3.org/1999/xhtml"> |
ab9099ff88fa
vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
10 |
<p> |
256 | 11 |
We are pleased to introduce you the new development version of <m:name/>. |
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
12 |
This release brings AWK support and some smaller changes: |
241 | 13 |
</p> |
14 |
||
15 |
<ul> |
|
16 |
<li> |
|
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
17 |
<strong>AWK transformations</strong>: |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
18 |
now it is possible to write transformations using the classic AWK tool and its language. |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
19 |
Relational data can be filtered and modified (incuding additions of new records) or any AWK code can be executed for given relation or records. |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
20 |
Structural changes are also possible (adding or removing attributes or dropping relations). |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
21 |
The command line syntax is mostly the same as for the Guile transformation. |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
22 |
The AWK and Guile transformations are now the most powerful ones in the Relpipe world. |
250 | 23 |
</li> |
24 |
||
25 |
<li> |
|
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
26 |
<strong>AWK and Guile transformations</strong>: |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
27 |
option <code>--debug-variable-mapping</code> was added, so it is possible to print mappings (in relational format, of course) |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
28 |
between relational attributes and AWK or Guile variables. |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
29 |
The mapping is needed because not all valid attribute names are also valid variable names in particular language, |
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
30 |
thus sometimes some escaping or prefixing is necessary. |
241 | 31 |
</li> |
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
32 |
|
241 | 33 |
</ul> |
256 | 34 |
|
241 | 35 |
<p> |
256 | 36 |
See the <m:a href="examples">examples</m:a> and <m:a href="screenshots">screenshots</m:a> pages for details. |
151 | 37 |
</p> |
256 | 38 |
|
39 |
<p> |
|
299
dd7aeff5ef0c
fix typo: relasease → release
František Kučera <franta-hg@frantovo.cz>
parents:
258
diff
changeset
|
40 |
Please note that this is still a development release and thus the API (libraries, CLI arguments, formats) might and will change. |
256 | 41 |
Any suggestions, ideas and bug reports are welcome in our <m:a href="contact">mailing list</m:a>. |
42 |
</p> |
|
151 | 43 |
|
44 |
<h3>Data types</h3> |
|
45 |
<ul> |
|
241 | 46 |
<li m:since="v0.8">boolean</li> |
47 |
<li m:since="v0.8">variable unsigned integer (prototype)</li> |
|
48 |
<li m:since="v0.8">string in UTF-8</li> |
|
151 | 49 |
</ul> |
50 |
<h3>Inputs</h3> |
|
51 |
<ul> |
|
256 | 52 |
<li m:since="v0.11">Recfile</li> |
241 | 53 |
<li m:since="v0.9">XML</li> |
54 |
<li m:since="v0.9">CSV</li> |
|
55 |
<li m:since="v0.9">file system</li> |
|
56 |
<li m:since="v0.8">CLI</li> |
|
57 |
<li m:since="v0.8">fstab</li> |
|
151 | 58 |
</ul> |
59 |
<h3>Transformations</h3> |
|
60 |
<ul> |
|
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
61 |
<li m:since="v0.12">awk: filtering and transformations using the classic AWK tool and language</li> |
250 | 62 |
<li m:since="v0.10">guile: filtering and transformations defined in the Scheme language using GNU Guile</li> |
241 | 63 |
<li m:since="v0.8">grep: regular expression filter, removes unwanted records from the relation</li> |
64 |
<li m:since="v0.8">cut: regular expression attribute cutter (removes or duplicates attributes and can also DROP whole relation)</li> |
|
65 |
<li m:since="v0.8">sed: regular expression replacer</li> |
|
66 |
<li m:since="v0.8">validator: just a pass-through filter that crashes on invalid data</li> |
|
67 |
<li m:since="v0.8">python: highly experimental</li> |
|
151 | 68 |
</ul> |
69 |
<h3>Outputs</h3> |
|
70 |
<ul> |
|
256 | 71 |
<li m:since="v0.11">ASN.1 BER</li> |
72 |
<li m:since="v0.11">Recfile</li> |
|
241 | 73 |
<li m:since="v0.9">CSV</li> |
74 |
<li m:since="v0.8">tabular</li> |
|
75 |
<li m:since="v0.8">XML</li> |
|
76 |
<li m:since="v0.8">nullbyte</li> |
|
77 |
<li m:since="v0.8">GUI in Qt</li> |
|
78 |
<li m:since="v0.8">ODS (LibreOffice)</li> |
|
151 | 79 |
</ul> |
80 |
||
81 |
<p> |
|
219 | 82 |
Instalation was tested on Debian GNU/Linux 9.6. |
83 |
The process should be similar on other distributions. |
|
84 |
</p> |
|
151 | 85 |
|
258
2868d772c27e
Release v0.12 – AWK
František Kučera <franta-hg@frantovo.cz>
parents:
256
diff
changeset
|
86 |
<m:pre src="examples/release-v0.12.sh" jazyk="bash" odkaz="ano"/> |
151 | 87 |
|
219 | 88 |
<p> |
89 |
<m:name/> are modular thus you can download and install only parts you need (the libraries are needed always). |
|
90 |
Tools <code>out-gui.qt</code> and <code>tr-python</code> require additional libraries and are not built by default. |
|
91 |
</p> |
|
151 | 92 |
|
241 | 93 |
<p> |
94 |
The module <code>relpipe-in-filesystem</code> uses C++ filesystem API which is supported since GCC 8. |
|
95 |
This module can be compiled and seems usable even with GCC 6, but requires some patching (switch to the experimental API): |
|
96 |
</p> |
|
97 |
||
98 |
<m:pre jazyk="bash"><![CDATA[sed 's@#include <filesystem>@#include <experimental/filesystem>@g' -i "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FileAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/XattrAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FilesystemCommand.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/AttributeFinder.h |
|
99 |
sed 's@std::filesystem@std::experimental::filesystem@g' -i "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FileAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/XattrAttributeFinder.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/FilesystemCommand.h "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/AttributeFinder.h |
|
100 |
sed 's/.*PROPERTY CXX_STANDARD.*/#\0/g' -i "$RELPIPE_SRC"/relpipe-in-filesystem.cpp/src/CMakeLists.txt]]></m:pre> |
|
101 |
||
250 | 102 |
<p> |
103 |
The module <code>relpipe-tr-guile</code> uses GNU Guile 2.2 but can also work with 2.0. |
|
104 |
In such case, it requires this patch: |
|
105 |
</p> |
|
106 |
||
107 |
<m:pre jazyk="bash"><![CDATA[sed 's/guile-2\.2/guile-2.0/g' -i "$RELPIPE_SRC"/relpipe-tr-guile.cpp/src/CMakeLists.txt]]></m:pre> |
|
108 |
||
87
25dec6931f18
Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents:
23
diff
changeset
|
109 |
</text> |
4
1bb39595a51c
genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
110 |
|
1 | 111 |
</stránka> |