File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 7979
8080 "pinyin-to-zhuyin" : [
" pinyin-to-zhuyin@git+ssh://[email protected] :logicmason/pinyin-zhuyin.git#3ea078be334fb52287362f5d4b65e2c3ddec9d4f" , {
"bin" : {
"p2z" :
" ./p2z.js" ,
"z2p" :
" ./z2p.js" } },
" 3ea078be334fb52287362f5d4b65e2c3ddec9d4f" ],
8181
82- "pinyin-tone-tool" : [
" [email protected] .2 " ,
" " , {
"bin" : {
"markTones" :
" markTones.js" ,
"numberTones" :
" numberTones.js" ,
"segmentWord" :
" segmentWord.js" } },
" sha512-nc/lf3NMqHvtNG/eyTduSYFaeMFtz+9xvPpxB0CrKifaGgKD8yDsMs/vJiUKZdHl0TXmsd8uofB8hkxdeG6bhg ==" ],
82+ "pinyin-tone-tool" : [
" [email protected] .3 " ,
" " , {
"bin" : {
"markTones" :
" markTones.js" ,
"numberTones" :
" numberTones.js" ,
"segmentWord" :
" segmentWord.js" } },
" sha512-KglQxxFPidBn6TuEWKNwCvdR4Vl41mccVaNK/WCthd5rENNx+eJyf3KcXR+vZJws/2NmP3Ayq07R1TSnJQKU9w ==" ],
8383
8484 "process-nextick-args" : [
" [email protected] " ,
" " , {},
" sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" ],
8585
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { processGuifan } from "./dics/guifan/guifan.ts";
44import { processHanyu7 } from "./dics/hanyu7/hanyu7.ts" ;
55
66const versions = {
7- guifan : "2025/12/15.8 " ,
8- hanyu7 : "2025/12/15.8 " ,
7+ guifan : "2025/12/16.1 " ,
8+ hanyu7 : "2025/12/16.1 " ,
99} ;
1010
1111const guifanPinyinDic = new Dictionary ( { fileName : "guifan-pinyin.zip" } ) ;
Original file line number Diff line number Diff line change 1414 "dependencies" : {
1515 "cheerio" : " ^1.1.2" ,
1616 "pinyin-to-zhuyin" :
" [email protected] :logicmason/pinyin-zhuyin.git" ,
17- "pinyin-tone-tool" : " ^1.0.2 " ,
17+ "pinyin-tone-tool" : " ^1.0.3 " ,
1818 "ramda" : " ^0.32.0" ,
1919 "yomichan-dict-builder" : " ^2.10.0"
2020 }
Original file line number Diff line number Diff line change 11import { p2z } from "pinyin-to-zhuyin" ;
22import { findSyllableBoundaries } from "pinyin-tone-tool" ;
33
4- const word = "qiènuò " ;
4+ const word = "qiērù " ;
55const out = findSyllableBoundaries ( word ) ;
66console . log ( `word: ${ word } ` ) ;
77console . log (
88 "split" ,
99 out . map ( ( a ) => word . slice ( a . start , a . end ) )
1010) ;
11-
12- console . log ( `p2z ${ p2z ( "qiènuò" ) } ` ) ;
11+ console . log ( p2z ( word ) ) ;
You can’t perform that action at this time.
0 commit comments