[brailleblaster] Re: push by john.bo...@xxxxxxxxxxxxxxxxx - the -utd option now works on 2012-05-06 04:32 GMT
- From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
- To: brailleblaster@xxxxxxxxxxxxx
- Date: Sun, 6 May 2012 06:32:50 -0500
Wait for the next push. Then you can run BrailleBlaster from the command
line like this
java -jar brailleblaster.jar -utd
When you translate UTDML will be used. Only the Braille pane is updated
at the moment. Let me know how it works.
Eventually there will be a setting to specify whether to use UTDML
instead of a command-line option.
Thanks,
John
On Sun, May 06, 2012 at 06:50:13AM -0400, Vic Beckley wrote:
> Is this something I can test?
>
>
> 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
> brailleblaster@xxxxxxxxxxxxxx
> Sent: Sunday, May 06, 2012 12:33 AM
> To: brailleblaster@xxxxxxxxxxxxx
> Subject: [brailleblaster] push by john.bo...@xxxxxxxxxxxxxxxxx - the -utd
> option now works on 2012-05-06 04:32 GMT
>
> Revision: 57e6c333543e
> Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx>
> Date: Sat May 5 21:31:50 2012
> Log: the -utd option now works
> http://code.google.com/p/brailleblaster/source/detail?r=57e6c333543e
>
> Modified:
> /src/main/org/brailleblaster/BBIni.java
> /src/main/org/brailleblaster/Main.java
>
> =======================================
> --- /src/main/org/brailleblaster/BBIni.java Sat May 5 18:43:13 2012
> +++ /src/main/org/brailleblaster/BBIni.java Sat May 5 21:31:50 2012
> @@ -79,6 +79,7 @@
> private static String tempFilesPath;
> private static String platformName;
> private static String userSettings;
> +private static boolean hSubcommands = false;
> private static boolean hLiblouisutdml = false;
> private static FileHandler logFile;
> static final String BBID = "brlblst";
> @@ -140,7 +141,8 @@
> logger.addHandler (logFile);
> }
> if (args.length > 0) {
> -for (int i = 0; i < args.length; i++) {
> +int i = 0;
> +while (i < args.length) {
> if (args[i].charAt(0) != '-') {
> break;
> }
> @@ -156,7 +158,11 @@
> else {
> System.out.println ("Bad option " +
> args[i]);
> }
> - }
> +i++;
> + }
> +if (i < args.length) {
> +hSubcommands = true;
> +}
> }
> if (gotGui) {
> try {
> @@ -199,6 +205,10 @@
> {
> return hLiblouisutdml;
> }
> +
> +public static boolean haveSubcommands() {
> +return hSubcommands;
> +}
>
> public static void setVersion (String version) {
> BBVersion = version;
> =======================================
> --- /src/main/org/brailleblaster/Main.java Tue Oct 4 21:17:38 2011
> +++ /src/main/org/brailleblaster/Main.java Sat May 5 21:31:50 2012
> @@ -47,11 +47,10 @@
> BBIni.initialize(args);
> BBIni.setVersion ("brailleblaster-1.3.0");
> BBIni.setReleaseDate ("October 5, 2011");
> -if (args.length == 0)
> +if (BBIni.haveSubcommands()) {
> +new Subcommands(args);
> +} else {
> new WPManager (null);
> -else
> -{
> -new Subcommands (args);
> }
> Display display = BBIni.getDisplay();
> if (display != null)
>
--
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: