--- edict-el-1.06.orig/debian/README.Debian +++ edict-el-1.06/debian/README.Debian @@ -0,0 +1,15 @@ +This package provides access to Edict from within Emacs. +Two main commands are provided: + +* `edict-search-english': Search the Edict dictionary for an English + word. Default word is the word at point, if any. + +* `edict-search-kanji': Search the dictionary for the Japanese phrase + in the current region. + + You might want to add keybindings for these functions. Cut and +paste the contents of /usr/share/doc/edict-el/dot-emacs into your +.emacs startup file. That should bind `edict-search-english' to `M-*' +and `edict-search-kanji' to `M-_'. + +Roland Mas , 2001-04-24 \ No newline at end of file --- edict-el-1.06.orig/debian/changelog +++ edict-el-1.06/debian/changelog @@ -0,0 +1,79 @@ +edict-el (1.06-11) unstable; urgency=medium + + * Upgrade Depends: to handle emacs24, patch from Gabriele Giacone + <1o5g4r8o@gmail.com> (closes: #754001). + * Bumped Standards-Version: to 3.9.5 while I'm at it (no changes). + + -- Roland Mas Tue, 09 Sep 2014 09:09:18 +0200 + +edict-el (1.06-10) unstable; urgency=low + + * Disable several dh_auto_* during build (closes: #724052). + * Updated Standards-Version to 3.9.4 (no changes needed). + + -- Roland Mas Mon, 23 Sep 2013 11:46:05 +0200 + +edict-el (1.06-9) unstable; urgency=low + + * Switched section to lisp. + + -- Roland Mas Fri, 19 Nov 2010 11:31:48 +0100 + +edict-el (1.06-8) unstable; urgency=low + + * Deduplicate search results (closes: #388580). + * Updated dependency to emacs23 | emacsen. + * Fixed Lintian warnings and errors. + * Switched to Debhelper 7. + * Updated Standards-Version (no changes). + + -- Roland Mas Fri, 19 Nov 2010 11:00:21 +0100 + +edict-el (1.06-7) unstable; urgency=low + + * Replaced dependency on emacs21 | emacsen with emacs22 | emacsen. + + -- Roland Mas Sat, 28 Jul 2007 16:54:56 +0200 + +edict-el (1.06-6) unstable; urgency=low + + * Bumped Standards-Version to 3.6.0 (no changes needed). + * The edict package is now free and has been moved to the main section, + hence edict-el can move out of non-free and into main too. + * Replaced dependency on emacs20 | emacsen with emacs21 | emacsen. + + -- Roland Mas Wed, 23 Jul 2003 20:34:02 +0200 + +edict-el (1.06-5) unstable; urgency=low + + * Bumped Standards-Version to 3.5.7, with necessary modifications. + + -- Roland Mas Tue, 10 Sep 2002 13:26:20 +0200 + +edict-el (1.06-4) unstable; urgency=low + + * Moved to contrib (closes: #98233). + + -- Roland Mas Mon, 21 May 2001 12:22:28 +0200 + +edict-el (1.06-3) unstable; urgency=low + + * Fixed autoloads. + + -- Roland Mas Thu, 26 Apr 2001 14:47:02 +0200 + +edict-el (1.06-2) unstable; urgency=low + + * Removed the keybindings from the startup file, put them in an example + file instead. + * Added a small README.Debian file. + + -- Roland Mas Tue, 24 Apr 2001 14:23:20 +0200 + +edict-el (1.06-1) unstable; urgency=low + + * Initial Release. + + -- Roland Mas Sat, 21 Apr 2001 22:36:31 +0200 + + \ No newline at end of file --- edict-el-1.06.orig/debian/compat +++ edict-el-1.06/debian/compat @@ -0,0 +1 @@ +7 --- edict-el-1.06.orig/debian/control +++ edict-el-1.06/debian/control @@ -0,0 +1,18 @@ +Source: edict-el +Section: lisp +Priority: optional +Maintainer: Roland Mas +Build-Depends-Indep: debhelper (>= 7.0.50~) +Standards-Version: 3.9.5 + +Package: edict-el +Architecture: all +Depends: emacs | emacsen, edict, ${misc:Depends} +Description: Emacs interface to Edict + This package provides edict.el and associated files, thus allowing + to query the Edict Japanese-English dictionary from within Emacs. + . + Using the region and couple of keystrokes, edict.el will look up the + Japanese key and return all the Edict entries containing that key, in + a pop-up buffer. English is even easier, you just put point anywhere + in the word you want to look up. --- edict-el-1.06.orig/debian/copyright +++ edict-el-1.06/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Roland Mas on +Sat, 21 Apr 2001 22:34:54 +0200. + +It was downloaded from + + +Upstream Author: + Per Hammarlund + Stephen J. Turnbull + +Copyright: +,---- +| Copyright (C) 1991, 1992 Per Hammarlund (perham@nada.kth.se) +| +| This file is part of XEmacs. +| +| It 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, or (at your +| option) any later version. +`---- + +On Debian systems, the GNU General Public License can be found in +/usr/share/common-licenses (along with other commomnly-used software +licenses). --- edict-el-1.06.orig/debian/dirs +++ edict-el-1.06/debian/dirs @@ -0,0 +1 @@ +usr/share/emacs/site-lisp/edict-el \ No newline at end of file --- edict-el-1.06.orig/debian/docs +++ edict-el-1.06/debian/docs @@ -0,0 +1,4 @@ +README +README.096 +TODO +ChangeLog.096 --- edict-el-1.06.orig/debian/emacsen-install +++ edict-el-1.06/debian/emacsen-install @@ -0,0 +1,43 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/edict-el + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=edict-el + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +FLAVORTEST=`echo $FLAVOR | cut -c-6` +if [ ${FLAVORTEST} = xemacs ] ; then + exit 0 +fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f *.el path.el + +exit 0 --- edict-el-1.06.orig/debian/emacsen-remove +++ edict-el-1.06/debian/emacsen-remove @@ -0,0 +1,20 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/edict-el + +FLAVOR=$1 +PACKAGE=edict-el + +FLAVORTEST=`echo $FLAVOR | cut -c-6` +if [ ${FLAVORTEST} = xemacs ] ; then + exit 0 +fi + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/edict-el.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- edict-el-1.06.orig/debian/emacsen-startup +++ edict-el-1.06/debian/emacsen-startup @@ -0,0 +1,22 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian GNU/Linux edict-el package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The edict-el package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: + +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/edict-el") load-path)) + +(autoload 'edict-search-english "edict" "Search an English word" t) +(autoload 'edict-search-kanji "edict" "Search for a Japanese word or compound" t) +(setq edict-dictionaries + '(("/usr/share/edict/edict" . euc-jp))) --- edict-el-1.06.orig/debian/install +++ edict-el-1.06/debian/install @@ -0,0 +1 @@ +*.el /usr/share/emacs/site-lisp/edict-el/ \ No newline at end of file --- edict-el-1.06.orig/debian/postinst +++ edict-el-1.06/debian/postinst @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for edict-el +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- edict-el-1.06.orig/debian/prerm +++ edict-el-1.06/debian/prerm @@ -0,0 +1,37 @@ +#! /bin/sh +# prerm script for edict-el +# +# 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 /usr/share/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/edict-el.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- edict-el-1.06.orig/debian/rules +++ edict-el-1.06/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +override_dh_auto_build: +override_dh_auto_clean: +override_dh_auto_test: +override_dh_auto_install: + +%: + dh $@ --- edict-el-1.06.orig/dot-emacs +++ edict-el-1.06/dot-emacs @@ -0,0 +1,6 @@ +;; -*-emacs-lisp-*- +;; +;; Sample keybindings for Edict + +(global-set-key "\M-_" 'edict-search-kanji) +(global-set-key "\M-*" 'edict-search-english) --- edict-el-1.06.orig/edict.el +++ edict-el-1.06/edict.el @@ -859,6 +859,7 @@ (if (string-match "^[、-瑤]$" key) ;1 char (push key one-char-keys) (setq match-list (union match-list (edict-search key edict-buffer))))) + (setq match-list (remove-duplicates match-list :test #'equal)) ;; If we didn't get anything, we can try including the one-char keys. (or match-list (dolist (key one-char-keys)