Bug#822617: Missing symlinks to match locales

2016-05-13 Thread Gunnar Hjalmarsson
Thank *you*, Mattia! Needless to say I'm the impatient kind of guy. ;)

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-05-13 Thread Mattia Rizzolo
On Tue, May 10, 2016 at 12:05:49AM +0200, Gunnar Hjalmarsson wrote:
> Time goes by, and I have now sought sponsorship in Ubuntu for my
> proposed changes,

Well, really, waiting a week or 2 isn't really that uncommon, especially
in Debian.

Anyway, I just uploaded your patch as-is (just splitting the commits and
rewording a bit the changelog entries).
I didn't spot duplicated/redundant entries, but noticing them would
probably mean knowing what those languages are, so it's kind of
difficult.

The package should now go through the NEW queue as I added a binary
taking over hunspell-ru, but I hope for a quick passage anyway.

Thanks again for the patch.

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Bug#822617: Missing symlinks to match locales

2016-05-10 Thread Gunnar Hjalmarsson
On 2016-05-10 09:38, Rene Engelhard wrote:
> On Tue, May 10, 2016 at 12:05:49AM +0200, Gunnar Hjalmarsson wrote:
>> While there is only one Greek LO locale, there are two Italian LO 
>> locales. Is that the simple explanation? If it is, would it be
>> possible to patch LO somehow to behave differently?
> 
> Maybe, but I wouldn't even dare to try it. AFAIK those data is also
> used by documents to know what the currency etc is and parsed.
> Inventing something there is probably bad, and even then I wouldn't
> do a intrusive patch like this.

Yeah, it would probably not be uncomplicated.

Nevertheless, if we could find a nice solution for LO which does not
require the symlinks, it would allow for a better user experience for
e.g. Spanish and Arabic users.

Another brainstorm like thought:

Assume that we'd introduce three new directories, e.g.

/usr/share/libreoffice/hunspell
/usr/share/libreoffice/hyphen
/usr/share/libreoffice/mythes

and put the symlinks there instead. Would it be doable to have LO look
both in /usr/share/hunspell and /usr/share/libreoffice/hunspell for
spellcheck dictionaries?

Just keep thinking. :)

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-05-10 Thread Rene Engelhard
On Tue, May 10, 2016 at 12:05:49AM +0200, Gunnar Hjalmarsson wrote:
> Time goes by, and I have now sought sponsorship in Ubuntu for my
> proposed changes, including dropping the hunspell-gl binary.

No comment.

> Rene, you called my attention to the fact that LO ships its own set of
> locale data, and that it does not include any el_CY locale. I then

Yep,

> While there is only one Greek LO locale, there are two Italian LO
> locales. Is that the simple explanation? If it is, would it be possible
> to patch LO somehow to behave differently?

Maybe, but I wouldn't even dare to try it. AFAIK those data is also used
by documents to know what the currency etc is and parsed. Inventing something
there is probably bad, and even then I wouldn't do a intrusive patch like this.

Regards,

Rene



Bug#822617: Missing symlinks to match locales

2016-05-09 Thread Gunnar Hjalmarsson
Time goes by, and I have now sought sponsorship in Ubuntu for my
proposed changes, including dropping the hunspell-gl binary.

Can't help wondering, though, if a better long-term solution would be
possible.

Rene, you called my attention to the fact that LO ships its own set of
locale data, and that it does not include any el_CY locale. I then
noticed that if I start LO with the el_CY.UTF-8 locale, el_GR.{aff,dic}
and hyph_el_GR.dic are recognized. LO notices that it's a "Greek" locale
without bothering about the country code.

However, if I start LO with the it_CH.UTF-8 locale, it_IT.{aff,dic} and
hyph_it_IT.dic are not recognized. In this case LO does care about the
country code, and look for (the non-existing) it_CH.{aff,dic} and
hyph_it_CH.dic.

So, what's the difference?

$ ls -1 i18npool/source/localedata/data/el_*
i18npool/source/localedata/data/el_GR.xml
$ ls -1 i18npool/source/localedata/data/it_*
i18npool/source/localedata/data/it_CH.xml
i18npool/source/localedata/data/it_IT.xml

