|
本帖最后由 chigre 于 2012-7-13 06:08 编辑 3 V2 B* x2 v3 A- l5 y- ~1 j+ |
( B. ^; m' ^, j: s' s6 M8 H一、实现查询区特殊字符的自动替换
" P7 ?% o6 V8 W比如说,想查询 élite ,输入 elite ,就可以自动显示 列表中的 élite 词条!!- U, ? D* H* E4 }- F" ] D1 W% X# Y
实际目前操作结果如图显示:; K, L7 E! K8 x+ q. W, u$ x( m
7 t! f$ ^& f: r6 a4 S& a" c/ ~: C
9 h3 F1 x# n# }. t! j二、词条中部查询匹配程度
) y4 S! P& R/ _/ t1 i% G/ {
" B9 @( z' J( rGoldendict有此项功能!. [7 ~( ^6 }0 V, E7 I, U; y2 F& d% H2 @' }
Bluedict虽然可以使用【全文搜索】,但操作略显麻烦!- [( g( b7 A2 V1 y
( b) }! M7 Q8 y( I$ q( p3 i
! P4 O( K7 E6 ] K2 J& o选项里设置【Middle match deepness】/ E, R0 `9 Z; X* [
例子如下,比如我们要查找word这个词,中间匹配程度、查询词条如下: M% d3 ] J) i1 C% k" g
需要重建索引!!!8 M+ p1 `8 L" a/ ?, X: W! c: S
- 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
& k: N8 X$ w# ]: ]" D7 E
5 g2 w" E( t, `9 c# y3 u* j8 X( Z* X, J3 J9 j8 h. E
3 S- i" N" v* {2 @$ t三、要是MDICT / BLUEDICT等能实现 类似[tried→try][happier→happy]等的自动查询,就好了~~. Z; m7 Q& ?" X7 N- v2 V# @8 e+ n; x
0 c' Z) }$ c. U$ T. ?0 f
实际上GoldenDict早就做到了这点,即; `7 V6 Y% r) Y2 ?: j1 [
【构词法规则库】5 S% a4 \2 P1 R1 r# v4 @/ d9 w
储存 Hunspell / Myspell 拼写检查词库文件的路径:' I- Z" j: @4 _, I. z7 v: Q
C:/Program Files/GoldenDict/content/morphology8 }& R. w+ T. L) N8 \( A y
目前Goldendict安装后里面有:【德语、英语、西班牙语、法语、意大利语、葡萄牙语、俄语】的构词法规则库" X$ t' `1 \# l* P
---------------------------------------------; x9 f+ P' ~+ E* m! i
实际上,Hunspell应用的范围很广泛(其他详见链接):$ }% b* l, G d# b( F
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.4 Q1 p% \8 C' @( d/ E, I$ U( I
---------------------------------------------; S0 F' {% \% ^& z, \ S- R
Goldendict的android版本还并未加入该项功能,不知道rayman或者深蓝两位作者有没有兴趣把这项强大的功能加入? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|