Skip to content

Commit

Permalink
Merge pull request #154 from hotoo/feat/typo
Browse files Browse the repository at this point in the history
typo: 音标 -> 声调
  • Loading branch information
hotoo committed Aug 26, 2017
2 parents 0929898 + f21c8ba commit 7407b65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/phonetic-symbol.js
@@ -1,4 +1,4 @@
// 带音标字符
// 带声调字符
module.exports = {
"ā": "a1",
"á": "a2",
Expand Down
4 changes: 2 additions & 2 deletions lib/pinyin.js
Expand Up @@ -3,7 +3,7 @@
const assign = require("object-assign");
// XXX: Symbol when web support.
const PINYIN_STYLE = {
NORMAL: 0, // 普通风格,不带音标
NORMAL: 0, // 普通风格,不带声调
TONE: 1, // 标准风格,声调在韵母的第一个字母上。
TONE2: 2, // 声调以数字形式在拼音之后,使用数字 0~4 标识。
TO3NE: 5, // 声调以数字形式在声母之后,使用数字 0~4 标识。
Expand All @@ -20,7 +20,7 @@ const DEFAULT_OPTIONS = {
const INITIALS = "b,p,m,f,d,t,n,l,g,k,h,j,q,x,r,zh,ch,sh,z,c,s".split(",");
// 韵母表。
//const FINALS = "ang,eng,ing,ong,an,en,in,un,er,ai,ei,ui,ao,ou,iu,ie,ve,a,o,e,i,u,v".split(",");
// 带音标字符
// 带声调字符
const PHONETIC_SYMBOL = require("./phonetic-symbol");
const RE_PHONETIC_SYMBOL = new RegExp("([" + Object.keys(PHONETIC_SYMBOL).join("") + "])", "g");
const RE_TONE2 = /([aeoiuvnm])([0-4])$/;
Expand Down

0 comments on commit 7407b65

Please sign in to comment.