org.thdl.tib.scanner
Class LocalTibetanScanner

java.lang.Object
  |
  +--org.thdl.tib.scanner.LocalTibetanScanner
All Implemented Interfaces:
TibetanScanner

public class LocalTibetanScanner
extends Object
implements TibetanScanner

Loads dictionary stored in tree format and searches for words recursively. How the the dictionary is loaded depends on which implementation of SyllableListTree is invoked.

Author:
Andrés Montano Pellegrini
See Also:
SyllableListTree

Field Summary
static String archivo
           
private static String endOfParagraphMarks
           
private static String endOfSyllableMarks
           
private  Vector floatingSil
           
private  org.thdl.tib.scanner.SyllableListTree lastCompSil
           
private  String lastCompWord
           
private  org.thdl.tib.scanner.SyllableListTree raiz
           
private  org.thdl.tib.scanner.SyllableListTree silActual
           
private  org.thdl.tib.scanner.SyllableListTree silAnterior
           
private  String wordActual
           
private  org.thdl.tib.scanner.LinkedList wordList
           
 
Fields inherited from interface org.thdl.tib.scanner.TibetanScanner
aboutUnicode, copyrightASCII, copyrightHTML, copyrightUnicode
 
Constructor Summary
LocalTibetanScanner(String arch)
           
 
Method Summary
 void clearTokens()
           
private static String concatWithSpace(String s1, String s2)
           
 void finishUp()
           
 String[] getDictionaryDescriptions()
          Looks for .dic file, and returns the dictionary descriptions.
 org.thdl.tib.scanner.DictionarySource getDictionarySource()
           
 org.thdl.tib.scanner.Token[] getTokenArray()
           
 org.thdl.tib.scanner.LinkedList getTokenLinkedList()
           
private  boolean isEndOfSyllable(int ch)
           
private  void resetAll()
           
 void scanBody(String in)
           
 void scanLine(String linea)
           
private  void scanSyllable(String sil)
           
private static String withOutDec(String sil)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archivo

public static String archivo

raiz

private org.thdl.tib.scanner.SyllableListTree raiz

silActual

private org.thdl.tib.scanner.SyllableListTree silActual

lastCompSil

private org.thdl.tib.scanner.SyllableListTree lastCompSil

silAnterior

private org.thdl.tib.scanner.SyllableListTree silAnterior

wordActual

private String wordActual

lastCompWord

private String lastCompWord

floatingSil

private Vector floatingSil

wordList

private org.thdl.tib.scanner.LinkedList wordList

endOfParagraphMarks

private static String endOfParagraphMarks

endOfSyllableMarks

private static String endOfSyllableMarks
Constructor Detail

LocalTibetanScanner

public LocalTibetanScanner(String arch)
                    throws Exception
Method Detail

clearTokens

public void clearTokens()
Specified by:
clearTokens in interface TibetanScanner

getDictionarySource

public org.thdl.tib.scanner.DictionarySource getDictionarySource()
Specified by:
getDictionarySource in interface TibetanScanner

resetAll

private void resetAll()

scanSyllable

private void scanSyllable(String sil)

finishUp

public void finishUp()
Specified by:
finishUp in interface TibetanScanner

concatWithSpace

private static String concatWithSpace(String s1,
                                      String s2)

withOutDec

private static String withOutDec(String sil)

scanBody

public void scanBody(String in)
Specified by:
scanBody in interface TibetanScanner

isEndOfSyllable

private boolean isEndOfSyllable(int ch)

scanLine

public void scanLine(String linea)
Specified by:
scanLine in interface TibetanScanner

getTokenLinkedList

public org.thdl.tib.scanner.LinkedList getTokenLinkedList()
Specified by:
getTokenLinkedList in interface TibetanScanner

getTokenArray

public org.thdl.tib.scanner.Token[] getTokenArray()
Specified by:
getTokenArray in interface TibetanScanner

getDictionaryDescriptions

public String[] getDictionaryDescriptions()
Looks for .dic file, and returns the dictionary descriptions. Also updates the definitionTags in the Definitions class.

Specified by:
getDictionaryDescriptions in interface TibetanScanner


These API docs were created 02/02/2003 08:20 PM.
Copyright © 2001-2002 Tibetan and Himalayan Digital Library. All Rights Reserved.
Hosted by SourceForge_Logo