WP Manifestindependent plugin directory
manifest / utilities / hanzi-converter

Hanzi Converter

Convert Hanzi to Pinyin inside of a WP Meta Box

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/methnen/hanzi-converter/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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