Package: hunspell-en-us Version: 20070829-6 Severity: normal Tags: patch Usertags: debian-packaging
Hi there!
I completely switched to hunspell and thus I was quite surprised that it
did not worked in emacs-snapshot. The attached patches do the trick:
--8<---------------cut here---------------start------------->8---
diffstat for hunspell-en-us_20070829-6 hunspell-en-us_20070829-7
debian/hunspell-en-us.info-hunspell | 4 ++++
debian/hunspell-en-us.info-myspell | 1 -
hunspell-en-us-20070829/debian/changelog | 11 +++++++++++
hunspell-en-us-20070829/debian/rules | 2 +-
4 files changed, 16 insertions(+), 2 deletions(-)
reverted:
--- hunspell-en-us-20070829/debian/hunspell-en-us.info-myspell
+++ hunspell-en-us-20070829.orig/debian/hunspell-en-us.info-myspell
@@ -1 +0,0 @@
-DICT en US en_US
diff -u hunspell-en-us-20070829/debian/rules
hunspell-en-us-20070829/debian/rules
--- hunspell-en-us-20070829/debian/rules
+++ hunspell-en-us-20070829/debian/rules
@@ -28,7 +28,7 @@
dh_clean -k
dh_installdirs
- installdeb-myspell --srcdir=$(CURDIR)
+ installdeb-hunspell
binary-arch: build install
diff -u hunspell-en-us-20070829/debian/changelog
hunspell-en-us-20070829/debian/changelog
--- hunspell-en-us-20070829/debian/changelog
+++ hunspell-en-us-20070829/debian/changelog
@@ -1,3 +1,14 @@
+hunspell-en-us (20070829-7) UNRELEASED; urgency=low
+
+ * debian/hunspell-en-us.info-hunspell:
+ + new file for emacsen support (Closes: #NNN).
+ * debian/hunspell-en-us.info-myspell:
+ - remove.
+ * debian/rules:
+ + s/installdeb-myspell/installdeb-hunspell/.
+
+ -- Luca Capello <[email protected]> Thu, 27 Dec 2012 00:13:06 +0100
+
hunspell-en-us (20070829-6) unstable; urgency=low
* provide also myspell-dictionary-en-us for myspell-en-us
only in patch2:
unchanged:
--- hunspell-en-us-20070829.orig/debian/hunspell-en-us.info-hunspell
+++ hunspell-en-us-20070829/debian/hunspell-en-us.info-hunspell
@@ -0,0 +1,4 @@
+Language: american (American English)
+Hash-Name: en_US
+Emacsen-Name: american
+Coding-System: iso-8859-1
--8<---------------cut here---------------end--------------->8---
And since dictionaries-common does not integrate with emacs-snasphot:
--8<---------------cut here---------------start------------->8---
(setq ispell-dictionary "american")
;;; from /usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el
;;; --8<---------------cut here---------------start------------->8---
(defvar debian-hunspell-only-dictionary-alist nil
"Alist of Debian installed hunspell dicts and properties.
Its value will be used to set `ispell-dictionary-alist' after
ispell.el is loaded when hunspell is in use.
Do not change this variable directly. It is autogenerated
From data supplied by hunspell dictionaries maintainers.")
;;; --8<---------------cut here---------------end--------------->8---
(if (file-exists-p "/var/cache/dictionaries-common/emacsen-ispell-dicts.el")
(load "/var/cache/dictionaries-common/emacsen-ispell-dicts.el"))
;;; emacs-snapshot_20121224-1 does not have `ispell-find-hunspell-dictionaries',
;;; which means that `ispell-dictionary-alist' will always be the same as
;;; `ispell-dictionary-base-alist' and 'local' dictionaries will be in
;;; `ispell-local-dictionary-alist'
(setq ispell-local-dictionary-alist debian-hunspell-only-dictionary-alist)
--8<---------------cut here---------------end--------------->8---
I do not think we are still in time for wheezy, in case feel free to ask
and I can NMU and then asked to the RM.
BTW, I was also quite surprised to see that we still have a
myspell-en-us binary from openoffice.org-dictionaries, which actually
ships a more recent dictionary. I guess that the migration to the
latter source package is not finished yet.
Thx, bye,
Gismo / Luca
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.7-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages hunspell-en-us depends on:
ii dictionaries-common 1.12.10
hunspell-en-us recommends no packages.
Versions of packages hunspell-en-us suggests:
ii hunspell 1.3.2-4
pn openoffice.org-hunspell | openoffice.org-core <none>
-- no debconf information
pgpXt0SDlrsAC.pgp
Description: PGP signature

