Comments (3)
Thanks for your feedback. It is not due to your Windows locale. It is due to the default dictionary. Please use this:
library(pinyin)
mypy <- pydic(dic = 'pinyin2')
py("广西", sep = "", dic = mypy)
py("春眠不觉晓,处处闻啼鸟", dic = mypy)
from pinyin.
from pinyin.
I've also found issues with the default dictionary: e.g.
library(pinyin)
mypy <- pydic()
py("个", dic = mypy)
个
"ɡàn"
py("有", dic=mypy)
有
"wěi"
I tried using the pinyin2
directory but couldn't get it to support quanpin -- is this possible? Here's what I tried:
library(pinyin)
mypy <- pydic(method = 'quanpin', dic = 'pinyin2')
py("西", dic = mypy)
西
"xi1"
from pinyin.
Related Issues (15)
- A shinyapp using `pinyin` package HOT 2
- rework on this package HOT 2
- report some bugs HOT 3
- how to get the first letter of the pinyin HOT 1
- Better dictionary HOT 1
- how to remove tone in regular py() funaction? It seems that method = "toneless" doesn't work.
- Does it support Bopomofo?
- missing characters in dictionary pinyin2 HOT 1
- Wrong pinyin for "归还" HOT 1
- package ‘pinyin’ is not available (for R version 3.5.0) HOT 2
- a vector of Mandarin Chinese strings into pinyin HOT 3
- 多音字是个难题 HOT 3
- Output Error: the Chinese Chr `幸` return incorrect pinyin. HOT 4
- unexpected number when converting "大同市" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinyin.