Skip to content

Commit c80f761

Browse files
committed
initial import (move to github)
0 parents  commit c80f761

File tree

183 files changed

+45266
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+45266
-0
lines changed

COPYING.txt

Lines changed: 675 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
LDOCE5 Viewer:
2+
by Taku Fukada
3+
GNU General Public License version 3 or later
4+
5+
An implementaiton of cdb (./ldoce5viewer/utils/cdb.py):
6+
Public Domain
7+
8+
Whoosh (./ldoce5viewer/whoosh/):
9+
by Matt Chaput
10+
(two-clause) BSD License
11+

MANIFEST.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include README.txt
2+
include COPYING.txt
3+
include LICENSE.txt
4+
include whoosh/LICENSE.txt
5+
include ldoce5viewer.py
6+
include ldoce5viewer.desktop
7+
include scripts/ldoce5viewer
8+
include ldoce5viewer/qtgui/resources/ldoce5viewer.svg
9+
recursive-include ldoce5viewer/static *

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
PKG := ldoce5viewer
2+
PYTHON := python2
3+
4+
runqt: qtui qtresource
5+
$(PYTHON) ./ldoce5viewer.py
6+
7+
sdist: precompile
8+
$(PYTHON) ./setup.py sdist
9+
10+
precompile: qtui qtresource
11+
12+
qtui:
13+
cd $(PKG)/qtgui/ui/; $(MAKE)
14+
15+
qtresource:
16+
cd $(PKG)/qtgui/resources/; $(MAKE)
17+
18+
build: precompile
19+
$(PYTHON) ./setup.py build
20+
21+
install: build
22+
$(PYTHON) ./setup.py install
23+
24+
25+
.PHONY: clean clean-build
26+
clean: clean-build
27+
cd $(PKG)/qtgui/ui/; $(MAKE) clean
28+
cd $(PKG)/qtgui/resources/; $(MAKE) clean
29+
30+
clean-build:
31+
rm -rf build
32+
rm -rf dist
33+
rm -f MANIFEST
34+

README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
LDOCE5 Viewer
2+
=============
3+
4+
The LDOCE5 Viewer is an alternative dictionary viewer for the Longman Dictionary of Contemporary English 5th Edition (LDOCE 5).
5+
6+
It runs on Linux and Microsoft Windows.
7+
8+
This software is free and open source software licensed under the terms of GPLv3.
9+
10+
Website: http://hakidame.net/ldoce5viewer/
11+
12+
13+
Prerequisites
14+
=============
15+
16+
* Python 2.7 or 2.6 (not 3.x)
17+
18+
* PyQt
19+
20+
- `python-qt4` (in Ubuntu/Mint/Debian)
21+
- `python2-pyqt` (in Arch Linux)
22+
23+
* lxml
24+
25+
- `python-lxml` (in Ubuntu/Mint/Debian)
26+
- `python2-lxml` (in Arch Linux)
27+
28+
* [On Linux] Python bindings for Gstreamer
29+
30+
- `python-gst` (in Ubuntu/Mint/Debian)
31+
- `gstreamer0.10-python` (in Arch Linux)
32+
33+
34+
Installation
35+
============
36+
37+
Linux
38+
-----
39+
40+
1. Enter the following commands in the terminal:
41+
42+
```bash
43+
$ sudo python2.7 ./setup.py install --optimize
44+
$ sudo cp ./ldoce5viewer.desktop /usr/share/applications/
45+
$ sudo cp ./ldoce5viewer/qtgui/resources/ldoce5viewer.svg /usr/share/pixmaps/
46+
$ [ -x /usr/bin/update-desktop-database ] && sudo update-desktop-database -q
47+
```
48+
49+
2. Copy the 'ldoce5.data' directory from the LDOCE5 DVD-ROM to an arbitrary location in your HDD or SSD.
50+
51+
3. Start the LDOCE5 Viewer.
52+
53+
4. The application will ask you the location where you put 'ldoce5.data'.
54+
55+
56+
Terms and Conditions
57+
====================
58+
59+
Copyright (c) 2012-2013 Taku Fukada
60+
61+
This software is licensed under the GPLv3.
62+
63+
Discraimer
64+
----------
65+
66+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
67+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
68+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
69+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
70+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
71+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
72+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
73+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
74+

innosetup.iss

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#define MyAppName "LDOCE5 Viewer"
2+
#define MyAppVersion "2013.03.24"
3+
#define MyAppPublisher "hakidame.net"
4+
#define MyAppURL "http://hakidame.net/ldoce5viewer/"
5+
#define MyAppExeName "ldoce5viewer.exe"
6+
7+
8+
[Setup]
9+
AppId={{69AF89EB-727E-4F9E-ADCA-87102CBAC142}
10+
AppName={#MyAppName}
11+
AppVersion={#MyAppVersion}
12+
AppVerName={#MyAppName} {#MyAppVersion}
13+
AppPublisher={#MyAppPublisher}
14+
AppPublisherURL={#MyAppURL}
15+
AppSupportURL={#MyAppURL}
16+
AppUpdatesURL={#MyAppURL}
17+
DefaultDirName={pf32}\{#MyAppName}
18+
DefaultGroupName={#MyAppName}
19+
OutputDir=wininst
20+
OutputBaseFilename=ldoce5viewer-setup-{#MyAppVersion}
21+
Compression=lzma2
22+
SolidCompression=yes
23+
UninstallDisplayIcon={app}\ldoce5viewer.exe
24+
25+
26+
[Languages]
27+
Name: "english"; MessagesFile: "compiler:Default.isl"
28+
29+
30+
[Tasks]
31+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
32+
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
33+
34+
35+
[Files]
36+
Source: "exedist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
37+
Source: "msvcx90\*"; DestDir: "{app}\"; Flags: ignoreversion recursesubdirs createallsubdirs
38+
Source: "msvcx90\*"; DestDir: "{app}\imageformats"; Flags: ignoreversion recursesubdirs createallsubdirs
39+
Source: "msvcx90\*"; DestDir: "{app}\phonon_backend"; Flags: ignoreversion recursesubdirs createallsubdirs
40+
41+
42+
[Icons]
43+
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
44+
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
45+
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
46+
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
47+
48+
49+
[Run]
50+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
51+
52+
53+
[UninstallDelete]
54+
Type: filesandordirs; Name: "{userappdata}\LDOCE5Viewer\*";
55+
Type: dirifempty; Name: "{userappdata}\LDOCE5Viewer";
56+
Type: filesandordirs; Name: "{localappdata}\LDOCE5Viewer\*";
57+
Type: dirifempty; Name: "{localappdata}\LDOCE5Viewer";
58+

ldoce5viewer.desktop

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env xdg-open
2+
3+
[Desktop Entry]
4+
Name=LDOCE5 Viewer
5+
Comment=A dictionary viewer for LDOCE5
6+
Categories=Education;Dictionary
7+
Exec=ldoce5viewer
8+
Icon=ldoce5viewer
9+
Terminal=false
10+
Type=Application
11+
Version=1.0
12+

ldoce5viewer.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python
2+
3+
import sys
4+
5+
from ldoce5viewer import qtgui
6+
7+
8+
if __name__ == '__main__':
9+
sys.exit(qtgui.run(sys.argv))
10+
sys.exit()
11+

ldoce5viewer/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python2
2+
# -*- coding: utf-8 -*-
3+
4+
from __future__ import unicode_literals, print_function
5+
6+
__version__ = '2013.04.24'
7+
__author__ = 'Taku Fukada'
8+
9+

0 commit comments

Comments
 (0)