Skip to content

Commit aa9f5e0

Browse files
authored
Merge branch 'master' into master
2 parents 37d2d7f + db2de64 commit aa9f5e0

File tree

13 files changed

+77
-16
lines changed

13 files changed

+77
-16
lines changed

README.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# LDOCE5 Viewer
22

3+
![image](https://cloud.githubusercontent.com/assets/15828926/24585732/efb068a4-17bb-11e7-8294-7241f73d9ed8.png)
4+
35
The LDOCE5 Viewer is an alternative dictionary viewer for the Longman Dictionary of Contemporary English 5th Edition (LDOCE 5).
46

57
Website: http://hakidame.net/ldoce5viewer/
@@ -12,6 +14,27 @@ This software is free and open source software licensed under the terms of GPLv3
1214
## Prerequisites
1315

1416
* Longman Dictionary of Contemporary English 5th Edition (DVD-ROM)
17+
* Python 2.7 or 2.6 (or 3.x)
18+
* Development tools for PyQt4
19+
* lxml
20+
* Whoosh 2.x
21+
22+
23+
## Installation
24+
25+
### Windows
26+
27+
Simple download and execute the .exe file [here](https://forward-backward.co.jp/ldoce5viewer/download).
28+
29+
### Linux
30+
31+
If a package is yet to be available for your distro, you need to build it from source.
32+
33+
#### Available Packages
34+
35+
For Arch Linux, two packages [ldoce5viewer](https://aur.archlinux.org/packages/ldoce5viewer/) and [ldoce5viewer-git](https://aur.archlinux.org/packages/ldoce5viewer-git/) exist on AUR.
36+
37+
#### Prequisites for building from source
1538

1639
* Python 2.7 or 2.6 (or 3.x)
1740

@@ -69,7 +92,11 @@ For Arch Linux, two packages [ldoce5viewer](https://aur.archlinux.org/packages/l
6992

7093
### Mac OS X
7194

72-
(for advanced users)
95+
#### Available packages
96+
97+
Download and run your .app file [here](https://forward-backward.co.jp/ldoce5viewer/download)
98+
99+
#### Install manually From Source
73100

74101
*Homebrew*:
75102
```bash
@@ -81,16 +108,11 @@ $ open dist/LDOCE5\ Viewer.app/
81108
```
82109

83110
Or if you are using *MacPorts*:
84-
<ol>
85-
<li><p>Install the following ports:</p>
86-
<ul>
87-
<li>python27 (or python3x)</li>
88-
<li>py27-pyqt4</li>
89-
<li>py27-lxml</li>
90-
<li>py27-whoosh</li>
91-
<li>py27-pyobjc-cocoa</li>
92-
</ul>
93-
</li>
94-
<li><p>Run the LDOCE5 Viewer</p></li>
95-
</ol>
111+
- Install the following ports:
112+
* python27 (or python3x)
113+
* py27-pyqt4
114+
* py27-lxml
115+
* py27-whoosh
116+
* py27-pyobjc-cocoa
117+
- Run the LDOCE5 Viewer
96118

ldoce5viewer.appdata.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- Copyright 2018 Damian Wrobel <[email protected]> -->
3+
<component type="desktop">
4+
<id>ldoce5viewer.desktop</id>
5+
<metadata_license>CC0-1.0</metadata_license>
6+
<name>ldoce5viewer</name>
7+
<summary>Viewer Application for the Longman Dictionary (LDOCE 5)</summary>
8+
<description>
9+
<p>
10+
The ldoce5viewer is an alternative dictionary viewer for the
11+
Longman Dictionary of Contemporary English 5th Edition (LDOCE 5).
12+
</p>
13+
14+
<p>Some features:</p>
15+
<ul>
16+
<li>Comprehensive instant search</li>
17+
<li>Pleasant to use</li>
18+
<li>Clean and readable</li>
19+
<li>Full sound playback</li>
20+
<li>Access virtually all of the LDOCE content</li>
21+
<li>Powerful advanced search</li>
22+
<li>Search in definitions and example sentences</li>
23+
<li>Clipboard monitoring</li>
24+
</ul>
25+
</description>
26+
<screenshots>
27+
<screenshot type="default">
28+
<image>https://forward-backward.co.jp/ldoce5viewer/static/images/sc/linux1.png</image>
29+
</screenshot>
30+
<screenshot>
31+
<image>https://forward-backward.co.jp/ldoce5viewer/static/images/sc/activator.png</image>
32+
</screenshot>
33+
<screenshot>
34+
<image>https://forward-backward.co.jp/ldoce5viewer/static/images/sc/advsearch.png</image>
35+
</screenshot>
36+
</screenshots>
37+
<url type="homepage">https://forward-backward.co.jp/ldoce5viewer/</url>
38+
<update_contact>dwrobel_at_ertelnet.rybnik.pl</update_contact>
39+
</component>

ldoce5viewer/qtgui/resources/icons/icongen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import sys
44

5-
import Image, ImageFilter, ImageChops, ImageEnhance, ImageDraw
5+
from PIL import Image, ImageFilter, ImageChops, ImageEnhance, ImageDraw
66

77

88
OFFSET_S = 4
@@ -29,7 +29,7 @@ def make_inset_shadow(alpha):
2929
m1 = alpha.copy()
3030
for i in xrange(6):
3131
m1 = m1.filter(ImageFilter.SMOOTH_MORE)
32-
m1 = m1.offset(0, OFFSET_S)
32+
m1 = ImageChops.offset(m1, 0, OFFSET_S)
3333
m1 = ImageChops.subtract(alpha, m1)
3434
m1b = ImageEnhance.Brightness(m1).enhance(0.35)
3535

@@ -48,7 +48,7 @@ def make_highlight(alpha):
4848
m1 = alpha.copy()
4949
for i in xrange(2):
5050
m1 = m1.filter(ImageFilter.SMOOTH_MORE)
51-
m1 = m1.offset(0, OFFSET_H)
51+
m1 = ImageChops.offset(m1, 0, OFFSET_H)
5252
m1 = ImageChops.subtract(m1, alpha)
5353
m1b = ImageEnhance.Brightness(m1).enhance(0.35)
5454

ldoce5viewer/static/scripts/activator.js

Whitespace-only changes.

ldoce5viewer/static/scripts/body.js

Whitespace-only changes.

ldoce5viewer/static/scripts/collocations.js

Whitespace-only changes.

ldoce5viewer/static/scripts/common.js

Whitespace-only changes.

ldoce5viewer/static/scripts/etymologies.js

Whitespace-only changes.

ldoce5viewer/static/scripts/examples.js

Whitespace-only changes.

ldoce5viewer/static/scripts/phrases.js

Whitespace-only changes.

0 commit comments

Comments
 (0)