I wrote stupidm to markup characters which need manual checking after converting between Simplified and Traditional Chinese. But there may be other usages. For example, markup characters which are not available in some fonts, and annotate pronunciation for rare characters.
Use stupidm with opencc:
With the make_words script, we can generate table files for stupidm with data files from opencc:
cat st_multi.txt | cut -f 2 | sed -r 's/ //g' |
make_words > st_multi.table
Example:
$ echo '胡适云:“南宫适诚不欺余也。”' | opencc | stupidm st_multi.table '{' '}'
胡{鬍衚}適{适}雲{云}:“南宮适{適}誠不欺餘{余}也。”
Setting up an online service:
With the stupidm_web.py script (require bottle), you can set up an online service quickly.
An nginx proxy config example is also provided.
I've ported stupidm and stupidm_web to Python 2.5 for hosting on Google App Engine. An app.yaml example is provided, too.
You may test my google app engine application: