001: /*
002: * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
003: *
004: * The program is provided "as is" without any warranty express or
005: * implied, including the warranty of non-infringement and the implied
006: * warranties of merchantibility and fitness for a particular purpose.
007: * IBM will not be liable for any damages suffered by you as a result
008: * of using the Program. In no event will IBM be liable for any
009: * special, indirect or consequential damages or lost profits even if
010: * IBM has been advised of the possibility of their occurrence. IBM
011: * will not be liable for any third party claims against you.
012: */
013: /*
014: *
015: * (C) Copyright IBM Corp. 1998, All Rights Reserved
016: */
017:
018: package com.ibm.richtext.textpanel;
019:
020: /**
021: * This class implements KeyRemap to produce transliterated Hebrew
022: * characters from Latin-1 characters.
023: */
024:
025: final class HebrewTransliteration extends KeyRemap {
026:
027: static final String COPYRIGHT = "(C) Copyright IBM Corp. 1998-1999 - All Rights Reserved";
028:
029: public char remap(char c) {
030:
031: switch (c) {
032: case 'a':
033: return '\u05D0'; // HEBREW LETTER ALEF
034: case 'A':
035: return '\u05E2'; // HEBREW LETTER AYIN
036: case 'b':
037: return '\u05D1'; // HEBREW LETTER BET
038: case 'B':
039: return '\u05D1'; // HEBREW LETTER BET
040: case 'c':
041: return '\u05E6'; // HEBREW LETTER TSADI
042: case 'C':
043: return '\u05E5'; // HEBREW LETTER FINAL TSADI
044: case 'd':
045: return '\u05D3'; // HEBREW LETTER DALET
046: case 'D':
047: return '\u05BC'; // HEBREW POINT DAGESH
048: case 'e':
049: return '\u05B5'; // HEBREW POINT TSERE
050: case 'E':
051: return '\u05B6'; // HEBREW POINT SEGOL
052: case 'f':
053: return '\u05E4'; // HEBREW LETTER PE
054: case 'F':
055: return '\u05E4'; // HEBREW LETTER PE
056: case 'g':
057: return '\u05D2'; // HEBREW LETTER GIMEL
058: case 'G':
059: return '\u05D2'; // HEBREW LETTER GIMEL
060: case 'h':
061: return '\u05D4'; // HEBREW LETTER HE
062: case 'H':
063: return '\u05D7'; // HEBREW LETTER HET
064: case 'i':
065: return '\u05D9'; // HEBREW LETTER YOD
066: case 'I':
067: return '\u05B4'; // HEBREW POINT HIRIQ
068: case 'j':
069: return '\u05D9'; // HEBREW LETTER YOD
070: case 'J':
071: return '\u05C1'; // HEBREW POINT SHIN DOT
072: case 'k':
073: return '\u05DB'; // HEBREW LETTER KAF
074: case 'K':
075: return '\u05DA'; // HEBREW LETTER FINAL KAF
076: case 'l':
077: return '\u05DC'; // HEBREW LETTER LAMED
078: case 'L':
079: return '\u05DC'; // HEBREW LETTER LAMED
080: case 'm':
081: return '\u05DE'; // HEBREW LETTER MEM
082: case 'M':
083: return '\u05DD'; // HEBREW LETTER FINAL MEM
084: case 'n':
085: return '\u05E0'; // HEBREW LETTER NUN
086: case 'N':
087: return '\u05DF'; // HEBREW LETTER FINAL NUN
088: case 'o':
089: return '\u05D5'; // HEBREW LETTER VAV
090: case 'O':
091: return '\u05B9'; // HEBREW POINT HOLAM
092: case 'p':
093: return '\u05E4'; // HEBREW LETTER PE
094: case 'P':
095: return '\u05E3'; // HEBREW LETTER FINAL PE
096: case 'q':
097: return '\u05E7'; // HEBREW LETTER QOF
098: case 'Q':
099: return '\u05E7'; // HEBREW LETTER QOF
100: case 'r':
101: return '\u05E8'; // HEBREW LETTER RESH
102: case 'R':
103: return '\u05BF'; // HEBREW POINT RAFE
104: case 's':
105: return '\u05E9'; // HEBREW LETTER SHIN
106: case 'S':
107: return '\u05E1'; // HEBREW LETTER SAMEKH
108: case 't':
109: return '\u05EA'; // HEBREW LETTER TAV
110: case 'T':
111: return '\u05D8'; // HEBREW LETTER TET
112: case 'u':
113: return '\u05D5'; // HEBREW LETTER VAV
114: case 'U':
115: return '\u05BB'; // HEBREW POINT QUBUTS
116: case 'v':
117: return '\u05D5'; // HEBREW LETTER VAV
118: case 'V':
119: return '\u05B7'; // HEBREW POINT PATAH
120: case 'w':
121: return '\u05D5'; // HEBREW LETTER VAV
122: case 'W':
123: return '\u05B8'; // HEBREW POINT QAMATS
124: case 'x':
125: return '\u05E6'; // HEBREW LETTER TSADI
126: case 'X':
127: return '\u05E5'; // HEBREW LETTER FINAL TSADI
128: case 'y':
129: return '\u05D9'; // HEBREW LETTER YOD
130: case 'Y':
131: return '\u05D9'; // HEBREW LETTER YOD
132: case 'z':
133: return '\u05D6'; // HEBREW LETTER ZAYIN
134: case 'Z':
135: return '\u05C2'; // HEBREW POINT SIN DOT
136: }
137:
138: return c;
139: }
140: }
|