|
From: Andres M. <amo...@us...> - 2006-12-11 03:39:42
|
Update of /cvsroot/fieldling/Fieldling/src/fieldling/quilldriver/xml In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv23134/src/fieldling/quilldriver/xml Modified Files: Editor.java Log Message: added the save as unicode option to the preferences for the tibetan version. Index: Editor.java =================================================================== RCS file: /cvsroot/fieldling/Fieldling/src/fieldling/quilldriver/xml/Editor.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Editor.java 28 Jun 2006 14:01:43 -0000 1.7 --- Editor.java 11 Dec 2006 03:39:38 -0000 1.8 *************** *** 34,37 **** --- 34,39 ---- import org.w3c.dom.Text; import org.w3c.dom.Attr; + import org.thdl.tib.text.ttt.EwtsToUnicodeForXslt; + import fieldling.quilldriver.PreferenceManager; public class Editor { *************** *** 644,647 **** --- 646,650 ---- @TIBETAN@boolean[] noSuchWylie = new boolean[1]; @TIBETAN@val = duff.getTibDoc().getWylie(p1, p2, noSuchWylie); + @TIBETAN@if(PreferenceManager.getInt(PreferenceManager.SAVE_TIBETAN_AS_UNICODE_KEY, PreferenceManager.SAVE_TIBETAN_AS_UNICODE_DEFAULT) == 1) val = EwtsToUnicodeForXslt.convertEwtsTo(val); @TIBETAN@} else val = pane.getDocument().getText(p1, p2-p1).trim(); @UNICODE@val = pane.getDocument().getText(p1, p2-p1).trim(); |