You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @pepebecker
Thanks for the great plugin, I have used it in my nativescript project.
With all the required dependency plugins installed, I have encountered several problems.
the error of './py2zh'
Module not found: Error: Can't resolve './py2zh' in '/Users/shilik/mobile/text_suggest/node_modules/zhuyin'
This error disappeared after I changed const py2zh = require("./py2zh") to const py2zh = require("./py2zh.json")
2.Using the example, but yields different results.
const zhuyin = require('zhuyin')
zhuyin('wǒ de māo xǐhuan hē níunǎi')
.then(console.log)
[ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ] should be the output,
but what I got is the following:
[ 'ㄉㄜ˙', 'ㄇ˙', 'ㄛ˙', 'ㄏㄨㄢ˙', 'ㄋ˙', 'ㄋ˙', [length]: 6 ]
Any suggestion?
shilik
The text was updated successfully, but these errors were encountered:
Hi @pepebecker
Thanks for the great plugin, I have used it in my nativescript project.
With all the required dependency plugins installed, I have encountered several problems.
Module not found: Error: Can't resolve './py2zh' in '/Users/shilik/mobile/text_suggest/node_modules/zhuyin'
This error disappeared after I changed const py2zh = require("./py2zh") to const py2zh = require("./py2zh.json")
2.Using the example, but yields different results.
const zhuyin = require('zhuyin')
zhuyin('wǒ de māo xǐhuan hē níunǎi')
.then(console.log)
[ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ] should be the output,
but what I got is the following:
[ 'ㄉㄜ˙', 'ㄇ˙', 'ㄛ˙', 'ㄏㄨㄢ˙', 'ㄋ˙', 'ㄋ˙', [length]: 6 ]
Any suggestion?
shilik
The text was updated successfully, but these errors were encountered: