Your message dated Fri, 16 Feb 2018 01:21:45 +0100
with message-id <14617765.jaSSFFyAq0@mornie>
and subject line closing 720342
has caused the Debian Bug report #720342,
regarding [python-sphinxcontrib.spelling] Impossible to use another than en
language
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
720342: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720342
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-sphinxcontrib.spelling
Version: 1.4-1
Severity: normal
Tags: patch
Hi,
there is a problem with using (defining) another language than "en",
because the same variable is used to load the tokenizer and for
dictionary, but the python-enchant package has only the "en.py"
tokenizer, which is good for other languages (at least for Slovak) too.
Setting to "en" language works, but wrong dictionary is used ;-)
There is small patch to fallback into "en" tokenizer, when no one exists
for defined language.
Regards
--- System information. ---
Architecture: amd64
Kernel: Linux 3.10-2-amd64
Debian Release: jessie/sid
--- Package information. ---
Depends (Version) | Installed
===============================-+-============
python | 2.7.5-2
python-support (>= 0.90.0) | 1.0.15
python-docutils | 0.10-3
python-enchant | 1.6.5-2
python-sphinx | 1.1.3+dfsg-8
--
Slavko
http://slavino.sk
--- /usr/share/pyshared/sphinxcontrib/spelling.py 2013-08-20 18:58:10.000000000 +0200
+++ /tmp/spelling.py 2013-08-20 18:47:42.000000000 +0200
@@ -179,7 +179,10 @@
def __init__(self, lang, suggest, word_list_filename, filters=[]):
self.dictionary = enchant.DictWithPWL(lang, word_list_filename)
- self.tokenizer = get_tokenizer(lang, filters)
+ try:
+ self.tokenizer = get_tokenizer(lang, filters)
+ except enchant.tokenize.TokenizerNotFoundError:
+ self.tokenizer = get_tokenizer("en", filters)
self.original_tokenizer = self.tokenizer
self.suggest = suggest
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Version: 2.3.0-1
Hello,
this issue was fixed by:
https://github.com/sphinx-contrib/spelling/commit/d3209e76555b45868815789ff7d8aa285ffc1993
Kind regards,
--
Daniele Tricoli 'eriol'
https://mornie.org
signature.asc
Description: This is a digitally signed message part.
--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team