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.zip(r-4.7)hanyupinyin_0.1.3.zip(r-4.6)hanyupinyin_0.1.3.zip(r-4.5)
hanyupinyin_0.1.3.tgz(r-4.6-any)hanyupinyin_0.1.3.tgz(r-4.5-any)
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✨
DESCRIPTION |NEWS
card.svg |card.png
hanyupinyin/json (API)
| # Install 'hanyupinyin' in R: |
| install.packages('hanyupinyin', repos = c('https://cuihr17.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/cuihr17/hanyupinyin/issues
- unihan_pinyin - Unihan Pinyin Dictionary
Last updated from:f5711255a7. Checks:8 OK, 1 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 127 | ||
| source / vignettes | OK | 222 | ||
| linux-release-x86_64 | OK | 118 | ||
| macos-release-arm64 | OK | 129 | ||
| macos-oldrel-arm64 | OK | 139 | ||
| windows-devel | OK | 83 | ||
| windows-release | OK | 67 | ||
| windows-oldrel | OK | 61 | ||
| wasm-release | FAIL | 86 |
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 |