【应用】_有道词典客户端一个后缀名为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 ...
随机推荐
- CentOS 6.2 Eclipse CDT 开发环境搭建
一.安装中文语言支撑 我当初安装CentOS6.2时选择了中文语言支持,有iBus和拼音输入法,有gnome和kde 没有安装的可以参考:CentOS英文环境下使用中文输入法 安装中文语言支持和输入 ...
- Java的内存分配
java内存分配 A:栈 存储局部变量 B:堆 存储所有new出来的 C:方法区(方法区的内存中) 类加载时 方法信息保存在一块称为方法区的内存中, 并不随你创建对象而随对象保存于堆中; D:本地方法 ...
- Python 基础之四初识Python数据类型
数字 Int,整型 Float,浮点型 Long,长整型 布尔 字符串 列表 元组 字典 1.数字 INT(整型) 在32位系统上,整数的位数为32位,取值范围为-2**31~2**31-1,即-21 ...
- Mybatis的choose when otherwise
<select id="getCount" resultType="int"> select count(1) from <choose> ...
- nw.js自定义最小化图标的click事件
选择frameless时,最小化和关闭按钮的点击事件需要自己来做,办法是: /* * 下面两个模块一定要引入到js文件中 */ var gui = require('nw.gui'); var win ...
- JQuery使用deferreds串行多个ajax请求
使用JQuery对多个ajax请求串行执行. HTML代码: <a href="#">Click me!</a> <div></div&g ...
- VisualStudio 调试Linux
微软自从换了CEO之后,拥抱开源的步伐真实越来越快了,这部,现在VS可以跟踪Linux程序了 http://blogs.msdn.com/b/vcblog/archive/2015/11/18/ann ...
- 在Android中,使用Kotlin的 API请求简易方法
原文标题:API request in Android the easy way using Kotlin 原文链接:http://antonioleiva.com/api-request-kotli ...
- MVP解析
一套可以直接复制使用的MVP框架 通过对MVP设计模式学习,对MVP也有了一个初步的认识,以登录Login模块为例,封装MVP如下: package com.example.administrator ...
- 关于Apache Spark
Apache Spark : https://www.oschina.net/p/spark-project