npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

yonh

v0.2.0

Published

A simple lookup table for Guangyun.

Downloads

1

Readme

Yonh

NPM version License: GPL v2

A simple lookup table for Guangyun.

Installation

yarn add yonh

or

npm install --save yonh

Usage

var yonh = require('yonh')
// lookup through chinese character or index
yonh.lookup(1)
yonh.lookup('東')
// list of fundamental category of rime in Guangyun
yonh.sieux()

yonh.lookup(index|hanzi)

Arguments

  • index: number, an unique number indicating specific Sinograph
  • hanzi: string, a Sinograph, Chinese character

Returns

One object or an array of objects with following form:

{
  index:     number,
  zih:       string,
  sieux:     string,
  chet:      string,
  initial:   Table.Initial,
  final:     Table.Final,
  tone:      string,
  roman:     string,
  kanon:     string,
  kuangx:    string,
  other_zih: {
    index: number,
    zih:   string
  }[]
}
  • zih: a Sinogram, Chinese character
  • sieux: a fundamental category of rime (小韻) in Guangyun
  • chet: fanqie (反切), a technique to represent the pronounciation of a Chinese character by using two characters instead, in Guangyun
  • initial: the initial of zih, see Table.Initial
  • final: the final of zih, see Table.Final
  • tone: 平聲, 上聲, 去聲 or 入聲, the category of the tone in Middle Chinese
  • roman: a romanisation of zih, see Romanisation
  • kanon: the pronounciation of zih in Kan-on system (漢音) in Japanese
  • kuangx: the content of zih appeared in Guangyun

Table.Initial

{
  index: number,
  roman: string,
  sjeng: string
}
  • roman: a romanisation of initial, see Romanisation
  • sjeng: a Sinogram indicating the category of initial (聲母)

Table.Final

{
  index: number,
  roman: string,
  yonh:  string,
  tongx: number,
  ho:    string,
  sjep:  string
}
  • roman: a romanisation of final, see Romanisation
  • yonh: category of final (韻母), which is differnent from the rimes (韻) in Guangyun
  • tongx: 1 to 4, indicating the level (等) of Chinese character, which is one of Medial (介音) description system in Middle Chinese
  • ho: 開口, 合口 or 開合, another Medial description system in Middle Chinese (呼)
  • sjep: a Sinogram indicating the category of the main vowel (攝)

yonh.sieux()

A list of fundamental category of rime (小韻).

Returns

{
  index:    number,
  sieux:    string,
  chet:     string,
  initial:  Table.Initial,
  final:    Table.Final,
  tone:     string,
  roman:    string,
  kanon:    string,
  kuangx:   string,
  list_zih: {
    index: number,
    zih:   string
  }[]
}
  • index: an unique number
  • sieux, chet, initial, final, tone, roman, kanon, kuangx: see yonh.lookup(index|hanzi)
  • list_zih: a list of Sinograph with index and character

Romanisation

The romanisation for Middle Chinese is created and promoted by Polyhedron.

License

GPLv2

Sources