|
本帖最后由 chigre 于 2012-7-13 06:08 编辑
4 h- H9 x8 V3 T' b5 Q# ~' ?) w* K4 i9 y9 v, Y( Z
一、实现查询区特殊字符的自动替换( \, A/ ]+ ]+ u' K' k* x
比如说,想查询 élite ,输入 elite ,就可以自动显示 列表中的 élite 词条!!9 M) z- [, P# ^# m3 ?/ N6 L
实际目前操作结果如图显示:: I7 B* _2 X M2 d- y
- G. [( b4 e2 A# o
8 G$ ?" S( F3 h, t二、词条中部查询匹配程度
& [' A3 _, S6 D, H- m1 O' a! Y1 |5 n5 [( L% u
Goldendict有此项功能!
; Y# L7 A1 k0 G( o2 o3 a8 o+ nBluedict虽然可以使用【全文搜索】,但操作略显麻烦!4 g; q; h: l( T; ?' T$ w I
; F3 e# V, H. S& j( S8 y
/ x, Q6 G+ H& g }选项里设置【Middle match deepness】 @% @/ v3 c; x) Z: ^& C" g$ A) ?
例子如下,比如我们要查找word这个词,中间匹配程度、查询词条如下:
+ I0 _0 m2 L+ {需要重建索引!!!
8 T+ a0 @! i- S/ E. `" D8 \9 i- 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
/ O/ f$ {) A# n" o7 n 4 A7 I+ W3 r3 H
& L6 i" ^$ o+ u' G7 n$ L
+ }. {( S, E6 S9 b. Q( L三、要是MDICT / BLUEDICT等能实现 类似[tried→try][happier→happy]等的自动查询,就好了~~& W9 A9 e4 G5 b5 p5 {! l* [
3 M$ S9 @( U1 s3 k& ?' \
实际上GoldenDict早就做到了这点,即
! E( Z" u4 e" @) c- H【构词法规则库】5 R; B, a* q, z2 k6 U
储存 Hunspell / Myspell 拼写检查词库文件的路径:$ \, g0 V1 a( W1 C1 L6 h( g
C:/Program Files/GoldenDict/content/morphology/ `/ T! w: ?! l
目前Goldendict安装后里面有:【德语、英语、西班牙语、法语、意大利语、葡萄牙语、俄语】的构词法规则库
0 k5 o' j9 s/ S---------------------------------------------/ c' [! Y) @5 u2 ]: }
实际上,Hunspell应用的范围很广泛(其他详见链接):
) U5 L: t s- E, K- {2 ~, \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.
; d0 f$ a6 O) T8 ?/ `; U---------------------------------------------4 |) C, M: g. ]: B
Goldendict的android版本还并未加入该项功能,不知道rayman或者深蓝两位作者有没有兴趣把这项强大的功能加入? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|