Since I had Eclipse fired up, I had it automatically organized the
imports. It made two errors, but the compiler found them. I've cvs tagged the tree before doing this, just in case.
This commit is contained in:
parent
6d419fe641
commit
8ccd68789a
69 changed files with 574 additions and 265 deletions
|
@ -18,15 +18,30 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.filechooser.*;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import javax.swing.Box;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JCheckBox;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JFileChooser;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextField;
|
||||
|
||||
import org.thdl.util.ThdlActionListener;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.util.ThdlVersion;
|
||||
|
||||
/** A GUI widget used to convert Tibetan documents from one encoding
|
||||
to another.
|
||||
|
|
|
@ -18,13 +18,19 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.tib.text.*;
|
||||
import javax.swing.JOptionPane;
|
||||
import java.awt.Frame;
|
||||
import java.awt.Dialog;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintStream;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** The ConverterGUI is a Swing GUI application. It is used for
|
||||
* converting TibetanMachine-, TibetanMachineWeb-, and THDL Extended
|
||||
|
|
|
@ -18,22 +18,58 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.awt.*;
|
||||
import java.awt.datatransfer.*;
|
||||
import java.awt.font.*;
|
||||
import java.awt.event.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.text.rtf.*;
|
||||
import java.awt.Font;
|
||||
import java.awt.datatransfer.Clipboard;
|
||||
import java.awt.datatransfer.ClipboardOwner;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.StringSelection;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.datatransfer.UnsupportedFlavorException;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.FocusListener;
|
||||
import java.awt.event.KeyAdapter;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
|
||||
import org.thdl.tib.text.*;
|
||||
import javax.swing.AbstractAction;
|
||||
import javax.swing.Action;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.Caret;
|
||||
import javax.swing.text.DefaultStyledDocument;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import javax.swing.text.Keymap;
|
||||
import javax.swing.text.MutableAttributeSet;
|
||||
import javax.swing.text.Position;
|
||||
import javax.swing.text.Style;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.StyleContext;
|
||||
import javax.swing.text.StyledDocument;
|
||||
|
||||
import org.thdl.tib.text.DuffCode;
|
||||
import org.thdl.tib.text.DuffData;
|
||||
import org.thdl.tib.text.InvalidTransliterationException;
|
||||
import org.thdl.tib.text.THDLWylieConstants;
|
||||
import org.thdl.tib.text.TibTextUtils;
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.tib.text.TibetanKeyboard;
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.util.RTFFixerInputStream;
|
||||
import org.thdl.util.StatusBar;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.util.StatusBar;
|
||||
import org.thdl.util.RTFFixerInputStream;
|
||||
|
||||
/**
|
||||
* Enables input of Tibetan text
|
||||
|
|
|
@ -18,7 +18,6 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
* @author David Chandler
|
||||
|
|
|
@ -20,9 +20,6 @@ package org.thdl.tib.input;
|
|||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import javax.swing.Action;
|
||||
import javax.swing.KeyStroke;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/**
|
||||
|
|
|
@ -18,8 +18,6 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.io.*;
|
||||
import java.awt.*;
|
||||
|
||||
/** Constants used by ConvertDialog.
|
||||
|
||||
|
|
|
@ -18,13 +18,11 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.util.Vector;
|
||||
import java.net.URL;
|
||||
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.util.RTFPane;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
|
||||
/** A JskadKeyboard is the high-level view of a Tibetan-input keyboard
|
||||
that Jskad has. Each keyboard is associated with a .ini file
|
||||
|
|
|
@ -20,8 +20,6 @@ package org.thdl.tib.input;
|
|||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.thdl.tib.input.JskadKeyboard;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** A JskadKeyboardFactory determines which Tibetan keyboards Jskad
|
||||
|
|
|
@ -20,8 +20,6 @@ package org.thdl.tib.input;
|
|||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.thdl.tib.input.JskadKeyboard;
|
||||
|
||||
/** A JskadKeyboardManager maintains a list of JskadKeyboards.
|
||||
|
||||
@author David Chandler
|
||||
|
|
|
@ -18,8 +18,15 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.Component;
|
||||
import java.awt.GraphicsEnvironment;
|
||||
import java.awt.GridLayout;
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
/** Shows a standard dialog window to set the preferences
|
||||
for the tibetan and roman script used
|
||||
|
|
|
@ -18,10 +18,10 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
import java.util.Vector;
|
||||
import java.io.File;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** A database of the files most recently opened in Jskad. The client
|
||||
must call {@link #storeRecentlyOpenedFilePreferences()} before
|
||||
|
|
|
@ -18,16 +18,16 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintStream;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.PrintStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.apache.commons.jrcs.tools.JDiff;
|
||||
import org.apache.commons.jrcs.diff.Revision;
|
||||
import org.apache.commons.jrcs.tools.JDiff;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/**
|
||||
* @author David Chandler
|
||||
|
|
|
@ -18,19 +18,28 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.io.*;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import javax.swing.text.SimpleAttributeSet;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.tib.text.*;
|
||||
|
||||
import org.thdl.tib.text.ttt.TConverter;
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.tib.text.ttt.ACIPTraits;
|
||||
import org.thdl.tib.text.ttt.EWTSTraits;
|
||||
import org.thdl.tib.text.ttt.TConverter;
|
||||
import org.thdl.tib.text.ttt.TTraits;
|
||||
import java.util.ArrayList;
|
||||
import org.thdl.util.RTFFixerInputStream;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.util.ThdlVersion;
|
||||
|
||||
/** TibetanConverter is a command-line utility for converting to and
|
||||
* from Tibetan Machine Web (TMW). It converts TMW to Wylie, ACIP,
|
||||
|
|
|
@ -18,17 +18,13 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.awt.datatransfer.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.rtf.*;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
|
||||
import org.thdl.tib.text.*;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import javax.swing.JTextPane;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.tib.text.TibetanRTFEditorKit;
|
||||
|
||||
/**
|
||||
* Enables display of Tibetan text using Tibetan Computer Company's
|
||||
|
|
|
@ -18,7 +18,6 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.input;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
/**
|
||||
@author David Chandler
|
||||
|
|
|
@ -18,9 +18,21 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import org.thdl.util.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Button;
|
||||
import java.awt.Checkbox;
|
||||
import java.awt.Dialog;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Frame;
|
||||
import java.awt.Panel;
|
||||
import java.awt.TextArea;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.awt.event.WindowListener;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Window that displays copyright stuff.
|
||||
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.net.*;
|
||||
import java.io.*;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
|
||||
class AcipToTab
|
||||
{
|
||||
|
|
|
@ -18,8 +18,13 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.net.*;
|
||||
import java.io.*;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
|
||||
/** Provides an interfase to convert from tibetan text transliterated in the Acip scheme to THDL's <a href="http://iris.lib.virginia.edu/tibet/tools/ewts.pdf" target="_blank">Extended Wylie</a> scheme.
|
||||
|
||||
|
|
|
@ -17,12 +17,18 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.border.*;
|
||||
import javax.swing.*;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
|
||||
/** Used by DictionaryTable to display multiple lines of
|
||||
text (in Roman script) in a single cell.
|
||||
|
||||
|
|
|
@ -18,14 +18,32 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.applet.Applet;
|
||||
import javax.swing.*;
|
||||
import java.awt.Frame;
|
||||
import java.awt.TextArea;
|
||||
import java.awt.TextComponent;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.StringSelection;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.FocusListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
import javax.swing.JApplet;
|
||||
import javax.swing.JCheckBoxMenuItem;
|
||||
import javax.swing.JMenu;
|
||||
import javax.swing.JMenuBar;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.KeyStroke;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import java.awt.event.*;
|
||||
import java.awt.datatransfer.*;
|
||||
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Inputs a Tibetan text and displays the words with
|
||||
their definitions through through a graphical interfase using a
|
||||
|
|
|
@ -17,10 +17,15 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
import org.thdl.util.Link;
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
import org.thdl.util.SimplifiedListIterator;
|
||||
import org.thdl.util.Link;
|
||||
|
||||
|
||||
/** Converts Tibetan dictionaries stored in text files
|
||||
|
|
|
@ -17,7 +17,9 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.DataInput;
|
||||
import java.io.DataOutput;
|
||||
import java.io.IOException;
|
||||
|
||||
/** Specifies a subset of dictionaries among a set of
|
||||
dictionaries. Supports a maximum of 30 dictionaries.
|
||||
|
|
|
@ -17,7 +17,9 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import java.io.DataInput;
|
||||
import java.io.DataOutput;
|
||||
import java.io.IOException;
|
||||
|
||||
/** Specifies a subset of dictionaries among a set of
|
||||
dictionaries. Supports a maximum of 30 dictionaries.
|
||||
|
|
|
@ -17,8 +17,8 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
import org.thdl.util.SimplifiedListIterator;
|
||||
|
||||
/** Provides recommended implementation of the {@link SyllableListTree}
|
||||
(currently most efficient memory-speed combination) loading
|
||||
|
|
|
@ -17,10 +17,16 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
import org.thdl.util.SimplifiedListIterator;
|
||||
|
||||
/** Inputs a Tibetan text and displays the words with their
|
||||
definitions through the console over a shell. Use when no
|
||||
|
|
|
@ -1,11 +1,30 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.io.*;
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.tib.scanner.*;
|
||||
import javax.swing.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Button;
|
||||
import java.awt.Choice;
|
||||
import java.awt.Dialog;
|
||||
import java.awt.FileDialog;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Label;
|
||||
import java.awt.List;
|
||||
import java.awt.Panel;
|
||||
import java.awt.TextField;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
import javax.swing.JFileChooser;
|
||||
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
|
||||
class CreateDatabaseWizard extends Dialog implements ActionListener, ItemListener
|
||||
{
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import javax.swing.filechooser.*;
|
||||
import java.io.File;
|
||||
|
||||
class DictionaryFileFilter extends javax.swing.filechooser.FileFilter
|
||||
{
|
||||
|
|
|
@ -17,10 +17,12 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import javax.swing.table.*;
|
||||
import java.awt.TextArea;
|
||||
|
||||
import javax.swing.ListSelectionModel;
|
||||
import javax.swing.event.ListSelectionEvent;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
/** Used by the DictionaryTable to display the full definition
|
||||
of Tibetan word displayed in a table when its row is clicked.
|
||||
|
|
|
@ -17,7 +17,9 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
|
||||
package org.thdl.tib.scanner;
|
||||
import java.io.*;
|
||||
import java.io.DataInput;
|
||||
import java.io.DataOutput;
|
||||
import java.io.IOException;
|
||||
|
||||
/** Specifies a generic interface to access and process a subset of
|
||||
dictionaries among a set of dictionaries.
|
||||
|
|
|
@ -17,10 +17,16 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.table.*;
|
||||
import javax.swing.event.*;
|
||||
import java.awt.*;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
import java.awt.TextArea;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.ListSelectionModel;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.table.TableColumn;
|
||||
import javax.swing.table.TableColumnModel;
|
||||
|
||||
/** Table of two columns that displays a Tibetan word or
|
||||
phrase (in either Tibetan or Roman script) and the
|
||||
|
|
|
@ -17,10 +17,10 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.table.*;
|
||||
import org.thdl.tib.text.TibTextUtils;
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
|
||||
import org.thdl.tib.text.DuffData;
|
||||
import org.thdl.tib.text.TibTextUtils;
|
||||
|
||||
/** Stores the words being displayed in a DictionaryTable.
|
||||
|
||||
|
|
|
@ -17,17 +17,21 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.border.*;
|
||||
import javax.swing.text.*;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.tib.text.*;
|
||||
import org.thdl.tib.text.DuffData;
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
|
||||
/** Used by DictionaryTable to display a Tibetan word or phrase
|
||||
(in either Roman or Tibetan script) in a single cell.
|
||||
|
|
|
@ -17,13 +17,30 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.table.*;
|
||||
import org.thdl.tib.input.*;
|
||||
import org.thdl.util.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.CardLayout;
|
||||
import java.awt.Choice;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Font;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Label;
|
||||
import java.awt.Panel;
|
||||
import java.awt.TextArea;
|
||||
import java.awt.event.FocusListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.event.TableModelEvent;
|
||||
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
import org.thdl.tib.input.JskadKeyboardFactory;
|
||||
import org.thdl.tib.input.JskadKeyboardManager;
|
||||
import org.thdl.tib.input.PreferenceWindow;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Graphical interfase to be used by applications and applets
|
||||
to input a Tibetan text (in Roman or Tibetan script) and
|
||||
|
|
|
@ -17,8 +17,12 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import org.thdl.util.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.RandomAccessFile;
|
||||
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
|
||||
/** Searches the words directly in a file; not the preferred
|
||||
implementation. The search is too slow!
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.net.*;
|
||||
import java.io.*;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
|
||||
class FilterHTMLDictionary
|
||||
{
|
||||
|
|
|
@ -17,10 +17,8 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
|
||||
package org.thdl.tib.scanner;
|
||||
import org.thdl.util.*;
|
||||
import java.io.*;
|
||||
import java.util.Vector;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
|
||||
/** Loads dictionary stored in tree format and searches for words recursively.
|
||||
How the the dictionary is loaded depends on which implementation of
|
||||
|
|
|
@ -18,9 +18,13 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintStream;
|
||||
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
import org.thdl.util.SimplifiedListIterator;
|
||||
|
||||
/** Loads the whole dictionary into memory; not the preferred
|
||||
implementation. Provides the fastest search, but takes up to
|
||||
|
|
|
@ -18,14 +18,15 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.tib.text.TibetanHTML;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
import javax.servlet.*;
|
||||
import javax.servlet.http.*;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.MissingResourceException;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Interfase to provide access to an on-line dictionary through a form in html;
|
||||
Inputs Tibetan text (Roman script only) and displays the
|
||||
|
|
|
@ -18,8 +18,22 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Button;
|
||||
import java.awt.Choice;
|
||||
import java.awt.Dialog;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GraphicsEnvironment;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Label;
|
||||
import java.awt.Panel;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
|
||||
class PocketPreferenceWindow extends Dialog implements ActionListener, ItemListener
|
||||
{
|
||||
|
|
|
@ -1,9 +1,19 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.image.*;
|
||||
import java.io.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Checkbox;
|
||||
import java.awt.CheckboxGroup;
|
||||
import java.awt.Choice;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FileDialog;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Label;
|
||||
import java.awt.Panel;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ItemEvent;
|
||||
|
||||
/** provides a friendly user interface when the command-line
|
||||
is not used for choosing a dictionary or connection to open.
|
||||
|
|
|
@ -18,13 +18,24 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.*;
|
||||
import java.awt.datatransfer.*;
|
||||
import org.thdl.util.*;
|
||||
import java.awt.CheckboxMenuItem;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Menu;
|
||||
import java.awt.MenuBar;
|
||||
import java.awt.MenuItem;
|
||||
import java.awt.TextArea;
|
||||
import java.awt.TextComponent;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.StringSelection;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Provides a graphical interfase to input Tibetan text (in Roman script)
|
||||
and displays the words (in Roman script) with their definitions. Use
|
||||
|
|
|
@ -17,13 +17,14 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
import javax.servlet.*;
|
||||
import javax.servlet.http.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import javax.servlet.GenericServlet;
|
||||
import javax.servlet.ServletRequest;
|
||||
import javax.servlet.ServletResponse;
|
||||
|
||||
/** Running on the server, receives the tibetan text from applet/applications running on
|
||||
the client and sends them the words with their definitions through the Internet.
|
||||
|
|
|
@ -17,9 +17,14 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import org.thdl.util.*;
|
||||
import java.net.*;
|
||||
import java.io.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
|
||||
/** Used by applets and applications to access remote on-line dictionaries.
|
||||
Sends Tibetan text, and receives the words with their definitions. The
|
||||
|
|
|
@ -17,8 +17,10 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.util.Calendar;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
/** Designed to keep a log of the transactions taking place in the
|
||||
servlet version of the translation tool.
|
||||
|
|
|
@ -17,9 +17,17 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.io.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Button;
|
||||
import java.awt.Checkbox;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Label;
|
||||
import java.awt.Panel;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.FocusListener;
|
||||
|
||||
/** Graphical interfase to be used by applications and
|
||||
applets to input a Tibetan text and displays the words with
|
||||
|
|
|
@ -17,8 +17,17 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
|
||||
package org.thdl.tib.scanner;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.CardLayout;
|
||||
import java.awt.Font;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.List;
|
||||
import java.awt.Panel;
|
||||
import java.awt.TextArea;
|
||||
import java.awt.event.FocusListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
|
||||
/** A non-Swing graphical interfase to be used by applications
|
||||
running on platforms that don't support Swing,
|
||||
|
|
|
@ -18,14 +18,20 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.datatransfer.*;
|
||||
import java.io.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.datatransfer.UnsupportedFlavorException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.thdl.tib.input.*;
|
||||
import org.thdl.tib.text.*;
|
||||
import org.thdl.util.*;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.BadLocationException;
|
||||
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.util.RTFFixerInputStream;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Identical to DuffPane except that it only supports Tibetan script in
|
||||
TibetanMachineWeb. No roman script can be inputted. If roman script is
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.image.*;
|
||||
import java.io.*;
|
||||
import javax.swing.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Checkbox;
|
||||
import java.awt.CheckboxGroup;
|
||||
import java.awt.Choice;
|
||||
import java.awt.FileDialog;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Label;
|
||||
import java.awt.Panel;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ItemEvent;
|
||||
|
||||
import javax.swing.JFileChooser;
|
||||
|
||||
/** provides a friendly user interface when the command-line
|
||||
is not used for choosing a dictionary or connection to open.
|
||||
|
|
|
@ -18,14 +18,31 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.io.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.datatransfer.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.*;
|
||||
import org.thdl.tib.input.*;
|
||||
import org.thdl.util.*;
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Menu;
|
||||
import java.awt.MenuBar;
|
||||
import java.awt.MenuItem;
|
||||
import java.awt.TextArea;
|
||||
import java.awt.TextComponent;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.StringSelection;
|
||||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.text.JTextComponent;
|
||||
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
import org.thdl.tib.input.JskadKeyboard;
|
||||
import org.thdl.util.SimpleFrame;
|
||||
import org.thdl.util.ThdlActionListener;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Provides a graphical interfase to input Tibetan text (Roman or
|
||||
Tibetan script) and displays the words (Roman or Tibetan script)
|
||||
|
|
|
@ -17,7 +17,9 @@ Contributor(s): ______________________________________.
|
|||
*/
|
||||
|
||||
package org.thdl.tib.scanner;
|
||||
import org.thdl.util.*;
|
||||
import org.thdl.util.SimplifiedLinkedList;
|
||||
import org.thdl.util.SimplifiedListIterator;
|
||||
import org.thdl.util.ThdlVersion;
|
||||
|
||||
/** Defines the core methods required to provide access to a dictionary; local or remote.
|
||||
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.image.*;
|
||||
import java.io.*;
|
||||
import javax.swing.*;
|
||||
import java.awt.Button;
|
||||
import java.awt.Checkbox;
|
||||
import java.awt.Choice;
|
||||
import java.awt.Dialog;
|
||||
import java.awt.Frame;
|
||||
import java.awt.Label;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
|
||||
/** provides a friendly user interface when the command-line
|
||||
is not used for choosing a dictionary or connection to open.
|
||||
|
|
|
@ -18,9 +18,20 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import org.thdl.util.*;
|
||||
import java.awt.CheckboxMenuItem;
|
||||
import java.awt.Font;
|
||||
import java.awt.Frame;
|
||||
import java.awt.MenuItem;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.FocusListener;
|
||||
import java.awt.event.ItemEvent;
|
||||
import java.awt.event.ItemListener;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.awt.event.WindowListener;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Provides a graphical interfase to input Tibetan text (Roman or
|
||||
Tibetan script) and displays the words (Roman or Tibetan script)
|
||||
|
|
|
@ -18,18 +18,19 @@ Contributor(s): Edward Garrett.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.border.*;
|
||||
import javax.swing.text.*;
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
import org.thdl.tib.text.*;
|
||||
import org.thdl.tib.text.DuffData;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.border.Border;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
|
||||
import org.thdl.tib.input.DuffPane;
|
||||
|
||||
/** Used by DictionaryTable to display a Tibetan word or phrase
|
||||
(in either Roman or Tibetan script) in a single cell.
|
||||
|
||||
|
|
|
@ -18,20 +18,20 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import java.util.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
import java.io.*;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.tib.text.ttt.TTraits;
|
||||
import org.thdl.tib.text.ttt.ACIPTraits;
|
||||
import org.thdl.tib.text.ttt.EWTSTraits;
|
||||
import org.thdl.tib.text.ttt.TConverter;
|
||||
import org.thdl.tib.text.tshegbar.LegalTshegBar;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeConstants;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.tib.text.ttt.ACIPTraits;
|
||||
import org.thdl.tib.text.ttt.EWTSTraits;
|
||||
import org.thdl.tib.text.ttt.TConverter;
|
||||
import org.thdl.tib.text.ttt.TTraits;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
|
||||
/**
|
||||
* Provides methods for converting back and forth between Extended
|
||||
|
|
|
@ -18,17 +18,30 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import java.util.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
import java.io.*;
|
||||
import java.awt.Color;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import javax.swing.text.AbstractDocument;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.DefaultStyledDocument;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.MutableAttributeSet;
|
||||
import javax.swing.text.Position;
|
||||
import javax.swing.text.SimpleAttributeSet;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.StyleContext;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Represents a character meant to be rendered in a certain font.
|
||||
* @author David Chandler
|
||||
|
|
|
@ -18,10 +18,12 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.lang.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.thdl.util.Trie;
|
||||
|
||||
|
|
|
@ -18,8 +18,10 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.LabelView;
|
||||
import javax.swing.text.Segment;
|
||||
import javax.swing.text.View;
|
||||
|
||||
/** A TibetanLabelView is a LabelView that has its own idea, informed
|
||||
* by its knowledge of Tibetan, about where a good place to break
|
||||
|
|
|
@ -19,20 +19,26 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import java.util.*;
|
||||
import java.net.URL;
|
||||
import java.io.*;
|
||||
import java.lang.*;
|
||||
import java.awt.Font;
|
||||
import java.awt.event.KeyEvent;
|
||||
import javax.swing.text.*;
|
||||
import java.awt.font.*;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import javax.swing.text.SimpleAttributeSet;
|
||||
import javax.swing.text.StyleConstants;
|
||||
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlLazyException;
|
||||
import org.thdl.util.Trie;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.util.Trie;
|
||||
|
||||
/**
|
||||
* Interfaces between Extended Wylie and the TibetanMachineWeb fonts.
|
||||
|
|
|
@ -18,8 +18,7 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.ViewFactory;
|
||||
import javax.swing.text.rtf.RTFEditorKit;
|
||||
|
||||
/** An EditorKit that is cognizant of the line-wrapping rules for
|
||||
|
|
|
@ -18,8 +18,10 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.AbstractDocument;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.View;
|
||||
import javax.swing.text.ViewFactory;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
/**
|
||||
* A stretch of Roman transliteration all in a certain font size.
|
||||
|
|
|
@ -18,7 +18,6 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.text.tshegbar;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
/** A UnicodeReader attempts to read from an InputStream and forms our
|
||||
* <i>TTBIR</i>, our Tibetan Tsheg Bar Internal Representation. You
|
||||
|
|
|
@ -23,9 +23,9 @@ import java.util.ArrayList;
|
|||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
/** Tests this package's ability to understand EWTS and turn it into
|
||||
* the appropriate TMW or Unicode.
|
||||
|
|
|
@ -23,11 +23,11 @@ package org.thdl.tib.text.ttt;
|
|||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.tib.text.DuffCode;
|
||||
import org.thdl.tib.text.THDLWylieConstants;
|
||||
import org.thdl.tib.text.TibTextUtils;
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
|
||||
/** A singleton class that should contain (but due to laziness and
|
||||
|
|
|
@ -27,9 +27,9 @@ import java.io.OutputStreamWriter;
|
|||
import java.util.ArrayList;
|
||||
|
||||
import org.thdl.tib.text.DuffCode;
|
||||
import org.thdl.tib.text.THDLWylieConstants;
|
||||
import org.thdl.tib.text.TibetanDocument;
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.tib.text.THDLWylieConstants;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ package org.thdl.tib.text.ttt;
|
|||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.tib.text.TGCPair;
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
|
|
|
@ -21,11 +21,11 @@ Contributor(s): ______________________________________.
|
|||
package org.thdl.tib.text.ttt;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
import org.thdl.tib.text.THDLWylieConstants;
|
||||
import org.thdl.tib.text.TibetanMachineWeb;
|
||||
|
||||
/** A factory for creating {@link TPairList TPairLists} from
|
||||
* Strings of ACIP.
|
||||
|
|
|
@ -21,7 +21,6 @@ package org.thdl.tib.text.ttt;
|
|||
import java.util.ArrayList;
|
||||
import java.util.ListIterator;
|
||||
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.tib.text.TGCList;
|
||||
import org.thdl.tib.text.TibTextUtils;
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ package org.thdl.tib.text.ttt;
|
|||
|
||||
import java.util.HashSet;
|
||||
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.tib.text.THDLWylieConstants;
|
||||
import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||
import org.thdl.util.ThdlDebug;
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
|
|
Loading…
Reference in a new issue