From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5ynr-0007fp-7v for guix-patches@gnu.org; Wed, 03 May 2017 14:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5ynm-0000SS-8V for guix-patches@gnu.org; Wed, 03 May 2017 14:15:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5ynm-0000SE-5H for guix-patches@gnu.org; Wed, 03 May 2017 14:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d5ynm-0007zo-0G for guix-patches@gnu.org; Wed, 03 May 2017 14:15:02 -0400 Subject: bug#25836: [aspell-devel] Honoring =?UTF-8?Q?=E2=80=98ASPELL=5FCONF=E2=80=99?= in libaspell Resent-Message-ID: References: <87wpbx9z7b.fsf@gnu.org> <87vaqwp2l8.fsf_-_@gnu.org> <87shlznn02.fsf@gnu.org> From: Kevin Atkinson Message-ID: <590A1DF0.7040907@gnu.org> Date: Wed, 3 May 2017 14:14:08 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------020604040903070106040307" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Catonano , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 25836@debbugs.gnu.org, aspell-devel@gnu.org This is a multi-part message in MIME format. --------------020604040903070106040307 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Sorry, For compiled in defaults there is some support for expansion, see Config::get_default() in common/config.cpp. In particular the following should work: "<$HOME|.>/.guix-profile/lib/aspell. Due to the way the code is written an alternative must always be given, in particular "<$HOME>/.guix-profile/lib/aspell" is unlikely to work. You could also use: "/.guix-profile/lib/aspell". Note that the expansion is only for compiled in defaults, if the value is manually set, then there is no expansion. When you do "aspell --config" it will print the defaults and then also what it expands to. On 05/03/2017 12:49 PM, Catonano wrote: > 2017-03-27 10:26 GMT+02:00 Ludovic Courtès >: > > Hi Kevin, > > From your reply it seems the second part of my message got lost; > you can > see it at >. > > Kevin Atkinson > skribis: > > > It would be better to change the compiled in defaults. I believe > > the --enable-dict-dir configure option should change the default > for dict-dir. > > The problem is that dict-dir is typically > “$HOME/.guix-profile/lib/aspell”, so we can’t choose it at configure > time (unless Aspell expands “$HOME”?). > > Even if we did, we’d like to offer users the ability to choose > dictionaries located in a different place. > > How would you achieve that? > > Thanks for your reply, > Ludo’. > > > > ehm, are there any news on this ? > > > _______________________________________________ > Aspell-devel mailing list > Aspell-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/aspell-devel --------------020604040903070106040307 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Sorry,

For compiled in defaults there is some support for expansion, see Config::get_default() in common/config.cpp.  In particular the following should work: "<$HOME|.>/.guix-profile/lib/aspell.  Due to the way the code is written an alternative must always be given, in particular "<$HOME>/.guix-profile/lib/aspell" is unlikely to work.  You could also use: "<home-dir>/.guix-profile/lib/aspell".  Note that the expansion is only for compiled in defaults, if the value is manually set, then there is no expansion.

When you do "aspell --config" it will print the defaults and then also what it expands to.

On 05/03/2017 12:49 PM, Catonano wrote:
2017-03-27 10:26 GMT+02:00 Ludovic Courtès <ludo@gnu.org>:
Hi Kevin,

From your reply it seems the second part of my message got lost; you can
see it at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25836#14>.

Kevin Atkinson <kevina@gnu.org> skribis:

> It would be better to change the compiled in defaults.  I believe
> the --enable-dict-dir configure option should change the default for dict-dir.

The problem is that dict-dir is typically
“$HOME/.guix-profile/lib/aspell”, so we can’t choose it at configure
time (unless Aspell expands “$HOME”?).

Even if we did, we’d like to offer users the ability to choose
dictionaries located in a different place.

How would you achieve that?

Thanks for your reply,
Ludo’.


ehm, are there any news on this ?


_______________________________________________
Aspell-devel mailing list
Aspell-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/aspell-devel

--------------020604040903070106040307--