--- qstardict-0.12.9.orig/qstardict.pri +++ qstardict-0.12.9/qstardict.pri @@ -32,7 +32,7 @@ link_pkgconfig PKGCONFIG += \ glib-2.0 -unix:LIBS += -lz +unix:LIBS += -lz -lX11 windows:LIBS += -lzdll unix:DEFINES += HAVE_MMAP --- qstardict-0.12.9.orig/debian/rules +++ qstardict-0.12.9/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + qmake-qt4 + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) CFLAGS="$(CFLAGS)" + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + if test -f $(CURDIR)/Makefile; then \ + $(MAKE) distclean; \ + fi + if test -f $(CURDIR)/qstardict/moc_dbusadaptor.o; then \ + rm -f $(CURDIR)/qstardict/moc_dbusadaptor.o; \ + fi + if test -f $(CURDIR)/qstardict/dbusadaptor.o; then \ + rm -f $(CURDIR)/qstardict/dbusadaptor.o; \ + fi + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cd $(CURDIR)/qstardict && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/qstardict install + cd $(CURDIR)/plugins && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/qstardict install + dh_installman $(CURDIR)/debian/qstardict.1 + mkdir -p $(CURDIR)/debian/qstardict/usr/share/pixmaps + cp $(CURDIR)/debian/qstardict.xpm $(CURDIR)/debian/qstardict/usr/share/pixmaps/qstardict.xpm + +binary-indep: build install + +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installmenu + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- qstardict-0.12.9.orig/debian/control +++ qstardict-0.12.9/debian/control @@ -0,0 +1,26 @@ +Source: qstardict +Section: x11 +Priority: optional +Maintainer: Alexander Rodin +Build-Depends: debhelper (>= 5), libqt4-dev (>= 4.2.0), libglib2.0-dev, zlib1g-dev, libx11-dev +Standards-Version: 3.8.0 +Homepage: http://qstardict.ylsoftware.com + +Package: qstardict +Architecture: any +Depends: ${shlibs:Depends} +Suggests: festival +Description: International dictionary written using Qt4 + QStarDict is a modern international dictionary written using Qt4. + . + Main features + * Full support of StarDict dictionaries + * Fuzzy search + * Support for hyper links in translations + * Working from the system tray + * Scanning mouse selection and showing pop-up windows with translation of + selected words + * Translations reformatting + * Pronouncing of the translated words + * Plugins support + --- qstardict-0.12.9.orig/debian/changelog +++ qstardict-0.12.9/debian/changelog @@ -0,0 +1,56 @@ +qstardict (0.12.9-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix "Including individual glib headers no longer supported": + apply patch from Michael Biebl to only #include + (Closes: #665601) + + -- gregor herrmann Sun, 23 Jun 2013 15:48:21 +0200 + +qstardict (0.12.9-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix FTBFS with binutils-gold (Closes: #556305). + Thanks to Mahyuddin Susanto. + + -- Nobuhiro Iwamatsu Tue, 17 May 2011 10:36:12 +0900 + +qstardict (0.12.9-1) unstable; urgency=low + + * New upstream release + * Added libx11-dev to build-depends as qt doesn't depend on it explicitly + anymore (Closes: #479889). + + -- Alexander Rodin Tue, 10 Jun 2008 23:30:18 +0400 + +qstardict (0.12.7-1.1) unstable; urgency=low + + * Non-maintainer upload of the package I sponsor. + * Added zlib1g-dev to build-depends as qt doesn't depend on it explicitly + anymore (Closes: #477021). + * debian/rules: Added a rule to manually remove a couple of object files + that don't get cleaned. + + -- Oleksandr Moskalenko Mon, 21 Apr 2008 11:36:46 -0600 + +qstardict (0.12.7-1) unstable; urgency=low + + * New upstream release + + -- Alexander Rodin Mon, 31 Mar 2008 09:58:26 +0400 + +qstardict (0.12-1) unstable; urgency=low + + * New upstream release + + -- Alexander Rodin Fri, 28 Mar 2008 15:30:22 +0300 + +qstardict (0.08-1) unstable; urgency=low + + * Initial release + + -- Alexander Rodin Sun, 11 Nov 2007 16:54:39 +0300 + +Local variables: + mode: debian-changelog +End: --- qstardict-0.12.9.orig/debian/qstardict.1 +++ qstardict-0.12.9/debian/qstardict.1 @@ -0,0 +1,91 @@ +.\" -*- nroff -*- +.TH QSTARDICT 1 "November 11, 2007" +.SH NAME +\fBqstardict\fP \- a Qt4 dictionary +.SH DESCRIPTION +\fBQStarDict\fP is a StarDict clone written with Qt4. The user interface is similar to StarDict. You can start QStarDict from the menu or by running the \fBqstardict\fP command. +.SH TRANSLATION REFORMATTING AND ABBREVIATION EXPANSION +QStarDict can reformat translations and expand dictionary abbreviations. For example this translation: +.PP +.nf +1> First _val. of _w. 2> Second _val. of _w. ... +.PP +can be shown as +.PP +.nf +1. Fist value of word +2. Second value of word +3. ... +.PP +But reformatting and expanding takes additional CPU time. If the translation reformatting and instant search are both turned on this can decrease QStarDict performance. +.SH DICTIONARIES + +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: + + - .dict[.dz] file - main dictionary file + - .idx - index file + - .ifo - description file + +These files must be placed together in one directory. +.SH PRONOUNCING PROGRAMS +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. +.SH D-BUS +QStarDict supports D-Bus message bus. List of available methods: +.PP +.BI "void org.qstardict.dbus.showPopup(\^QString\ "text "\^)" +.br +.BI "void org.qstardict.dbus.showTranslation(\^QString\ "text "\^)" +.br +.BI "QString org.qstardict.dbus.translate(\^QString\ "text "\^)" +.br +.BI "QString org.qstardict.dbus.translateHtml(\^QString\ "text "\^)" +.br +.BI "QDBusVariant org.freedesktop.DBus.Properties.Get(\^QString\ "interface_name ", \^QString\ "property_name ")" +.br +.BI "void org.freedesktop.DBus.Properties.Set(\^QString\ "interface_name ", \^QString\ "property_name ", \^QDBusVariant\ "value "\^)" +.br +.BI "QString org.freedesktop.DBus.Introspectable.Introspect()" +.br + +.PP +List of available properties: +.PP +.BI "readwrite int org.qstardict.dbus.mainWindowVisible" + +.PP +You can call these methods from your applications or by using the \fBqdbus\fP program. +This command +.PP +.nf +qdbus\ org.qstardict.dbus\ /qstardict\ org.qstardict.dbus.showPopup\ "text" +.PP +will show a QStarDict popup window with a translation of the "text". +.PP +If you want to show/hide QStarDict window using keyboard shortcuts you must bind the following command to a shortcut: +.PP +.nf +qdbus\ org.qstardict.dbus\ /qstardict\ org.freedesktop.DBus.Properties.Set\ \\ +.br +org.qstardict.dbus mainWindowVisible\ \\ +.br +$(( ! $(qdbus org.qstardict.dbus\ /qstardict\ \\ +.br +org.freedesktop.DBus.Properties.Get\ org.qstardict.dbus mainWindowVisible))) + +.de URL +\\$2 \(laURL: \\$1 \(ra\\$3 +.. +.if \n[.g] .mso www.tmac +.SH HOMEPAGE +.URL "http://qstardict.ylsoftware.com" "QStarDict website" +.SH AUTHOR +\fBQStarDict\fP was written by Alexander Rodin . +.PP +This manual page was written by Alexander Rodin , +for the Debian project (but may be used by others). + +.SH SEE ALSO +.BR stardict(1) +.BR sdcv(1) +.BR qdbus(1) + --- qstardict-0.12.9.orig/debian/compat +++ qstardict-0.12.9/debian/compat @@ -0,0 +1 @@ +5 --- qstardict-0.12.9.orig/debian/copyright +++ qstardict-0.12.9/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Alexander Rodin on +Thu, 30 Aug 2007 10:15:32 +0400. + +It was downloaded from http://qstardict.ylsoftware.com + +Upstream Authors: + Alexander Rodin + Hu Zheng + Opera Wang + Rickard E. Faith + +This software is copyright (c) 2007 by Alexander Rodin + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Alexander Rodin +and is licensed under the GPL, see above. --- qstardict-0.12.9.orig/debian/docs +++ qstardict-0.12.9/debian/docs @@ -0,0 +1 @@ +AUTHORS THANKS --- qstardict-0.12.9.orig/debian/qstardict.xpm +++ qstardict-0.12.9/debian/qstardict.xpm @@ -0,0 +1,365 @@ +/* XPM */ +static char * qstardict_menu_xpm[] = { +"32 32 330 2", +" c None", +". c #202020", +"+ c #4E4E4E", +"@ c #4F4F4F", +"# c #525251", +"$ c #7E9271", +"% c #7D926F", +"& c #7B916D", +"* c #7A916C", +"= c #778E68", +"- c #748D64", +"; c #738C63", +"> c #718B60", +", c #708A5F", +"' c #6E895D", +") c #6C885B", +"! c #698658", +"~ c #698657", +"{ c #688656", +"] c #658452", +"^ c #648251", +"/ c #486E30", +"( c #535353", +"_ c #C0C0C0", +": c #C2C2C2", +"< c #C4C4C4", +"[ c #C6C6C6", +"} c #C8C8C8", +"| c #C9C9C9", +"1 c #CDCDCD", +"2 c #CECECE", +"3 c #D0D0D0", +"4 c #D2D2D2", +"5 c #D4D4D4", +"6 c #D5D5D5", +"7 c #D6D6D6", +"8 c #D7D7D7", +"9 c #D8D8D8", +"0 c #DADADA", +"a c #DBDBDB", +"b c #DCDCDC", +"c c #DEDEDE", +"d c #DFDFDF", +"e c #9BA993", +"f c #235B00", +"g c #0D0D0D", +"h c #393939", +"i c #3B3B3B", +"j c #646F47", +"k c #7A955A", +"l c #869C53", +"m c #759157", +"n c #749155", +"o c #739053", +"p c #728F52", +"q c #719051", +"r c #73914F", +"s c #75924D", +"t c #6F8D4D", +"u c #6E8E4C", +"v c #6E8E4B", +"w c #6D8D4A", +"x c #6C8C49", +"y c #6C8C48", +"z c #61843B", +"A c #3F6C14", +"B c #010101", +"C c #070707", +"D c #040404", +"E c #2C4C02", +"F c #70A000", +"G c #71A000", +"H c #609600", +"I c #468600", +"J c #468700", +"K c #478700", +"L c #488800", +"M c #6C9E00", +"N c #4D8B00", +"O c #498800", +"P c #498900", +"Q c #4A8900", +"R c #4A8A00", +"S c #4B8A00", +"T c #4C8B02", +"U c #0B0B0B", +"V c #0A0A0A", +"W c #050505", +"X c #284A02", +"Y c #528E00", +"Z c #679B00", +"` c #7EA900", +" . c #508D00", +".. c #639900", +"+. c #4C8B00", +"@. c #4D8C00", +"#. c #020202", +"$. c #0F0F0F", +"%. c #0E0E0E", +"&. c #060606", +"*. c #080808", +"=. c #2A4D03", +"-. c #5A9300", +";. c #73A200", +">. c #669A00", +",. c #619800", +"'. c #508E00", +"). c #4E8C00", +"!. c #4E8D00", +"~. c #030303", +"{. c #131313", +"]. c #111111", +"^. c #2D5004", +"/. c #609700", +"(. c #80AA00", +"_. c #4F8D00", +":. c #4F8E00", +"<. c #181818", +"[. c #141414", +"}. c #090909", +"|. c #0C0C0C", +"1. c #2F5305", +"2. c #6D9F00", +"3. c #679C00", +"4. c #5D9600", +"5. c #528F00", +"6. c #518E00", +"7. c #518F00", +"8. c #1C1C1C", +"9. c #325606", +"0. c #6FA000", +"a. c #5E9600", +"b. c #529000", +"c. c #539000", +"d. c #1A1A1A", +"e. c #121212", +"f. c #345906", +"g. c #549000", +"h. c #72A300", +"i. c #549100", +"j. c #559100", +"k. c #242424", +"l. c #1D1D1D", +"m. c #375C06", +"n. c #4F8805", +"o. c #51860B", +"p. c #51870B", +"q. c #68940B", +"r. c #5F8F0B", +"s. c #518708", +"t. c #4F8A00", +"u. c #559200", +"v. c #569200", +"w. c #569300", +"x. c #282828", +"y. c #1F1F1F", +"z. c #171717", +"A. c #395F07", +"B. c #76964B", +"C. c #BCC4B0", +"D. c #F2F2F2", +"E. c #D7DAD2", +"F. c #C0C8B0", +"G. c #C1C8B4", +"H. c #CACEC5", +"I. c #C0CBB2", +"J. c #80A153", +"K. c #548F02", +"L. c #5D9700", +"M. c #579300", +"N. c #579400", +"O. c #589400", +"P. c #2C2C2C", +"Q. c #222222", +"R. c #101010", +"S. c #191919", +"T. c #3C6208", +"U. c #508703", +"V. c #A2B884", +"W. c #639A00", +"X. c #5A9102", +"Y. c #759940", +"Z. c #E1E5DB", +"`. c #C0CBB0", +" + c #598F0A", +".+ c #599400", +"++ c #599500", +"@+ c #2F2F2F", +"#+ c #3E6508", +"$+ c #518803", +"%+ c #A3B884", +"&+ c #699E00", +"*+ c #609900", +"=+ c #5B9600", +"-+ c #649121", +";+ c #F2F3F1", +">+ c #B0BF98", +",+ c #5E9800", +"'+ c #5A9600", +")+ c #333333", +"!+ c #262626", +"~+ c #416909", +"{+ c #528A03", +"]+ c #A3B984", +"^+ c #649B00", +"/+ c #ADBF92", +"(+ c #FBFBFA", +"_+ c #63911C", +":+ c #5C9700", +"<+ c #363636", +"[+ c #446D09", +"}+ c #548B03", +"|+ c #A4B984", +"1+ c #5A9500", +"2+ c #669C00", +"3+ c #84A551", +"4+ c #FFFFFF", +"5+ c #89A859", +"6+ c #5D9800", +"7+ c #5E9900", +"8+ c #383838", +"9+ c #292929", +"0+ c #151515", +"a+ c #47700A", +"b+ c #568C03", +"c+ c #A4BA84", +"d+ c #5B9700", +"e+ c #699F00", +"f+ c #7CA03A", +"g+ c #9BB473", +"h+ c #609A00", +"i+ c #5F9A00", +"j+ c #3A3A3A", +"k+ c #2A2A2A", +"l+ c #252525", +"m+ c #49720A", +"n+ c #578D03", +"o+ c #A5BA84", +"p+ c #689E00", +"q+ c #7CA042", +"r+ c #96B16A", +"s+ c #619B00", +"t+ c #3C3C3C", +"u+ c #272727", +"v+ c #4B740B", +"w+ c #588E03", +"x+ c #5F9900", +"y+ c #649C00", +"z+ c #9AB369", +"A+ c #7FA240", +"B+ c #629B00", +"C+ c #629C00", +"D+ c #639C00", +"E+ c #3D3D3D", +"F+ c #2B2B2B", +"G+ c #4D750C", +"H+ c #5A8F03", +"I+ c #A6BB84", +"J+ c #619A00", +"K+ c #609802", +"L+ c #D0D7C3", +"M+ c #E4E7DF", +"N+ c #629606", +"O+ c #669E00", +"P+ c #649D00", +"Q+ c #3F3F3F", +"R+ c #4F780C", +"S+ c #5B9003", +"T+ c #A7BB84", +"U+ c #619A01", +"V+ c #9BB174", +"W+ c #F9F9F9", +"X+ c #84A446", +"Y+ c #659E00", +"Z+ c #669F00", +"`+ c #1B1B1B", +" @ c #404040", +".@ c #2D2D2D", +"+@ c #50790D", +"@@ c #619211", +"#@ c #688E28", +"$@ c #F3F3F3", +"%@ c #B0BF96", +"&@ c #6E9727", +"*@ c #739B2F", +"=@ c #8BAA56", +"-@ c #C5CFB3", +";@ c #DEE2D8", +">@ c #7FA142", +",@ c #69A000", +"'@ c #679F00", +")@ c #68A000", +"!@ c #1E1E1E", +"~@ c #424242", +"{@ c #507A0E", +"]@ c #779C3D", +"^@ c #AABD8B", +"/@ c #ABBE8B", +"(@ c #A9BD88", +"_@ c #9BB472", +":@ c #7A9F3D", +"<@ c #609604", +"[@ c #639D00", +"}@ c #313131", +"|@ c #507A0F", +"1@ c #5C9600", +"2@ c #232323", +"3@ c #434343", +"4@ c #343434", +"5@ c #4F7B10", +"6@ c #444444", +"7@ c #212121", +"8@ c #4F7B11", +"9@ c #5C9800", +"0@ c #3E3E3E", +"a@ c #323232", +"b@ c #4C7A10", +"c@ c #47750D", +"d@ c #161616", +"e@ c #42710B", +"f@ c #366007", +"g@ c #3E7600", +"h@ c #3F7500", +"i@ c #407600", +"j@ c #407700", +"k@ c #417700", +"l@ c #417800", +"m@ c #427800", +"n@ c #437900", +"o@ c #437800", +" ", +" . + + @ # $ % & * = = - ; > , ' ) ! ~ { ] ^ / ", +" ( _ : < [ } | 1 2 3 4 5 6 7 8 9 0 a b c c d e f ", +" g h i i i j k l m n n o p q r s t u v w x y z A ", +" B C C D D E F G H I J K K K L M N O P Q Q R S T ", +" B U V D W X Y Z ` L L L L O P ...R S S +.+.+.@. ", +" #.$.%.&.*.=.L -.;.>.P Q R R S S ,.'.+.@.@.).).!. ", +" ~.{.].C V ^.P Q /.(.+.S +.+.+.@._.,.).!._._.:.'. ", +" D <.[.}.|.1.S S +.2.3.@.@.).).!._.4.5.'.'.6.7.7. ", +" D 8.<.U $.9.N @.@.).0.'._._.'.'.'.5.a.5.5.b.c.c. ", +" &.. d.|.e.f.).!._._.g.h.'.7.7.5.5.b.4.i.c.i.i.j. ", +" C k.l.%.[.m.'.'.n.o.p.q.r.s.t.c.i.i.u.4.u.u.v.w. ", +" *.x.y.$.z.A.7.5.B.C.D.E.F.G.H.I.J.K.v.L.M.M.N.O. ", +" V P.Q.R.S.T.c.c.i.U.D.V.W.W.X.Y.Z.`. +.+L..+++++ ", +" |.@+k.e.8.#+i.u.u.$+D.%+M.&+*+=+-+;+>+.+,+'+'+=+ ", +" g )+!+{.y.~+v.w.M.{+D.]+O.,+^+W.=+/+(+_+:+,+:+L. ", +" R.<+x.[.Q.[+O.O.O.}+D.|+1+'+2+,+^+3+4+5+6+*+,+7+ ", +" ].8+9+0+k.a+++1+'+b+D.c+d+:+:+e+,+f+4+g+7+h+i+h+ ", +" {.j+k+z.l+m+=+=+:+n+D.o+6+,+,+h+p+q+4+r+h+h+s+s+ ", +" 0+t+k+<.u+v+:+6+6+w+D.o+x+x+i+h+y+z+4+A+B+C+C+D+ ", +" z.E+F+S.9+G+,+7+x+H+D.I+h+J+s+s+K+L+M+N+O+P+P+P+ ", +" S.Q+P.d.F+R+x+h+h+S+D.T+B+C+C+U+V+W+X+O+Y+O+O+Z+ ", +" `+ @P.`+.@+@7+x+@@#@$@%@&@*@=@-@;@>@Y+,@'@'@'@)@ ", +" !@~@.@8.@+{@:+6+]@^@^@^@/@(@_@:@<@D+[@P+Z+O+O+Z+ ", +" . ~@.@!@}@|@'+=+1@:+:+6+,+,+7+x+h+h+h+B+C+D+[@P+ ", +" 2@3@P.y.4@5@O.O..+++1+1+=+=+:+L.6+,+,+x+i+h+J+s+ ", +" !+6@P.7@<+8@j.u.v.v.M.M.O.O..+1+1+'+=+:+:+9@,+7+ ", +" l+0@u+. a@b@5.5.c.c.c.i.i.u.u.v.w.M.O.O..+++1+'+ ", +" y.a@y.`+k+c@).!._. .'.'.6.7.5.5.c.c.g.i.j.u.u.w. ", +" `+!+z.d@. e@Q S S S S +.+.@.).).).!._. .'.6.6. ", +" R.z.g g [.f@g@h@h@h@h@h@i@j@k@k@l@l@m@m@n@n@o@ ", +" "}; --- qstardict-0.12.9.orig/debian/menu +++ qstardict-0.12.9/debian/menu @@ -0,0 +1,2 @@ +?package(qstardict):needs="X11" section="Applications/Text" \ + title="QStarDict" command="/usr/bin/qstardict" icon="/usr/share/pixmaps/qstardict.xpm" --- qstardict-0.12.9.orig/debian/watch +++ qstardict-0.12.9/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://qstardict.ylsoftware.com/files/qstardict-(.*)\.tar\.bz2 --- qstardict-0.12.9.orig/plugins/stardict/stardict.cpp +++ qstardict-0.12.9/plugins/stardict/stardict.cpp @@ -28,8 +28,7 @@ #include #include #include -#include -#include +#include #include "lib.h" #include "file.hpp" #include "settingsdialog.h"