amueller / word_cloud

A little word cloud generator in Python
https://amueller.github.io/word_cloud
MIT License
10.01k stars 2.31k forks source link

Works on Android Termux - quick tips #758

Open Manamama opened 6 months ago

Manamama commented 6 months ago

It is not a problem, just random hints.

  1. alias wordcloud='function _wordcloud(){ pdftotext "$1" - | wordcloud_cli --height 1000 --width 500 | feh -; }; _wordcloud'

    • it makes it display in Linux as an image (via feh) on its own, e.g.: wordcloud {filename.pdf}
  2. It also compiles in Android Termux, after some hacking - I had to git clone it from here first , and run with: pip install . --no-build-isolation to disable checking (and trying to reinstall) for cython, if I remember it right. (Also the pillow module had to be updated, via a similar hack.)

  3. Then in Termux and X-11 one can make the word cloud display a graphic application, directly, using that function alias as per Point 1: termux-x11 :1 in Termux and e.g. Termux:X11 as the client. A sample result (on Droid) below: Screenshot_2024-01-08-15-28-41-64