0.0.3 • Published 6 years ago

tsinghua v0.0.3

Weekly downloads
11
License
-
Repository
github
Last release
6 years ago

tsing

Help to master romanization systems elder than Hanyu Pinyin

在我们目前所使用的 汉语拼音 之前,汉字拉丁化注音方案可谓五花八门。其中尤以 威妥玛拼音 最为系统、也最为知名,此外,邮政拼音 则在专有名词(主要是地名)领域影响广泛,吸收了大量方言拼音(特别是南方的广东话和客家话)以及其他约定俗成的拼写方法。本工具旨在帮助大家快速查找不同注音之间的对照关系。

Table of contents

Links

Get Started

In CLI:

# Convert Hanyu Pinyin to Wade-Giles Romanization.
tsing py2wg jiang
# OUTPUT: chiang

In JavaScript:

const wade = require('tsing/wade');

let pinyin = wade.fromPinyin('jiang');
// RETURN: [ 'chiang' ]

Commands

  • tsing py2wg
    执行 汉语拼音威妥玛拼音 的转换。

  • tsing po2zh
    执行 邮政拼音 至汉字专有名词的转换。

  • tsing zh2po
    执行汉字专有名词至 邮政拼音 的转换。

API

wade

通过 require('tsing/wade') 引用 威妥玛拼音 工具包。

postal

通过 require('tsing/postal') 引用 邮政拼音 工具包。目前只从至今仍在广泛使用的名词中,选择性地收录了若干,今后我们会在严谨考证的前提下,逐渐扩大收录范围。

Examples

Why tsing

Honorable Dependents

About

References