Page MenuHomePhabricator

Add Pinyin input method / key mapping
Closed, ResolvedPublic

Description

Note: This is not a request to create an input method to convert pinyin to Chinese characters, which is being tracked at T180053.

In Wiktionary, I constantly need to fill in the transliteration field, which needs the Pinyin of the word/character (e.g. zìmǔ for 字母). There is no convenient way of inputting Pinyin other than copying from other pages or using special tools.
It would be great if an input method dedicated to input pinyin (mainly the vowels with tone sign) could be created.

Related Objects

Event Timeline

Aklapper renamed this task from Pinyin input method to Add Pinyin input method / key mapping.Dec 27 2018, 8:11 PM

Hi @zypA13510, please see https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector#Adding_support_for_a_new_key_mapping_(input_method) how you (or anyone interested) can write and propose a software change (patch) that provides this functionality.

Hi @Aklapper, thanks for the info. However, I believe the guide is a little bit vague (or too short).

If I'm not mistaken, I should submit a PR to jquery.ime? But the wiki mentioned I should

file requests in the Wikimedia-extensions-UniversalLanguageSelector Phabricator product.

Could you please clarify?

Could you please clarify?

Sorry, I don't have enough knowledge in this area. The Language Team knows best.

Not immediately, but some time very soon I'll merge this with the ULS extension, and then it can be resolved.

Change 500136 had a related patch set uploaded (by Amire80; owner: Amire80):
[mediawiki/extensions/UniversalLanguageSelector@master] Major update of jquery.ime from upstream

https://gerrit.wikimedia.org/r/500136

Change 500136 merged by jenkins-bot:
[mediawiki/extensions/UniversalLanguageSelector@master] Major update of jquery.ime from upstream

https://gerrit.wikimedia.org/r/500136

zypA13510 claimed this task.

The change has been merged and the new input method is working (tested on Wiktionary).
I will mark this as resolved. Please reopen in case I'm doing it wrong @Amire80 @Aklapper

It's good. Thanks a lot for your work, @zypA13510.

It will be a very nice bonus if you can write a little user manual for it at this URL:

https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods/zh-pinyin-transliteration

If you do it there, it will be automatically linked admsca help page from the input method selector.

You can see an example here:

https://www.mediawiki.org/wiki/Help:Extension:UniversalLanguageSelector/Input_methods/yo-tilde

Shizhao moved this task from Backlog to Closed on the Chinese-Sites board.

Hi @Amire80,

I have added the help page. But when I try to link it from the main page that lists all inputs, a message says

Translate this page; This page contains changes which are not marked for translation.

Also, the added entry does not appear in the translated pages.

I'm not sure how can I mark the change for translation. Could you please help?

I think it should be done now. Can you check please?

Yes, the message does not appear now.