info.pvalley.jtransliterate
Class Translator

java.lang.Object
  extended by info.pvalley.jtransliterate.Translator

public class Translator
extends java.lang.Object

This class contains all methods required for actual lorc of transliteration program.


Field Summary
protected  boolean ft
           
 
Constructor Summary
Translator(TranslatorFrame af)
          Creates new translator Object
 
Method Summary
 void change(java.lang.String first, java.lang.String second)
          Used for change of keyboard layouts tables if custom layout choosen.
 void check()
          Check if there are quals symbols in table.
 void initBDS()
          Initialise BDS keyboard layouts from hardcoded arrays
 void initLatin()
          Initialise latin (qwerty) from harcoded array
 void initPhonetic()
          Initialise Photetic layout from hardcoded array
 void initTableCyrillic()
          Initialise cyrillic from table
 void initTableLatin()
          Initialise latin from table (if not qwerty)
 void reverseTranslate()
          Line translate but in reverse.
 void translate()
          Do actual transliteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ft

protected boolean ft
Constructor Detail

Translator

public Translator(TranslatorFrame af)
Creates new translator Object

Parameters:
af - обект от тип AplicationFrame
Method Detail

initBDS

public void initBDS()
Initialise BDS keyboard layouts from hardcoded arrays


initPhonetic

public void initPhonetic()
Initialise Photetic layout from hardcoded array


initLatin

public void initLatin()
Initialise latin (qwerty) from harcoded array


initTableLatin

public void initTableLatin()
Initialise latin from table (if not qwerty)


initTableCyrillic

public void initTableCyrillic()
Initialise cyrillic from table


translate

public void translate()
Do actual transliteration.


check

public void check()
Check if there are quals symbols in table. Used when custom layout selected.


change

public void change(java.lang.String first,
                   java.lang.String second)
Used for change of keyboard layouts tables if custom layout choosen. If there are equal fields. Called automaticly.

Parameters:
first - first element
second - second element

reverseTranslate

public void reverseTranslate()
Line translate but in reverse. From cyrillic to latin.

See Also:
translate()