On Wed, Jan 17, 2007 at 10:49:48AM +0100, Abdelrazak Younes wrote: > Uwe Stöhr wrote:
> > @echo off > > SET OUTPUT_CHARSET=cp-1252 > > SET LANG=de_DE > > SET AIK_DATA_DIR=C:\Program Files (x86)\LyX 1.5svn-15-01-2007\aiksaurus > > start "LyX" "C:\Program Files (x86)\LyX 1.5svn-15-01-2007\bin\lyx.exe" %* > > > > The > > SET OUTPUT_CHARSET=xxx > > setting is needed that LyX can be installed in folder/paths with > > accented characters, umlauts, etc. I've build in a lookup table for the > > different languages. Unfortunately utf-8 cannot be used, only a cp > > charset - I found out that this is a windows restriction. > > Couldn't this be done from within LyX instead? I think this could be done in os::init > > >> On Windows, the Aiksaurus data dir location can be set in the > > registry: > > >> HKLM\Software\Aiksaurus\Data_Dir > > >> The environment variable simply overrides the registry setting. > > > > > > Very good then. Uwe, could you modify the package to do that? > > > > I'll check this and change this if it works for me too. I see the > > problem of multiple installations of LyX. For example when LyX 1.3.7 AND > > LyX 1.4.x is installed sise by side. Without this setting I have to > > install aiksaurus in a different folder, independent from LyX, like > > Aspell. This requires some changes but it's in my opinion worth to be > > implemented. > > Agreed. It would be very nice if you did that. To let LyX be installed by a normal user, I suggest that you modify the Aiksaurus sources such that HKCU\Software\Aiksaurus\Data_Dir overrides HKLM\Software\Aiksaurus\Data_Dir which, in turn, is overrided by the env setting. I see that Aiksausurs is already patched, so this should not be a problem. In this way, if HKLM is not writable by the user, the setting can be stored in HKCU by the installer. Wait a moment... I had a quick glance at the patch and it seems that this is already done. However, I don't think that a wrapper can be avoided as there must be a way to suppress the cmd window. -- Enrico