|
本帖最后由 chigre 于 2012-7-13 06:08 编辑
# b m% W# C: M3 v6 O" f) N$ I" b( A1 w) a2 q- q8 O# u
一、实现查询区特殊字符的自动替换1 R4 j) V4 X& @; `6 {
比如说,想查询 élite ,输入 elite ,就可以自动显示 列表中的 élite 词条!!
" |) w/ D% h4 Z G+ B1 g e! j) n E实际目前操作结果如图显示:
, X5 l4 v' N4 ~0 `5 l! J0 ^' ^# Y( S$ U- t' P4 p: E- [' o/ M
# q3 @8 V8 L. e$ ]二、词条中部查询匹配程度
3 A) e6 o, f( W7 h+ H. [5 v5 M/ g/ @& | \" V; I3 c
Goldendict有此项功能!8 F2 [" w w/ p6 E! Y, j* O7 e
Bluedict虽然可以使用【全文搜索】,但操作略显麻烦! \1 C$ q; O+ b) H: x8 T4 d0 ~3 H- _
5 O! k( x$ x5 z
8 f/ B" ^) j" h s% r3 f: L; B' q$ {选项里设置【Middle match deepness】
$ d( @: @' U! Y8 C' L; S1 [9 y- Z例子如下,比如我们要查找word这个词,中间匹配程度、查询词条如下:
' Z6 T" B+ d# }+ ?5 Y4 l需要重建索引!!!
+ H9 B! H7 \4 R4 w1 _2 A- 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
6 ^5 }" a' c8 R( e% [
9 O5 T5 \5 S D" x: L! u) s, ?$ L7 H' ^, U8 b' B
8 ~# I# U3 d1 Q8 L0 r) Y% z! O7 h) X# ]
三、要是MDICT / BLUEDICT等能实现 类似[tried→try][happier→happy]等的自动查询,就好了~~! d+ H, i% N, W$ R6 Y
: x0 \1 r$ T7 |2 k! |, |8 g8 {
实际上GoldenDict早就做到了这点,即3 A5 z% I: n, u
【构词法规则库】; d3 R' J& v: H }" E( _1 G7 S, |
储存 Hunspell / Myspell 拼写检查词库文件的路径:/ V' R; n. c7 G$ z: i
C:/Program Files/GoldenDict/content/morphology
. z# H3 Y8 A3 _目前Goldendict安装后里面有:【德语、英语、西班牙语、法语、意大利语、葡萄牙语、俄语】的构词法规则库
w- t: A% [$ h$ q4 G7 m4 o' ?---------------------------------------------
7 V( o$ L$ L) N% T! r. p实际上,Hunspell应用的范围很广泛(其他详见链接):
4 J( \ E4 A: D+ N) d+ |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 `: _& Y- W# H2 B$ ~) K5 P
---------------------------------------------
% K& i% o1 ?9 p+ w$ [" d$ GGoldendict的android版本还并未加入该项功能,不知道rayman或者深蓝两位作者有没有兴趣把这项强大的功能加入? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|