The Next Generation GoldenDict https://xiaoyifang.github.io/goldendict-ng/
Go to file
xiaoyifang 9786120a6f
Merge pull request #519 from xiaoyifang/fix/issue-516
clean: remove gdappstyle file
2023-04-18 14:47:47 +08:00
.github rename repository name 2023-04-18 01:13:02 +08:00
howto action:add texttospeech module 2023-03-29 23:16:01 +08:00
icons refactor: move flags into /icons/ 2023-04-17 20:44:50 -04:00
locale rename repository name 2023-04-18 01:13:02 +08:00
maclibs feat: remove LibTIFF dependency 2023-04-16 13:01:26 +08:00
opencc winlib: update opencc to 2020-04-26 2022-02-11 21:54:14 +08:00
redist refactor: move macOS info.plist to /redist/ 2023-04-17 20:55:32 -04:00
src clean: remove gdappstyle file 2023-04-18 10:31:39 +08:00
thirdparty refactor: upgrade most of macro based Signal/Slot to new syntax 2022-12-25 21:08:17 -05:00
tools rename repository name 2023-04-18 01:13:02 +08:00
website feat(website): initial proper website 2023-04-17 07:12:04 +08:00
winlibs feat: remove LibTIFF dependency 2023-04-16 13:01:26 +08:00
.clang-format fix: remove the WriteBuffer from File::Class 2023-04-15 15:01:15 +08:00
.clang-tidy refactor: convert articleview into plain code 2023-03-18 11:00:06 +08:00
.gitignore refactor: move DICT dictd and mdict parser to /src/dict/ 2023-04-17 18:51:08 -04:00
.gitmodules sonar:fix linux build 2022-12-14 15:58:08 +08:00
CMakeLists.txt clean: remove gdappstyle file 2023-04-18 10:31:39 +08:00
CREDITS.txt add translation of Swiss High-German 2022-08-26 20:27:34 +08:00
crowdin.yml Update Crowdin configuration file 2023-04-18 14:29:02 +08:00
goldendict.pro clean: remove gdappstyle file 2023-04-18 10:31:39 +08:00
LICENSE.txt Update year in copyright notices. 2012-02-21 01:47:14 +04:00
README.md rename repository name 2023-04-18 01:13:02 +08:00
resources.qrc refactor: move none c++ source files into src/ 2023-04-17 13:40:05 -04:00
sonar-project.properties Revert "Update sonar-project.properties" 2022-12-25 18:40:03 +08:00
version.txt.in Add alternative build method "CMakeLists.txt" (#218) 2022-11-26 11:23:08 +08:00

Codacy Badge Windows Ubuntu macos

GoldenDict-ng

GoldenDict the next generation.

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.

Some significant features of this repository

  • webengine with latest html/css feature support
  • support >4GB dictionary
  • support highdpi screen resolution
  • built with xapian(optional) as fulltext engine
  • support Qt5.15.2 and higher ,include latest Qt6
  • performance optimization(eg. >10000000 headwords support)
  • anki integration
  • dark theme
  • daily auto release support
  • lots of bug fixes and improvements

Installation

Windows and macOS

Download latest stable version or daily pre-release builds.

.exe for Windows users and .dmg for macOS users.

Linux

The download links above includes .Appimage for Linux users.

Archlinux users can also use community maintained goldendict-webengine-git.

Debian packages are available in Debian 12 or later.

Ubuntu packages are available in Ubuntu 23.04 or later.

openSUSE ships an old version of this fork.

Helps are needed to deliver this fork to other distros!

Build from source

Dependencies

  • C++17 compiler
  • Qt 5.15 or latest QT version 6.X
  • Various libraries on Linux, see below
  • On Mac and Windows all the libraries are included in the repository
  • Qt Creator is recommended for development

Steps below are using qt5, and you may use qt6 by replacing 5 with 6.

Ubuntu

sudo apt-get install git pkg-config build-essential qt5-qmake \
        libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \
        qtdeclarative5-dev libxtst-dev liblzo2-dev libbz2-dev \
        libavutil-dev libavformat-dev libeb16-dev \
        libqt5svg5-dev libqt5x11extras5-dev qttools5-dev \
        qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5webchannel5-dev qtwebengine5-dev \
        libqt5texttospeech5-dev

Fedora 35

sudo dnf install git pkg-config libzstd-devel opencc-devel xz-devel xz-lzma-compat\
     libvorbis-devel zlib-devel hunspell-devel lzo-devel bzip2-devel \
     ffmpeg-devel eb-devel qt5-qtx11extras-devel libXtst-devel \
     libxkbcommon-devel qt5-qtbase qt5-qttools qt5-qtsvg-devl qt5-qtwebengine-devel qt5-qtmultimedia-devel

Build steps

Clone this repository:

git clone https://github.com/xiaoyifang/goldendict-ng.git

Linux build

cd goldendict-ng && qmake-qt5 && make

macOS build

brew install qt # or use official offline installer
qmake CONFIG+=release CONFIG+=zim_support CONFIG+=chinese_conversion_support QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"
make 
make install

Windows build

the source code has offered precompile x64 windows libs on winlibs/lib/msvc. you can build your own version either.

To build with Visual Studio. check this how to build with visual studio

Alternatively, you might want to load goldendict.pro file from within Qt Creator.

Build Configurations

Notice: All additional configs for qmake that must be combined in one of pass config options to qmake:

qmake-qt5 "CONFIG+=release" "CONFIG+=zim_support" "CONFIG+=chinese_conversion_support"

To ensure the changes applied, you may want to use make clean before make.

Building with Chinese conversion support

To add Chinese conversion support you need at first install libopencc-dev package, then pass "CONFIG+=chinese_conversion_support" to qmake.

sudo apt-get install libopencc-dev

Building with Zim dictionaries support

To add Zim and Slob formats support you need at first install lzma-dev and zstd-dev packages, then pass "CONFIG+=zim_support" to qmake

sudo apt-get install liblzma-dev libzstd-dev

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

Building without internal audio players

If you have problem building with FFmpeg (for example, very old linux distro), you can pass "CONFIG+=no_ffmpeg_player" to qmake in order to disable FFmpeg internal audio player back end.

If you have problem building with Qt5 Multimedia or experience GStreamer run-time errors (for example, Ubuntu 14.04), you can pass "CONFIG+=no_qtmultimedia_player" to qmake in order to disable Qt Multimedia internal audio player back end.

Building with xapian

build xapian from source, download and extract the xapian-core source code.

./configure
make 
make install

On Windows,follow the instructions in the xapian-core/INSTALL Visual Studio parts.xapian does not support to use the Debug lib in Windows. have to debug in release version mode using xapian's release lib. A precompiled version of xapian lib has provided in winlibs

use CONFIG+=use_xapian to enable this feature. when enabled ,xapian will be used to support as the the fulltext's backend engine.

qmake "CONFIG+=use_xapian"

use CONFIG+=use_iconv to enable this feature. when enabled ,iconv will be used to convert encoding other than the QTextCodec(which will be deprecated in future Qt version)

qmake "CONFIG+=use_iconv"

when enabled ,iconv should be installed on the platform at the same time.

Contributing

All kinds of help like answering questions, bug reporting, testing translation and coding are welcomed.

To start coding, the easiest way is load the goldendict.pro file to Qt Creator, make some changes then press the run button.

the code guideline

check the document how to use clang-format

Online document

document

Support

Bug reporting: GoldenDict issue tracker

General discussions: discussions

License

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

History

The original project was developed at http://goldendict.org/ and https://github.com/goldendict/goldendict.