|
本帖最后由 chigre 于 2012-7-13 06:08 编辑
0 {) m+ R: H4 w; [2 d1 D5 K) Q4 ^0 _# V$ T' h( }
一、实现查询区特殊字符的自动替换1 A$ D' W1 l7 Q$ t+ N4 P3 U0 I
比如说,想查询 élite ,输入 elite ,就可以自动显示 列表中的 élite 词条!!2 |' Q9 ]* t8 d% A+ F9 a s5 A
实际目前操作结果如图显示:
; R3 z6 y+ K& _4 Q6 b7 r) S' D# t) \9 d8 P+ l7 V( _) d
; D& M( C+ @# Q7 p3 S% M, @+ Q1 F二、词条中部查询匹配程度
! y6 e* a9 k) C' e
5 Q6 K P' e/ A; d. B' qGoldendict有此项功能!# A9 G3 Y/ \+ h+ p, L
Bluedict虽然可以使用【全文搜索】,但操作略显麻烦!* z+ q3 E' X0 y. C4 s2 M0 f# E
6 t8 t( A1 a' L" v2 Z. \
% {3 k2 T7 M7 b/ O( c
选项里设置【Middle match deepness】# n8 i0 W9 r9 U- E% j: `% o: Z
例子如下,比如我们要查找word这个词,中间匹配程度、查询词条如下:/ `( j4 [) ~# w8 v+ ?. v9 Z
需要重建索引!!!/ F* D) I8 M7 Z4 E# o
- 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
. s4 o. T7 V+ ~% Y: v8 X g
( ]1 S+ k) l" o3 C- t+ }3 O" r$ ?
9 o! Y) y2 }% Q S: A5 S W; @& ]
三、要是MDICT / BLUEDICT等能实现 类似[tried→try][happier→happy]等的自动查询,就好了~~, G# D" v( m3 p9 n
6 v4 l5 f$ l' M1 j, C: S# v- n
实际上GoldenDict早就做到了这点,即
; p6 o" p: i% y k/ b0 k【构词法规则库】
; R% R% r: d3 t, [储存 Hunspell / Myspell 拼写检查词库文件的路径:
. }# A# W4 y1 J" l! `C:/Program Files/GoldenDict/content/morphology5 m1 H7 `' k) u) K) v
目前Goldendict安装后里面有:【德语、英语、西班牙语、法语、意大利语、葡萄牙语、俄语】的构词法规则库$ j* Q' \6 B. h2 H4 Y- u
---------------------------------------------; G6 r( k5 S" `/ ~. @) Z2 }% f
实际上,Hunspell应用的范围很广泛(其他详见链接):" v# [5 f1 l% d) u: _& g M ]6 `6 R
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.
0 @0 w7 Y1 V! j1 U6 }: D---------------------------------------------
- P2 g8 N5 i) z9 c1 s4 d6 x4 M0 ?Goldendict的android版本还并未加入该项功能,不知道rayman或者深蓝两位作者有没有兴趣把这项强大的功能加入? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|