While there is only one Greek LO locale, there are two Italian LO
locales. Is that the simple explanation? If it is, would it be possible
to patch LO somehow to behave differently?

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-05-09 Thread Gunnar Hjalmarsson
ping

Rene, Mattia:

On 2016-05-02 15:16, Gunnar Hjalmarsson wrote:
> Can I take it that you will accept my latest proposal, i.e.
> renaming-symlinks.patch attached to message #52?
> 
> Asking because if so, I can go on and seek sponsorship for uploading
> it to Ubuntu 16.04, where lo-dicts is not synced with Debian.

Would really appreciate a clear response. Adding symlinks and fixing
 in Ubuntu 16.04 is a matter of
urgency, and I want to do it in one upload.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-05-02 Thread Gunnar Hjalmarsson
Hi again, Rene!

Thanks for your comments. Can I take it that you will accept my latest
proposal, i.e. renaming-symlinks.patch attached to message #52?

Asking because if so, I can go on and seek sponsorship for uploading it
to Ubuntu 16.04, where lo-dicts is not synced with Debian.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-05-02 Thread Rene Engelhard
On Sun, May 01, 2016 at 08:48:11PM +0200, Gunnar Hjalmarsson wrote:
> I haven't tested with all those applications, but I did some tests with   
> > Firefox and gedit. In 
> general both of those work in a simplistic manner;
> their spellcheck menus show everything in /usr/share/hunspell.

Probably, yes. I'd also bet scribus does it this way so we're probably
"safe".

> It should be said that the use of symlinks corresponding to available
> system locales isn't new, neither in Debian nor Ubuntu. You find them in
> many other source packages which build hunspell-*, hyphen-*, etc. Also

Other packages do weird stuff. :) What other packages do is not always
a proper argument ;) There's even hunspell dictionaries etc
which are not even trying to follow policy. Like hunspell-* packages
also including the hyphen stuff. Or some which are still wrongly named.

I didn't want to use the RC bug hammer on them yet, maybe I should.

> the previous lo-dicts in Ubuntu, which was introduced in Ubuntu 14.04,
> has such symlinks. So possible issues in other applications should have
> been reported long ago.

I don't buy this argument completely.
I'd bet many of these are in "universe" and thus don't get real support I'd
bet.

But OK :)

> One thing which *is* new in the latest lo-dicts is that it does not
> provide stuff in /usr/share/myspell/dicts and
> /usr/share/myspell/infos/ooo. Personally I'm not aware of any
> application where it would make a difference. (OTOH I haven't researched
> it.) I trust that you are reasonably sure that they aren't needed.

Nope, should be gone by now definitely and if there was one still relying
on this it's a bug which should be fixed in whatever application is using
this.

Regards,

Rene



Bug#822617: Missing symlinks to match locales

2016-05-01 Thread Gunnar Hjalmarsson
Hi Rene,

On 2016-05-01 15:44, Rene Engelhard wrote:
> How does this affect firefox, scribus, abiword  and whoever else uses
> them?[1]
> ...
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821772

I haven't tested with all those applications, but I did some tests with
Firefox and gedit. In general both of those work in a simplistic manner;
their spellcheck menus show everything in /usr/share/hunspell. One
exception: gedit doesn't show sr-Latn.{aff,dic} but it shows
sr_Latn_RS.{aff,dic} (with the label "Unknown (sr_Latn_RS)", but still).

It should be said that the use of symlinks corresponding to available
system locales isn't new, neither in Debian nor Ubuntu. You find them in
many other source packages which build hunspell-*, hyphen-*, etc. Also
the previous lo-dicts in Ubuntu, which was introduced in Ubuntu 14.04,
has such symlinks. So possible issues in other applications should have
been reported long ago.

One thing which *is* new in the latest lo-dicts is that it does not
provide stuff in /usr/share/myspell/dicts and
/usr/share/myspell/infos/ooo. Personally I'm not aware of any
application where it would make a difference. (OTOH I haven't researched
it.) I trust that you are reasonably sure that they aren't needed.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-05-01 Thread Rene Engelhard
Hi,

