【缘起】

在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达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的数据库。的更多相关文章

  1. 在有道词典程序文件夹发现一个后缀名为sql的数据库(SQLite)

    缘起 在清理电脑磁盘的时候,看一看各安装文件夹有占用了多大容量,发现有道词典居然达140MB了,于是进去看看. 发现个有趣的文件:XXX.sql. 首先我们看一看它的安装文件夹的结构: Dict └─ ...

  2. 【milonga】什么意思_英语milonga在线翻译_有道词典

    [milonga]什么意思_英语milonga在线翻译_有道词典 milonga 网络释义英英释义   米隆加 本届探戈艺术节表演最受观众欢迎的是热情欢快的米隆加(Milonga)舞曲探戈,为了吸引年 ...

  3. python学习笔记:"爬虫+有道词典"实现一个简单的英译汉程序

    1.有道的翻译 网页:www.youdao.com Fig1 Fig2 Fig3 Fig4 再次点击"自动翻译"->选中'Network'->选中'第一项',如下: F ...

  4. python "爬虫+有道词典"实现一个简单翻译程序

    抓包软件使用的是Fiddler4 新版的查询接口 比较负责,引入了salt和sign http://fanyi.youdao.com/translate?smartresult=dict&sm ...

  5. 通过一个正则表达式,让SQL Server数据库的带参sql也支持位置参数语法!

    .NET Framework 2.0 中,Microsoft 在 System.Data.Common 名称空间下定义了一组类用来让程序员编写适用于不同数据库的数据访问代码,而且还在 Enterpri ...

  6. 还原后缀名为.bak的数据库备份文件

    1.打开SQL Server Management Studio,随便右击击一个数据库选择任务-->还原-->数据库 4.在弹出来的窗口中的源选项中选择设备-->点选择设备--> ...

  7. Linux下的文件及文件后缀名

    Linux下的文件及文件后缀名 2013-03-14 15:34 6969人阅读 评论(0) 收藏 举报 ++++++++++++++++++++++++++++++++++++++正文+++++++ ...

  8. -05 08:57 ARCGIS地统计学计算文件后缀名为.shp文件制作

    2011-07-05 08:57 ARCGIS地统计学计算文件后缀名为.shp文件制作 ARCAMP软件要进行地统计计算的文件后格式后缀名必须为.shp的文件,网上介绍的方法复杂难懂,那么制作.shp ...

  9. MFC 的资源文件 就是那个后缀名是 .rc的那个

    参考: http://blog.csdn.net/zgrjkflmkyc/article/details/16897881 http://www.oschina.net/question/565065 ...

随机推荐

  1. HTML课上小结

    HTML翻译为超文本标记语言<标签名>内容</标签名>静态网页动态网页的区别是看是否从数据中提取数据一般网页由几部分组分组成<html>开始标签 <head& ...

  2. Java内部类final语义实现

    本文描述在java内部类中,经常会引用外部类的变量信息.但是这些变量信息是如何传递给内部类的,在表面上并没有相应的线索.本文从字节码层描述在内部类中是如何实现这些语义的. 本地临时变量 基本类型 fi ...

  3. python学习笔记(基础三:if else流程判断、while循环、for循环)

    if else流程判断 getpass在pycharm中无法使用,在命令行窗口中进入python环境可以使用. import getpassusername = input("usernam ...

  4. Win7(x64)升级到Win10

    北京时间7月29日零点起,微软正式开始向包含中国在内的全球用户推送Windows 10正式版安装包,Win7.Win8正版用户从29日零点起就可以免费升级到Win 10. 如果你的C盘里边有“$Win ...

  5. Android编码规范05

    编码逻辑规范总结: 1.避免使用多个类放在一个文件里,除非是一次性使用的内部类 2.一个方法代码长度最好不要超过35行 3.原则上尽量不要修改自动生成的文件,如R文件 4.Final String 取 ...

  6. json相关类库,java对象与json相互转换

    有效选择七个关于Java的JSON开源类库 转自:http://www.open-open.com/lib/view/open1397870197828.html 翻译: (英语原文:http://w ...

  7. swift学习笔记2——函数、闭包

    之前学习swift时的个人笔记,根据github:the-swift-programming-language-in-chinese学习.总结,将重要的内容提取,加以理解后整理为学习笔记,方便以后查询 ...

  8. nginx 安全优化

    http://nginx.org/en/docs/http/ngx_http_access_module.html  官网 1.允许特定的ip访问,拒绝特定ip server { listen 80; ...

  9. 自制xml实现SQL动态参数配置

    此文章是基于 搭建SpringMVC+Spring+Hibernate平台 一. 准备工作 1. 点击此找到并下载 commons-digester3-3.2.jar 2. 点击此找到并下载 comm ...

  10. CentOS7中防火墙的一些常用配置

    # 启动 systemctl start firewalld # 查看状态 systemctl status firewalld # 停止关闭 systemctl disable firewalld ...