Spell-Checker on USB drive

2007-06-05
2013-05-21
  • Has anyone figured out a way for Notepad++ to recognize the dictionary files when running from a USB drive? I tried copying the aspell folder to the \Notepad++\plugins\ and the \Notepad++ folders, but obviously those didn't work. I was only grasping at straws. I know that you can set an environment variable so that this will be recognized, however, I would like for the app to be truly portable, i.e. no traces left behind on the host computer. I'm using asuite as my launcher, which allows you to set working folders, but does not allow to set environment variables.

    Any thoughts? Thanks in advance to anyone who might have some insight on this!

     
    • Jens Lorenz
      Jens Lorenz
      2007-06-06

      Hello,

      at the moment there is no way to do it like this way. What I can try is to add a detect, if you are on HDD or a portable device like USB. In this case I will look for a file, e.g. "aspell.location". Here you need only to include the relative location of Aspell.

      My offer: I can do a change for you for testing if it's working like this way. But the correct installation of Aspell on USB is again your part. We can together figure out if it's working and if not, what I can do for you to make it possible.

      Best Regards
      Jens

       
    • rbon_it
      rbon_it
      2007-08-22

      Hello,

      I hope to use an installed copy of Aspell both on usb and on HD.
      I like a modified copy of Spell-Checker for testing if it work with a file named 'aspell.ini' (if it isn't already
      in use, otherwise 'aspell.location') and this file must contain the relative path of 'Aspell' main directory.
      I like to use Aspell with 2 (two) dictionaries.

      Best Regards
      Renzo

       
    • Jens Lorenz
      Jens Lorenz
      2007-09-09

      Please try new version. Aspell in addition on USB works now correct.

       
    • rbon_it
      rbon_it
      2007-09-29

      Hi Jeans,

      I have tried new version.  With this new version I must only write in dialog box of Spell-checker plugin, the exact path of installed Aspell directory; for example 'C:\Programs\Notepad++\Aspell\bin' or, if Aspell is on a usb key in drive E:\, 'E:\Notepad++\Aspell\bin' and then confirm this relative path.  So Your Spell-Checker plugin write this path in the 'SpellChecker.ini' file so:
      --------
      [Spell-Checker]
      Current Language=en
      Relative Path=E:\Notepad++\Aspell\bin
      --------
      and this plugin change the default language if You select a different dictionary (for example 'Current Language=it').

      I think You can update npp 4.3 (with spell-Checker 1.1) with this new build.

      Thank You very much.

      Renzo

       
    • rbon_it
      rbon_it
      2007-09-29

      Hi Jens,

      I have tried to use Spell-Checker from hard disk, but it work only if I put the 'Aspell\bin' folder directly in 'C:\Programs' and won't work if I put this folder in 'C:\Programs\Notepad++\Aspell\bin'.  
      I think Your Spell-checker don't support long pathnames.   If I write long pathname directly into spellchecker.ini, when I start with Notepad++, this pathname is truncated to 'C:\Programs\Notepad++\Aspell' and npp can't find the aspell programs.

      Best Regards
      Renzo

       
      • Jens Lorenz
        Jens Lorenz
        2007-10-01

        Hello Renzo,

        please keep sure to take the releative path!
        If you have e.g.:

        C:\Programs\Aspell\bin
        C:\Program Files\Notepad++

        You need to type in:

        ..\..\Aspell\bin

        Best Regards
        Jens

         
    • rbon_it
      rbon_it
      2007-10-01

      Hi Jens

      I have Aspell in 'C:\Program Files\Notepad++\Aspell' and I have insert this relative path:
      '..\Notepad++\Aspell\bin' and it work!!

      Thank You for Your support.
      Renzo

       
      • Jens Lorenz
        Jens Lorenz
        2007-10-01

        Good, but you can optimize ;). I think "\Aspell\bin" should also work, because Notepad directory is seen as the current one.

        Best Regards
        Jens