【应用】_有道词典客户端一个后缀名为sql的数据库。
【缘起】
在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达140MB了,于是进去看看。
发现个有趣的文件:XXX.sql。
首先我们看一看它的安装文件夹的结构:
Dict
└─Application
│ guid.dat
│ Readme.txt
│ uninst.exe
│ vendor.dat
│ YodaoDict.exe
│
├─5.4.43.3217
│ │ CrashRpt.dll
│ │ dictcn.db
│ │ dicten.db
│ │ doc.tpl
│ │ guid.dat
│ │ InstallDaemon.exe
│ │ Monitor.exe
│ │ TextExtractorImpl32.dll
│ │ TextExtractorImpl64.dll
│ │ Versions.xml
│ │ WordBook.exe
│ │ WordStrokeHelper32.dll
│ │ WordStrokeHelper64.dll
│ │ XDLL.dll
│ │ YodaoDict.api
│ │ YoudaoCookieAssist.exe
│ │ YoudaoDictInstaller.exe
│ │ YoudaoDictPlugin.mxaddon
│ │ YoudaoDictPlugin.sext
│ │ YoudaoDictPlugin_360.crx
│ │ YoudaoEH.exe
│ │ YoudaoWSH.exe
│ │
│ ├─intro
│ │ │ pre.html
│ │ │ step1.html
│ │ │ step2.html
│ │ │ step3.html
│ │ │ style.css
│ │ │
│ │ └─images
│ │ arrow.png
│ │ dot.gif
│ │ sprite.jpg
│ │ topbar_step_arrow.png
│ │ topbar_step_bg.png
│ │
│ ├─otherskins
│ │ │ login.bmp
│ │ │ login.xml
│ │ │
│ │ └─simisent
│ │ │ default.js
│ │ │ example-similar.html
│ │ │ jquery.min.js
│ │ │
│ │ ├─css
│ │ │ bg.png
│ │ │ dict.css
│ │ │ nav.png
│ │ │ new-sprite.png
│ │ │ OffLine.jpg
│ │ │ s-search-.png
│ │ │ s-search.png
│ │ │ similar.css
│ │ │
│ │ └─images
│ │ fangfa1.png
│ │ fangfa2.png
│ │
│ ├─res
│ │ │ fan.xml
│ │ │ faq.html
│ │ │ updater.xsl
│ │ │
│ │ ├─images
│ │ │ image-q1-.gif
│ │ │ image-q3-.gif
│ │ │ image-q3-.gif
│ │ │ laba1.gif
│ │ │ title_back.gif
│ │ │
│ │ └─style
│ │ global.css
│ │ updater.css
│ │
│ ├─resultui
│ │ │ commonfile.xsl
│ │ │ defaultad.html
│ │ │ exampleresult.xsl
│ │ │ index.html
│ │ │ index3.html
│ │ │ instantresult.xsl
│ │ │ miniresult.html
│ │ │ miniresult.xsl
│ │ │ property.ini
│ │ │ pup.html
│ │ │ queryresult.html
│ │ │ result.xsl
│ │ │ ss_dict.xsl
│ │ │ strksrchresult.html
│ │ │ verifycode.html
│ │ │ wbblank.html
│ │ │ wbbrowser.html
│ │ │ wbfinish.html
│ │ │ wbreview.html
│ │ │ wbwelcome.html
│ │ │ wikiresult.xsl
│ │ │
│ │ ├─css
│ │ │ base.css
│ │ │ bg-win7.jpg
│ │ │ bg.jpg
│ │ │ body-bg.png
│ │ │ default.css
│ │ │ loading.gif
│ │ │ mini.css
│ │ │ new-sprite.png
│ │ │ pic-bg.png
│ │ │ play.png
│ │ │ stroke.css
│ │ │
│ │ ├─images
│ │ │ │ back.png
│ │ │ │ background.png
│ │ │ │ cidian_aqurebutton_close.gif
│ │ │ │ cidian_aqurebutton_open.gif
│ │ │ │ cidian_point_empty.gif
│ │ │ │ cidian_point_solid.gif
│ │ │ │ confirm.png
│ │ │ │ defaultAdv.jpg
│ │ │ │ displaypoint.gif
│ │ │ │ dont-remember.png
│ │ │ │ earthpic.jpg
│ │ │ │ forget-disable.png
│ │ │ │ forget.png
│ │ │ │ forget2.png
│ │ │ │ graypoint.gif
│ │ │ │ graypointpoint.gif
│ │ │ │ loading.gif
│ │ │ │ logo.gif
│ │ │ │ logo.png
│ │ │ │ mask.png
│ │ │ │ newfeaturepic.gif
│ │ │ │ next.png
│ │ │ │ next2.png
│ │ │ │ nomemtime.png
│ │ │ │ nomemword.png
│ │ │ │ nosound.GIF
│ │ │ │ notebook-bg.png
│ │ │ │ noword.png
│ │ │ │ OffLine.jpg
│ │ │ │ outlink.gif
│ │ │ │ phonetic-down.png
│ │ │ │ phonetic-hover.png
│ │ │ │ phonetic.png
│ │ │ │ pre.png
│ │ │ │ pre2.png
│ │ │ │ prev.png
│ │ │ │ remember-disable.png
│ │ │ │ remember.png
│ │ │ │ remember2.png
│ │ │ │ right-top-sprite.png
│ │ │ │ sound.png
│ │ │ │ submitbutton.gif
│ │ │ │ voice.png
│ │ │ │ voice.swf
│ │ │ │ welcome-down.png
│ │ │ │ welcome-hover.png
│ │ │ │ welcome.png
│ │ │ │
│ │ │ └─NowWaiting
│ │ │ IMG00000.bmp
│ │ │ IMG00001.bmp
│ │ │ IMG00002.bmp
│ │ │ IMG00003.bmp
│ │ │ IMG00004.bmp
│ │ │ IMG00005.bmp
│ │ │ IMG00006.bmp
│ │ │ IMG00007.bmp
│ │ │
│ │ ├─index
│ │ │ │ fan.xml
│ │ │ │ index5.html
│ │ │ │ lj5.html
│ │ │ │ wiki5.html
│ │ │ │
│ │ │ ├─css
│ │ │ │ │ index.css
│ │ │ │ │
│ │ │ │ └─index
│ │ │ │ bg.jpg
│ │ │ │ bg.png
│ │ │ │ button.png
│ │ │ │ button_toggle.png
│ │ │ │ down.png
│ │ │ │ hover.png
│ │ │ │ index.png
│ │ │ │ stroke-tips.png
│ │ │ │
│ │ │ ├─images
│ │ │ │ .jpeg
│ │ │ │ .jpeg
│ │ │ │ baike.jpg
│ │ │ │ examples.jpg
│ │ │ │
│ │ │ └─js
│ │ │ all-min.js
│ │ │
│ │ └─js
│ │ all-min.js
│ │ wordBook.js
│ │
│ └─skins
│ │ bg-win7.jpg
│ │ default.css
│ │ default.png
│ │ defaultWin7.css
│ │ popup.bmp
│ │ wb.bmp
│ │ win7-default.bmp
│ │ win7-default.xml
│ │ xp-default.bmp
│ │ xp-default.xml
│ │
│ └─Loading
│ IMG00000.bmp
│ IMG00001.bmp
│ IMG00002.bmp
│ IMG00003.bmp
│ IMG00004.bmp
│ IMG00005.bmp
│ IMG00006.bmp
│ IMG00007.bmp
│ IMG00008.bmp
│ IMG00009.bmp
│ IMG00010.bmp
│ IMG00011.bmp
│
├─Localdicts
│ 21EC.ydic
│ basicCE.ydic
│ basicEC.ydic
│ CE.idx
│ CE.ifo
│ EC.idx
│ EC.ifo
│ newCE.ydic
│ phrase.ydic
│ sentenceDict.sql
│
└─Stable
│ Acrobat2Dict.dll
│ YDChromeTextExtractor.crx
│ YoudaoGetWord32.dll
│ YoudaoGetWord64.dll
│
└─extensions
└─firefox
│ chrome.manifest
│ install.rdf
│ YDFFMiddleware.dll
│
└─chrome
└─content
getword.js
main.xul
结构
发现一个以sql为后缀名的文件,一开始还以为是SQL脚本。但大小为:40.9MB,觉得不太可能了。
即:"...\Dict\Application\Localdicts\sentenceDict.sql"
用UltraEdit(用记事本打开,内存小的话会卡住)打开:
看到有关键字:SQLite format...
呵呵,是SQLite类型的开源数据库?
【初识】
百度百科的简介:
SQLite,是一款轻型的数据库,是遵守ACID的关联式数据库管理系统,它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内存就够了。它能够支持Windows/Linux/Unix等等主流的操作系统,同时能够跟很多程序语言相结合,比如 Tcl、C#、PHP、Java等,还有ODBC接口,同样比起Mysql、PostgreSQL这两款开源世界著名的数据库管理系统来讲,它的处理速度比他们都快。SQLite第一个Alpha版本诞生于2000年5月。 至今已经有12个年头,SQLite也迎来了一个版本 SQLite 3已经发布。
官网:
SQLite Home Page
http://www.sqlite.org/
找个工具:SQLlite Database Browser打开:


