From eec991f735fd35f0aa754ded8d62bfcd3f2c5480 Mon Sep 17 00:00:00 2001 From: dchandler Date: Sat, 28 Sep 2002 14:42:01 +0000 Subject: [PATCH] Added copyright boilerplate. Now using reflection API to invoke Java 1.4-specific functionality. Thus, Savant now builds on my Java 1.3.1_04 box. --- source/org/thdl/quilldriver/QD.java | 18 ++ source/org/thdl/quilldriver/QDPlayer.java | 20 +- source/org/thdl/quilldriver/QDShell.java | 20 +- source/org/thdl/savant/AnnotationPlayer.java | 20 +- source/org/thdl/savant/JdkVersionHacks.java | 231 ++++++++++++++++++ source/org/thdl/savant/Savant.java | 34 ++- source/org/thdl/savant/SavantFileView.java | 18 ++ source/org/thdl/savant/SavantShell.java | 29 ++- source/org/thdl/savant/SoundPanel.java | 20 +- .../org/thdl/savant/TextHighlightPlayer.java | 20 +- source/org/thdl/savant/TextPlayer.java | 20 +- source/org/thdl/savant/TranscriptView.java | 20 +- source/org/thdl/savant/TwoWayTextPlayer.java | 20 +- source/org/thdl/savant/tib/English.java | 20 +- source/org/thdl/savant/tib/Tibetan.java | 20 +- .../org/thdl/savant/tib/TibetanEnglish.java | 20 +- source/org/thdl/savant/tib/TibetanWylie.java | 20 +- .../thdl/savant/tib/TibetanWylieEnglish.java | 20 +- source/org/thdl/savant/tib/Wylie.java | 20 +- source/org/thdl/savant/tib/WylieEnglish.java | 20 +- source/org/thdl/savant/ucuchi/All.java | 20 +- source/org/thdl/savant/ucuchi/English.java | 20 +- source/org/thdl/savant/ucuchi/Quechua.java | 20 +- .../thdl/savant/ucuchi/QuechuaEnglish.java | 20 +- .../thdl/savant/ucuchi/SegmentedQuechua.java | 20 +- 25 files changed, 703 insertions(+), 27 deletions(-) create mode 100644 source/org/thdl/savant/JdkVersionHacks.java diff --git a/source/org/thdl/quilldriver/QD.java b/source/org/thdl/quilldriver/QD.java index 508b964..e217b51 100644 --- a/source/org/thdl/quilldriver/QD.java +++ b/source/org/thdl/quilldriver/QD.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.quilldriver; import java.util.*; diff --git a/source/org/thdl/quilldriver/QDPlayer.java b/source/org/thdl/quilldriver/QDPlayer.java index 5c061df..54d2f8c 100644 --- a/source/org/thdl/quilldriver/QDPlayer.java +++ b/source/org/thdl/quilldriver/QDPlayer.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.quilldriver; import java.util.*; @@ -402,4 +420,4 @@ that should solve your pause play problems! > > -*/ \ No newline at end of file +*/ diff --git a/source/org/thdl/quilldriver/QDShell.java b/source/org/thdl/quilldriver/QDShell.java index 0c33cb8..dbcd7d4 100644 --- a/source/org/thdl/quilldriver/QDShell.java +++ b/source/org/thdl/quilldriver/QDShell.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.quilldriver; import java.io.*; @@ -156,4 +174,4 @@ class RadioListener implements ActionListener { } } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/AnnotationPlayer.java b/source/org/thdl/savant/AnnotationPlayer.java index 5665fae..154da70 100644 --- a/source/org/thdl/savant/AnnotationPlayer.java +++ b/source/org/thdl/savant/AnnotationPlayer.java @@ -1,7 +1,25 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; public interface AnnotationPlayer extends java.util.EventListener { public void startAnnotation(String id); public void stopAnnotation(String id); -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/JdkVersionHacks.java b/source/org/thdl/savant/JdkVersionHacks.java new file mode 100644 index 0000000..5ae18f1 --- /dev/null +++ b/source/org/thdl/savant/JdkVersionHacks.java @@ -0,0 +1,231 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + +package org.thdl.savant; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.lang.reflect.Field; + +import java.awt.Frame; +import java.awt.Toolkit; + +import javax.swing.JFrame; + +import org.thdl.util.ThdlLazyException; + +/** + * @author David Chandler + * + * This class provides functionality that is not present in Java's JDK + * 1.2. Because we want to compile and run on a Java 2/1.2 system, we + * must use the Java Reflection API to provide functionality specific + * to Java 2/1.3 or later. At present, I haven't tested on a 1.2 box, + * but I have tested on a 1.3.1_04 box. + * + * If your code will break if some functionality here is not present, + * test the return value of the function and throw an exception. + * Avoid such code like the plague. + * + * This code is all written for one-shot operations thus-far. If you + * plan on executing a piece of code many times, you need to set up + * the reflection mechanism first, and then re-use it again and again. + * This is a two-step process. Three steps if you explicitly + * deconstruct the mechanism. + * + * This class is not instantiable. */ +final class JdkVersionHacks { + /** Don't instantiate this class. */ + private JdkVersionHacks() { } + + /** Calls f.setUndecorated(true) if possible. Returns true if + successful. */ + public static boolean undecorateJFrame(JFrame f) { + /* If we're using JDK 1.4, execute + f.setUndecorated(true). Otherwise, don't. */ + + boolean success = false; + + Method setUndecoratedMethod = null; + try { + setUndecoratedMethod + = JFrame.class.getMethod("setUndecorated", + new Class[] { + Boolean.TYPE + }); + } catch (NoSuchMethodException ex) { + /* We're not using JDK 1.4 or later. */ + } catch (SecurityException ex) { + /* We'll never know if we're using JDK 1.4 or later. */ + handleSecurityException(ex); + return false; + } + if (setUndecoratedMethod != null) { + try { + setUndecoratedMethod.invoke(f, new Object[] { Boolean.TRUE }); + success = true; + + /* We shouldn't get any of these exceptions: */ + } catch (IllegalAccessException ex) { + throw new ThdlLazyException(ex); + } catch (IllegalArgumentException ex) { + throw new ThdlLazyException(ex); + } catch (InvocationTargetException ex) { + throw new ThdlLazyException(ex); + } + } + return success; + } + + /** Calls f.setExtendedState(Frame.MAXIMIZED_BOTH) if possible. + Returns true if successful. */ + public static boolean maximizeJFrameInBothDirections(JFrame f) { + /* If we're using JDK 1.4, execute + f.setExtendedState(Frame.MAXIMIZED_BOTH). Otherwise, + don't. */ + + boolean success = false; + + Method setExtendedStateMethod = null; + try { + setExtendedStateMethod + = JFrame.class.getMethod("setExtendedState", + new Class[] { + Integer.TYPE + }); + } catch (NoSuchMethodException ex) { + /* We're not using JDK 1.4 or later. */ + return false; + } catch (SecurityException ex) { + /* We'll never know if we're using JDK 1.4 or later. */ + handleSecurityException(ex); + return false; + } + try { + setExtendedStateMethod.invoke(f, + new Object[] { + maximizedBothOption() + }); + success = true; + + } catch (NoSuchFieldException ex) { + /* We're not using JDK 1.4 or later. */ + return false; + + /* We shouldn't get any of these exceptions: */ + } catch (IllegalAccessException ex) { + throw new ThdlLazyException(ex); + } catch (IllegalArgumentException ex) { + throw new ThdlLazyException(ex); + } catch (InvocationTargetException ex) { + throw new ThdlLazyException(ex); + } + return success; + } + + /** Returns true iff maximizeJFrameInBothDirections(f) will + actually have an effect. */ + public static boolean maximizedBothSupported(Toolkit tk) { + // Execute + // f.getToolkit().isFrameStateSupported(Frame.MAXIMIZED_BOTH) + // if possible. + + boolean success = false; + + Method isFSSMethod = null; + try { + isFSSMethod + = JFrame.class.getMethod("isFrameStateSupported", + new Class[] { + Integer.TYPE + }); + } catch (NoSuchMethodException ex) { + /* We're not using JDK 1.4 or later. */ + return false; + } catch (SecurityException ex) { + /* We'll never know if we're using JDK 1.4 or later. */ + handleSecurityException(ex); + return false; + } + try { + return ((Boolean)isFSSMethod.invoke(tk, + new Object[] { + maximizedBothOption() + })).booleanValue(); + + } catch (NoSuchFieldException ex) { + /* We're not using JDK 1.4 or later. */ + return false; + + /* We shouldn't get any of these exceptions: */ + } catch (IllegalAccessException ex) { + throw new ThdlLazyException(ex); + } catch (IllegalArgumentException ex) { + throw new ThdlLazyException(ex); + } catch (InvocationTargetException ex) { + throw new ThdlLazyException(ex); + } + } + + + /** Coming soon: Does what the user desires (via the options he or + she has set) with this SecurityException, one encountered + during the process of reflection. + + Currently: does nothing. + + FIXME */ + private static void handleSecurityException(SecurityException ex) + throws SecurityException + { + if (false /* FIXME: I want this exception when debugging: THDLUtils.getBooleanOption("EagerlyThrowExceptions") */) + throw ex; + } + + /** Returns the value of Frame.MAXIMIZED_BOTH, wrapped in an + Integer. + + @throws NoSuchFieldException the field does not exist or + cannot be accessed because security settings are too limiting */ + private static Object maximizedBothOption() + throws NoSuchFieldException + { + Field maxBothOptionField = null; + try { + maxBothOptionField = Frame.class.getField("MAXIMIZED_BOTH"); + + /* Don't catch NoSuchFieldException */ + } catch (SecurityException ex) { + /* We'll never know if we're using JDK 1.4 or later. */ + handleSecurityException(ex); + throw new NoSuchFieldException("java.awt.Frame.MAXIMIZED_BOTH"); + } + + try { + return maxBothOptionField.get(null); + } catch (IllegalAccessException ex) { + throw new ThdlLazyException(ex); + } catch (IllegalArgumentException ex) { + throw new ThdlLazyException(ex); + } catch (NullPointerException ex) { + throw new ThdlLazyException(ex); + } catch (ExceptionInInitializerError ex) { + throw new ThdlLazyException(ex); + } + } +}; diff --git a/source/org/thdl/savant/Savant.java b/source/org/thdl/savant/Savant.java index a79d9fc..1f9094b 100644 --- a/source/org/thdl/savant/Savant.java +++ b/source/org/thdl/savant/Savant.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; import java.awt.Font; @@ -231,7 +249,10 @@ public class Savant extends JDesktopPane if (fullScreen == null) { fullScreen = new JFrame(); - fullScreen.setUndecorated(true); + + /* We don't do anything special if this fails: */ + JdkVersionHacks.undecorateJFrame(fullScreen); + fullScreen.getContentPane().setBackground(Color.black); Dimension screenSize = fullScreen.getToolkit().getScreenSize(); Dimension videoSize = sp.getVisualComponent().getPreferredSize(); @@ -266,7 +287,14 @@ public class Savant extends JDesktopPane } else { visual = sp.popVisualComponent(); fullScreen.show(); - fullScreen.setExtendedState(Frame.MAXIMIZED_BOTH); + + /* FIXME: In SavantShell, we test + to see if MAXIMIZE_BOTH is + supported, but we don't + here. */ + /* Ignore failure: */ + JdkVersionHacks.maximizeJFrameInBothDirections(fullScreen); + fullScreen.getContentPane().add(visual); visual.setLocation(0, (fullScreen.getSize().height - fullScreenSize.height)/2); visual.setSize(fullScreenSize); @@ -310,4 +338,4 @@ public class Savant extends JDesktopPane textPanel.validate(); textPanel.repaint(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/SavantFileView.java b/source/org/thdl/savant/SavantFileView.java index cb19c39..9d8d0da 100644 --- a/source/org/thdl/savant/SavantFileView.java +++ b/source/org/thdl/savant/SavantFileView.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; import java.io.*; diff --git a/source/org/thdl/savant/SavantShell.java b/source/org/thdl/savant/SavantShell.java index 51e19b9..114da19 100644 --- a/source/org/thdl/savant/SavantShell.java +++ b/source/org/thdl/savant/SavantShell.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; import java.io.*; @@ -229,12 +247,15 @@ public class SavantShell extends JFrame }); // Code for Merlin - if (getToolkit().isFrameStateSupported(Frame.MAXIMIZED_BOTH)) - { + if (JdkVersionHacks.maximizedBothSupported(getToolkit())) { setLocation(0,0); setSize(getToolkit().getScreenSize().width,getToolkit().getScreenSize().height); setVisible(true); - setExtendedState(Frame.MAXIMIZED_BOTH); + + // call setExtendedState(Frame.MAXIMIZED_BOTH) if possible: + if (!JdkVersionHacks.maximizeJFrameInBothDirections(this)) { + throw new Error("badness at maximum: the frame state is supported, but setting that state failed. JdkVersionHacks has a bug."); + } } else { Dimension gs = getToolkit().getScreenSize(); setLocation(0,0); @@ -327,4 +348,4 @@ public class SavantShell extends JFrame } } } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/SoundPanel.java b/source/org/thdl/savant/SoundPanel.java index 15b3672..76634d0 100644 --- a/source/org/thdl/savant/SoundPanel.java +++ b/source/org/thdl/savant/SoundPanel.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + /*-----------------------------------------------------------------------*/ package org.thdl.savant; @@ -455,4 +473,4 @@ System.out.println("soundpanel - "+sound.toString()); parent.repaint(); } } -}; \ No newline at end of file +}; diff --git a/source/org/thdl/savant/TextHighlightPlayer.java b/source/org/thdl/savant/TextHighlightPlayer.java index ab8e592..54a4053 100644 --- a/source/org/thdl/savant/TextHighlightPlayer.java +++ b/source/org/thdl/savant/TextHighlightPlayer.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; import java.awt.*; @@ -101,4 +119,4 @@ public class TextHighlightPlayer extends JPanel implements AnnotationPlayer highlights.remove(id); } } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/TextPlayer.java b/source/org/thdl/savant/TextPlayer.java index aa5fd45..849122b 100644 --- a/source/org/thdl/savant/TextPlayer.java +++ b/source/org/thdl/savant/TextPlayer.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; import java.awt.*; @@ -90,4 +108,4 @@ public class TextPlayer extends JPanel implements AnnotationPlayer highlights.remove(id); } } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/TranscriptView.java b/source/org/thdl/savant/TranscriptView.java index 548afd3..60d0108 100644 --- a/source/org/thdl/savant/TranscriptView.java +++ b/source/org/thdl/savant/TranscriptView.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; public interface TranscriptView @@ -10,4 +28,4 @@ public interface TranscriptView public String getStartOffsets(); public String getEndOffsets(); public org.jdom.Document getDocument(); -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/TwoWayTextPlayer.java b/source/org/thdl/savant/TwoWayTextPlayer.java index b332ec0..014c294 100644 --- a/source/org/thdl/savant/TwoWayTextPlayer.java +++ b/source/org/thdl/savant/TwoWayTextPlayer.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant; import java.awt.Color; @@ -103,4 +121,4 @@ public class TwoWayTextPlayer extends TextHighlightPlayer { return text; } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/English.java b/source/org/thdl/savant/tib/English.java index 7a7f70f..0dda0ed 100644 --- a/source/org/thdl/savant/tib/English.java +++ b/source/org/thdl/savant/tib/English.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -193,4 +211,4 @@ public class English implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/Tibetan.java b/source/org/thdl/savant/tib/Tibetan.java index 8af24b1..74cd0b7 100644 --- a/source/org/thdl/savant/tib/Tibetan.java +++ b/source/org/thdl/savant/tib/Tibetan.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -202,4 +220,4 @@ public class Tibetan implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/TibetanEnglish.java b/source/org/thdl/savant/tib/TibetanEnglish.java index 77acd17..4e4414b 100644 --- a/source/org/thdl/savant/tib/TibetanEnglish.java +++ b/source/org/thdl/savant/tib/TibetanEnglish.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -210,4 +228,4 @@ public class TibetanEnglish implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/TibetanWylie.java b/source/org/thdl/savant/tib/TibetanWylie.java index 9bd87dc..fd6f1b9 100644 --- a/source/org/thdl/savant/tib/TibetanWylie.java +++ b/source/org/thdl/savant/tib/TibetanWylie.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -213,4 +231,4 @@ public class TibetanWylie implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/TibetanWylieEnglish.java b/source/org/thdl/savant/tib/TibetanWylieEnglish.java index 2438058..4caa621 100644 --- a/source/org/thdl/savant/tib/TibetanWylieEnglish.java +++ b/source/org/thdl/savant/tib/TibetanWylieEnglish.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -215,4 +233,4 @@ public class TibetanWylieEnglish implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/Wylie.java b/source/org/thdl/savant/tib/Wylie.java index 9a2f4be..5b9a189 100644 --- a/source/org/thdl/savant/tib/Wylie.java +++ b/source/org/thdl/savant/tib/Wylie.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -193,4 +211,4 @@ public class Wylie implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/tib/WylieEnglish.java b/source/org/thdl/savant/tib/WylieEnglish.java index 8f1267e..36c2229 100644 --- a/source/org/thdl/savant/tib/WylieEnglish.java +++ b/source/org/thdl/savant/tib/WylieEnglish.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.tib; import java.awt.Color; @@ -206,4 +224,4 @@ public class WylieEnglish implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/ucuchi/All.java b/source/org/thdl/savant/ucuchi/All.java index 5923069..c17768c 100644 --- a/source/org/thdl/savant/ucuchi/All.java +++ b/source/org/thdl/savant/ucuchi/All.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.ucuchi; import java.io.Reader; @@ -222,4 +240,4 @@ public class All implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/ucuchi/English.java b/source/org/thdl/savant/ucuchi/English.java index 4f92ba5..5825369 100644 --- a/source/org/thdl/savant/ucuchi/English.java +++ b/source/org/thdl/savant/ucuchi/English.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.ucuchi; import java.io.Reader; @@ -193,4 +211,4 @@ public class English implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/ucuchi/Quechua.java b/source/org/thdl/savant/ucuchi/Quechua.java index 17b8894..0a3cb18 100644 --- a/source/org/thdl/savant/ucuchi/Quechua.java +++ b/source/org/thdl/savant/ucuchi/Quechua.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.ucuchi; import java.io.Reader; @@ -192,4 +210,4 @@ public class Quechua implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/ucuchi/QuechuaEnglish.java b/source/org/thdl/savant/ucuchi/QuechuaEnglish.java index e1f40d5..c1191bc 100644 --- a/source/org/thdl/savant/ucuchi/QuechuaEnglish.java +++ b/source/org/thdl/savant/ucuchi/QuechuaEnglish.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.ucuchi; import java.io.Reader; @@ -214,4 +232,4 @@ public class QuechuaEnglish implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +} diff --git a/source/org/thdl/savant/ucuchi/SegmentedQuechua.java b/source/org/thdl/savant/ucuchi/SegmentedQuechua.java index bc5797c..cdaa07b 100644 --- a/source/org/thdl/savant/ucuchi/SegmentedQuechua.java +++ b/source/org/thdl/savant/ucuchi/SegmentedQuechua.java @@ -1,3 +1,21 @@ +/* +The contents of this file are subject to the THDL Open Community License +Version 1.0 (the "License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License on the THDL web site +(http://www.thdl.org/). + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the +License for the specific terms governing rights and limitations under the +License. + +The Initial Developer of this software is the Tibetan and Himalayan Digital +Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +All Rights Reserved. + +Contributor(s): ______________________________________. +*/ + package org.thdl.savant.ucuchi; import java.io.Reader; @@ -214,4 +232,4 @@ public class SegmentedQuechua implements TranscriptView { return endBuffer.toString(); } -} \ No newline at end of file +}