Merge d66cc2a62c
This commit is contained in:
commit
a07f4fdb17
@ -0,0 +1,21 @@
|
|||||||
|
accessing
|
||||||
|
externalWordCloud
|
||||||
|
|
||||||
|
| text outputFile |
|
||||||
|
outputFile := (self folder / 'nube.png')fullName.
|
||||||
|
text := (self folder / 'texto.txt')fullName.
|
||||||
|
OSSUnixSubprocess new
|
||||||
|
command: 'wordcloud_cli';
|
||||||
|
arguments: { '--text' . text .
|
||||||
|
'--imagefile' . outputFile .
|
||||||
|
'--color' . '#5B83DE' .
|
||||||
|
'--width' . '1153' .
|
||||||
|
'--height' . '357' .
|
||||||
|
'--background' . 'white' .
|
||||||
|
'--mode' . 'RGBA' .
|
||||||
|
'--stopwords' . 'stopwords-es.txt' .
|
||||||
|
'--mask' . 'nube-mascara.jpg'};
|
||||||
|
workingDirectory: self folder fullName;
|
||||||
|
redirectStdout;
|
||||||
|
redirectStderr;
|
||||||
|
runAndWaitOnExitDo: [ :process :outString | ^ outputFile asFileReference ]
|
Loading…
Reference in New Issue
Block a user