[NetBehaviour] liberroneous-0.0.0 *** extra info ***

james morris james at jwm-art.net
Wed Jul 15 14:30:40 CEST 2009


I was in a rush yesterday, neglected to mention a few things.

1) liberroneous is a string/text processing library. It has two aims: 1 -
implement useful string manipulations which are found in other languages
but not in C. 2 - implement text transformations which are useful to
artists who are interested in exploring creative text transformations.

2) portability - liberroneous is very likely limited to building on
linux, and possibly unix-like systems. although it uses autotools (to
generate ./configure and make etc) the code does not yet make use of the
configuration stuff and i'm not yet confident of my autoconf/automake
skills.

3) libmatheval

liberroneous uses libmatheval to parse and evaluate formulas for the two
command line programs provided with liberroneous. libmatheval is
available from the main debian archive if you use debian, or available
from:

http://www.gnu.org/software/libmatheval/

YOU MUST INSTALL THE DEVELOPMENT LIBRARIES if not building and installing
from source code.

for a full list of supported elementary functions and constants you can
use in the formulas for the two command line programs can be found here:

http://www.gnu.org/software/libmatheval/manual/libmatheval.html#evaluator_005fcreate

when specifying formulas, you must use the variable 'i'. in addition,
when using ewordmath there is the variable 'wc' which is short for
'word count' and is the count of words formed from the input file.
(note here words is a general term for substrings, not necessarily the
formal understanding of how a word appears (ie a space some letters
another space - space being the delimiter).

-------
the next version might use a patched version of libmatheval with the
modulus operator ( % ) implemented, along with a random number function.
liberroneous does not use the derivative functionality of libmatheval.

the next version will have improved versions of estringmath and
ewordmath, along with futher string functions in the library itself.

cheers,
james.

On 14/7/2009, "james morris" <james at jwm-art.net> wrote:

>
>please find first release of liberroneous at the following download
>location:
>
>http://www.jwm-art.net/default_downloads/liberroneous-0.0.0.tar.gz
>
>extract the archive: tar -zxf liberroneous-0.0.0.tar.gz
>
>build the source: ./configure && make && sudo make install
>
>if the installation step fails because you're not a sudoer:
>try: su -c make install
>
>but you'll be asked for root password.
>
>(the programs are in the programs directory if you can't install (but
>note they're scripts created by libtool and the actual binaries are in
>the .libs directory blah blah autohell).
>
>------
>
>this gives you static and shared library versions and two commandline
>programs: estringmath and ewordmath
>
>two examples of usage for each:
>
>estringmath -f "i * 0.125 + 3 * cos(i)" INSTALL
>
>will transform the text file INSTALL character by character.
>
>ewordmath -f "i * 0.125 + 3 * sin(i * 0.25)" INSTALL
>
>will split the text file INSTALL into words and rearrange them word by
>word.
>
>enter either of these two commands on their own or with the --help option
>for a quick list of command line options.
>
>that's it for now. please beware there will be bugs etc and may not
>build even though autotools (autoconf,automake,autoreconf etc) were used
>to build the scripts)/...
>
>james.
>_______________________________________________
>NetBehaviour mailing list
>NetBehaviour at netbehaviour.org
>http://www.netbehaviour.org/mailman/listinfo/netbehaviour
>



More information about the NetBehaviour mailing list