Git Product home page Git Product logo

lslab / goldendict Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goldendict/goldendict

0.0 2.0 0.0 49.32 MB

A feature-rich dictionary lookup program, supporting multiple dictionary formats (StarDict/Babylon/Lingvo/Dictd) and online dictionaries, featuring perfect article rendering with the complete markup, illustrations and other content retained, and allowing you to type in words without any accents or correct case.

Home Page: http://goldendict.org/

License: Other

C++ 53.59% CSS 1.63% C 41.12% Makefile 0.05% Shell 0.14% QMake 0.36% Objective-C++ 0.45% Objective-C 0.08% NSIS 0.51% Batchfile 0.06% HTML 2.00%

goldendict's Introduction

Introduction

GoldenDict is a feature-rich dictionary lookup program, supporting multiple dictionary formats (StarDict/Babylon/Lingvo/Dictd/AARD/MDict/SDict) and online dictionaries, featuring perfect article rendering with the complete markup, illustrations and other content retained, and allowing you to type in words without any accents or correct case.

Requirements

This code has been run and tested on Windows XP/Vista/7, Ubuntu Linux, Mac OS X.

External Deps

  • Make, GCC, Git
  • Qt framework. Minimum required version is 4.6 for Windows, 4.5 for all other platforms. But Qt 4.7 or 4.8 is recommended.
  • If you want to use Qt 5.x then use branch qt4x5
  • Qt Creator IDE is recommended for development
  • Various libraries on Linux (png, zlib, etc)
  • On Mac and Windows all the libraries are already included in the repository

Installing External Deps on Ubuntu Linux

sudo apt-get install git pkg-config build-essential qt4-qmake \
     libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
     libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \
     libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev

Installing External Deps on Ubuntu Linux for Qt5

sudo apt-get install git pkg-config build-essential qt5-qmake \
     libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
     qtdeclarative5-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \
     libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev \
     libqt5webkit5-dev libqt5svg5-dev libqt5x11extras5-dev qttools5-dev \
     qttools5-dev-tools

How to build

First, clone this repository, e.g.:

git clone git://github.com/goldendict/goldendict.git

And then invoke qmake-qt4 and make:

cd goldendict && qmake-qt4 && make

In case when qmake-qt4 does not exist, try using qmake but make sure it is indeed from the Qt 4 installation. On the other hand, if you want to use qt5, make sure that qmake is from Qt 5 installation. If not, you can try finding it at a path like /usr/lib/x86_64-linux-gnu/qt5/bin/qmake. Alternatively, you might want to load goldendict.pro file from within Qt Creator, especially on Windows.

Building with Chinese conversion support

To add Chinese conversion support you need at first install libopencc-dev package:

sudo apt-get install libopencc-dev

Then pass "CONFIG+=chinese_conversion_support" to qmake

qmake "CONFIG+=chinese_conversion_support"

Building with Zim dictionaries support

To add Zim and Slob formats support you need at first install lzma-dev package:

sudo apt-get install liblzma-dev

Then pass "CONFIG+=zim_support" to qmake

qmake "CONFIG+=zim_support"

Building without extra tiff handler

If you have problem building with libtiff5-dev package, you can pass "CONFIG+=no_extra_tiff_handler" to qmake in order to disable extra tiff support (without such extra support some b/w tiff images will not be displayed):

qmake "CONFIG+=no_extra_tiff_handler"

Building without Epwing format support

If you have problem building with libeb-dev package, you can pass "CONFIG+=no_epwing_support" to qmake in order to disable Epwing format support

qmake "CONFIG+=no_epwing_support"

Building without internal audio player

If you have problem building with FFmpeg/libao (for example, Ubuntu older than 12.04), you can pass "DISABLE_INTERNAL_PLAYER=1" to qmake in order to disable internal audio player completely:

qmake "DISABLE_INTERNAL_PLAYER=1"

NB: All additional settings for qmake that you need must be combined in one qmake launch, for example:

qmake "CONFIG+=zim_support" "CONFIG+=no_extra_tiff_handler" "DISABLE_INTERNAL_PLAYER=1"

Then, invoke make clean before make because the setting change:

make clean && make

Building under Windows with MS Visual Studio

To build GoldenDict with Visual Studio take one of next library packs and unpack it to "winlibs/lib/msvc" folder in GoldenDict sources folder.
GoldenDict_libs_VS2013_x86_v2.7z - for MS Visual Studio 2013, 32 bit
GoldenDict_libs_VS2013_x64_v2.7z - for MS Visual Studio 2013, 64 bit
GoldenDict_libs_VS2015_x86_v2.7z - for MS Visual Studio 2015, 32 bit
GoldenDict_libs_VS2015_x64_v2.7z - for MS Visual Studio 2015, 64 bit

To create project files for Visual Studio you can pass "-tp vc" option to qmake.

Note: In Qt 5.6.0 and later the Webkit module was removed from official release builds. You should to build it from sources to compile GoldenDict.

Installation

Installation is an optional step since the built binary can be used as-is without installation. But you can properly install via:

make install

NB: Don't do that on Windows!

License

This project is licensed under the GNU GPLv3+ license, a copy of which can be found in the LICENSE.txt file.

Support

Users looking for support should file an issue in the official GoldenDict issue tracker, or even better: submit a pull request if you have a fix available. General questions should be asked on the official GoldenDict forum.

goldendict's People

Contributors

abs62 avatar tvangeste avatar chulai avatar timonwong avatar dragonroot avatar ibragimov avatar quendimax avatar 0x1997 avatar hyln9 avatar dinvlad avatar virtualtam avatar wlhunag avatar sikmir avatar alexandrocasanova avatar vtliem avatar sukruyekta avatar zdenop avatar ozzii avatar jjzz avatar vvs avatar noori avatar moceap avatar vedgy avatar tuhaihe avatar hiddenspirit avatar sorawee avatar rkononenko avatar panho10 avatar kyleskimo avatar gnudles avatar

Watchers

James Cloos avatar lslab avatar

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.