2022-04-02 00:02:35 +00:00
|
|
|
accessing
|
|
|
|
externalWordCloud
|
|
|
|
|
|
|
|
| text outputFile |
|
|
|
|
outputFile := (self folder / 'nube.png')fullName.
|
2022-04-05 22:37:42 +00:00
|
|
|
text := (self folder / self userName, 'words', 'txt')fullName.
|
2022-04-02 00:02:35 +00:00
|
|
|
OSSUnixSubprocess new
|
|
|
|
command: 'wordcloud_cli';
|
|
|
|
arguments: { '--text' . text .
|
|
|
|
'--imagefile' . outputFile .
|
|
|
|
'--color' . '#5B83DE' .
|
|
|
|
'--width' . '1153' .
|
|
|
|
'--height' . '357' .
|
|
|
|
'--background' . 'white' .
|
|
|
|
'--mode' . 'RGBA' .
|
2022-04-05 22:37:42 +00:00
|
|
|
'--stopwords' . '../commons/stopwords-es.txt' .
|
2022-04-02 00:02:35 +00:00
|
|
|
'--mask' . '../commons/nube-mascara.jpg'};
|
|
|
|
workingDirectory: self folder fullName;
|
|
|
|
redirectStdout;
|
|
|
|
redirectStderr;
|
|
|
|
runAndWaitOnExitDo: [ :process :outString | ^ outputFile asFileReference ]
|