[Python-modules-team] Bug#627944: python-pyhyphen: doesn't work out-of-the-box with hyphen-* packages

Alberto Quattrini Li alberto.quattrinili at gmail.com
Thu Jun 14 12:01:48 UTC 2012


The only way to make it works is to modify the code, for correct
pointing to the correct hyphen dictionaries path and files.

Specifically, in config.py, you should modify

1: default_dict_path = u'$path' -> default_dict_path = u'/usr/share/hyphen'

basically the correct path pointing to the directory where hyphen
dictionaries are

and in __init__.py

129: else: file_name = language -> else: file_name = u'/hyph_' +
language + u'.dic'

If you want, I can provide you a patch to solve the problem in the
package. I don't know if this is an upstream problem, as every OS
handles differently the directories where hyphen dictionaries are
stored and it is not said that environment variables, first of all,
contain such a path, and secondly, are the same in every OS.

Alberto Quattrini Li


On Thu, Jun 14, 2012 at 11:53 AM, Alberto Quattrini Li
<alberto.quattrinili at gmail.com> wrote:
> Followup-For: Bug #627944
> Package: python-pyhyphen
> Version: 1.0~beta1-2
> This bug happens in my system too. Even loading another hyphen
> dictionary (e.g., it) leads to the same error.
>
> -- System Information:
> Debian Release: wheezy/sid
>  APT prefers unstable
>  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.2.0-1-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages python-pyhyphen depends on:
> ii  libc6      2.13-33
> ii  python     2.7.3~rc2-1
> ii  python2.6  2.6.7-4
> ii  python2.7  2.7.3~rc2-2.1
>
> python-pyhyphen recommends no packages.
>
> python-pyhyphen suggests no packages.
>
> -- no debconf information
>
> --
> Alberto Quattrini Li





More information about the Python-modules-team mailing list