Newer
Older
#!/bin/bash
pandoc ../fluiddyn_meta/fluiddyn_metapaper.tex ../fluidfft/fluidfft_paper.tex ../fluidsim/fluidsim_paper.tex -o tmp.md
python -c '
from wordcloud import STOPWORDS
def linebreak(things):
for item in things:
yield item
yield "\n"
with open("stopwords.txt", "w") as f:
f.writelines(linebreak(STOPWORDS))
f.writelines(linebreak([
"numbered", "unnumbered", "code", "using", "used", "use",
"function", "class", "method", "classes", "functions", "methods",
"array", "case", "Fig", "fig", "i0", "i1", "time"
]))
'
wordcloud_cli.py --text tmp.md --background white --margin 0 --width 720 --height 480 --stopwords stopwords.txt --imagefile wordcloud.png