Coder Social home page Coder Social logo

kdictionary-lingoes's People

Contributors

librehat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kdictionary-lingoes's Issues

qUncompress: could not allocate enough memory to uncompress data

I got this:
qUncompress: could not allocate enough memory to uncompress data
ERROR: Inflated Data is Empty.
I'm on a 32-bit + 2GB ram machine with KDE desktop.
I downloaded a .ld2 dict file from the lingoes website, and try to output it to a .txt file, but it outputted as above.

你好,请问在VPS中如何运行此程序?

你好,本人非计算机专业出身,一般都是根据github上的readme.md 来依样画葫芦。
这次我Git clone 源码到vps上, 执行./kdictionary-lingoes
没有反应,提示这是一个目录。

请问是不是vps上缺少运行c++的环境?

Missing xml tags for some library

With this dictionary, the converted file missing all the xml tags (used by lingoes or other client to render styles).


"File: /private/tmp/Oxford Advanced Learner's English-Chinese Dictionary.ld2"
"Type: LD2"
"Version: 2.4"
"ID: 0x4E443A5BC0DB0E12"
"Summary Addr: 4170"
"Summary Type: 3"
"Dictionary Type: 0x3"
"Index Numbers: 20585"
"Index Address/Size: 0x418C / 82340B"
"Compressed Data Address/Size: 0x199A0 / 9529815B"
"Phrases Index Address/Size(Decompressed): 0x0 / 214710B"
"Phrases Address/Size(Decompressed): 0x346B6 / 158601B"
"XML Address/Size(Decompressed): 0x5B23F / 23100088"
"File Size(Decompressed): 22923KB"
"Decompressing 1433 data streams."
"Phrases Encoding: UTF-8"
"XML Encoding: UTF-8"
"Extracted 21470 entries."

For example, the "asset" definition is converted to plain ASCII text

#line 1167
asset=/ ˈæset; ˋæsɛt/ n  ~ (to sb/sth) (a) valuable or useful quality or skill 有价值的或有用的特性或技能: Good health is a great asset. 健康就是莫大的财富. (b) valuable or useful person 有价值的或有用的人: He's an enormous asset to the team. 他是队里的骨干.  (usu pl 通常作复数) thing, esp property, owned by a person, company, etc that has value and can be used or sold to pay debts (属於个人或公司所有, 可用以抵偿债务或变卖後支付债务的)财产, 资产: His assets included shares in the company and a house in London. 他的财产包括公司的股票和位於伦敦的房子. Cf 参看 liability. # `asset-stripping n [U] (commerce 商) practice of buying at a cheap price a company with financial difficulties and then selling its assets individually to make a profit 资产倒卖(廉价收买经济上有困难的公司, 然後将其资产逐一变卖获利的做法).

But in Lingoes and Eudic, it is rendered with styles.

screen shot 2014-09-25 at 6 22 17 pm

Another dictionary has this problem is Longman

This time, it does detect some XML tags but missed partial of the definition for some words.

#line 2282
asset=as<b>·</b>set<br/><b>W2S2</b> <font face="Lingoes Unicode" color="#009900">/ˈæset/</font> <i>n</i>  <font color="#009999">[C]</font> <br/>[<font color="#F14B35">Date:</font> 1800-1900; <font color="#F14B35">Origin:</font> assets (singular) <i>'enough money to pay debts'</i>  (16-19 centuries), from <i>Anglo-French</i>  asetz, from <i>Old French</i>  assez <i>'enough'</i>]<br/>

screen shot 2014-09-25 at 6 25 54 pm

为什么这个程序转换字典非常慢?

我使用这个程序转换10M左右的字典文件大概需要十来分钟,而使用其他的程序转换只需要几秒钟。
我使用Visual Studio 2013的性能分析器分析了下,99%以上的时间都消耗在了decompress函数所调用的qUncompress函数上,我看了下qUncompress的说明,貌似要求将解压后的数据尺寸放在待解压数据的开头,但是在程序里我看到的貌似是把待解压数据的尺寸放在了开头,不知是不是这样,还请作者解答。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.