@@ -0,0 +1,843 @@
+#!/usr/bin/env python2%0Afrom os import path%0A%0Aimport numpy as np%0Afrom PIL import Image%0Afrom wordcloud import WordCloud%0A%0Ad = path.dirname(__file__)%0A%0Atext = open(path.join(d, 'lang.txt')).read()%0A%0Aorigin_image = Image.open(path.join(d, %22map.png%22))%0Aimg = origin_image.convert(%22RGBA%22)%0Adatas = img.getdata()%0A%0AnewData = %5B%5D%0Abg_color = datas%5B0%5D%0Afor item in datas:%0A    if item%5B0%5D == bg_color%5B0%5D and item%5B1%5D == bg_color%5B1%5D and item%5B2%5D == bg_color%5B2%5D:%0A        newData.append((255, 255, 255, 0))%0A    else:%0A        newData.append(item)%0A%0Aimg.putdata(newData)%0A%0Aalice_mask = np.array(img)%0A%0Awc = WordCloud(background_color=None, max_words=2000, mask=alice_mask, max_font_size=6,%0A               width=1423, height=601, mode=%22RGBA%22)%0A# generate word cloud%0Awc.generate(text)%0A%0Atext_cloud_image = wc.to_image()%0A%0Atext_cloud_image.show()%0Atext_cloud_image.save('out.png')%0A

add simple cover masked