1QSTARDICT(1) General Commands Manual QSTARDICT(1)
2
3
4
6 qstardict - a Qt4 dictionary
7
9 QStarDict is a StarDict clone written with Qt4. The user interface is
10 similar to StarDict. You can start QStarDict from the menu or by run‐
11 ning the qstardict command.
12
14 QStarDict can reformat translations and expand dictionary abbrevia‐
15 tions. For example this translation:
16
17 1> First _val. of _w. 2> Second _val. of _w. ...
18
19 can be shown as
20
21 1. Fist value of word
22 2. Second value of word
23 3. ...
24
25 But reformatting and expanding takes additional CPU time. If the translation reformatting and instant search are both turned on this can decrease QStarDict performance.
26
28 Dictionaries for StarDict plugin are in StarDict format and by default
29 must be placed into /usr/share/stardict/dic or ~/.stardict/dic directo‐
30 ries. A dictionary must consist of three files:
31
32 - .dict[.dz] file - main dictionary file
33 - .idx - index file
34 - .ifo - description file
35
36 These files must be placed together in one directory.
37
39 QStarDict can pronounce words using external program when popup window
40 is shown. You must set a voice program to pronounce text from stdin. By
41 default this is festival with --tts option.
42
44 QStarDict supports D-Bus message bus. List of available methods:
45
46 void org.qstardict.dbus.showPopup(QString text)
47 void org.qstardict.dbus.showTranslation(QString text)
48 QString org.qstardict.dbus.translate(QString text)
49 QString org.qstardict.dbus.translateHtml(QString text)
50 QDBusVariant org.freedesktop.DBus.Properties.Get(QString inter‐
51 face_name, QString property_name)
52 void org.freedesktop.DBus.Properties.Set(QString interface_name,
53 QString property_name, QDBusVariant value)
54 QString org.freedesktop.DBus.Introspectable.Introspect()
55
56
57 List of available properties:
58
59 readwrite int org.qstardict.dbus.mainWindowVisible
60
61
62 You can call these methods from your applications or by using the qdbus
63 program. This command
64
65 qdbus org.qstardict.dbus /qstardict org.qstardict.dbus.showPopup "text"
66
67 will show a QStarDict popup window with a translation of the "text".
68
69 If you want to show/hide QStarDict window using keyboard shortcuts you must bind the following command to a shortcut:
70
71 qdbus org.qstardict.dbus /qstardict org.freedesktop.DBus.Properties.Set \
72 org.qstardict.dbus mainWindowVisible \
73 $(( ! $(qdbus org.qstardict.dbus /qstardict \
74 org.freedesktop.DBus.Properties.Get org.qstardict.dbus mainWindowVisible)))
75
76
78 QStarDict website ⟨http://qstardict.ylsoftware.com⟩
79
81 QStarDict was written by Alexander Rodin <rodin.alexander@gmail.com>.
82
83 This manual page was written by Alexander Rodin <rodin.alexan‐
84 der@gmail.com>, for the Debian project (but may be used by others).
85
86
88 stardict(1) sdcv(1) qdbus(1)
89
90
91
92
93 November 11, 2007 QSTARDICT(1)