WP Manifestindependent plugin directory
manifest / utilities / hanzi-converter

Hanzi Converter

Convert Hanzi to Pinyin inside of a WP Meta Box

by Jamie Poitra · github.com/methnen/hanzi-converter · website

1stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/methnen/hanzi-converter/archive/refs/heads/master.zip

Readme

Hanzi Converter

This is super rough and I don't necessarily consider it ready for prime time but it does function.

This inserts a meta box into posts and pages.

The meta box accepts either a string of Hanzi or a some Chinese to English dialog.

If it gets a string of Hanzi it'll just return the Pinyin conversion of that text:

Hanzi Converter With Hanzi Input

For dialog it expects text in the format of English then Chinese or Chinese and then English:

那他自己能同意吗?
Would he agree with this?
你知道吗?
You know?

When it gets that kind of input it'll return something like this:

那他自己能同意吗?|nà tā zì jǐ néng tóng yì ma?|Would he agree with this?
你知道吗?|nǐ zhī dào ma?|You know?

Hanzi Converter With Dialog Input

Read the full README on GitHub →