可以执行SQL语句:

以上看来,它主要包含的是句子内容,只是其中一个数据库,其它的本地数据库应该是同文件夹中的其他文件。
【设想】
以前一直都是用MsSql数据库为主,其实这个作一些小型的网站后台数据没问题,但是如果要写CS客户端,就显得庞大了。所 以,可以考虑这个轻型的,可以作嵌入式使用的Sqllite
有个想法:如果用winform写一个读取该文件的查询器,是否可以写个像词典的东西呢?
【应用】_有道词典客户端一个后缀名为sql的数据库。的更多相关文章
- 在有道词典程序文件夹发现一个后缀名为sql的数据库(SQLite)
缘起 在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达140MB了,于是进去看看. 发现个有趣的文件:XXX.sql. 首先我们看一看它的安装文件夹的结构: Dict └─ ...
- 【milonga】什么意思_英语milonga在线翻译_有道词典
[milonga]什么意思_英语milonga在线翻译_有道词典 milonga 网络释义英英释义 米隆加 本届探戈艺术节表演最受观众欢迎的是热情欢快的米隆加(Milonga)舞曲探戈,为了吸引年 ...
- python学习笔记:"爬虫+有道词典"实现一个简单的英译汉程序
1.有道的翻译 网页:www.youdao.com Fig1 Fig2 Fig3 Fig4 再次点击"自动翻译"->选中'Network'->选中'第一项',如下: F ...
- python "爬虫+有道词典"实现一个简单翻译程序
抓包软件使用的是Fiddler4 新版的查询接口 比较负责,引入了salt和sign http://fanyi.youdao.com/translate?smartresult=dict&sm ...
- 通过一个正则表达式,让SQL Server数据库的带参sql也支持位置参数语法!
.NET Framework 2.0 中,Microsoft 在 System.Data.Common 名称空间下定义了一组类用来让程序员编写适用于不同数据库的数据访问代码,而且还在 Enterpri ...
- 还原后缀名为.bak的数据库备份文件
1.打开SQL Server Management Studio,随便右击击一个数据库选择任务-->还原-->数据库 4.在弹出来的窗口中的源选项中选择设备-->点选择设备--> ...
- Linux下的文件及文件后缀名
Linux下的文件及文件后缀名 2013-03-14 15:34 6969人阅读 评论(0) 收藏 举报 ++++++++++++++++++++++++++++++++++++++正文+++++++ ...
- -05 08:57 ARCGIS地统计学计算文件后缀名为.shp文件制作
2011-07-05 08:57 ARCGIS地统计学计算文件后缀名为.shp文件制作 ARCAMP软件要进行地统计计算的文件后格式后缀名必须为.shp的文件,网上介绍的方法复杂难懂,那么制作.shp ...
- MFC 的资源文件 就是那个后缀名是 .rc的那个
参考: http://blog.csdn.net/zgrjkflmkyc/article/details/16897881 http://www.oschina.net/question/565065 ...
随机推荐
- [示例] Firemonkey TGridLayout & TGridPanelLayout 布局
说明:使用 TGridLayout & TGridPanelLayout 来布局 源码下载:[示例]TestGridPanelLayout_布局_20161223.zip 展示:
- 成就PHP高手的五个必由之路
亲们,此文时转载过来的,不是原创!特此说明一下 原文名称:5 ways to be a better php developer原文链接:http://www.developertutorials.c ...
- spring源码:学习线索(li)
一.spring xml配置(不包括AOP,主要了解在初始化及实例化过程中spring配置文件中每项内容的具体实现过程,从根本上掌握spring) <bean>的名字 &,alia ...
- 来玩Play框架06 用户验证
作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明.谢谢! 用户验证(User Authentification)复合的使用Play框架的数个 ...
- 【Google Chrome】 Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource问题解决
问题??打开Google Chrome浏览器报错如下: 结论 浏览器出于安全性考虑,默认对跨域访问禁止 解决方法 给浏览器添加启动参数 --allow-file-access-from-files ...
- 20款 JavaScript 开发框架推荐给前端开发者
下面,我们给大家提供了一个用于 HTML5 开发的各种用途的 JavaScript 库列表.这些框架能够给前端开发人员提供更好的功能实现的解决方案.如果你有收藏优秀的框架,也可以在后面的评论中分享给我 ...
- 提示用户升级浏览器代码 低于ie9的浏览器提示
一般想做一些酷炫的网站都有个烦恼,那就是兼容ie浏览器,好在现在使用ie的也越来越少,微软也转战edge浏览器. 使用 Bootstrap经常用js插件可以模拟兼容旧版本的浏览器(bsie 鄙视IE) ...
- WCF+Restfull服务 提交或获取数据时数据大小限制问题解决方案
近日在使用wcf的restfull架构服务时遭遇到了提交大数据的问题. 大数据包含两种情形: 1)单条数据量过大. 2)提交或获取的数据条数过多. 在测试时发现,默认设置下当单条JSON数据大于30K ...
- c#进阶之神奇的CSharp
CSharp 简写为c#,是一门非常年轻而又有活力的语言. CSharp的诞生 在2000年6月微软发布了c#这门新的语言.作为微软公司.NET 平台的主角,c#吸收了在他之前诞生的语言(c ...
- Android开发案例 - 欢迎界面
本文详细描述了如何实现如下图中的微信启动界面. 该类启动界面的特点是在整个Application的生命周期里, 它只会出现在第一次进入应用时, 即便按回退键到桌面之后. 使用该类启动界面的应用还有: ...