Package: hanyupinyin 0.1.3

Haoran Cui

hanyupinyin: Convert Chinese Characters into Hanyu Pinyin

Convert Chinese characters into Hanyu Pinyin (the official romanization system for Standard Chinese) with support for tones, toneless output, initials, URL slugs, and valid R variable names. The package was inspired by the now-orphaned CRAN package 'pinyin' (archived in April 2026 after the maintainer became unreachable). 'hanyupinyin' is a ground-up rewrite using the authoritative Unicode Unihan database, a vectorized engine, and modern R practices. Dictionary data are derived from the Unicode Unihan Database (Unicode Consortium, 2025) <https://www.unicode.org/reports/tr38/>.

Authors:Haoran Cui [aut, cre]

hanyupinyin_0.1.3.tar.gz
hanyupinyin_0.1.3.tar.gz(r-4.7-any)hanyupinyin_0.1.3.tar.gz(r-4.6-any)
hanyupinyin_0.1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
hanyupinyin/json (API)
NEWS

# Install 'hanyupinyin' in R:
install.packages('hanyupinyin', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cuihr17/hanyupinyin/issues

Datasets:

On CRAN:

Conda:

3.00 score 545 downloads 8 exports 1 dependencies

Last updated from:e422dc078a. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK115
source / vignettesOK177
linux-release-x86_64OK148
wasm-releaseOK103

Exports:add_phraselist_phrasesto_pinyinto_pinyin_initialsto_pinyin_marksto_pinyin_tonelessto_slugto_varname

Dependencies:stringi

Converting Chinese to Pinyin with hanyupinyin

Rendered fromhanyupinyin.Rmdusingknitr::rmarkdownon May 21 2026.

Last update: 2026-04-22
Started: 2026-04-22