Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Two questions about the DictManager - RapidSpell Web Java - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
gregcharles
#1 Posted : Monday, December 9, 2013 2:07:22 PM
Rank: Member

Groups: Registered

Joined: 4/15/2013
Posts: 34
I have the Java version of the DictManager, which is a jar file plus a bat file to run it (start /min c:\Windows\system32\javaw.exe -Xms32M -Xmx256M -jar DictManager.jar). The tool uses "My Documents" as the default working directory, both for opening the Dict file to edit and for text/dict files to merge. That's not where we store the dictionary, so is there a way to change that default? I tried changing the HOMEPATH environment variable, but Dict Manager still wants to start in "My Documents".

My second question is whether it is possible to have a comment line in the text file that is merged into the dictionary? I'd like to send an empty file with a sort of prompt to my users, e.g.,
add-words.txt:
# Enter a list of words here to merge into the dictionary, one word per line.

That's not a big deal since we do have release notes, but every little bit helps when dealing with end users!
Jim
#2 Posted : Monday, December 9, 2013 9:08:21 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Hi,

We use this constructor

public JFileChooser()

Constructs a JFileChooser pointing to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.

So I'm not entirely sure if that's changeable from an environment variable or not. If it isn't then we could make a new build that allows you to set an env var, like DICTMANDEFAULTDIR or something.

You can include a comment line, it won't be ignored, but it won't actually make any difference to the spell checker either (it'll be in the dictionary as one big word).

Best
Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


gregcharles
#3 Posted : Tuesday, December 10, 2013 3:24:03 PM
Rank: Member

Groups: Registered

Joined: 4/15/2013
Posts: 34
Well, I thought setting the system property user.home (via -Duser.home=some-dir) should work for the JFileChooser, but it doesn't seem to work for me. Either an environment variable or a system property to customize the start directory would be great. Also, while you're in there, you could make the frame just a touch taller. Right now, it's clipping off half of the "Ready" status and progress bar, at least in my environment.

Thanks!
Jim
#4 Posted : Tuesday, December 10, 2013 9:08:49 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
Here you go, just can call

set DICTMANDEFAULTDIR=c:\somedir

in the batch/cmd and it'll use that as default.

https://www.dropbox.com/...izni3h3/DictManager.jar

Best
Jim


-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


gregcharles
#5 Posted : Friday, December 13, 2013 1:36:33 AM
Rank: Member

Groups: Registered

Joined: 4/15/2013
Posts: 34
Hi Jim,

I must have been too slow. That link isn't working for me. Can you repost it?

Thanks, Greg
Jim
#6 Posted : Friday, December 13, 2013 4:18:18 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
It does still work for me, otherwise

http://keyoti.com/Upload...dFolder/DictManager.jar

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


gregcharles
#7 Posted : Friday, December 13, 2013 5:34:47 PM
Rank: Member

Groups: Registered

Joined: 4/15/2013
Posts: 34
Hi Jim,

Thanks, I've got it now. It seems our building network blocks Dropbox, so that was the issue.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.