Revision: 68db0964615b Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> Date: Tue Mar 13 08:09:18 2012 Log: Implementing recent discussions. http://code.google.com/p/brailleblaster/source/detail?r=68db0964615b Modified: /build.xml /src/main/org/brailleblaster/BBIni.java /src/main/org/brailleblaster/wordprocessor/DocumentManager.java ======================================= --- /build.xml Fri Jun 3 14:41:50 2011 +++ /build.xml Tue Mar 13 08:09:18 2012 @@ -14,7 +14,7 @@ <target name="compile" depends="init"> <javac srcdir="${srcdir}" destdir="${builddir}" -includeantruntime="false"> +includeantruntime="false" target="1.5"> <classpath> <pathelement path="${classpath}"/> <pathelement location="${classpath}/swt.jar"/> ======================================= --- /src/main/org/brailleblaster/BBIni.java Tue Mar 13 04:47:41 2012 +++ /src/main/org/brailleblaster/BBIni.java Tue Mar 13 08:09:18 2012 @@ -118,6 +118,7 @@ (tempFilesPath + fileSep + "log.xml"); } catch (IOException e) { logger.log (Level.SEVERE, "cannot open logfile", e); +e.printStackTrace(); } if (logFile != null) { logger.addHandler (logFile); =======================================--- /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Fri Mar 9 15:27:18 2012 +++ /src/main/org/brailleblaster/wordprocessor/DocumentManager.java Tue Mar 13 08:09:18 2012
@@ -85,7 +85,7 @@ String BRFTranslation = null; liblouisutdml louisutdml; String logFile = "Translate.log"; -String settings; +String configSettings = null; int mode = 0; /** @@ -214,6 +214,7 @@ return; } setWindowTitle (documentName); +haveOpenedFile = true; Element rootElement = doc.getRootElement(); walkTree (rootElement); } @@ -385,6 +386,9 @@ return; } configFileList = "preferences.cfg"; +if (BBIni.useUtd()) { +configSettings = "formatFor utd\n"; +} String docFile = tempPath + docID + "-tempdoc.xml"; BRFTranslation = tempPath + docID + "-doc.brl"; FileOutputStream writer = null; @@ -402,7 +406,7 @@ return; } boolean result = louisutdml.translateFile (configFileList, docFile, -BRFTranslation, logFile, settings, mode); +BRFTranslation, logFile, configSettings, mode); if (!result) { new Notify ("Translation failed."); return;