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:
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
- unihan_pinyin - Unihan Pinyin Dictionary
Last updated from:e422dc078a. Checks:4 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 115 | ||
| source / vignettes | OK | 177 | ||
| linux-release-x86_64 | OK | 148 | ||
| wasm-release | OK | 103 |
Exports:add_phraselist_phrasesto_pinyinto_pinyin_initialsto_pinyin_marksto_pinyin_tonelessto_slugto_varname
Dependencies:stringi
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Add a Custom Polyphone Phrase | add_phrase |
| List Custom Polyphone Phrases | list_phrases |
| Convert Chinese Characters to Hanyu Pinyin | to_pinyin |
| Extract Pinyin Initials | to_pinyin_initials |
| Convert to Pinyin with Tone Marks | to_pinyin_marks |
| Convert to Toneless Pinyin | to_pinyin_toneless |
| Create URL-Friendly Slug from Chinese Text | to_slug |
| Generate Valid R Variable Names from Chinese Text | to_varname |
| Unihan Pinyin Dictionary | unihan_pinyin |