-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinyin fixes #2
base: master
Are you sure you want to change the base?
Pinyin fixes #2
Conversation
|
||
_.each(words, function(word) { | ||
var pronunciation = word.pronunciation; | ||
var prettified = pinyin.prettify(pronunciation.slice(1, pronunciation.length - 1).replace(/u\:/g, "v")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the whitespace here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Sorry for getting back so late on this. Just a question about whitespace--also for Sequelize what does the "logging: false" option do?
No worries. The logging option disables the logging that Sequelize does during each query or it'll ends up polluting logs when using this as a library in another project when enabled. As for the whitespace I can't quite tell what the rule is or remember. Is it tabs or spaces? |
This PR fixes issues with pinyin searching for example properly detecting dead tones, converting
ü & v
characters tou:
, and updated database to have all pinyin lower cased for proper detection of proper nouns.