Made the about text a separate text file instead of having it embedded within the classes. Made other minor changes concerning getting of calls to deprecated methods.
This commit is contained in:
parent
5c722a4f15
commit
c3f85e7106
11 changed files with 1208 additions and 222 deletions
|
@ -18,6 +18,7 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Button;
|
||||
import java.awt.Checkbox;
|
||||
|
@ -42,9 +43,37 @@ import org.thdl.util.ThdlOptions;
|
|||
public class AboutDialog extends Dialog implements ActionListener, WindowListener
|
||||
{
|
||||
public static String windowAboutOption = "thdl.scanner.omit.about.window";
|
||||
public static String aboutDocument = "org/thdl/tib/scanner/about.txt";
|
||||
private Checkbox chkOmitNextTime;
|
||||
private Button close;
|
||||
|
||||
public String getAboutText()
|
||||
{
|
||||
BufferedReader input;
|
||||
input = new BufferedReader(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(aboutDocument)));
|
||||
|
||||
String line;
|
||||
StringBuffer text;
|
||||
text = new StringBuffer(TibetanScanner.version);
|
||||
text.append("\n\n");
|
||||
text.append(TibetanScanner.copyrightUnicode);
|
||||
text.append('\n');
|
||||
try
|
||||
{
|
||||
while ((line=input.readLine())!=null)
|
||||
{
|
||||
text.append('\n');
|
||||
text.append(line);
|
||||
}
|
||||
}
|
||||
catch (IOException ioe)
|
||||
{
|
||||
ioe.printStackTrace();
|
||||
return "";
|
||||
}
|
||||
return text.toString();
|
||||
}
|
||||
|
||||
public AboutDialog(Frame parent, boolean pocketpc)
|
||||
{
|
||||
super(parent, "About...", true);
|
||||
|
@ -56,7 +85,7 @@ public class AboutDialog extends Dialog implements ActionListener, WindowListene
|
|||
p.add(close, BorderLayout.EAST);
|
||||
add(p, BorderLayout.NORTH);
|
||||
close.addActionListener(this);
|
||||
TextArea ta = new TextArea(TibetanScanner.aboutUnicode,0,0,TextArea.SCROLLBARS_VERTICAL_ONLY);
|
||||
TextArea ta = new TextArea(getAboutText(),0,0,TextArea.SCROLLBARS_VERTICAL_ONLY);
|
||||
ta.setEditable(false);
|
||||
addWindowListener(this);
|
||||
add(ta, BorderLayout.CENTER);
|
||||
|
|
|
@ -75,7 +75,7 @@ public class OnLineScannerFilter extends HttpServlet
|
|||
{
|
||||
String answer, parrafo = null, checkboxName;
|
||||
|
||||
// if this line is included in the constructor, it works on the iris server but not on wyllie!
|
||||
// if this line is included in the constructor, it works on the orion server but not on wyllie!
|
||||
ThdlOptions.setUserPreference("thdl.rely.on.system.tmw.fonts", true);
|
||||
ThdlOptions.setUserPreference("thdl.rely.on.system.tm.fonts", true);
|
||||
|
||||
|
@ -98,12 +98,8 @@ public class OnLineScannerFilter extends HttpServlet
|
|||
boolean checkedDicts[], allUnchecked, wantsTibetan, useTHDLBanner = (request.getParameter("thdlBanner")!=null);
|
||||
// int percent=100;
|
||||
|
||||
if (useTHDLBanner)
|
||||
{
|
||||
out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">");
|
||||
}
|
||||
else out.println("<html>");
|
||||
|
||||
out.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
|
||||
out.println("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
|
||||
out.println("<head>");
|
||||
if (useTHDLBanner)
|
||||
{
|
||||
|
@ -144,20 +140,7 @@ public class OnLineScannerFilter extends HttpServlet
|
|||
|
||||
if (useTHDLBanner)
|
||||
{
|
||||
out.println("<div id=\"banner\">");
|
||||
out.println(" <a id=\"logo\" href=\"/thdl/index.html\"><img id=\"test\" alt=\"THDL Logo\" src=\"/thdl/images/logo.png\"/></a>");
|
||||
out.println(" <h1>Tibetan and Himalayan Digital Library</h1>");
|
||||
out.println(" <div id=\"menubar\">");
|
||||
out.println(" <script type=\'text/javascript\'>function Go(){return}</script>");
|
||||
out.println(" <script type=\'text/javascript\' src=\'/thdl/scripts/new/thdl_menu_config.js\'></script>");
|
||||
out.println(" <script type=\'text/javascript\' src=\'/thdl/scripts/new/menu_new.js\'></script>");
|
||||
out.println(" <script type=\'text/javascript\' src=\'/thdl/scripts/new/menu9_com.js\'></script>");
|
||||
out.println(" <noscript><p>Your browser does not support javascript.</p></noscript>");
|
||||
out.println(" <div id=\'MenuPos\' >Menu Loading... </div>");
|
||||
|
||||
out.println(" </div><!--END menubar-->");
|
||||
out.println("</div><!--END banner-->");
|
||||
|
||||
out.println("<script type=\"text/javascript\" src=\"/thdl/scripts/banner.js\"></script>");
|
||||
out.println("<div id=\"sub_banner\">");
|
||||
out.println("<div id=\"search\">");
|
||||
out.println(" <form method=\"get\" action=\"http://www.google.com/u/thdl\">");
|
||||
|
@ -258,7 +241,7 @@ public class OnLineScannerFilter extends HttpServlet
|
|||
// out.println(" </tr>");
|
||||
}
|
||||
// fix for updates
|
||||
else ds = new BitDictionarySource().getAllDictionaries();
|
||||
else ds = BitDictionarySource.getAllDictionaries();
|
||||
// out.println("</table>");
|
||||
out.println("</p>");
|
||||
out.println("<table border=\"0\" width=\"100%\">");
|
||||
|
|
|
@ -42,7 +42,7 @@ class PocketWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
|
||||
availDictsOnline.add("Public");
|
||||
|
||||
availDictsOnline.add("Private");
|
||||
//availDictsOnline.add("Private");
|
||||
|
||||
p.add(availDictsOnline, BorderLayout.EAST);
|
||||
this.add(p);
|
||||
|
@ -91,7 +91,7 @@ class PocketWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
else if (obj == browse)
|
||||
{
|
||||
fd = new FileDialog(owner, "Select dictionary to open", FileDialog.LOAD);
|
||||
fd.show();
|
||||
fd.setVisible(true);
|
||||
fileName = fd.getFile();
|
||||
if (fileName!= null)
|
||||
{
|
||||
|
@ -143,7 +143,7 @@ class PocketWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
if (availDictsOnline!=null) availDictsOnline.setEnabled(false);
|
||||
ok.setEnabled(!localDict.getText().equals(""));
|
||||
response = localDict.getText();
|
||||
dictType = 2;
|
||||
dictType = dictTypes.length-1;
|
||||
}
|
||||
}
|
||||
else if (obj instanceof Choice)
|
||||
|
|
|
@ -34,6 +34,9 @@ import java.awt.datatransfer.StringSelection;
|
|||
import java.awt.datatransfer.Transferable;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintStream;
|
||||
|
||||
import org.thdl.util.ThdlOptions;
|
||||
|
||||
|
@ -73,7 +76,7 @@ public class PocketWindowScannerFilter extends WindowScannerFilter
|
|||
{
|
||||
PocketWhichDictionaryFrame wdf = new PocketWhichDictionaryFrame(mainWindow);
|
||||
wdf.setFont(WindowScannerFilter.getTHDLFont());
|
||||
wdf.show();
|
||||
wdf.setVisible(true);
|
||||
return wdf;
|
||||
}
|
||||
|
||||
|
@ -167,14 +170,14 @@ public class PocketWindowScannerFilter extends WindowScannerFilter
|
|||
mainWindow.setSize(d);
|
||||
// mainWindow.setSize(240,320);
|
||||
//else mainWindow.setSize(500,600);
|
||||
mainWindow.show();
|
||||
mainWindow.setVisible(true);
|
||||
mainWindow.toFront();
|
||||
|
||||
if (!ThdlOptions.getBooleanOption(AboutDialog.windowAboutOption))
|
||||
{
|
||||
// hardwiring pocketpc
|
||||
diagAbout = new AboutDialog(mainWindow, true);
|
||||
diagAbout.show();
|
||||
diagAbout.setVisible(true);
|
||||
|
||||
if (diagAbout.omitNextTime())
|
||||
{
|
||||
|
@ -190,9 +193,26 @@ public class PocketWindowScannerFilter extends WindowScannerFilter
|
|||
}
|
||||
}
|
||||
|
||||
public static void printSyntax()
|
||||
{
|
||||
System.out.println("Sintaxis: java PocketWindowScannerFilter [-firsttime] dict-file");
|
||||
System.out.println(TibetanScanner.copyrightASCII);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
String os;
|
||||
PrintStream ps;
|
||||
String response;
|
||||
|
||||
try
|
||||
{
|
||||
ps = new PrintStream(new FileOutputStream(System
|
||||
.getProperty("user.home") + "/tt.log"));
|
||||
System.setOut(ps);
|
||||
System.setErr(ps);
|
||||
} catch (FileNotFoundException fnfe) {
|
||||
}
|
||||
|
||||
switch(args.length)
|
||||
{
|
||||
case 0:
|
||||
|
@ -201,11 +221,36 @@ public class PocketWindowScannerFilter extends WindowScannerFilter
|
|||
case 1:
|
||||
if (args[0]==null || args[0].trim().equals("")) new PocketWindowScannerFilter();
|
||||
else new PocketWindowScannerFilter(args[0]);
|
||||
break;
|
||||
case 2:
|
||||
if (args[0].equals("-firsttime"))
|
||||
{
|
||||
response = ThdlOptions.getStringOption(firstTimeOption);
|
||||
if (response==null || response.equals("") || !response.equals("no"))
|
||||
{
|
||||
ThdlOptions.setUserPreference(defOpenOption, args[1]);
|
||||
ThdlOptions.setUserPreference(dictOpenType, "local");
|
||||
ThdlOptions.setUserPreference(firstTimeOption, "no");
|
||||
try
|
||||
{
|
||||
ThdlOptions.saveUserPreferences();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
}
|
||||
new PocketWindowScannerFilter(args[1]);
|
||||
}
|
||||
else new PocketWindowScannerFilter();
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Syntax error! Invalid option.");
|
||||
printSyntax();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.out.println("Syntax error!");
|
||||
System.out.println("Sintaxis: java PocketWindowScannerFilter arch-dict");
|
||||
System.out.println(TibetanScanner.copyrightASCII);
|
||||
printSyntax();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,7 +271,7 @@ public class PocketWindowScannerFilter extends WindowScannerFilter
|
|||
diagAbout = new AboutDialog(mainWindow, true);
|
||||
}
|
||||
diagAbout.setFont(WindowScannerFilter.getTHDLFont());
|
||||
diagAbout.show();
|
||||
diagAbout.setVisible(true);
|
||||
ThdlOptions.setUserPreference(AboutDialog.windowAboutOption, diagAbout.omitNextTime());
|
||||
try
|
||||
{
|
||||
|
|
|
@ -139,6 +139,7 @@ public class RemoteTibetanScanner extends TibetanScanner
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,9 @@ class SwingWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
p.add(useOnline, BorderLayout.WEST);
|
||||
|
||||
availDictsOnline.add("Public version");
|
||||
availDictsOnline.add("Private version (only within UVa)");
|
||||
|
||||
if (TibetanScanner.mode == TibetanScanner.DEBUG_MODE)
|
||||
availDictsOnline.add("Local version (development)");
|
||||
|
||||
p.add(availDictsOnline, BorderLayout.EAST);
|
||||
this.add(p);
|
||||
|
@ -79,16 +81,13 @@ class SwingWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
public void actionPerformed(ActionEvent e)
|
||||
{
|
||||
Object obj = e.getSource();
|
||||
FileDialog fd;
|
||||
String fileName;
|
||||
int pos;
|
||||
|
||||
if (obj == ok)
|
||||
{
|
||||
if (response.equals(""))
|
||||
{
|
||||
if (cdw==null) cdw = new CreateDatabaseWizard(owner);
|
||||
cdw.show();
|
||||
cdw.setVisible(true);
|
||||
response = cdw.getResponse();
|
||||
}
|
||||
if (!response.equals("")) this.setVisible(false);
|
||||
|
@ -125,6 +124,8 @@ class SwingWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
public void itemStateChanged(ItemEvent e)
|
||||
{
|
||||
Object obj = e.getSource();
|
||||
int dictNumber;
|
||||
|
||||
if (obj instanceof Checkbox)
|
||||
{
|
||||
Checkbox chx = (Checkbox) obj;
|
||||
|
@ -135,8 +136,9 @@ class SwingWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
browse.setEnabled(false);
|
||||
availDictsOnline.setEnabled(true);
|
||||
ok.setEnabled(true);
|
||||
dictType = availDictsOnline.getSelectedIndex();
|
||||
response = dictsOnline[dictType];
|
||||
dictNumber = availDictsOnline.getSelectedIndex();
|
||||
dictType = dictNumber + 1;
|
||||
response = dictsOnline[dictNumber];
|
||||
}
|
||||
else if (chx == useOffline)
|
||||
{
|
||||
|
@ -145,7 +147,7 @@ class SwingWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
if (availDictsOnline!=null) availDictsOnline.setEnabled(false);
|
||||
ok.setEnabled(!localDict.getText().equals(""));
|
||||
response = localDict.getText();
|
||||
dictType = 2;
|
||||
dictType = 0;
|
||||
}
|
||||
else if (chx == createNewDictDB)
|
||||
{
|
||||
|
@ -154,14 +156,15 @@ class SwingWhichDictionaryFrame extends WhichDictionaryFrame
|
|||
if (availDictsOnline!=null) availDictsOnline.setEnabled(false);
|
||||
ok.setEnabled(true);
|
||||
response="";
|
||||
dictType = 2;
|
||||
dictType = 0;
|
||||
}
|
||||
}
|
||||
else if (obj instanceof Choice)
|
||||
{
|
||||
Choice ch = (Choice) obj;
|
||||
dictType = ch.getSelectedIndex();
|
||||
response = dictsOnline[dictType];
|
||||
dictNumber = ch.getSelectedIndex();
|
||||
dictType = dictNumber + 1;
|
||||
response = dictsOnline[dictNumber];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ Contributor(s): ______________________________________.
|
|||
|
||||
package org.thdl.tib.scanner;
|
||||
|
||||
import java.io.*;
|
||||
import java.awt.*;
|
||||
import java.awt.datatransfer.DataFlavor;
|
||||
import java.awt.datatransfer.StringSelection;
|
||||
|
@ -39,7 +40,7 @@ import org.thdl.util.ThdlOptions;
|
|||
with their definitions. Works without Tibetan script in
|
||||
platforms that don't support Swing. Can access dictionaries stored
|
||||
locally or remotely. For example, to access the public dictionary database run the command:</p>
|
||||
<pre>java -jar DictionarySearchStandalone.jar http://iris.lib.virginia.edu/tibetan/servlet/org.thdl.tib.scanner.RemoteScannerFilter</pre>
|
||||
<pre>java -jar DictionarySearchStandalone.jar http://orion.lib.virginia.edu/tibetan/servlet/org.thdl.tib.scanner.RemoteScannerFilter</pre>
|
||||
<p>If the JRE you installed does not support <i> Swing</i> classes but supports
|
||||
<i>
|
||||
AWT</i> (as the JRE for handhelds), run the command: </p>
|
||||
|
@ -49,8 +50,6 @@ import org.thdl.util.ThdlOptions;
|
|||
*/
|
||||
public class SwingWindowScannerFilter extends WindowScannerFilter
|
||||
{
|
||||
private static String firstTimeOption = "thdl.scanner.first.time";
|
||||
|
||||
public SwingWindowScannerFilter()
|
||||
{
|
||||
super();
|
||||
|
@ -64,7 +63,7 @@ public class SwingWindowScannerFilter extends WindowScannerFilter
|
|||
protected WhichDictionaryFrame getWhichDictionaryFrame()
|
||||
{
|
||||
WhichDictionaryFrame wdf = new SwingWhichDictionaryFrame(mainWindow);
|
||||
wdf.show();
|
||||
wdf.setVisible(true);
|
||||
return wdf;
|
||||
}
|
||||
|
||||
|
@ -185,14 +184,14 @@ public class SwingWindowScannerFilter extends WindowScannerFilter
|
|||
mainWindow.setSize(d);
|
||||
// mainWindow.setSize(240,320);
|
||||
//else mainWindow.setSize(500,600);
|
||||
mainWindow.show();
|
||||
mainWindow.setVisible(true);
|
||||
mainWindow.toFront();
|
||||
sp.setFocusToInput();
|
||||
|
||||
if (!ThdlOptions.getBooleanOption(AboutDialog.windowAboutOption))
|
||||
{
|
||||
diagAbout = new AboutDialog(mainWindow, false);
|
||||
diagAbout.show();
|
||||
diagAbout.setVisible(true);
|
||||
|
||||
if (diagAbout.omitNextTime())
|
||||
{
|
||||
|
@ -216,23 +215,39 @@ public class SwingWindowScannerFilter extends WindowScannerFilter
|
|||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
String response;
|
||||
String response, dictionaryName=null;
|
||||
PrintStream ps;
|
||||
try
|
||||
{
|
||||
ps = new PrintStream(new FileOutputStream(System
|
||||
.getProperty("user.home") + "/tt.log"));
|
||||
System.setOut(ps);
|
||||
System.setErr(ps);
|
||||
} catch (FileNotFoundException fnfe) {
|
||||
}
|
||||
|
||||
switch(args.length)
|
||||
if (args.length==0)
|
||||
{
|
||||
case 0:
|
||||
new SwingWindowScannerFilter();
|
||||
break;
|
||||
case 1:
|
||||
new SwingWindowScannerFilter(args[0]);
|
||||
break;
|
||||
case 2:
|
||||
if (args[0].equals("-firsttime"))
|
||||
}
|
||||
else
|
||||
{
|
||||
int current=0;
|
||||
while(current<args.length)
|
||||
{
|
||||
if (args[current].equals("-firsttime"))
|
||||
{
|
||||
current++;
|
||||
if (current==args.length)
|
||||
{
|
||||
System.out.println("Dictionary name expected after -firsttime option!");
|
||||
printSyntax();
|
||||
return;
|
||||
}
|
||||
response = ThdlOptions.getStringOption(firstTimeOption);
|
||||
if (response==null || response.equals("") || !response.equals("no"))
|
||||
{
|
||||
ThdlOptions.setUserPreference(defOpenOption, args[1]);
|
||||
ThdlOptions.setUserPreference(defOpenOption, args[current]);
|
||||
ThdlOptions.setUserPreference(dictOpenType, "local");
|
||||
ThdlOptions.setUserPreference(firstTimeOption, "no");
|
||||
try
|
||||
|
@ -242,19 +257,23 @@ public class SwingWindowScannerFilter extends WindowScannerFilter
|
|||
catch (Exception e)
|
||||
{
|
||||
}
|
||||
new SwingWindowScannerFilter(args[1]);
|
||||
dictionaryName = args[current];
|
||||
}
|
||||
else new SwingWindowScannerFilter();
|
||||
current++;
|
||||
}
|
||||
else if (args[current].equals("-debug"))
|
||||
{
|
||||
TibetanScanner.mode = TibetanScanner.DEBUG_MODE;
|
||||
current++;
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Syntax error! Invalid option.");
|
||||
printSyntax();
|
||||
dictionaryName = args[current];
|
||||
current++;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.out.println("Syntax error!");
|
||||
printSyntax();
|
||||
}
|
||||
if (dictionaryName==null) new SwingWindowScannerFilter();
|
||||
else new SwingWindowScannerFilter(dictionaryName);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -270,7 +289,7 @@ public class SwingWindowScannerFilter extends WindowScannerFilter
|
|||
if (clicked == mnuAbout)
|
||||
{
|
||||
if (diagAbout==null) diagAbout = new AboutDialog(mainWindow, false);
|
||||
diagAbout.show();
|
||||
diagAbout.setVisible(true);
|
||||
ThdlOptions.setUserPreference(AboutDialog.windowAboutOption, diagAbout.omitNextTime());
|
||||
try
|
||||
{
|
||||
|
|
|
@ -27,145 +27,19 @@ import org.thdl.util.ThdlVersion;
|
|||
*/
|
||||
public abstract class TibetanScanner
|
||||
{
|
||||
public static final String version = "The Tibetan to English Translation Tool, version 3.1.1 compiled on " + ThdlVersion.getTimeOfCompilation() + ". ";
|
||||
public static final String copyrightUnicode="Copyright " + '\u00A9' + " 2000-2004 by Andr" + '\u00E9' + "s Montano Pellegrini, all rights reserved.";
|
||||
public static final String copyrightASCII="Copyright 2000-2004 by Andres Montano Pellegrini, all rights reserved.";
|
||||
public static final String copyrightHTML="<hr><small><strong>" + version + "Copyright © 2000-2004 by <a href=\"http://www.people.virginia.edu/~am2zb/\" target=\"_blank\">Andrés Montano Pellegrini.</a><br/>All rights reserved.</strong></small>";
|
||||
public static final String aboutUnicode=
|
||||
"Warning: Since version 1.3.0. the dictionary database format changed and " +
|
||||
"is incompatible with previous versions. In order to use the newest version " +
|
||||
"you have to re-build the dictionary database.\n\n" +
|
||||
version +
|
||||
"Copyright " + '\u00A9' + " 2000-2004 Andr" + '\u00E9' + "s Montano Pellegrini, all rights reserved.\n\n" +
|
||||
"This software is protected by the terms of the AMP Open Community License, " +
|
||||
"Version 1.0 (available at www.tibet.iteso.mx/Guatemala/). The Tibetan script " +
|
||||
"input facility was built by THDL's Edward Garrett (http://www.thdl.org/).\n" +
|
||||
"It uses Tibetan Computer Company (http://www.tibet.dk/tcc/)fonts created by " +
|
||||
"Tony Duff and made available by the Trace Foundation (http://trace.org/).\n\n" +
|
||||
"About the Tibetan-Sanskrit Table of Buddhist Terminology based on the Yogacarabhumi:\n\n" +
|
||||
"The Tibetan-Sanskrit tab separated database file was extracted, converted, " +
|
||||
"filtered, and sorted by Richard B. Mahoney from YOKOYAMA, Koitsu & HIROSAWA, " +
|
||||
"Takayuki, eds., Index to the Yogacarabhumi (Chinese-Sanskrit-Tibetan) (Tokyo : " +
|
||||
"Sankibo Busshorin, 1996). See http://homepages.comnet.co.nz/~r-mahoney/links/links.html " +
|
||||
"for details.\n\n" +
|
||||
"About Rangjung Yeshe Tibetan-English Dharma Dictionary 3.0:\n\n" +
|
||||
"Copyright " + '\u00A9' + " Rangjung Yeshe Publications and the individual contributors.\n\n" +
|
||||
"The Rangjung Yeshe Tibetan-English Dharma Dictionary is specifically licensed to " +
|
||||
"Andres Montano by Rangjung Yeshe Publications. Permission must be obtained " +
|
||||
"directly from Rangjung Yeshe Publications for any other public display of the " +
|
||||
"dictionary.\n\n" +
|
||||
"Users desiring off-line access to the dictionary through The Tibetan to " +
|
||||
"English Translation Tool must purchase the dictionary directly with Rangjung " +
|
||||
"Yeshe Publications. See http://www.rangjung.com/ry-dic.htm for details.\n\n" +
|
||||
"About Jeffrey Hopkins' Tibetan-Sanskrit-English Dictionary Version 2.0.0:\n\n" +
|
||||
"Formulator and Editor: Jeffrey Hopkins\n" +
|
||||
"Contributors: Joe Wilson, Craig Preston, John Powers, Nathaniel Garson, " +
|
||||
"Paul Hackett, Andres Montano\n\n" +
|
||||
"A project of the Tibetan Studies Institute, Boonesville, Virginia, and the " +
|
||||
"University of Virginia Tibetan Studies Program\n\n" +
|
||||
"\u00A9 Jeffrey Hopkins 1992.\n\n" +
|
||||
"Apology\n\n" +
|
||||
"This is a work in progress in crude form that is being shared with students " +
|
||||
"of the Tibetan language mainly in order to receive input for further " +
|
||||
"development. The English translations of the entries can be said only to " +
|
||||
"represent what contributors, over a span of over thirty years, thought were " +
|
||||
"my current translations. A small number are simply wrong; others need to be " +
|
||||
"updated; and all will receive much more attention and, hence, detail.\n\n" +
|
||||
"The Dictionary has been entered into a database with fields for the entry, " +
|
||||
"Sanskrit, tenses, my English, a few others’ interests, examples, " +
|
||||
"definition, divisions, and comments. At this point, very few entries " +
|
||||
"contain all of these items, but the plan is provide these, where " +
|
||||
"appropriate, over the years. Translations for entries that have arisen from " +
|
||||
"my work and from interactions with my students are in boldface, whereas " +
|
||||
"those from other works are in regular type on separate lines and are marked " +
|
||||
"with an initial at the end of the line. A key to these markings is given on " +
|
||||
"the next page.\n\n" +
|
||||
"(Please note that the radical signs for Sanskrit roots are, after the first " +
|
||||
"letter of the alphabet, in a state of disarray.)\n\n" +
|
||||
"I hope that you will bear with the many inadequacies of this first release.\n\n" +
|
||||
" Paul Jeffrey Hopkins\n" +
|
||||
" Professor of Tibetan Studies\n\n" +
|
||||
"Abbreviations\n\n" +
|
||||
"B-7: ??? {PH: see dngos med ... & dngos po (synonyms) }\n\n" +
|
||||
"BJ: Bel-jor-hlun-drup (Dpal \'byor lhun grub). Legs bshad snying po\'i dka' " +
|
||||
"\'grel bstan pa\'i sgron me (Buxaduar: Sera Monastery, 1968).\n\n" +
|
||||
"BK: ??? {PH: see bka\' (examples) }\n\n" +
|
||||
"BR: Losang Gyatso (Blo bzang rgya mtsho). Presentation of Knowledge and " +
|
||||
"Awareness (Blo rig).\n\n" +
|
||||
"BWT: Ngak-wang-bel-den (Ngag dbang dpal ldan). Annotations for " +
|
||||
"[Jam-yang-shay-ba\'s] \"Tenets\" (Grub mtha\' chen mo\'i mchan).\n\n" +
|
||||
"C: Conze, Edward. Materials for a Dictionary of the Prajnaparamita " +
|
||||
"Literature (Tokyo: Suzuki Research Foundation, 1967).\n\n" +
|
||||
"col.: colloquial\n\n" +
|
||||
"D1: Pur-bu-jok (Phur bu lcog). Presentation of the Collected Topics " +
|
||||
"(Part 1: Bsdus grwa chung ngu).\n\n" +
|
||||
"D2: Pur-bu-jok (Phur bu lcog). Presentation of the Collected Topics " +
|
||||
"(Part 2: Bsdus grwa \'bring).\n\n" +
|
||||
"DASI: Decisive Analysis of Special Insight.\n\n" +
|
||||
"DG: Germano, David. Poetic Thought, the Intelligent Universe, and the " +
|
||||
"Mystery of Self: the Tantric Synthesis of rDzogs Chen in Fourteenth Century " +
|
||||
"Tibet. (Ph.d. dissertation, University of Wisconsin, Madison,WI 1992).\n\n" +
|
||||
"DK: Dzong-ka-ba (Tsong kha pa blo bzang grags pa). Drang ba dang nges pa\'i " +
|
||||
"don rnam par phye ba'i bstan bcos legs bshad snying po (Sarnath: Pleasure of " +
|
||||
"Elegant Sayings Press, 1979).\n\n" +
|
||||
"Ganden Triba: Oral commentary of Ganden Triba Jam-bel-shen-pen.\n\n" +
|
||||
"GCT: Ngak-wang-dra-shi (Ngag dbang bkra shis). Collected Topics by a " +
|
||||
"Spiritual Son of Jam-yang-shay-ba (Sgo mang sras bsdus grwa).\n\n" +
|
||||
"GD: Dreyfus, George. Ontology, Philosophy of Language, and Epistemology in " +
|
||||
"Buddhist Tradition (Ph.d. dissertation. Religious Studies, University of " +
|
||||
"Virginia, Charlottesville,VA 1991).\n\n" +
|
||||
"Gon-chok: Gon-chok-jik-may-wang-bo (Dkon mchog \'jigs med dbang po). " +
|
||||
"Precious Garland of Tenets (Grub mtha\' rin chen phreng ba).\n\n" +
|
||||
"Jang.: Jang-gya (Lcang skya rol pa\'i rdo rje). " +
|
||||
"Presentation of Tenets (Lcang skya grub mtha').\n\n" +
|
||||
"JKA: ??? {PH: see mngon sum (definition) } \n\n" +
|
||||
"KS: Khetsun Sangpo, Biographical Dictionary of Tibet and Tibetan Buddhism. " +
|
||||
"(LTWA: Dharamsala, HP)\n\n" +
|
||||
"L: Lamotte, Etienne. Samdhinirmocana-sutra " +
|
||||
"(Louvain: Universite de Louvain, 1935).\n\n" +
|
||||
"LAK: Jam-bel-sam-pel (\'Jam dpal bsam phel). Presentation of Awareness and " +
|
||||
"Knowledge (Blo rig gi rnam bzhag).\n\n" +
|
||||
"Lati: Oral commentary by Lati Rinbochay.\n\n" +
|
||||
"LCh: Chandra, Lokesh. Tibetan-Sanskrit Dictionary (New Delhi, 1987).\n\n" +
|
||||
"LG: Losang Gyatso\'s Blo rig.\n\n" +
|
||||
"LM: ??? {PH: see skye bu chung ngu ... }\n\n" +
|
||||
"LR: Hopkins, Jeffrey. Glossary for Gsung rab kun gyi snying po lam rim gyi " +
|
||||
"gtso bo rnam pa gsung gi khrid yid gzhan phan snying po (by Panchen Lama IV).\n\n" +
|
||||
"LSR: Tsul-trim-nam-gyel (Tshul khrims rnam rgyal). Presentation of Signs " +
|
||||
"and Reasonings (Rtags rigs kyi rnam bzhag).\n\n" +
|
||||
"LWT: Lo-sang-gon-chok (Blo bzang dkon mchog). Word Commentary on the Root " +
|
||||
"Text of [Jam-yang-shay-ba\'s] \"Tenets\".\n\n" +
|
||||
"ME: Hopkins, Jeffrey. Meditation on Emptiness (London, Wisdom, 1983).\n\n" +
|
||||
"MGP: ??? {PH: see bkag (examples) }\n\n" +
|
||||
"MSA: Nagao, Gadjin. Index to the Mahayanasutralankara (Tokyo: Nippon " +
|
||||
"Gakujutsu Shinkvo-kai, 1958).\n\n" +
|
||||
"MSI: Dzong-ka-ba (Tsong kha pa blo bzang grags pa). Middling Exposition of " +
|
||||
"Special Insight (Lhag mthong \'bring).\n\n" +
|
||||
"MV: Nagao, Gadjin. Index to the Madhyanta-vibhaga (Tokyo: 1961).\n\n" +
|
||||
"N: Zuiryu NAKAMURA. Index to the Ratnagotravibhaga-mahayanottaratantra-sastra " +
|
||||
"(Tokyo, 1961).\n\n" +
|
||||
"P: Peking edition of the Tripitaka.\n\n" +
|
||||
"PGP: Lo-sang-da-yang (Blo bzang rta dbyangs). Presentation of the Grounds " +
|
||||
"and Paths in Prasangika (Thal \'gyur pa\'i sa lam).\n\n" +
|
||||
"PP: Candrakirti. Prasannapada.\n\n" +
|
||||
"S: Samdhinirmocana-sutra (Tok Palace version, 160 pp., Leh, Ladakh: Shesrig " +
|
||||
"Dpemzod, 1975-1980, vol. ja).\n\n" +
|
||||
"TAK: Pur-bu-jok (Phur bu lcog). Explanation of the Presentation of Objects " +
|
||||
"and Object-Possessors as Well as Awareness and Knowledge (Yul dang yul can " +
|
||||
"dang blo rig).\n\n" +
|
||||
"TCT: Pur-bu-jok (Phur bu lcog). Presentation of the Collected Topics (Yongs " +
|
||||
"\'dzin bsdus grwa).\n\n" +
|
||||
"TGP: Nga-wang-bel-den (Ngag dbang dpal ldan). Treatise Illuminating the " +
|
||||
"Presentation of the Four Great Secret Tantra Sets (Sngags kyi sa lam).\n\n" +
|
||||
"TN: Vasubandhu. Trisvabhavanirdesha.\n\n" +
|
||||
"VM: Bu-don-rin-chen-drup (bu ston rin chen grub), The Practice of " +
|
||||
"(Jnandagarbha\'s) \"The Rite of the Vajra-Element Mandala: The Source of All " +
|
||||
"Vajras\": A Precious Enhancer of Thought (rDo rje dbyings kyi dkyil \'khor gyi " +
|
||||
"cho ga rdo rje thams cad \'byung ba zhes bya ba\'i lag len rin chen bsam \'phel), " +
|
||||
"in Collected Works, Part 12 na. Lhasa: Zhol Printing House, 1990.\n\n" +
|
||||
"Y: Susumi YAMAGUCHI.Index to the Prasannapada Madhyamakavrtti. " +
|
||||
"(Kyoto: Heirakuji-Shoten, 1974).\n\n" +
|
||||
"YT: Oral commentary by Yeshi Thupten.";
|
||||
public static final String version = "The Tibetan to English Translation Tool, version 3.2.1 compiled on " + ThdlVersion.getTimeOfCompilation() + ". ";
|
||||
public static final String copyrightUnicode="Copyright " + '\u00A9' + " 2000-2005 by Andr" + '\u00E9' + "s Montano Pellegrini, all rights reserved.";
|
||||
public static final String copyrightASCII="Copyright 2000-2005 by Andres Montano Pellegrini, all rights reserved.";
|
||||
public static final String copyrightHTML="<hr><small><strong>" + version + "Copyright © 2000-2005 by <a href=\"http://www.people.virginia.edu/~am2zb/\" target=\"_blank\">Andrés Montano Pellegrini.</a><br/>All rights reserved.</strong></small>";
|
||||
|
||||
public static final int NORMAL_MODE=1;
|
||||
public static final int DEBUG_MODE=2;
|
||||
public static int mode;
|
||||
|
||||
static
|
||||
{
|
||||
mode = NORMAL_MODE;
|
||||
}
|
||||
|
||||
public static final String aboutTomeraider=
|
||||
"Welcome to Jeffrey Hopkins' Tibetan-Sanskrit-English Dictionary version 2.0.0!<p>\n" +
|
||||
|
|
|
@ -35,15 +35,23 @@ abstract class WhichDictionaryFrame extends Dialog implements ActionListener, It
|
|||
response="";
|
||||
|
||||
// FIXME: values should not be hardwired
|
||||
if (TibetanScanner.mode == TibetanScanner.DEBUG_MODE)
|
||||
{
|
||||
dictsOnline = new String[2];
|
||||
dictsOnline[0] = "http://iris.lib.virginia.edu/tibetan/servlet/org.thdl.tib.scanner.RemoteScannerFilter";
|
||||
dictsOnline[1] = "http://wyllie.lib.virginia.edu/tibetan/servlet/org.thdl.tib.scanner.RemoteScannerFilter";
|
||||
|
||||
dictsOnline[1] = "http://localhost:8080/tibetan/org.thdl.tib.scanner.RemoteScannerFilter";
|
||||
dictTypes = new String[3];
|
||||
dictTypes[0] = "public";
|
||||
dictTypes[1] = "private";
|
||||
dictTypes[2] = "local";
|
||||
//dictsOnline[2] = "http://localhost:8080/tibetan/servlet/org.thdl.tib.scanner.RemoteScannerFilter";
|
||||
dictTypes[2] = "development";
|
||||
}
|
||||
else
|
||||
{
|
||||
dictsOnline = new String[1];
|
||||
dictTypes = new String[2];
|
||||
}
|
||||
|
||||
dictsOnline[0] = "http://www.thdl.org/tibetan/servlet/org.thdl.tib.scanner.RemoteScannerFilter";
|
||||
|
||||
dictTypes[0] = "local";
|
||||
dictTypes[1] = "public";
|
||||
|
||||
availDictsOnline = new Choice();
|
||||
//availDictsOnline.add("Local (only on my computer!)");
|
||||
|
@ -54,7 +62,7 @@ abstract class WhichDictionaryFrame extends Dialog implements ActionListener, It
|
|||
localDict = new Label();
|
||||
localDict.setEnabled(true);
|
||||
|
||||
dictType = 2;
|
||||
dictType = 0;
|
||||
|
||||
browse = new Button("Browse...");
|
||||
browse.setEnabled(true);
|
||||
|
|
|
@ -52,6 +52,7 @@ public abstract class WindowScannerFilter implements WindowListener, FocusListen
|
|||
protected static String defaultFontSize = "thdl.default.roman.font.size";
|
||||
protected static String defaultInputRows = "thdl.scanner.input-pane.rows";
|
||||
protected static String defaultOutputRows = "thdl.scanner.output-pane.rows";
|
||||
protected static String firstTimeOption = "thdl.scanner.first.time";
|
||||
|
||||
protected ScannerPanel sp;
|
||||
protected MenuItem mnuExit, mnuCut, mnuCopy, mnuPaste, mnuDelete, mnuSelectAll, mnuAbout, mnuClear, mnuOpen, mnuPreferences, mnuSavePref, mnuTranslate;
|
||||
|
|
1023
source/org/thdl/tib/scanner/about.txt
Normal file
1023
source/org/thdl/tib/scanner/about.txt
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue