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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LocalTibetanScanner
public LocalTibetanScanner(String arch)
throws Exception
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