Package: eo-spell
Version: 2.1.2000.02.25-54
Severity: wishlist

Hello! For some spell checking programs, like built-in Vim one, the most
simple way to setup spell-checking is to have raw, one word per line
list of correct words. It seems to be established practice to name
binary packages in format 'w{language}', like wamerican, wnorwegian or
wukrainian.

Attached debdiff adds new binary package 'wesperanto' to src:eo-spell. I
know, that it is not perfect, since it should also 'Provide: wordlist',
but, in my defense, wnorwegian also does not provide wordlist.

This patch creates list in utf-8 encoding (obliviously), but may it be
useful to have in addition, 'wesperanto-cx'?

Thank you for your attention, and please consider applying patch.
diffstat for eo-spell-2.1.2000.02.25 eo-spell-2.1.2000.02.25

 changelog          |    7 +++++++
 control            |    9 +++++++++
 cx2utf8.sed        |   13 +++++++++++++
 rules              |    3 +++
 wesperanto.install |    1 +
 5 files changed, 33 insertions(+)

diff -Nru eo-spell-2.1.2000.02.25/debian/changelog eo-spell-2.1.2000.02.25/debian/changelog
--- eo-spell-2.1.2000.02.25/debian/changelog	2015-09-22 13:16:05.000000000 +0300
+++ eo-spell-2.1.2000.02.25/debian/changelog	2018-01-24 17:52:43.000000000 +0300
@@ -1,3 +1,10 @@
+eo-spell (2.1.2000.02.25-55) unstable; urgency=low
+
+  * New binary package: wesperanto, providing plain list of esperanto words.
+    + Thanks: Dmitry Bogatov <kact...@gnu.org>
+
+ -- Agustin Martin Domingo <agmar...@debian.org>  Wed, 24 Jan 2018 17:52:43 +0300
+
 eo-spell (2.1.2000.02.25-54) unstable; urgency=medium
 
   * debian/control::myspell-eo: Use Conflicts where needed.
diff -Nru eo-spell-2.1.2000.02.25/debian/control eo-spell-2.1.2000.02.25/debian/control
--- eo-spell-2.1.2000.02.25/debian/control	2015-09-22 13:13:55.000000000 +0300
+++ eo-spell-2.1.2000.02.25/debian/control	2018-01-24 17:52:43.000000000 +0300
@@ -24,6 +24,15 @@
  Plena Ilustrita Vortaro, with additional country/language names.  It
  accepts Latin-3, 'cx' and '^c' forms.
 
+Package: wesperanto
+Architecture: all
+Depends: ${misc:Depends}
+Description: Esperanto dictionary words for /usr/share/dict
+ This package provides the file /usr/share/dict/esperanto,
+ containing a list of Esperanto words in utf-8 encoding. 
+ This list can be used by spelling checkers, and by programs
+ such as look(1).
+
 Package: myspell-eo
 Architecture: all
 Depends: ${misc:Depends},
diff -Nru eo-spell-2.1.2000.02.25/debian/cx2utf8.sed eo-spell-2.1.2000.02.25/debian/cx2utf8.sed
--- eo-spell-2.1.2000.02.25/debian/cx2utf8.sed	1970-01-01 03:00:00.000000000 +0300
+++ eo-spell-2.1.2000.02.25/debian/cx2utf8.sed	2018-01-24 17:52:43.000000000 +0300
@@ -0,0 +1,13 @@
+#/usr/bin/sed -f
+s/cx/ĉ/g
+s/hx/ĥ/g
+s/jx/ĵ/g
+s/sx/ŝ/g
+s/ux/ŭ/g
+s/gx/ĝ/g
+s/Cx/Ĉ/g
+s/Hx/Ĥ/g
+s/Jx/Ĵ/g
+s/Sx/Ŝ/g
+s/Ux/Ŭ/g
+s/Gx/Ĝ/g
diff -Nru eo-spell-2.1.2000.02.25/debian/rules eo-spell-2.1.2000.02.25/debian/rules
--- eo-spell-2.1.2000.02.25/debian/rules	2015-06-18 18:10:50.000000000 +0300
+++ eo-spell-2.1.2000.02.25/debian/rules	2018-01-24 17:52:43.000000000 +0300
@@ -80,6 +80,9 @@
 	cat kune.txt | ispell -d ./eo -e | tr -s ' ' '\n' | sort -u > $(TMP_BUILD)/eo-cx.wl
 	cat $(TMP_BUILD)/eo-cx.wl | grep -v -e "-'$$" | prezip -s -c | gzip -9n -c > $(TMP_BUILD)/eo-cx.cwl.gz
 	install -m 0644 debian/aspell/eo-cx.dat debian/aspell/eo-cx.multi $(TMP_BUILD)
+	unmunch $(TMP_BUILD)/eo.dic $(TMP_BUILD)/eo.aff \
+		| iconv -f latin3 -t utf-8 \
+		| sed -f debian/cx2utf8.sed > $(TMP_BUILD)/esperanto
 
 	touch $@
 
diff -Nru eo-spell-2.1.2000.02.25/debian/wesperanto.install eo-spell-2.1.2000.02.25/debian/wesperanto.install
--- eo-spell-2.1.2000.02.25/debian/wesperanto.install	1970-01-01 03:00:00.000000000 +0300
+++ eo-spell-2.1.2000.02.25/debian/wesperanto.install	2018-01-24 17:52:43.000000000 +0300
@@ -0,0 +1 @@
+esperanto /usr/share/dict

Reply via email to