On Sun, May 01, 2016 at 01:26:13PM +0200, Gunnar Hjalmarsson wrote:
> Found a way to reduce the number of symlinks a bit. I used debian/rules
> to rename the dictionary file names which LO does not find based on
> system locale, so for instance instead of es_ANY.{aff,dic} and
> hyph_sv.dic it installs es_ES.{aff,dic} and hyph_sv_SE.dic. This way we
> also get rid of some noise in the spellcheck menus.

How does this affect firefox, scribus, abiword  and whoever else uses them?[1]

hunspell-* and hyphen-* are NOT only used by LO. It seems you are thinking
too LO-centric here.

Regards,

Rene 

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821772



Bug#822617: Missing symlinks to match locales

2016-05-01 Thread Gunnar Hjalmarsson
Here comes the patch.
diff -Nru libreoffice-dictionaries-5.1.0/debian/changelog libreoffice-dictionaries-5.1.0/debian/changelog
--- libreoffice-dictionaries-5.1.0/debian/changelog	2016-03-18 13:15:08.0 +
+++ libreoffice-dictionaries-5.1.0/debian/changelog	2016-05-01 10:34:11.0 +
@@ -1,3 +1,15 @@
+libreoffice-dictionaries (1:5.1.0-1ubuntu2.1~ppa) xenial; urgency=medium
+
+  * d/rules:
+Renamed dictionary files to be recognized by LibreOffice. This
+reduces the need for symlinks, and eliminates unnecessary noise in
+spellcheck menus.
+  * d/hunspell-*.links, d/hyphen-*.links, d/mythes-*.links:
+Added symlinks so more dictionaries are recognized based on the
+locale (LP: #1574745).
+
+ -- Gunnar Hjalmarsson   Sun, 01 May 2016 12:34:00 +0200
+
 libreoffice-dictionaries (1:5.1.0-1ubuntu2) xenial; urgency=medium
 
   * Breaks/Replaces openoffice.org-hyphenation << 0.9 for several packages,
diff -Nru libreoffice-dictionaries-5.1.0/debian/hunspell-bn.links libreoffice-dictionaries-5.1.0/debian/hunspell-bn.links
--- libreoffice-dictionaries-5.1.0/debian/hunspell-bn.links	1970-01-01 00:00:00.0 +
+++ libreoffice-dictionaries-5.1.0/debian/hunspell-bn.links	2016-05-01 09:50:07.0 +
@@ -0,0 +1,2 @@
+usr/share/hunspell/bn_BD.aff usr/share/hunspell/bn_IN.aff
+usr/share/hunspell/bn_BD.dic usr/share/hunspell/bn_IN.dic
diff -Nru libreoffice-dictionaries-5.1.0/debian/hunspell-es.links libreoffice-dictionaries-5.1.0/debian/hunspell-es.links
--- libreoffice-dictionaries-5.1.0/debian/hunspell-es.links	1970-01-01 00:00:00.0 +
+++ libreoffice-dictionaries-5.1.0/debian/hunspell-es.links	2016-05-01 09:51:09.0 +
@@ -0,0 +1,40 @@
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_AR.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_AR.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_BO.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_BO.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_CL.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_CL.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_CO.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_CO.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_CR.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_CR.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_CU.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_CU.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_DO.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_DO.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_EC.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_EC.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_GT.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_GT.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_HN.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_HN.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_MX.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_MX.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_NI.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_NI.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_PA.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_PA.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_PE.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_PE.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_PR.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_PR.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_PY.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_PY.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_SV.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_SV.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_US.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_US.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_UY.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_UY.dic
+usr/share/hunspell/es_ES.aff usr/share/hunspell/es_VE.aff
+usr/share/hunspell/es_ES.dic usr/share/hunspell/es_VE.dic
diff -Nru libreoffice-dictionaries-5.1.0/debian/hunspell-it.links libreoffice-dictionaries-5.1.0/debian/hunspell-it.links
--- libreoffice-dictionaries-5.1.0/debian/hunspell-it.links	1970-01-01 00:00:00.0 +
+++ libreoffice-dictionaries-5.1.0/debian/hunspell-it.links	2016-05-01 09:52:07.0 +
@@ -0,0 +1,2 @@
+usr/share/hunspell/it_IT.aff usr/share/hunspell/it_CH.aff
+usr/share/hunspell/it_IT.dic usr/share/hunspell/it_CH.dic
diff -Nru libreoffice-dictionaries-5.1.0/debian/hunspell-kmr.links libreoffice-dictionaries-5.1.0/debian/hunspell-kmr.links
--- libreoffice-dictionaries-5.1.0/debian/hunspell-kmr.links	1970-01-01 00:00:00.0 +
+++ libreoffice-dictionaries-5.1.0/debian/hunspell-kmr.links	2016-05-01 09:54:08.0 +
@@ -0,0 +1,4 @@
+usr/share/hunspell/kmr_Latn.aff usr/share/hunspell/ckb_IQ.aff
+usr/share/hunspell/kmr_Latn.dic 

Bug#822617: Missing symlinks to match locales

2016-05-01 Thread Gunnar Hjalmarsson
Found a way to reduce the number of symlinks a bit. I used debian/rules
to rename the dictionary file names which LO does not find based on
system locale, so for instance instead of es_ANY.{aff,dic} and
hyph_sv.dic it installs es_ES.{aff,dic} and hyph_sv_SE.dic. This way we
also get rid of some noise in the spellcheck menus.

I uploaded this variant to the PPA. Please find a patch attached with
this message, which consists of the PPA generated diff.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-04-28 Thread Gunnar Hjalmarsson
On 2016-04-28 15:28, Mattia Rizzolo wrote:
> Some days ago I finished the work to have it synced (src:hunspell-sv 
> needed RM for $reasons, and to do so src:ubuntu-keyboard and the
> seeds needed changes), and got it synced, so starting for yakkety the
> package is the same.

Saw that, great!

> On Thu, Apr 28, 2016 at 01:10:52AM +0200, Gunnar Hjalmarsson wrote:
>> I gave it another shot in the light of how LO recognizes locales,
>> and dropped a few symlinks including el_CY. Attached please find a
>> new, slightly reduced list of proposed symlinks
> 
> to me that list look mostly sane, but a bit pops in my mind: for 
> hunspell-kmr, shall we provide new virtual packages hunspell-ckb and
> hunspell-ku?

To be quite honest, I don't know how useful the proposed ckb_IQ and
ku_TR symlinks are. They do work in the sense that the kmr_Latn
dictionary is recognized by LO in case of a ckb_IQ or ku_TR locale, but
multiple Kurdish dialects exist, so doing some research before creating
such packages may be advisable.

On 2016-04-28 17:06, Agustin Martin wrote:
> myspell-es ships a bunch of symlinks for that purpose after request
> in a Debian bug report, but later found some bug reports in Ubuntu
> about just the opposite,
> 
> https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/663032 
> https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/793666 
> https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/927256
> 
> myspell-es is the same for all countries, so I think that leaving
> symlinks there is by far the lesser evil, even if it adds some
> noise.

Yeah, I have also seen that kind of complaints in a few bug reports and
Ask Ubuntu questions. There are two possible approaches in my mind to
reduce the noise/pollution.

I just made a Spanish install of Ubuntu, stating New York as the time
zone location, and the installer added LANG="es_US.UTF-8" to
/etc/default/locale. Changing the installer behavior in this respect, so
it instead set LANG to "es_ES.UTF-8", while setting some formats related
LC_* variables to "es_US.UTF-8", would make it possible to get rid of
quite some polluting symlinks.

Another idea is that the source packages, e.g. libreoffice-dictionaries,
provide the symlinks in separate binary packages, so for Spanish we
would then have:

hunspell-es
hunspell-es-mx
hunspell-es-ar
hunspell-es-us
...

with the actual dictionary in hunspell-es and each of the other
hunspell-es-* packages only containing a symlink and a dependency on
hunspell-es.

But I suppose that those thoughts are more long term ones, and would
need careful consideration.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj



Bug#822617: Missing symlinks to match locales

2016-04-28 Thread Agustin Martin
On Mon, Apr 25, 2016 at 07:22:24PM +0200, Gunnar Hjalmarsson wrote:
> Package: libreoffice-dictionaries
> Version: 1:5.1.2-1
> Severity: grave
> 
> Forwarding the Ubuntu bug .
> 
> Several dictionaries are installed under names which don't specify the
> country codes. Examples:
> 
> /usr/share/hunspell/es_ANY.dic
> /usr/share/hyphen/hyph_sv.dic
> 
> In those cases LibreOffice does not recognize them as available.
> Symlinks seem to be needed; please see example in the Ubuntu bug.

Hi,

For the records, I am the Debian maintainer of myspell-es (from espa~nol).
myspell-es ships a bunch of symlinks for that purpose after request in a
Debian bug report, but later found some bug reports in Ubuntu about just the
opposite,

https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/663032
https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/793666
https://bugs.launchpad.net/ubuntu/+source/espa-nol/+bug/927256

myspell-es is the same for all countries, so I think that leaving symlinks
there is by far the lesser evil, even if it adds some noise.

For use with plain hunspell, the problem is that hunspell does not
implement BCP 47 for locale based automatic fallback dictionary selection,

https://sourceforge.net/p/hunspell/feature-requests/40/

so 

$ LANG=es_ES hunspell test.txt 

will only search for es_ES.dic and not use es.dic (or es_ANY) as fallback.

However, I thought that libreoffice had an internal implementation for that
purpose. Unfortunately I tried with both es_ANY.{aff,dic} and es.{aff,dic}
and I was proven wrong.

-- 
Agustin



Bug#822617: Missing symlinks to match locales

2016-04-28 Thread Mattia Rizzolo
control: severity -1 important

I checked e.g. hunspell-es as it is currently in sid/yakkety in gedit,
and it shows me the spanish dict, it's recognized as
"Spanish; Castilian (any)", though indeed libreoffice does not.

I agree that adding them is harmless at worst, so I don't see any
particular reason for being too careful.  sure, let's avoid too much
pollution.

On Wed, Apr 27, 2016 at 08:13:09AM +0200, Gunnar Hjalmarsson wrote:
> I was heavily involved in preparing lo-dicts in Ubuntu to make it
> possible to sync with Debian, so I'm jointly responsible for this issue
> which is a regression in Ubuntu 16.04, and I'm anxious to have it fixed
> soon.

yep, and thanks for that :)

