{"id":16570,"date":"2022-05-28T17:55:32","date_gmt":"2022-05-28T16:55:32","guid":{"rendered":"https:\/\/johnjohnston.info\/blog\/?p=16570"},"modified":"2022-05-28T20:21:50","modified_gmt":"2022-05-28T19:21:50","slug":"commanding-the-clouds","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/commanding-the-clouds\/","title":{"rendered":"Commanding The Clouds"},"content":{"rendered":"<p>I occasionally use Word Cloud generators for school use, for <a title=\"Music Words \u2013 Banton Buzz\" href=\"https:\/\/blogs.glowscotland.org.uk\/nl\/bantonbuzz\/music-words\/\">example a header on a blog post<\/a>. Each time I just search and try a couple until I find one that is free, doesn&#8217;t need a sign-up and does what I want.<\/p>\n<p>I&#8217;ve also occasionally used iPad apps, but never found one I like enough to remember.<\/p>\n<p>This week I needed one again but given I has 30 minutes free I searched for <em>commandline wordclouds<\/em> instead. This took me to <a href=\"https:\/\/github.com\/amueller\/word_cloud\">amueller\/word_cloud: A little word cloud generator in Python<\/a>.<\/p>\n<p>A bit of copy pasting in the terminal got this installed. I can now make lists of words in a text file and quickly create a word cloud with something like this:<\/p>\n<p><code>wordcloud_cli --text spelling-list-1.txt --imagefile spelling-list-1.png --width 800 --height 400 --colormap tab20<\/code><\/p>\n<p>It only take a few seconds. I could batch process a pile of lists all at once.<\/p>\n<p>The app has a lot of features, colour schemes, size variations, fonts and the like and is beautifully documented: <a href=\"http:\/\/amueller.github.io\/word_cloud\/cli.html\">Command Line Interface \u2014 wordcloud 1.8.1 documentation<\/a>.<\/p>\n<p>The featured image uses text from <a href=\"https:\/\/shenandoahliterary.org\/blog\/2014\/02\/charles-baudelaire-get-drunk\/\">Get Drunk!<\/a> a handy test text.<\/p>\n<p><code>wordcloud_cli --text get\\ drunk.txt --imagefile getdrunk-3.png --width 800 --height 400 --colormap tab20 --fontfile \/Library\/Fonts\/GiddyupStd.otf<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I occasionally use Word Cloud generators for school use, for example a header on a blog post. Each time I just search and try a couple until I find one that is free, doesn&#8217;t need a sign-up and does what I want. I&#8217;ve also occasionally used iPad apps, but never found one I like enough [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":16572,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":["https:\/\/twitter.com\/johnjohnston\/status\/1530599117755682816"],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[1490],"post_format":[],"class_list":{"0":"post-16570","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wwwd","8":"tag-wordcloud","9":"kind-article","11":"h-entry","12":"hentry"},"better_featured_image":{"id":16572,"alt_text":"","caption":"","description":"","media_type":"image","media_details":{"width":800,"height":400,"file":"2022\/05\/getdrunk-3.png","filesize":49740,"sizes":{"medium":{"file":"getdrunk-3-620x310.png","width":620,"height":310,"mime-type":"image\/png","filesize":158395,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-620x310.png"},"thumbnail":{"file":"getdrunk-3-150x150.png","width":150,"height":150,"mime-type":"image\/png","filesize":27815,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-150x150.png"},"medium_large":{"file":"getdrunk-3-768x384.png","width":768,"height":384,"mime-type":"image\/png","filesize":208433,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-768x384.png"},"post-thumbnail":{"file":"getdrunk-3-668x334.png","width":668,"height":334,"mime-type":"image\/png","filesize":174005,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-668x334.png"},"sempress-image-post":{"file":"getdrunk-3-668x334.png","width":668,"height":334,"mime-type":"image\/png","filesize":174005,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-668x334.png"},"rpwe-thumbnail":{"file":"getdrunk-3-45x45.png","width":45,"height":45,"mime-type":"image\/png","filesize":4643,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-45x45.png"},"jetpack-portfolio-admin-thumb":{"file":"getdrunk-3-50x50.png","width":50,"height":50,"mime-type":"image\/png","filesize":5524,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3-50x50.png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":16570,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3.png"},"jetpack_featured_media_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/05\/getdrunk-3.png","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-4jg","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/16570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=16570"}],"version-history":[{"count":3,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/16570\/revisions"}],"predecessor-version":[{"id":16574,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/16570\/revisions\/16574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media\/16572"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=16570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=16570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=16570"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=16570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}