#723063 dillo: /usr/lib/dillo directory for dillo-install-hyphenation

Package:
dillo
Source:
dillo
Description:
Small and fast web browser
Submitter:
Kevin Ryde
Date:
2014-06-30 22:11:43 UTC
Severity:
minor
#723063#5
Date:
2013-09-16 00:10:38 UTC
From:
To:
Running dillo-install-hyphenation gives an error

    Cannot create directory /usr/lib/dillo/hyphenation: No such file or directory at /usr/bin/dillo-install-hyphenation line 77.

I see the dillo lib directory in debian is /usr/lib/i386-linux-gnu/dillo.
I don't know if dillo-install-hyphenation ought to operate there, or if
/usr/lib/dillo should exist ready for it to use.

#723063#10
Date:
2013-09-16 01:28:30 UTC
From:
To:
Hi Kevin,

Kevin Ryde wrote:

Indeed. While it's possible to use -t to save the files elsewhere, the
default should be wiser, and especially writable by the user by
default.

That depends a lot on the architecture you're running Dillo on.

Anything below /usr should not be writable for a normal user. This
should probably go somewhere under ~/.local/ or ~/.dillo/ instead.

In the long run, the package should probably make use of the already
existing hyphenation packages in Debian (if they provide the same
format):

hyphen-af - Afrikaans hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-as - Assamese hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-bn - Bengali hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-ca - Catalan hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-de - German hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-en-us - US English hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-fr - French hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-gu - Gujarati hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-hi - Hindi hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-hr - Croatian hyphenation pattern for LibreOffice
hyphen-hu - Hungarian hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-it - Italian hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-kn - Kannada hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-mr - Marathi hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-pa - Punjabi hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-pl - Polish hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-ro - Romanian hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-ru - Russian hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-sh - Serbian (Latin) hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-sl - Slovenian hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-sr - Serbian (Cyrillic) hyphenation patterns for LibreOffice/OpenOffice.org
hyphen-ta - Tamil hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-te - Telugu hyphenation patterns for OpenOffice.org/LibreOffice
hyphen-zu - Zulu hyphenation patterns for LibreOffice/OpenOffice.org

		Regards, Axel

#723063#17
Date:
2013-09-16 08:55:56 UTC
From:
To:
Axel Beckert <abe@debian.org> writes:

Oh, I was running as root.  I expected root is necessary to establish
the global bits.

I see now I think DILLO_LIBDIR becomes /usr/lib/i386-linux-gnu/ with the
debian build options whereas the code in dillo-install-hyphenation only
knows /lib.

But actually I haven't persuaded the hyphenation do anything yet, so
perhaps it's premature to worry about the dir in the script :-).

~/.dillo could be a possibility in addition to the global places.

Believe it's TeX, per texlive-base under
/usr/share/texlive/texmf-dist/tex/generic/hyph-utf8/patterns/txt.
Though the files there have an extra .txt extension over what seems to
be at CTAN.  I filed a bug upstream suggesting it could look in a TeX
dir for files in addition to its /usr/lib/dillo downloaded bits.