Jump to content

Module:Pinyin/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> This module converts Hanyu Pinyin input from the "lazy" numbers form (eg. H...'
 
beta
Line 1: Line 1:
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{module rating|beta}}


This module converts [[Hanyu Pinyin]] input from the "lazy" numbers form (eg. Han4yu3 pin1yin1) to the proper form with tones marked on the correct vowels (eg. Hànyǔ pīnyīn).
This module converts [[Hanyu Pinyin]] input from the "lazy" numbers form (eg. Han4yu3 pin1yin1) to the proper form with tones marked on the correct vowels (eg. Hànyǔ pīnyīn).

Revision as of 02:41, 4 March 2014


This module converts Hanyu Pinyin input from the "lazy" numbers form (eg. Han4yu3 pin1yin1) to the proper form with tones marked on the correct vowels (eg. Hànyǔ pīnyīn).

Additionally, the module converts the convenient shorthand v to ü as in most Chinese pinyin IMEs, and catches the incorrect nue and lue to nüe and lüe respectively. Otherwise, the module does not check whether the input pinyin is entered correctly or not.

Usage

{{#invoke:Pinyin|pinyin|input}}
  • input - The values to convert to proper pinyin form. As input, the pinyin for individual characters has to be in the form untoned pinyin + tone number with no spaces between them (eg. ma1), though there is no limitation on how many words to take as input and whether there are spaces between individual characters.