qstardict.1 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .\" -*- nroff -*-
  2. .TH QSTARDICT 1 "January 24, 2018"
  3. .SH NAME
  4. \fBqstardict\fP \- a Qt dictionary
  5. .SH DESCRIPTION
  6. \fBQStarDict\fP is a StarDict clone written with Qt. The user interface is similar to StarDict. You can start QStarDict from the menu or by running the \fBqstardict\fP command.
  7. .SH TRANSLATION REFORMATTING AND ABBREVIATION EXPANSION
  8. QStarDict can reformat translations and expand dictionary abbreviations. For example this translation:
  9. .PP
  10. .nf
  11. 1> First _val. of _w. 2> Second _val. of _w. ...
  12. .PP
  13. can be shown as
  14. .PP
  15. .nf
  16. 1. Fist value of word
  17. 2. Second value of word
  18. 3. ...
  19. .PP
  20. But reformatting and expanding takes additional CPU time. If the translation reformatting and instant search are both turned on this can decrease QStarDict performance.
  21. .SH DICTIONARIES
  22. Dictionaries for StarDict plugin are in \fBStarDict\fP format and by default must be placed into /usr/share/stardict/dic or ~/.stardict/dic directories. A dictionary must consist of three files:
  23. - .dict[.dz] file - main dictionary file
  24. - .idx - index file
  25. - .ifo - description file
  26. These files must be placed together in one directory.
  27. .SH PRONOUNCING PROGRAMS
  28. QStarDict can pronounce words using external program when popup window is shown. You must set a voice program to pronounce text from stdin. By default this is \fBfestival\fP with \fB--tts\fP option.
  29. .SH D-BUS
  30. QStarDict supports D-Bus message bus. List of available methods:
  31. .PP
  32. .BI "void org.qstardict.dbus.showPopup(\^QString\ "text "\^)"
  33. .br
  34. .BI "void org.qstardict.dbus.showTranslation(\^QString\ "text "\^)"
  35. .br
  36. .BI "QString org.qstardict.dbus.translate(\^QString\ "text "\^)"
  37. .br
  38. .BI "QString org.qstardict.dbus.translateHtml(\^QString\ "text "\^)"
  39. .br
  40. .BI "QDBusVariant org.freedesktop.DBus.Properties.Get(\^QString\ "interface_name ", \^QString\ "property_name ")"
  41. .br
  42. .BI "void org.freedesktop.DBus.Properties.Set(\^QString\ "interface_name ", \^QString\ "property_name ", \^QDBusVariant\ "value "\^)"
  43. .br
  44. .BI "QString org.freedesktop.DBus.Introspectable.Introspect()"
  45. .br
  46. .PP
  47. List of available properties:
  48. .PP
  49. .BI "readwrite int org.qstardict.dbus.mainWindowVisible"
  50. .PP
  51. You can call these methods from your applications or by using the \fBqdbus\fP program.
  52. This command
  53. .PP
  54. .nf
  55. qdbus\ org.qstardict.dbus\ /qstardict\ org.qstardict.dbus.showPopup\ "text"
  56. .PP
  57. will show a QStarDict popup window with a translation of the "text".
  58. .PP
  59. If you want to show/hide QStarDict window using keyboard shortcuts you must bind the following command to a shortcut:
  60. .PP
  61. .nf
  62. qdbus\ org.qstardict.dbus\ /qstardict\ org.freedesktop.DBus.Properties.Set\ \\
  63. .br
  64. org.qstardict.dbus mainWindowVisible\ \\
  65. .br
  66. $(( ! $(qdbus org.qstardict.dbus\ /qstardict\ \\
  67. .br
  68. org.freedesktop.DBus.Properties.Get\ org.qstardict.dbus mainWindowVisible)))
  69. .de URL
  70. \\$2 \(laURL: \\$1 \(ra\\$3
  71. ..
  72. .if \n[.g] .mso www.tmac
  73. .SH HOMEPAGE
  74. .URL "http://qstardict.ylsoftware.com" "QStarDict website"
  75. .SH AUTHOR
  76. \fBQStarDict\fP was written by Alexander Rodin <rodin.alexander@gmail.com>.
  77. .PP
  78. This manual page was written by Alexander Rodin <rodin.alexander@gmail.com>,
  79. for the Debian project (but may be used by others).
  80. .SH SEE ALSO
  81. .BR stardict(1)
  82. .BR sdcv(1)
  83. .BR qdbus(1)