Some days ago I finished the work to have it synced (src:hunspell-sv
needed RM for $reasons, and to do so src:ubuntu-keyboard and the seeds
needed changes), and got it synced, so starting for yakkety the package
is the same.

On Thu, Apr 28, 2016 at 01:10:52AM +0200, Gunnar Hjalmarsson wrote:
> I gave it another shot in the light of how LO recognizes locales, and
> dropped a few symlinks including el_CY. Attached please find a new,
> slightly reduced list of proposed symlinks

to me that list look mostly sane, but a bit pops in my mind: for
hunspell-kmr, shall we provide new virtual packages hunspell-ckb
and hunspell-ku?

> and a diff compared to the
> first proposal.

that's unreadable.  Please use a unified diff next time (-u switch) :P

-- 
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540  .''`.
more about me:  https://mapreri.org : :'  :
Launchpad user: https://launchpad.net/~mapreri  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-


signature.asc
Description: PGP signature


Bug#822617: Missing symlinks to match locales

2016-04-27 Thread Gunnar Hjalmarsson
I gave it another shot in the light of how LO recognizes locales, and
dropped a few symlinks including el_CY. Attached please find a new,
slightly reduced list of proposed symlinks and a diff compared to the
first proposal.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj
hunspell


hunspell-bn.links
-
usr/share/hunspell/bn_BD.aff usr/share/hunspell/bn_IN.aff
usr/share/hunspell/bn_BD.dic usr/share/hunspell/bn_IN.dic

hunspell-es.links
-
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_AR.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_AR.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_BO.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_BO.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CL.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CL.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CO.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CO.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CR.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CR.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CU.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CU.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_DO.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_DO.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_EC.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_EC.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_ES.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_ES.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_GT.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_GT.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_HN.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_HN.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_MX.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_MX.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_NI.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_NI.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PA.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PA.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PE.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PE.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PR.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PR.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PY.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PY.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_SV.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_SV.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_US.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_US.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_UY.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_UY.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_VE.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_VE.dic

hunspell-is.links
-
usr/share/hunspell/is.aff usr/share/hunspell/is_IS.aff
usr/share/hunspell/is.dic usr/share/hunspell/is_IS.dic

hunspell-it.links
-
usr/share/hunspell/it_IT.aff usr/share/hunspell/it_CH.aff
usr/share/hunspell/it_IT.dic usr/share/hunspell/it_CH.dic

hunspell-kmr.links
--
usr/share/hunspell/kmr_Latn.aff usr/share/hunspell/ckb_IQ.aff
usr/share/hunspell/kmr_Latn.dic usr/share/hunspell/ckb_IQ.dic
usr/share/hunspell/kmr_Latn.aff usr/share/hunspell/ku_TR.aff
usr/share/hunspell/kmr_Latn.dic usr/share/hunspell/ku_TR.dic

hunspell-lt.links
-
usr/share/hunspell/lt.aff usr/share/hunspell/lt_LT.aff
usr/share/hunspell/lt.dic usr/share/hunspell/lt_LT.dic

hunspell-nl.links
-
usr/share/hunspell/nl_NL.aff usr/share/hunspell/nl_BE.aff
usr/share/hunspell/nl_NL.dic usr/share/hunspell/nl_BE.dic

hunspell-sr.links
-
usr/share/hunspell/sr.aff usr/share/hunspell/sr_ME.aff
usr/share/hunspell/sr.dic usr/share/hunspell/sr_ME.dic
usr/share/hunspell/sr.aff usr/share/hunspell/sr_RS.aff
usr/share/hunspell/sr.dic usr/share/hunspell/sr_RS.dic
usr/share/hunspell/sr-Latn.aff usr/share/hunspell/sr_Latn_RS.aff
usr/share/hunspell/sr-Latn.dic usr/share/hunspell/sr_Latn_RS.dic

hunspell-sw.links
-
usr/share/hunspell/sw_TZ.aff usr/share/hunspell/sw_KE.aff
usr/share/hunspell/sw_TZ.dic usr/share/hunspell/sw_KE.dic


hyphen
==

hyphen-ca.links
---
usr/share/hyphen/hyph_ca.dic usr/share/hyphen/hyph_ca_ES.dic

hyphen-es.links
---
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_AR.dic
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_BO.dic
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_CL.dic
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_CO.dic
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_CR.dic
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_CU.dic
usr/share/hyphen/hyph_es_ANY.dic usr/share/hyphen/hyph_es_DO.dic

Bug#822617: Missing symlinks to match locales

2016-04-27 Thread Rene Engelhard
Hi,

On Wed, Apr 27, 2016 at 04:09:54PM +0200, Gunnar Hjalmarsson wrote:
> Attached please find the symlinks I propose to be added. I based the
> list on the Ubuntu 16.04 version of /usr/share/i18n/SUPPORTED (glibc 2.23).

Just that LO doesn't care about "locales". It has its own locale data and if
it doesn't have something as supported it doesn't make sense to
symlinks for that, does it?

Are all of those below actually recognized by LO?

Answering myself:

rene@raspberrypi < (git)-[master] % ls el* :(
el_GR.xml

no.

Regards,

Rene

P.S: As happens ~always, you do it wrong. It's not the right way to do it
in a PPA first and give that change to Debian but the other way round. *You*
are based on Debian, not us on you.



Bug#822617: Missing symlinks to match locales

2016-04-27 Thread Gunnar Hjalmarsson
Attached please find the symlinks I propose to be added. I based the
list on the Ubuntu 16.04 version of /usr/share/i18n/SUPPORTED (glibc 2.23).

The list was applied in an upload to this PPA:

https://launchpad.net/~gunnarhj/+archive/ubuntu/lo-dicts-symlinks

(didn't make use of debian/helper.py)

That PPA version might make up the stable release update of lo-dicts in
Ubuntu 16.04, but it's desirable that we agree here first, since we want
lo-dicts in Debian and Ubuntu to be in sync going forward.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj
hunspell


hunspell-bn.links
-
usr/share/hunspell/bn_BD.aff usr/share/hunspell/bn_IN.aff
usr/share/hunspell/bn_BD.dic usr/share/hunspell/bn_IN.dic

hunspell-el.links
-
usr/share/hunspell/el_GR.aff usr/share/hunspell/el_CY.aff
usr/share/hunspell/el_GR.dic usr/share/hunspell/el_CY.dic

hunspell-es.links
-
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_AR.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_AR.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_BO.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_BO.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CL.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CL.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CO.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CO.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CR.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CR.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_CU.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_CU.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_DO.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_DO.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_EC.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_EC.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_ES.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_ES.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_GT.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_GT.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_HN.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_HN.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_MX.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_MX.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_NI.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_NI.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PA.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PA.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PE.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PE.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PR.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PR.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_PY.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_PY.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_SV.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_SV.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_US.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_US.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_UY.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_UY.dic
usr/share/hunspell/es_ANY.aff usr/share/hunspell/es_VE.aff
usr/share/hunspell/es_ANY.dic usr/share/hunspell/es_VE.dic

hunspell-is.links
-
usr/share/hunspell/is.aff usr/share/hunspell/is_IS.aff
usr/share/hunspell/is.dic usr/share/hunspell/is_IS.dic

hunspell-it.links
-
usr/share/hunspell/it_IT.aff usr/share/hunspell/it_CH.aff
usr/share/hunspell/it_IT.dic usr/share/hunspell/it_CH.dic

hunspell-kmr.links
--
usr/share/hunspell/kmr_Latn.aff usr/share/hunspell/ckb_IQ.aff
usr/share/hunspell/kmr_Latn.dic usr/share/hunspell/ckb_IQ.dic
usr/share/hunspell/kmr_Latn.aff usr/share/hunspell/ku_TR.aff
usr/share/hunspell/kmr_Latn.dic usr/share/hunspell/ku_TR.dic

hunspell-lt.links
-
usr/share/hunspell/lt.aff usr/share/hunspell/lt_LT.aff
usr/share/hunspell/lt.dic usr/share/hunspell/lt_LT.dic

hunspell-nl.links
-
usr/share/hunspell/nl_NL.aff usr/share/hunspell/nl_AW.aff
usr/share/hunspell/nl_NL.dic usr/share/hunspell/nl_AW.dic
usr/share/hunspell/nl_NL.aff usr/share/hunspell/nl_BE.aff
usr/share/hunspell/nl_NL.dic usr/share/hunspell/nl_BE.dic

hunspell-sr.links
-
usr/share/hunspell/sr.aff usr/share/hunspell/sr_ME.aff
usr/share/hunspell/sr.dic usr/share/hunspell/sr_ME.dic
usr/share/hunspell/sr.aff usr/share/hunspell/sr_RS.aff
usr/share/hunspell/sr.dic usr/share/hunspell/sr_RS.dic
usr/share/hunspell/sr-Latn.aff usr/share/hunspell/sr_RS-latin.aff
usr/share/hunspell/sr-Latn.dic usr/share/hunspell/sr_RS-latin.dic

hunspell-sw.links
-
usr/share/hunspell/sw_TZ.aff usr/share/hunspell/sw_KE.aff
usr/share/hunspell/sw_TZ.dic usr/share/hunspell/sw_KE.dic


hyphen
==

hyphen-ca.links
---

Bug#822617: Missing symlinks to match locales

2016-04-25 Thread Gunnar Hjalmarsson
Package: libreoffice-dictionaries
Version: 1:5.1.2-1
Severity: grave

Forwarding the Ubuntu bug .

Several dictionaries are installed under names which don't specify the
country codes. Examples:

/usr/share/hunspell/es_ANY.dic
/usr/share/hyphen/hyph_sv.dic

In those cases LibreOffice does not recognize them as available.
Symlinks seem to be needed; please see example in the Ubuntu bug.

-- 
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj