cnchar
cnchar copied to clipboard
🇨🇳 功能全面的汉字工具库 (拼音 笔画 偏旁 成语 语音 可视化等) (Chinese character util)
Bumps [express](https://github.com/expressjs/express) from 4.17.2 to 4.18.2. Release notes Sourced from express's releases. 4.18.2 Fix regression routing a large stack in a single route deps: [email protected] deps: [email protected] perf: remove unnecessary...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge`: avoid a crash with a null target and a truthy...
``` cnchar.radical('你'); // 返回了亻,但我希望返回的是[ { "radicalCount": 2, "radical": "亻", "struct": "左右结构" } ] ```
使用setSpell时,库会对数据进行校验 例如「哼」,它在百度汉语上有两个读音「hēng」和「hng」 但是「hng」会被判定为错误读音 希望能够支持这种自定义,或者有个配置项比如跳过校验,强制加入之类 期待您的回复
cnchar.draw 的背景颜色是白色,可以设置为其他颜色吗? options 参数中并没有对应的 backgroundColor 设置项。
在使用了 `cnchar-trad` 後,簡體 `音乐` 的 `乐` 由正確的 `yuè` (見 Test2) 變成了錯誤的 `lè` (見 Test4) ```typescript import cnchar from "cnchar" const testText = "音樂,音乐" console.log("Test1:", cnchar.spell(testText, "array", "tone", "low")) // Test1:...
【spellInfo】错误的拼音: lue, 请检查字符是否正确 【spellInfo】错误的拼音: kei, 请检查字符是否正确 【spellInfo】错误的拼音: ei, 请检查字符是否正确 【spellInfo】错误的拼音: m, 请检查字符是否正确 这个字”欸“读ei,http://xh.5156edu.com/html2/e02.html 这个字”剋“读kei, 这个字”呣“、”呒“读m,http://xh.5156edu.com/html2/m01.html lue,不是lüe,也有汉字,http://xh.5156edu.com/html2/l23.html 我参考的http://xh.5156edu.com/pinyi.php 和 [#汉语拼音章节索引表](https://wenku.baidu.com/view/7ace3126dd36a32d7375817c.html?fr=aladdin664466&ind=1&aigcsid=39661&qtype=0&lcid=1&queryKey=%E6%B1%89%E8%AF%AD%E6%8B%BC%E9%9F%B3%E9%9F%B3%E8%8A%82%E7%B4%A2%E5%BC%95&_wkts_=1711085951770&bdQuery=%E6%B1%89%E8%AF%AD%E6%8B%BC%E9%9F%B3%E9%9F%B3%E8%8A%82%E7%B4%A2%E5%BC%95)
复现代码如下: ```html Title cncharDraw('好', { // el: "#draw", type: "animation", animation: { autoAnimate: true, animateComplete: function () { console.log("动画完成") } }, }) ``` 
