pydic: Load a Pinyin library

Description Usage Arguments Value Examples

View source: R/py.R

Description

Load a Pinyin library

Usage

1
2
3
4
5
6
pydic(
  method = c("quanpin", "tone", "toneless"),
  multi = FALSE,
  only_first_letter = FALSE,
  dic = c("pinyin", "pinyin2")
)

Arguments

method

character. The value can be:

  • 'quanpin', for the standard form of pinyin (tones above letters),

  • 'tone', for tones expressed with numbers,

  • 'toneless', without tones

multi

logical. Whether display multiple pronounciations of a Chinese character or only the first pronounciation.

only_first_letter

logical. Wheter only the first letter in pinyin.

dic

character. Choose the dictionary.

Value

character. a Pinyin library.

Examples

1

pzhaonet/pinyin documentation built on June 17, 2020, 12:35 a.m.