Angus Leeming wrote:
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Now, having experienced the latest version of LyX,
I've tested 1.4.1 on a USB stick. All good, if there
wouldn't be the aspell dilemma! As LyX is compiled
against libaspell.a and expects to find aspell
dictionaries and data files in a predefined location
portability has been lost.
AFAIK, the problem is not within LyX but in Aspell. Indeed Aspell
dictionaries are not relocatable (under Windows); this means that they
must be installed in the same path where they have been compiled. One
needs to investigate Aspell source code as to know if this could be fixed.
I must be setting some sort of record in late replies here ;-)
Actually, Abdel, the fault is all LyX's. Aspell is perfectly configurable, but
LyX doesn't have any code to push its buttons.
A long time ago, I wrote this:
http://marc.theaimsgroup.com/?l=lyx-devel&m=111954451507730&w=2
Somewhat more recently, I seem to remember expounding further on this subject
but I can't find the post in the archives. Insufficient searching skills ;-)
If you read the aspell docs, you'll find that aspell can be controlled
programmatically through the library's API; you can most definitely tell the
library where to find its data files.
Perhaps this will inspire someone who's frustrated by the current C:/Aspell
limitation to dig deeper...
Regards,
Angus
Michael Wojcik offered _linkd_ as a possible solution. I think it works
with typical non-admin rights, tested on WinXP Pro-> the right to make
a directory. It may work (linkd) with WinXP Home, which is untested,
and also personally untested on a USB stick.
http://www.petri.co.il/download_free_reskit_tools.htm (for download)
LINKD: This command-line tool links an NTFS directory to a target object.
http://www.windowsnetworking.com/kbase/WindowsTips/Windows2000/AdminTips/
Miscellaneous/Windows2000breaksthe26driveletterlimitation.html
"linkd.exe which is used to create/delete junction folders onto Windows
2000 NTFS and is found in the Windows 2000 Resource Kit. LinkD grafts
(links) the target name directly into the name space at Source, so that
Source subsequently acts as a name space junction. The Source directory
must reside on a disk formatted with NTFS in Windows 2000. The
destination (the target of the link) can be any valid directory name or
device name or valid object name in Windows 2000."
My thought that is if you have a Usb drive L:\Aspell then you could
virtually link it to c:\aspell; better is freeing LyX from C:\aspell.
Regards,
Stephen