flask-mdict 架设自己的 MDict Web Server

Posted by & filed under Dictionary.



https://github.com/liuyug/flask-mdict!
针对非 IT 人员,多说些:

1. 安装 python3,加入到 windows 路径
2. 下载  https://github.com/liuyug/flask-mdict/archive/master.zip 并解压缩
3. 打开 cmd 窗口,进入解压缩目录
4. 安装依赖包,pip3 install -r requirements.txt
5.建立 content 目录, mkdir content8 I. I; a3 d* r
6. 下载词频信息  https://github.com/skywind3000/ECDICT/raw/master/ecdict.csv
7.将 ecdict.csv 转换为 sqlite3

星际译王(StarDict)的2.4.6版新增加了Windows下屏幕取词的功能

Posted by & filed under Dictionary, Uncategorized.

http://reciteword.cosoft.org.cn/yaoguang/showarticle.php?category=myarticle&&docpage=0&&newsid=24

星际译王(StarDict)的2.4.6版新增加了Windows下屏幕取词的功能。在开发这个功能时参考了Mueller Electronic Dicionary(一个用Delphi编的词典软件)的源代码,以及网上的文档。开发语言是C,用Dev-cpp编译。
这个功能现在还不太完善,目前有以下问题:
1. 在Win2k系统下,对桌面上的英文取词时为乱码。Windows XP则没有问题。
2. 在标题栏,开始菜单及IE, FireFox, Opear等软件上取词时,获取的Y坐标值不正确。见源码包里的src/win32/TextOutHook.c的IsInsidePointW()里的注释。
3. cmd.exe(命令提示符)无法取词。见源码包里的src/win32/GetWord.c的RemoteExecute()里的注释。
4. Adobe Reader无法取词。可能要像金山词霸那样编个Adobe Reader的插件。
希望高手能帮忙解决。
现在把完整源代码贴到这里:

TextOutSpy.c

=============================

#include “TextOutSpy.h”

#include “ThTypes.h”
const int MOUSEOVER_INTERVAL = 300;

const int WM_MY_SHOW_TRANSLATION = WM_USER + 300;
HINSTANCE g_hInstance 

新しい勉強指向辞典の構築 2006.1

Posted by & filed under Dictionary.

1、Club StartKit の構築
2006.1.18Personal StartKitに移植する(Skinのサポート)
2、RapTierの導入
3,漢字の判断:
C#:

protected bool IsKanji(string strInput)
{
UnicodeEncoding utf16 = new UnicodeEncoding();
byte[] bytes;
bytes = utf16.GetBytes(strInput);
if (bytes.Length < 2)
{
return false;
}
double intNum;
intNum = bytes[1] * (Math.Pow(2, 8) ) +

中国語検索時にミス

Posted by & filed under Ajax, ASP.NET, Dictionary, Japanese.

自家製の辞典で中国語検索時にミスがありまして、調べた結果は:
パラメータオブジェクトのデータ型をAnsiStringに指定しています。
これをStringに変更したら、OKです。
よかった!!!…