好像简/繁体之间的意思有点不对哦.
下面好像一个找到日文去了,一个却找对了.
iciba.net就会把"無"解成"无",要不要加上这个功能?
--------------------
無:
下列单词含有 [ 無 ] 解释: 
1. white adj. 青白い; 透明な, 無色[害]の; 汚れのない, 潔... 
---------------------------------
无:
1. 无聊 
下列单词含有 [ 无 ] 解释: 
1. null n. 无 
2. myriad adj. 无数 
3. inability n. 无能 
4. nameless adj. 无名的 
5. useless adj. 无用的 
与 [ 无 ] 相关的短句: 
1. A bird of passage 居无定所的人 
2. Dead men tell no tales. 死无对证 
3. A good conscience is a soft pillow. 问心无愧,高枕无忧 

解决方案 »

  1.   

    我没有简体繁体转换功能的,以后再加进去吧,现在词库的词才17000个,手工输入很慢,希望大家多用用,我就知道哪些常用的没有了。
    发音功能有问题吗?我用的是realplayer的插件,我这里能正常放的,还有谁能帮我测试一下?我这里的读音有8,9000个,100多M,要是不能放就太可惜了
    源码过些时候就公开,希望有兴趣的跟我一起开发,现在的算法还比较弱。
      

  2.   

    怎么回事啊?你们听不到的是不是都没有装realplayer的?我要换media player放了
      

  3.   

    没什么技术的,数据库不大,现在是1万7千个单词,下面是相似单词查找的SQL语句条件,其它的都是很简单的SQL语句。
    for ($i = 1; $i < $len; $i ++)
    {
    $temp = $word;
    /* mis-spell one letter */
    $temp{$i} = '_';
    $strcond .= " word_spell LIKE '$temp' OR";
    /* miss one letter */
    $temp = substr($word, 0, $i).substr($word, $i+1);
    $strcond .= " word_spell LIKE '$temp' OR";
    /* redundant of one letter */
    $temp = substr($word, 0, $i).'_'.substr($word, $i);
    $strcond .= " word_spell LIKE '$temp' OR";
    for ($j = $i+1; $j < $len && $len >= 6; $j++)
    {
    $temp = $word;
    /* mis-spell two letters */
    $temp{$i} = '_';
    $temp{$j} = '_';
    $temp = str_replace('/__/','_',$temp);
    $strcond .= " word_spell LIKE '$temp' OR";
    $temp = $word;
    for ($k = $j + 1; $k < $len && $len >= 10; $k++)
    {
    $temp = $word;
    $temp{$i} = '_';
    $temp{$j} = '%';
    $temp{$k} = '%';
    $strcond .= " word_spell LIKE '$temp' OR";
    }
    }
    }还有就是相似读音:
    function SimilarHomophoneString($word)
    {
    $table = 'bcdfghjklmnpqrstvwxyz';
    $word = preg_replace('/([a-z]|[\xE0-\xEF][\x80-\xBF][\x80-\xBF])/i', '$1%', $word);
    $word = preg_replace("/([$table])%+([aoeiu])/i", '$1$2', $word);
    $word = preg_replace("/([aoeiuv])[%]+([aoeiu])/i", '$1$2', $word);
    $word = preg_replace("/([0-4])/i", '$1%', $word);
    return "$word";
    }
      

  4.   

    还有以下程序是“偷”韦伯网上词典读音的:
             $fp = fopen("http://www.m-w.com/cgi-bin/dictionary?".
    "book=Dictionary&va=$word","rb");
    if ($fp==NULL) continue;
    $content = '';
    while (!feof($fp) && $fp !=NULL)
    {
    $content .= fgets($fp, 1024);
    }
    fclose($fp);
    if (!preg_match('/\/cgi\-bin\/audio\.pl\?([0-9a-z]+)\.wav='.$word.'/i',
    $content,$matches))
    {
    continue;
    }
    $fp = @fopen("http://cougar.eb.com/sound/$first/{$matches[1]}.wav", "rb");
    if ($fp==NULL) continue;
    $result ='';
    while (!feof($fp) && $fp != NULL)
    {
    $result .= fgets($fp, 128);
    }
    fclose($fp);