[brailleblaster] Re: Latest BB build and translating opened files

  • From: "Michael Whapples" <mwhapples@xxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Thu, 8 Mar 2012 12:48:08 -0000

I can check the XP thing, however from memory I think the use of the APPDATA environment variable should work fine, hard coding the path rather than using the variable may not work (IE. roaming directory I think is not used on XP).


If the BBIni class handles this then set the appropriate properties/member variables in the constructor (using the platform specific code as I described before).

Michael Whapples

-----Original Message----- From: John J. Boyer
Sent: Thursday, March 08, 2012 12:22 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Latest BB build and translating opened files

Hi Michael,

I just checked my Windows machine. The directories are as Vic described.
Does this hold for XP also?

Finding directories is handled by the BBIni class. There are getter
methods for the various directories. So the code for finding directories
is in only one place.

Thanks to you both,
John

On Thu, Mar 08, 2012 at 11:42:02AM -0000, Michael Whapples wrote:
It probably is different for other systems as well. Should be simple enough
to solve for directories.

John, to give you some hints: Find the OS by using the Java system property
"os.name", if windows then create the settings directory and other
directories by using the environment variables like "APPDATA", if Linux
then do as currently done and if Mac, well I cannot remember what precisely
Apple recommend on this one except in the past when it came up I remember
even Apple weren't following that convention for all their software :-)

I don't know how many places need to get at this platform specific
information, but if its a number of places then you may want to create a
seperate class to provide some of this (eg. a DirectoryProvider) and so
remove repetition of code querying what platform one is using.

Michael Whapples

-----Original Message----- From: Vic Beckley
Sent: Thursday, March 08, 2012 10:55 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Latest BB build and translating opened files

Hi John,

The normal convention in Windows would be to put the bbsettings and bbtemp
folders in the %appdata% folder instead of directly in the user's local
folder. In my case this would be c:\users\vic\appdata\roaming. Most
applications would create a folder there with the name of either the
application or the company and put all the files needed for their
application in there. This is not essential and it will work the way it is
but would conform more to what is expected in Windows.


Best regards from Ohio, U.S.A.,

Vic
E-mail: vic.beckley3@xxxxxxxxx

-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
Sent: Wednesday, March 07, 2012 4:07 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Latest BB build and translating opened files

Hi Vic,

The bug is probably pretty simple. I'll have a look. Anyway, you can
always use the translate subcommand. Speaking of that, there is a new
subcommand, checktable It checks a liblouis table for errors and prints
error messages if it finds any. The syntax is:

checktable tablename

It needs a bit of work, but produces good results.

John

On Wed, Mar 07, 2012 at 12:20:46PM -0500, Vic Beckley wrote:
>John,
>
>I know you are busy with other things now, but I wanted to let you know
>about a problem I am having with the latest BB build. When I type in >text,
I
>can translate it just fine. However, when I open a file when I choose the
>translate command on the menu, BB just disappears. It closes itself. I
have
>tried this with a couple XML files with the same result. There is no >error
>log or any other new file created when this happens. Just FYI.
>
>
>Best regards from Ohio, U.S.A.,
>
>Vic
>E-mail: vic.beckley3@xxxxxxxxx
>
>
>

--
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities




--
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities



Other related posts: