{
  "_id": "6a0fbc4bacfb0bcc41c6cf03",
  "Package": "hanyupinyin",
  "Title": "Convert Chinese Characters into Hanyu Pinyin",
  "Version": "0.1.3",
  "Authors@R": "person(\"Haoran\", \"Cui\", , \"hao.ran.cui@ktstat.com\", role = c(\"aut\", \"cre\"))",
  "Description": "Convert Chinese characters into Hanyu Pinyin (the official\nromanization system for Standard Chinese) with support for\ntones, toneless output, initials, URL slugs, and valid R\nvariable names. The package was inspired by the now-orphaned\nCRAN package 'pinyin' (archived in April 2026 after the\nmaintainer became unreachable). 'hanyupinyin' is a ground-up\nrewrite using the authoritative Unicode Unihan database, a\nvectorized engine, and modern R practices. Dictionary data are\nderived from the Unicode Unihan Database (Unicode Consortium,\n2025) <https://www.unicode.org/reports/tr38/>.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/CuiHR17/hanyupinyin",
  "BugReports": "https://github.com/CuiHR17/hanyupinyin/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://cuihr17.r-universe.dev",
  "Date/Publication": "2026-05-20 08:00:24 UTC",
  "RemoteUrl": "https://github.com/cuihr17/hanyupinyin",
  "RemoteRef": "HEAD",
  "RemoteSha": "f5711255a733ce769031a025cc7876fe2b02d09c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 02:12:51 UTC",
    "User": "root"
  },
  "Author": "Haoran Cui [aut, cre]",
  "Maintainer": "Haoran Cui <hao.ran.cui@ktstat.com>",
  "MD5sum": "dd76c8bd7cc2d85f58383136a1a154e2",
  "_user": "cuihr17",
  "_type": "src",
  "_file": "hanyupinyin_0.1.3.tar.gz",
  "_fileid": "cffe12a2e7b2a6fc9653e522e8203a7eb56fd037fdda801dd457f959fcf26f21",
  "_filesize": 1145901,
  "_sha256": "cffe12a2e7b2a6fc9653e522e8203a7eb56fd037fdda801dd457f959fcf26f21",
  "_created": "2026-05-22T02:12:51.000Z",
  "_published": "2026-05-22T02:15:39.792Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77304693381,
      "time": 126,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7151417058"
    },
    {
      "job": 77304693393,
      "time": 120,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7151416297"
    },
    {
      "job": 77304693392,
      "time": 112,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7151414727"
    },
    {
      "job": 77304693421,
      "time": 78,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7151409624"
    },
    {
      "job": 77304368962,
      "time": 212,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7151397008"
    },
    {
      "job": 77304693376,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7151418069"
    },
    {
      "job": 77304693443,
      "time": 97,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7151412528"
    },
    {
      "job": 77304693403,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7151410348"
    },
    {
      "job": 77304693388,
      "time": 71,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7151408448"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cuihr17/hanyupinyin",
  "_commit": {
    "id": "f5711255a733ce769031a025cc7876fe2b02d09c",
    "author": "Haoran Cui <hao.ran.cui@ktstat.com>",
    "committer": "Haoran Cui <hao.ran.cui@ktstat.com>",
    "message": "fix: use ASCII code-point keys in pinyin envs to avoid envlist() failure on linux\n\nInternal lookup environments (.pinyin_env, .pinyin_marks_env,\n.pinyin_toneless_env) previously used Chinese characters as binding\nnames, which caused 'Error in envlist(e)' during lazy-load database\ncreation on some Linux platforms (linux-amd64, linux-arm64).\n\n- Rebuild sysdata.rda with Unicode code-point strings as keys\n- Update lookup code to convert chars via utf8ToInt() before env query\n- Bump version to 0.1.3\n",
    "time": 1779264024
  },
  "_maintainer": {
    "name": "Haoran Cui",
    "email": "hao.ran.cui@ktstat.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cuihr17",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 8
    },
    {
      "week": "2026-21",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_userbio": {
    "uuid": 128780546,
    "type": "user",
    "name": "CuiHR17"
  },
  "_downloads": {
    "count": 546,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hanyupinyin"
  },
  "_devurl": "https://github.com/cuihr17/hanyupinyin",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hanyupinyin.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cuihr17/hanyupinyin",
  "_realowner": "cuihr17",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-04-22"
    },
    {
      "version": "0.1.3",
      "date": "2026-05-21"
    }
  ],
  "_exports": [
    "add_phrase",
    "list_phrases",
    "to_pinyin",
    "to_pinyin_initials",
    "to_pinyin_marks",
    "to_pinyin_toneless",
    "to_slug",
    "to_varname"
  ],
  "_datasets": [
    {
      "name": "unihan_pinyin",
      "title": "Unihan Pinyin Dictionary",
      "object": "unihan_pinyin",
      "class": [
        "data.frame"
      ],
      "fields": [
        "char",
        "pinyin",
        "pinyin_tone",
        "pinyin_toneless"
      ],
      "rows": 44348,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_phrase",
      "title": "Add a Custom Polyphone Phrase",
      "topics": [
        "add_phrase"
      ]
    },
    {
      "page": "list_phrases",
      "title": "List Custom Polyphone Phrases",
      "topics": [
        "list_phrases"
      ]
    },
    {
      "page": "to_pinyin",
      "title": "Convert Chinese Characters to Hanyu Pinyin",
      "topics": [
        "to_pinyin"
      ]
    },
    {
      "page": "to_pinyin_initials",
      "title": "Extract Pinyin Initials",
      "topics": [
        "to_pinyin_initials"
      ]
    },
    {
      "page": "to_pinyin_marks",
      "title": "Convert to Pinyin with Tone Marks",
      "topics": [
        "to_pinyin_marks"
      ]
    },
    {
      "page": "to_pinyin_toneless",
      "title": "Convert to Toneless Pinyin",
      "topics": [
        "to_pinyin_toneless"
      ]
    },
    {
      "page": "to_slug",
      "title": "Create URL-Friendly Slug from Chinese Text",
      "topics": [
        "to_slug"
      ]
    },
    {
      "page": "to_varname",
      "title": "Generate Valid R Variable Names from Chinese Text",
      "topics": [
        "to_varname"
      ]
    },
    {
      "page": "unihan_pinyin",
      "title": "Unihan Pinyin Dictionary",
      "topics": [
        "unihan_pinyin"
      ]
    }
  ],
  "_readme": "https://github.com/cuihr17/hanyupinyin/raw/HEAD/README.md",
  "_rundeps": [
    "stringi"
  ],
  "_vignettes": [
    {
      "source": "hanyupinyin.Rmd",
      "filename": "hanyupinyin.html",
      "title": "Converting Chinese to Pinyin with hanyupinyin",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Basic conversion",
        "Toneless output and initials",
        "Handling polyphones",
        "Data-cleaning helpers",
        "Dictionary source"
      ],
      "created": "2026-04-17 10:01:58",
      "modified": "2026-04-17 10:01:58",
      "commits": 1
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "hanyupinyin",
  "_universes": [
    "cuihr17"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:58.000Z",
      "distro": "noble",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "fb263ad8b4dbddcd720d561bdd6d4fc1fe979c5a66b8d76452ba29be6394e420",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:56.000Z",
      "distro": "noble",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "9072e79b50e0feb0940d4cb6834e7d1f0a9850c1064e87eae3b03d2353596df0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:45.000Z",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "c93b1ec629202d41ae49f0269cf5db3ea62e013f9a4b4c626f6a335b9a135280",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:18.000Z",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "75f17b6251697564d8ed60c53d8b48f30d69930d8b52a9125e2371fa0ee753a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-05-22T02:15:20.000Z",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "15ff213834f7de4145a9389b3ee48e3f8ab028964179d577459d352f40437d95",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:27.000Z",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "377b1ba568db7b9c4a8062b592e220f2c32f8641e92b322db46e6c2ff64f7614",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:13.000Z",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "ae7dc93cc8ba7b3a8c4eea060658ae898af41008808445f658b8bd5640c184aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-05-22T02:14:00.000Z",
      "commit": "f5711255a733ce769031a025cc7876fe2b02d09c",
      "fileid": "ecba0ce4fdd245c5c64142521cdd5b33ed9dafbd63f7fad531d4fce3a2fb3be9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuihr17/actions/runs/26221844162"
    }
  ]
}