From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103609 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeroen Newsgroups: gmane.comp.tex.context Subject: IBM Wordcloud with the Filter Module Date: Mon, 11 Mar 2019 13:52:08 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2044475634582024972==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="36348"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 11 13:52:48 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h3KQB-0009Kz-1f for gctc-ntg-context-518@m.gmane.org; Mon, 11 Mar 2019 13:52:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E07DFA697; Mon, 11 Mar 2019 13:52:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h2ZeDuKHlTkB; Mon, 11 Mar 2019 13:52:22 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E32CBFA69A; Mon, 11 Mar 2019 13:52:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 527C8FA697 for ; Mon, 11 Mar 2019 13:52:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OeJFVJ2BVm7H for ; Mon, 11 Mar 2019 13:52:21 +0100 (CET) Original-Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8EF92FA690 for ; Mon, 11 Mar 2019 13:52:21 +0100 (CET) Original-Received: by mail-qt1-f196.google.com with SMTP id z39so4822707qtz.0 for ; Mon, 11 Mar 2019 05:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0g0ypaLk54o2KGKkmUcfDXkQtmZQWkbWOJVJvsBiLy4=; b=W1G4trbHRwWprL5E5lH3vZOOc+YeDckECX7EYEl5v7Qn7XyV9FU65Bd9PINsSRIiNe 0fA6wyBZQYuU/wEFR987gtrVzDPRnccAnlj1n2BHdXj142MW+e8ymNlQhmNDyQS5ml/N QNRBS1v2Duqrjl7UDU8PbCUBsH+8MlC1VUvsPG0hFQqUvQlrLC9ZPr3MrAligrE+q/A2 LivUyV14q7W+Hicgl4IVmZnKjbvhtBKs/ECVfqSHQJ2NL1bUNjNt6fZ6SdafFJrys3Qw br7IREYgpLJVi7cF4iGdq0hZOnnu55pZoLDJF1nXUWvhowaXgSBG2MA6g7GhgDir71js 6iNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0g0ypaLk54o2KGKkmUcfDXkQtmZQWkbWOJVJvsBiLy4=; b=Phi/hpFe4XRZ+dr56moiF2yHYe/TjuvsE8eeRL0mNqXZzeH0b8P7fqVz1duZLwK+uF Lje229NXWjVzg2Lev5zfDylY8xiq4+5n2ofkZm/Nt/rSmSdykN1hF0h+M8K3/KPI0ihg EObZASZPd4J/kDfGARJCpoWZfGjoaI308eJDxQdgzSTGpIbnFlDXZYZZD0WOBgbeGJHv ZlSgChvxvx+CbIIlBuLKivQXlJzmPY4R/tcqOQ/I2mC5ZPDmyU0hYh0BWfFQRHCGprss zLZEr2Cnbg4AOOX4pOColy/QyfgCst3BglF/AEF9kO1QLhErxB0UcQeaooXTQ/fQR3cg B40Q== X-Gm-Message-State: APjAAAU/zm52EaLFjcOHceeRjrWo/MKEJKxJa7w/m7UOhJBUa9AAcbXC Czj5gTv+ZgSbSyNQo407OOT2R5nOd20yvIgQZF5Rz6qSSjW11bjT X-Google-Smtp-Source: APXvYqzFByA6WIhYWyLQL9BnpZFF0Lxj40/wIuC0hv6Q++TuPXKA60yNyIR/bMWZ+TOT9d0CrvJxk08CkoKLZTePo6s= X-Received: by 2002:ac8:6b92:: with SMTP id z18mr6112658qts.361.1552308739723; Mon, 11 Mar 2019 05:52:19 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:103609 Archived-At: --===============2044475634582024972== Content-Type: multipart/alternative; boundary="000000000000035a1e0583d10bec" --000000000000035a1e0583d10bec Content-Type: text/plain; charset="UTF-8" Dear List, I am trying to get the IBM wordcloud java application working with the filter module on MS Windows. This configuration does not create the wordcloud png file. The in and out files "naamloos-10-temp-wordcloud-x.tmp" are actually created. If this configuration correct? Java is installed and I am indicating absolute file locations. Thanks, Jeroen \usemodule[filter] \defineexternalfilter [wordcloud] [filtercommand={/Program Files/Java/jre1.8.0_181/bin/java -jar /context/wordcloud/ibm-word-cloud.jar -c /context/wordcloud/examples/configuration.txt -w 800 -h 600 -o \externalfilteroutputfile\space -i \externalfilterinputfile}, output=\externalfilterbasefile.png, readcommand=\ExternalFigure, continue=yes, purge=no,] \def\ExternalFigure#1{\externalfigure[#1]} \starttext \startwordcloud %[width=100] Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. \stopwordcloud \stoptext --000000000000035a1e0583d10bec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Dear List,

I am trying to get the IBM wordcloud java application working with th= e filter module on MS Windows. This configuration does not create the wordc= loud png file. The in and out files "naamloos-10-temp-wordcloud-x.tmp&= quot; are actually created. If this configuration correct? Java= is installed and I am indicating absolute file locations.

Thanks, Jeroen


\usemodule[filter]

\defineexternalfilter

[wordcloud]

[filtercommand=3D{/Program Files/Java/jre1.8.0_181= /bin/java

-jar /context/wordclou= d/ibm-word-cloud.jar

-c /context/wordcloud/ex= amples/configuration.txt

-w 800

-h 600

-o \externalfilteroutp= utfile\space

-i \externalfilterinpu= tfile},

output=3D\externalfilter= basefile.png,

readcommand=3D\ExternalF= igure,

continue=3Dyes,=

purge=3Dno,]

\def\ExternalFigure#1{\externa= lfigure[#1]}

\starttext

\startwordcloud %[width=3D100]=

Thus, I came to the conclusion= that the designer of a new

system must not only be the im= plementer and first

large||scale user; the designe= r should also write the first

user manual.

The separation of any of these= four components would have

hurt \TeX\ significantly. If I= had not participated fully in

all these activities, literall= y hundreds of improvements

would never have been made, be= cause I would never have

thought of them or perceived w= hy they were important.

But a system cannot be success= ful if it is too strongly

influenced by a single person.= Once the initial design is

complete and fairly robust, th= e real test begins as people

with many different viewpoints= undertake their own

experiments.

\stopwordcloud

\stoptext<= /p>

--000000000000035a1e0583d10bec-- --===============2044475634582024972== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2044475634582024972==--