Create Kanji Grids out of Text
Project description
kanjigrid
Create Kanji Grids out of Text
pip install kanjigrid
MWE
import kanjigrid
gridder = kanjigrid.Gridder("Kanji", 40, "Header", 52)
grading = kanjigrid.Jouyou()
with open("test.txt", "r", encoding="utf-8") as f:
data = f.read()
gridder.feed_text(data)
grid = gridder.make_grid(grading, outside_of_grading=True, stats=True, bar_graph=True)
grid.save("test.png")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kanjigrid-0.0.5.tar.gz
(26.1 kB
view hashes)
Built Distribution
kanjigrid-0.0.5-py3-none-any.whl
(25.5 kB
view hashes)
Close
Hashes for kanjigrid-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833833554a2326827836a1620c199dfce857514a8ee8e831eaba23074e4e6dbc |
|
MD5 | 26a263fc10361eec235c144b0dc00e3d |
|
BLAKE2b-256 | f27f2b99678e0637526d24c636e4ec4933d0eb5992f7dd9c39b3820f27171b8b |