Skip to content
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

码表查询思路探索 #2

Open
jingjingxyk opened this issue Apr 19, 2023 · 3 comments
Open

码表查询思路探索 #2

jingjingxyk opened this issue Apr 19, 2023 · 3 comments

Comments

@jingjingxyk
Copy link
Contributor

码表查询思路探索 drawio

@yanhuacuo
Copy link
Owner

不知 js 的数组性能,满不满足一个输入法词典所要求的响应速度。
码表结构,可以直接使用「单行多义」码表。

a 工 戈
aa 式 藏
aaa 工
aaaa 工 藏匿 花花草草 恭恭敬敬 㠭
aaab 㐂
aaae 黄花菜
aaag 工巧
aaah 葡萄牙
aaaj 藏蓝
aaak 工勤
aaal 花花世界
aaan 工艺
aaar 工匠 工区 藏区
aaau 工薪 菚
aaaw 茉莉花
aaay 劳苦功高
aabb 式子
aabg 草草了事

google 则是 js 不负责运算(检索),把码表放在了服务器上。

但是形码用户的数据量不大,把码表直接加载到扩展内也许更合适。

中州韵98五笔助手,是通过把码表转化成 unicode 点位来储存,检索时使用位运算实现的(C++)。

@jingjingxyk
Copy link
Contributor Author

没事,一种的试一试 ,那种合适用那种

当前先把 方式一 实现了

@jingjingxyk
Copy link
Contributor Author

更多信息看这里: yanhuacuo/98wubi-tables#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants