|
本帖最后由 chigre 于 2012-7-13 06:08 编辑
) y& _% K3 c" _: D9 D; |2 l6 X5 Z& U# M+ p" G0 ]. U, i k! |
一、实现查询区特殊字符的自动替换
. n! `5 p9 L& ~, A4 z% Z比如说,想查询 élite ,输入 elite ,就可以自动显示 列表中的 élite 词条!!
/ `9 `* F5 l; s# n$ R实际目前操作结果如图显示:) `4 ]7 }! y1 r. q5 a% L; F
$ c9 Q& W5 w* i0 d
+ |& T; ^$ k" ]4 T4 |0 [0 e/ a% d) q
二、词条中部查询匹配程度& y5 z3 ] h1 A, E
: k, ]4 V0 O+ O+ u7 ]2 |2 Z
Goldendict有此项功能!
2 o% X: |/ Z9 \Bluedict虽然可以使用【全文搜索】,但操作略显麻烦!; @: x0 E) @ B5 x. }% a* F
+ S: Y: u" `6 K
0 G$ p& D6 L6 v5 v o选项里设置【Middle match deepness】
) I, i! z& W" Q M- p% x& d! m7 X例子如下,比如我们要查找word这个词,中间匹配程度、查询词条如下:* t7 _! c% g6 d
需要重建索引!!!
, X9 e9 A: V" x- 0 word
- 1 the word
- 2 in other words
- 3 that is the word
- 4 say it in a word
- 5 that is a lot of words
- 6 how many more of those nice words
- 7 yet some more of those nice happy words
- 8 lots and lots of quite a lot of words
- 9 we hope you have got the idea about those words
- ∞ ... words
K9 E @. O7 t0 k
6 C0 w' S6 n% d0 f
* |) Q; X2 }' d! g0 J" _2 C1 E- _$ D
三、要是MDICT / BLUEDICT等能实现 类似[tried→try][happier→happy]等的自动查询,就好了~~
* M! ?1 M4 o/ T, M, u! f6 c5 T4 S1 `, K" }4 `5 x
实际上GoldenDict早就做到了这点,即
# R1 R, l9 l0 a' G( Z# D" x! Q- Z【构词法规则库】
O' c6 R g( @- J4 M储存 Hunspell / Myspell 拼写检查词库文件的路径:- A& l' v" e8 Y8 t
C:/Program Files/GoldenDict/content/morphology
% t0 \, C& b3 Q$ H6 x. U目前Goldendict安装后里面有:【德语、英语、西班牙语、法语、意大利语、葡萄牙语、俄语】的构词法规则库: W: R" v" M0 a5 q) |. [
---------------------------------------------
: S2 t- n! w9 {7 W( ^. L/ N实际上,Hunspell应用的范围很广泛(其他详见链接):/ `* V2 ^. b, N2 T
Hunspell is the spell checker of LibreOffice, OpenOffice.org and Mozilla Firefox 3 & Thunderbird, Google Chrome, and it is also used by proprietary softwares, like Mac OS X, memoQ, Opera and SDL Trados., P, d! D8 t: Y
---------------------------------------------
" B2 b6 x( T4 j) [ tGoldendict的android版本还并未加入该项功能,不知道rayman或者深蓝两位作者有没有兴趣把这项强大的功能加入? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|