JSPM

tsing

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29675F

Help to master romanization systems elder than Hanyu Pinyin

Package Exports

  • tsing

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tsing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tsing

Help to master romanization systems elder than Hanyu Pinyin

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

Table of contents

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