diff --git a/src/jyut-dict/platform/linux/debian/.debhelper/generated/jyutdict/installed-by-dh_installdocs b/src/jyut-dict/platform/linux/debian/.debhelper/generated/jyutdict/installed-by-dh_installdocs new file mode 100644 index 00000000..e69de29b diff --git a/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/DEBIAN/control b/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/DEBIAN/control new file mode 100644 index 00000000..3ce24548 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/DEBIAN/control @@ -0,0 +1,13 @@ +Package: jyutdict-dbgsym +Package-Type: ddeb +Source: jyutdict +Version: 0.19.0614-1 +Auto-Built-Package: debug-symbols +Architecture: amd64 +Maintainer: Aaron +Installed-Size: 4389 +Depends: jyutdict (= 0.19.0614-1) +Section: debug +Priority: optional +Description: debug symbols for jyutdict +Build-Ids: 993168fc72acee19333e11fd622690a1a088c196 diff --git a/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/DEBIAN/md5sums b/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/DEBIAN/md5sums new file mode 100644 index 00000000..e052d1b6 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/DEBIAN/md5sums @@ -0,0 +1 @@ +eb54142ea326e4aae4194063be299b0c usr/lib/debug/.build-id/99/3168fc72acee19333e11fd622690a1a088c196.debug diff --git a/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/usr/share/doc/jyutdict-dbgsym b/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/usr/share/doc/jyutdict-dbgsym new file mode 120000 index 00000000..729adea8 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/.debhelper/jyutdict/dbgsym-root/usr/share/doc/jyutdict-dbgsym @@ -0,0 +1 @@ +jyutdict \ No newline at end of file diff --git a/src/jyut-dict/platform/linux/debian/README.source b/src/jyut-dict/platform/linux/debian/README.source new file mode 100644 index 00000000..beb6359e --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/README.source @@ -0,0 +1,124 @@ +# Jyut Dictionary - An offline Cantonese dictionary + +/jyːt ˈdɪkʃənɛɹi/ + +A program to look up words in Chinese, with Simplified Chinese, Traditional Chinese, Pinyin, Jyutping, and English input. Currently on macOS and Windows, coming in the future Ubuntu. + +[Download now!](https://github.com/aaronhktan/jyut-dict/releases) + +--- + +## Features + +### Vast number of entries. +Jyut Dictionary uses CEDICT and CC-CANTO as sources for its dictionary, giving it over 135,000 entries to search from! + + + +### Search quickly. +Results appear in a list as you type, so it's faster and easier to find what you're looking for. + + + +### Search with your preferred input method. +Jyut Dictionary supports entry with Simplified Chinese, Traditional Chinese, Pinyin, Jyutping, and English. More to come, so stayed tuned! + + + +### Supports dark mode. +Dark mode is love. Dark mode is life. + + + +--- + +## Project structure + +The project contains two main subdirectories, `cedict_to_sqlite` and `jyut-dict`. + +### cedict_to_sqlite + +This folder contains a Python (3) script that takes three source files and spits out a full-text search SQLITE3 database. + +### jyut-dict + +This folder contains the source code for the program, and a Qt Creator project file. Files are divided into several subdirectories: +- `windows`: UI windows of the program, such as the main window. +- `components`: UI components, such as the list view or search bar. +- `logic`: definitions for search and entry classes, as well as any other backend logic. +- `platform`: platform-specific files, such as `Info.plist` for the macOS application bundle. +- `resources`: databases, icons, and images. + +--- + +## Build and run + +### cedict_to_sqlite + +The three text files the script requires are: +1. CEDICT +2. CC-CANTO +3. CC-CANTO readings for CEDICT + +In addition, the SQLITE driver must support full-text search on your machine. + +Usage: +- To install required packages: `pip install -r requirements.txt` +- To generate database: `python3 script.py ` + +### jyut-dict + +This project uses Qt 5.12. + +#### macOS + +##### Command line +1. Generate a Makefile from `jyut-dict.pro`: `qmake jyut-dict.pro` + - Note: you may need the full path of qmake. Search in Spotlight to find the appropriate version, which on 64-bit Macs is the qmake binary under in the `clang_64` folder. +2. Make with `make`. A `.app` application bundle will appear in the directory where you ran this command, which you can double click to run. + +##### Qt Creator +Import the project to Qt Creator, then run. + +#### Windows + +#### Qt Creator +Import the project to Qt Creator, then run. If packaging for release, select the release option in the bottom left corner of the IDE. + +--- + +## Packaging for release + +### macOS + +1. **Generate the deployment .app**: Qt has a handy-dandy application called macdeployqt that packages all the frameworks, resources and other dependencies into the Mac bundle file. + - Run it with `macdeployqt ./jyut-dict.app` in the directory where the program was built. + - Note: you may need the full path of macdeployqt. Search in Spotlight to find the appropriate version, which on 64-bit Macs is the macdeployqt binary in the `clang_64` folder. + +2. **Create a .dmg file**: Mac users expect a .dmg file where they can drag and drop the application bundle into the `~/Applications` folder. + - To generate the .dmg for distribution, you will need Node.js and create-dmg installed. If you do not have create-dmg installed, get it with ```npm install --global create-dmg```. + - Create the dmg. ```create-dmg 'jyut-dict.app'``` + +### Windows + +1. **Generate the deployment .exe**: Qt has a handy-dandy application called windeployqt that packages all the .dlls, resources and other dependencies into the same folder as the .exe. + - Run it with `windeployqt ./jyut-dict.exe` in the directory where the program was built. (Here, use the release folder.) + - Note: you may need the full path of windeployqt, and set the appropriate environment variables. Find the appropriate version by looking in the folder where you installed Qt, which on Windows may be located in the `msvc_` folder if using Microsoft Visual C++, or `mingw_64` if using MinGW/GCC for Windows. + +2. **Create a .msi file**: Windows users expect an installer that automatically places frameworks and executables in the right places, as well as setting registry keys as necessary. + - To generate the .msi for distribution, you will need Advanced Installer. + - Add the .dlls, folders, database files, and executable generated by Qt Creator and windeployqt to the list of files and folders in Advanced Installer, then click 'Build' to generate a .msi file. + +--- + +## On the roadmap +- Include standard menu items in the macOS menu bar. +- Coloured Pinyin/Jyutping characters. +- La langue de la belle province. +- Ubuntu support. +- Support for updating database independently of application. +- Support for updating application. + + + -- Aaron Mon, 17 Jun 2019 01:39:58 -0400 + diff --git a/src/jyut-dict/platform/linux/debian/changelog b/src/jyut-dict/platform/linux/debian/changelog new file mode 100644 index 00000000..aedfcb31 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/changelog @@ -0,0 +1,5 @@ +jyutdict (0.19.0614-1) unstable; urgency=medium + + * Initial release + + -- Aaron Tan Mon, 17 Jun 2019 00:48:23 -0400 diff --git a/src/jyut-dict/platform/linux/debian/compat b/src/jyut-dict/platform/linux/debian/compat new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/compat @@ -0,0 +1 @@ +10 diff --git a/src/jyut-dict/platform/linux/debian/control b/src/jyut-dict/platform/linux/debian/control new file mode 100644 index 00000000..e4eeba2a --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/control @@ -0,0 +1,19 @@ +Source: jyutdict +Section: utils +Priority: optional +Maintainer: Aaron +Build-Depends: debhelper (>= 10), libqt5core5a (>= 5.9.0), libqt5gui5 (>= 5.9.0), libqt5network5 (>= 5.9.0), libqt5widgets5 (>= 5.9.0) +Standards-Version: 4.1.2 +Homepage: https://github.com/aaronhktan/jyut-dict +#Vcs-Git: https://anonscm.debian.org/git/collab-maint/jyutdict.git +#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/jyutdict.git + +Package: jyutdict +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Search words in Cantonese and Mandarin! + This application allows you to search for definitions + of words in Cantonese or Mandarin, from the open-source + CC-CEDICT and CC-CANTO dictionaries. It accepts + Simplified Chinese, Traditional Chinese, Jyutping, Pinyin, or + English as input. diff --git a/src/jyut-dict/platform/linux/debian/copyright b/src/jyut-dict/platform/linux/debian/copyright new file mode 100644 index 00000000..8811b4ec --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/copyright @@ -0,0 +1,35 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: jyut-dict +Source: https://github.com/aaronhktan/jyut-dict + +Files: * +Copyright: 2019 Aaron Tan +License: MIT + +Files: debian/* +Copyright: 2019 Aaron +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/src/jyut-dict/platform/linux/debian/files b/src/jyut-dict/platform/linux/debian/files new file mode 100644 index 00000000..a17ba769 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/files @@ -0,0 +1,3 @@ +jyutdict-dbgsym_0.19.0614-1_amd64.ddeb debug optional +jyutdict_0.19.0614-1_amd64.buildinfo utils optional +jyutdict_0.19.0614-1_amd64.deb utils optional diff --git a/src/jyut-dict/platform/linux/debian/jyutdict-docs.docs b/src/jyut-dict/platform/linux/debian/jyutdict-docs.docs new file mode 100644 index 00000000..efea0a6a --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict-docs.docs @@ -0,0 +1,2 @@ +README.Debian +README.source diff --git a/src/jyut-dict/platform/linux/debian/jyutdict.cron.d.ex b/src/jyut-dict/platform/linux/debian/jyutdict.cron.d.ex new file mode 100644 index 00000000..32e77b36 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict.cron.d.ex @@ -0,0 +1,4 @@ +# +# Regular cron jobs for the jyutdict package +# +0 4 * * * root [ -x /usr/bin/jyutdict_maintenance ] && /usr/bin/jyutdict_maintenance diff --git a/src/jyut-dict/platform/linux/debian/jyutdict.debhelper.log b/src/jyut-dict/platform/linux/debian/jyutdict.debhelper.log new file mode 100644 index 00000000..397e662b --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict.debhelper.log @@ -0,0 +1 @@ +override_dh_shlibdeps dh_shlibdeps diff --git a/src/jyut-dict/platform/linux/debian/jyutdict.doc-base.EX b/src/jyut-dict/platform/linux/debian/jyutdict.doc-base.EX new file mode 100644 index 00000000..665538b2 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict.doc-base.EX @@ -0,0 +1,20 @@ +Document: jyutdict +Title: Debian jyutdict Manual +Author: +Abstract: This manual describes what jyutdict is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/jyutdict/jyutdict.sgml.gz + +Format: postscript +Files: /usr/share/doc/jyutdict/jyutdict.ps.gz + +Format: text +Files: /usr/share/doc/jyutdict/jyutdict.text.gz + +Format: HTML +Index: /usr/share/doc/jyutdict/html/index.html +Files: /usr/share/doc/jyutdict/html/*.html diff --git a/src/jyut-dict/platform/linux/debian/jyutdict.substvars b/src/jyut-dict/platform/linux/debian/jyutdict.substvars new file mode 100644 index 00000000..06265d92 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict.substvars @@ -0,0 +1,3 @@ +shlibs:Depends=libc6 (>= 2.14), libgcc1 (>= 1:3.0), libqt5core5a (>= 5.9.0), libqt5gui5 (>= 5.9.0), libqt5network5 (>= 5.9.0), libqt5sql5 (>= 5.9.0), libqt5widgets5 (>= 5.9.0), libstdc++6 (>= 5.2) +misc:Depends= +misc:Pre-Depends= diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/DEBIAN/control b/src/jyut-dict/platform/linux/debian/jyutdict/DEBIAN/control new file mode 100644 index 00000000..e3328004 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict/DEBIAN/control @@ -0,0 +1,15 @@ +Package: jyutdict +Version: 0.19.0614-1 +Architecture: amd64 +Maintainer: Aaron +Installed-Size: 30749 +Depends: libc6 (>= 2.14), libgcc1 (>= 1:3.0), libqt5core5a (>= 5.9.0), libqt5gui5 (>= 5.9.0), libqt5network5 (>= 5.9.0), libqt5sql5 (>= 5.9.0), libqt5widgets5 (>= 5.9.0), libstdc++6 (>= 5.2) +Section: utils +Priority: optional +Homepage: https://github.com/aaronhktan/jyut-dict +Description: Search words in Cantonese and Mandarin! + This application allows you to search for definitions + of words in Cantonese or Mandarin, from the open-source + CC-CEDICT and CC-CANTO dictionaries. It accepts + Simplified Chinese, Traditional Chinese, Jyutping, Pinyin, or + English as input. diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/DEBIAN/md5sums b/src/jyut-dict/platform/linux/debian/jyutdict/DEBIAN/md5sums new file mode 100644 index 00000000..9ef5e6a9 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict/DEBIAN/md5sums @@ -0,0 +1,7 @@ +129a8e204a0cabd90d92503f3109a4d0 opt/jyut-dict/Jyut Dictionary +8abd5a229cb1ea75807001d3b9f7192f opt/jyut-dict/eng.db +a58079499419e8f26d48684df88f3265 opt/jyut-dict/icon.svg +7520bc39972902e55365dfe753e6d2d6 usr/share/applications/jyut-dict.desktop +d9ad3a8c064ec7dbc98286880e0305d7 usr/share/doc/jyutdict/README.Debian +c2a257648057a05b0a41dc6e8622ac8a usr/share/doc/jyutdict/changelog.Debian.gz +d1636eb695e853d3e35104dbb9934fdf usr/share/doc/jyutdict/copyright diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/Jyut Dictionary b/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/Jyut Dictionary new file mode 100755 index 00000000..fca7d3ab Binary files /dev/null and b/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/Jyut Dictionary differ diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/eng.db b/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/eng.db new file mode 100644 index 00000000..96e90c57 Binary files /dev/null and b/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/eng.db differ diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/icon.svg b/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/icon.svg new file mode 100644 index 00000000..5bebe0f0 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict/opt/jyut-dict/icon.svg @@ -0,0 +1,111 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/applications/jyut-dict.desktop b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/applications/jyut-dict.desktop new file mode 100644 index 00000000..c82bb261 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/applications/jyut-dict.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=0.19.0614 +Type=Application +Name=Jyut Dictionary +GenericName=Cantonese Dictionary +Comment=Look up definitions for words in Cantonese or Mandarin +Exec=/usr/opt/jyut-dict +Terminal=false +Icon=/usr/share/jyut-dict/icon.svg +Keywords=Jyut;Dictionary;Cantonese;Mandarin;Chinese;Words; +Categories=Dictionary;Office;TextTools;Education;Utilities +StartupNotify=true diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/README.Debian b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/README.Debian new file mode 100644 index 00000000..77bf7a87 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/README.Debian @@ -0,0 +1,6 @@ +jyutdict for Debian +------------------ + + + + -- Aaron Mon, 17 Jun 2019 01:39:58 -0400 diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/changelog.Debian.gz b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/changelog.Debian.gz new file mode 100644 index 00000000..3523c056 Binary files /dev/null and b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/changelog.Debian.gz differ diff --git a/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/copyright b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/copyright new file mode 100644 index 00000000..4f8bb4d6 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/jyutdict/usr/share/doc/jyutdict/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: jyutdict +Source: + +Files: * +Copyright: + +License: GPL-2.0+ + +Files: debian/* +Copyright: 2019 Aaron +License: GPL-2.0+ + +License: GPL-2.0+ + 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 program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/src/jyut-dict/platform/linux/debian/manpage.xml.ex b/src/jyut-dict/platform/linux/debian/manpage.xml.ex new file mode 100644 index 00000000..e93724a2 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/manpage.xml.ex @@ -0,0 +1,291 @@ + +.
will be generated. You may view the +manual page with: nroff -man .
| less'. A typical entry +in a Makefile or Makefile.am is: + +DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl +XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" + +manpage.1: manpage.xml + $(XP) $(DB2MAN) $< + +The xsltproc binary is found in the xsltproc package. The XSL files are in +docbook-xsl. A description of the parameters you can use can be found in the +docbook-xsl-doc-* packages. Please remember that if you create the nroff +version in one of the debian/rules file targets (such as build), you will need +to include xsltproc and docbook-xsl in your Build-Depends control field. +Alternatively use the xmlto command/package. That will also automatically +pull in xsltproc and docbook-xsl. + +Notes for using docbook2x: docbook2x-man does not automatically create the +AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as + ... . + +To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections +read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be +found in the docbook-xsl-doc-html package. + +Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` + +General documentation about man-pages and man-page-formatting: +man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + +--> + + + + + + + + + + + + + +]> + + + + &dhtitle; + &dhpackage; + + + &dhfirstname; + &dhsurname; + Wrote this manpage for the Debian system. +
+ &dhemail; +
+
+
+ + 2007 + &dhusername; + + + This manual page was written for the Debian system + (and may be used by others). + Permission is granted to copy, distribute and/or modify this + document under the terms of the GNU General Public License, + Version 2 or (at your option) any later version published by + the Free Software Foundation. + On Debian systems, the complete text of the GNU General Public + License can be found in + /usr/share/common-licenses/GPL. + +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + program to do something + + + + &dhpackage; + + + + + + + + + this + + + + + + + + this + that + + + + + &dhpackage; + + + + + + + + + + + + + + + + + + + DESCRIPTION + This manual page documents briefly the + &dhpackage; and bar + commands. + This manual page was written for the Debian distribution + because the original program does not have a manual page. + Instead, it has documentation in the GNU + info + 1 + format; see below. + &dhpackage; is a program that... + + + OPTIONS + The program follows the usual GNU command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. For a complete description, see the + + info + 1 + files. + + + + + + + Does this and that. + + + + + + + Show summary of options. + + + + + + + Show version of program. + + + + + + FILES + + + /etc/foo.conf + + The system-wide configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + ${HOME}/.foo.conf + + The per-user configuration file to control the + behaviour of &dhpackage;. See + + foo.conf + 5 + for further details. + + + + + + ENVIRONMENT + + + FOO_CONF + + If used, the defined file is used as configuration + file (see also ). + + + + + + DIAGNOSTICS + The following diagnostics may be issued + on stderr: + + + Bad configuration file. Exiting. + + The configuration file seems to contain a broken configuration + line. Use the option, to get more info. + + + + + &dhpackage; provides some return codes, that can + be used in scripts: + + Code + Diagnostic + + 0 + Program exited successfully. + + + 1 + The configuration file seems to be broken. + + + + + + BUGS + The program is currently limited to only work + with the foobar library. + The upstreams BTS can be found + at . + + + SEE ALSO + + + bar + 1 + , + baz + 1 + , + foo.conf + 5 + + The programs are documented fully by The Rise and + Fall of a Fooish Bar available via the + info + 1 + system. + +
+ diff --git a/src/jyut-dict/platform/linux/debian/menu.ex b/src/jyut-dict/platform/linux/debian/menu.ex new file mode 100644 index 00000000..08b6d5fd --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/menu.ex @@ -0,0 +1,2 @@ +?package(jyutdict):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ + title="jyutdict" command="/usr/bin/jyutdict" diff --git a/src/jyut-dict/platform/linux/debian/postinst.ex b/src/jyut-dict/platform/linux/debian/postinst.ex new file mode 100644 index 00000000..0f8690f9 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/postinst.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postinst script for jyutdict +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/src/jyut-dict/platform/linux/debian/postrm.ex b/src/jyut-dict/platform/linux/debian/postrm.ex new file mode 100644 index 00000000..43b2b0a6 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/postrm.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for jyutdict +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/src/jyut-dict/platform/linux/debian/preinst.ex b/src/jyut-dict/platform/linux/debian/preinst.ex new file mode 100644 index 00000000..3c36ac6b --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/preinst.ex @@ -0,0 +1,35 @@ +#!/bin/sh +# preinst script for jyutdict +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/src/jyut-dict/platform/linux/debian/prerm.ex b/src/jyut-dict/platform/linux/debian/prerm.ex new file mode 100644 index 00000000..f1ad8a2d --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/prerm.ex @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for jyutdict +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/src/jyut-dict/platform/linux/debian/rules b/src/jyut-dict/platform/linux/debian/rules new file mode 100755 index 00000000..18b38e75 --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + +override_dh_shlibdeps: + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info + + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + diff --git a/src/jyut-dict/platform/linux/debian/source/format b/src/jyut-dict/platform/linux/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/src/jyut-dict/platform/linux/debian/watch.ex b/src/jyut-dict/platform/linux/debian/watch.ex new file mode 100644 index 00000000..6a1b89ab --- /dev/null +++ b/src/jyut-dict/platform/linux/debian/watch.ex @@ -0,0 +1,38 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 4 file +version=4 + +# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig +#opts="pgpsigurlmangle=s%$%.sig%" + +# HTTP site (basic) +#http://example.com/downloads.html \ +# files/jyutdict-([\d\.]+)\.tar\.gz debian uupdate + +# Uncomment to examine an FTP server +#ftp://ftp.example.com/pub/jyutdict-(.*)\.tar\.gz debian uupdate + +# SourceForge hosted projects +# http://sf.net/jyutdict/ jyutdict-(.*)\.tar\.gz debian uupdate + +# GitHub hosted projects +#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%-$1.tar.gz%" \ +# https://github.com//jyutdict/tags \ +# (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate + +# PyPI +# https://pypi.debian.net/jyutdict/jyutdict-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) + +# Direct Git +# opts="mode=git" http://git.example.com/jyutdict.git \ +# refs/tags/v([\d\.]+) debian uupdate + + + + +# Uncomment to find new files on GooglePages +# http://example.googlepages.com/foo.html jyutdict-(.*)\.tar\.gz diff --git a/src/jyut-dict/platform/linux/jyut-dict.desktop b/src/jyut-dict/platform/linux/jyut-dict.desktop new file mode 100644 index 00000000..c82bb261 --- /dev/null +++ b/src/jyut-dict/platform/linux/jyut-dict.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=0.19.0614 +Type=Application +Name=Jyut Dictionary +GenericName=Cantonese Dictionary +Comment=Look up definitions for words in Cantonese or Mandarin +Exec=/usr/opt/jyut-dict +Terminal=false +Icon=/usr/share/jyut-dict/icon.svg +Keywords=Jyut;Dictionary;Cantonese;Mandarin;Chinese;Words; +Categories=Dictionary;Office;TextTools;Education;Utilities +StartupNotify=true