|
本帖最后由 chigre 于 2012-7-13 06:08 编辑
& Z2 b' t. q8 u+ b* f3 n) j9 T+ Q" _; I# E$ ^4 |7 d" C
一、实现查询区特殊字符的自动替换
& q9 _' I6 Z+ Y6 R- f' g, N; k3 N# y比如说,想查询 élite ,输入 elite ,就可以自动显示 列表中的 élite 词条!!
& a6 x$ P1 o5 R0 S( ?+ j实际目前操作结果如图显示:
8 M0 t) ~; g! V* H% w6 p0 J. U7 A
& a% K! ^" _+ G3 T$ Q5 F) u0 ?
二、词条中部查询匹配程度
- u4 I3 o1 K1 K( c2 _- Z. s3 `
i/ s& V; z$ hGoldendict有此项功能!
4 V+ S3 U# ?1 V6 MBluedict虽然可以使用【全文搜索】,但操作略显麻烦!! p2 E- K! K4 J
% d# R/ y8 o4 {2 C( G7 A2 K+ l
* |! L! V% C% m/ X- E, }! i选项里设置【Middle match deepness】
; \* N2 i& V5 ^0 z$ e! u1 j例子如下,比如我们要查找word这个词,中间匹配程度、查询词条如下:* k/ k+ `6 h8 \9 t7 R% \
需要重建索引!!!
7 Y; O9 _% t. h: W- 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. @! f! [7 Y X! C
8 y/ {9 [+ V2 w) l) l
8 j3 D1 N# B# \4 P2 `% G0 n1 A j0 q/ l5 I" `
三、要是MDICT / BLUEDICT等能实现 类似[tried→try][happier→happy]等的自动查询,就好了~~& n- y( A" M- V
. D6 \8 y6 T+ P* g: G$ d/ Y实际上GoldenDict早就做到了这点,即; z% C" L! _% |4 o# r8 }& y
【构词法规则库】. m7 e A5 I% `9 l
储存 Hunspell / Myspell 拼写检查词库文件的路径:
: ~ d0 }2 f5 ?& E- U. Z" z* X* ~C:/Program Files/GoldenDict/content/morphology$ \7 y, D7 b; W6 k
目前Goldendict安装后里面有:【德语、英语、西班牙语、法语、意大利语、葡萄牙语、俄语】的构词法规则库
8 M* C; P+ `7 ^---------------------------------------------5 ^% R8 F2 y% `4 a: a# V2 x. F
实际上,Hunspell应用的范围很广泛(其他详见链接):
2 {9 i: {& J8 f3 I9 D; Y9 [; c; VHunspell 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.. q8 N* L. V6 n$ k: T4 O
---------------------------------------------
! U7 j0 o0 a4 [+ [- y( f/ D3 WGoldendict的android版本还并未加入该项功能,不知道rayman或者深蓝两位作者有没有兴趣把这项强大的功能加入? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|